/* style/promotions.css */
:root {
  --page-promotions-bg: #08160F;
  --page-promotions-card-bg: #11271B;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-promotions-border: #2E7A4E;
  --page-promotions-glow: #57E38D;
  --page-promotions-gold: #F2C14E;
  --page-promotions-divider: #1E3A2A;
  --page-promotions-deep-green: #0A4B2C;
}

.page-promotions {
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main); /* Default text color for dark background */
  line-height: 1.6;
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-promotions-deep-green);
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: var(--page-promotions-text-main);
}

.page-promotions__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-promotions-gold);
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-promotions__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: var(--page-promotions-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-promotions__cta-buttons--center {
  margin-top: 40px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: var(--page-promotions-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 20px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--page-promotions-glow);
  border: 2px solid var(--page-promotions-border);
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
}

/* General Section Styles */
.page-promotions__introduction.page-promotions__light-bg {
  background-color: #ffffff; /* Explicit white for light background section */
  color: #333333; /* Dark text for light background */
}

.page-promotions__types-of-promotions.page-promotions__dark-bg,
.page-promotions__important-notes.page-promotions__dark-bg,
.page-promotions__conclusion.page-promotions__dark-bg {
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
}

.page-promotions__guide.page-promotions__light-bg,
.page-promotions__faq-section.page-promotions__light-bg {
  background-color: #ffffff; /* Explicit white for light background section */
  color: #333333; /* Dark text for light background */
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--page-promotions-gold);
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-promotions__text-main {
  color: var(--page-promotions-text-main);
}

.page-promotions__text-secondary {
  color: var(--page-promotions-text-secondary);
}

/* Promotion Grid */
.page-promotions__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__card {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-promotions-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
}

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

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-promotions-text-main);
}

.page-promotions__card-description {
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--page-promotions-text-secondary);
  flex-grow: 1;
}

/* Guide Steps */
.page-promotions__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__step-item {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-promotions-border);
  color: var(--page-promotions-text-main);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-promotions__step-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-promotions-gold);
}

.page-promotions__step-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-promotions-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-promotions__step-item .page-promotions__btn-primary {
  margin-top: auto;
}

/* Image Text Block */
.page-promotions__image-text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__image-text-block .page-promotions__content-image {
  flex: 1 1 400px; /* Allow image to grow/shrink, min-width 400px */
  max-width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-promotions__image-text-block .page-promotions__bullet-list {
  flex: 1 1 400px;
  max-width: 50%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-promotions__bullet-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2357E38D"><circle cx="12" cy="12" r="8"/></svg>') no-repeat left center;
  background-size: 16px;
  padding-left: 25px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__bullet-list li:last-child {
  margin-bottom: 0;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: var(--page-promotions-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--page-promotions-border);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--page-promotions-text-main);
  background-color: rgba(17, 39, 27, 0.8); /* Slightly darker card bg for summary */
  border-bottom: 1px solid var(--page-promotions-divider);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: var(--page-promotions-deep-green);
}

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

.page-promotions__faq-question::marker {
  display: none;
}

.page-promotions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-promotions-glow);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-promotions-text-secondary);
  text-align: left;
}

/* Conclusion Section */
.page-promotions__conclusion .page-promotions__text-block {
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__image-text-block .page-promotions__content-image,
  .page-promotions__image-text-block .page-promotions__bullet-list {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

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

  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-promotions__main-title {
    font-size: 2.2em;
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__text-block {
    font-size: 1em;
    text-align: left;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__card-title {
    font-size: 1.3em;
}

  .page-promotions__step-title {
    font-size: 1.4em;
  }

  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__container,
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__hero-image-wrapper,
  .page-promotions__promotion-grid,
  .page-promotions__guide-steps,
  .page-promotions__image-text-block,
  .page-promotions__faq-list,
  .page-promotions__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-promotions__image-text-block .page-promotions__content-image {
    max-width: 100% !important;
    flex: none;
  }
  
  .page-promotions__image-text-block .page-promotions__bullet-list {
    max-width: 100% !important;
    flex: none;
  }
}

/* Ensure color contrast for light background sections */
.page-promotions__light-bg h2,
.page-promotions__light-bg h3,
.page-promotions__light-bg p,
.page-promotions__light-bg li,
.page-promotions__light-bg .page-promotions__faq-qtext {
  color: #333333; /* Dark text for light background */
}

.page-promotions__light-bg .page-promotions__btn-secondary {
  color: var(--page-promotions-glow);
  border-color: var(--page-promotions-border);
}

/* Ensure color contrast for dark background sections */
.page-promotions__dark-bg h2,
.page-promotions__dark-bg h3,
.page-promotions__dark-bg p,
.page-promotions__dark-bg li,
.page-promotions__dark-bg .page-promotions__faq-qtext {
  color: var(--page-promotions-text-main); /* Light text for dark background */
}

.page-promotions__dark-bg .page-promotions__card-title {
  color: var(--page-promotions-text-main);
}

.page-promotions__dark-bg .page-promotions__card-description {
  color: var(--page-promotions-text-secondary);
}

.page-promotions__dark-bg .page-promotions__btn-secondary {
  color: var(--page-promotions-glow);
  border-color: var(--page-promotions-border);
}