/* Base Styles for page-promotions */
.page-promotions {
  background: var(--background, #08160F); /* Use custom background color, fallback to deep green */
  color: var(--text-main, #F2FFF6); /* Use custom main text color, fallback to light green-white */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-promotions__section-padding {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-promotions__text-block {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
  color: var(--text-secondary, #A7D9B8);
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.page-promotions__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-promotions__cta-button--small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Promotions Categories */
.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__promo-card {
  background: var(--card-bg, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-promotions__promo-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Guide List */
.page-promotions__guide-list {
  list-style: none;
  counter-reset: guide-step;
  max-width: 800px;
  margin: 40px auto;
  padding: 0;
}

.page-promotions__guide-item {
  background: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__guide-item::before {
  counter-increment: guide-step;
  content: "0" counter(guide-step);
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__guide-item:nth-child(n+10)::before {
  content: counter(guide-step);
}

.page-promotions__guide-title {
  font-size: 20px;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 8px;
}

.page-promotions__guide-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  margin: 0;
}

/* Terms List */
.page-promotions__terms-list {
  list-style: none;
  max-width: 800px;
  margin: 40px auto;
  padding: 0;
}

.page-promotions__terms-item {
  background: var(--card-bg, #11271B);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--main-color, #11A84E);
}

.page-promotions__link-text {
  display: block;
  text-align: center;
  margin-top: 30px;
  font-size: 17px;
  color: var(--main-color, #11A84E);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions__link-text:hover {
  color: var(--aux-color, #22C768);
}

/* Why Choose List */
.page-promotions__why-list {
  list-style: none;
  max-width: 900px;
  margin: 40px auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-promotions__why-item {
  background: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 25px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
  text-align: left;
}

.page-promotions__why-item strong {
  color: var(--text-main, #F2FFF6);
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-container {
  max-width: 900px;
  margin: 40px auto;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: #1e3a2a; /* Slightly lighter dark green on hover */
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F2FFF6);
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--main-color, #11A84E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
  color: var(--aux-color, #22C768);
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 25px;
  background: #0a1f16; /* Slightly lighter than card-bg */
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-promotions__final-cta {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 32px;
  }

  .page-promotions__hero-description {
    font-size: 18px;
  }

  .page-promotions__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__section-padding {
    padding: 40px 15px;
  }

  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 16px;
    margin-bottom: 15px;
  }

  /* Hero Section Mobile */
  .page-promotions__hero-section {
    padding-top: 10px; /* !important is not needed here if body handles offset */
    padding-bottom: 40px;
  }

  .page-promotions__hero-image {
    object-fit: contain !important; /* Ensure image fits without cropping */
    height: 300px !important;
    position: relative;
    filter: brightness(0.6);
  }

  .page-promotions__hero-image-wrapper {
    position: relative; /* Change to relative for better mobile flow */
    height: 300px; /* Explicit height */
  }

  .page-promotions__hero-content {
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Promo Cards Mobile */
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card {
    padding: 20px;
  }

  .page-promotions__promo-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-promotions__promo-title {
    font-size: 20px;
  }

  .page-promotions__promo-description {
    font-size: 15px;
  }

  .page-promotions__cta-button--small {
    width: auto !important; /* Let content dictate width */
    max-width: 100% !important;
    padding: 10px 15px !important;
    font-size: 15px !important;
  }

  /* Guide List Mobile */
  .page-promotions__guide-list {
    margin: 30px auto;
  }

  .page-promotions__guide-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .page-promotions__guide-item::before {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-promotions__guide-title {
    font-size: 18px;
  }

  .page-promotions__guide-description {
    font-size: 15px;
  }

  /* Terms List Mobile */
  .page-promotions__terms-list {
    margin: 30px auto;
  }

  .page-promotions__terms-item {
    padding: 15px 20px;
    font-size: 15px;
  }

  .page-promotions__link-text {
    font-size: 16px;
  }

  /* Why Choose List Mobile */
  .page-promotions__why-list {
    grid-template-columns: 1fr;
    margin: 30px auto;
  }

  .page-promotions__why-item {
    padding: 20px;
    font-size: 15px;
  }

  .page-promotions__why-item strong {
    font-size: 17px;
  }

  /* FAQ Section Mobile */
  .page-promotions__faq-container {
    margin: 30px auto;
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px;
  }

  .page-promotions__faq-qtext {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* Generic Image and Container Mobile Adaptations */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__section, .page-promotions__card, .page-promotions__container, .page-promotions__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button containers for mobile */
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}