/* style/promotions.css */

/* Base styles for the page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color, ensuring contrast with dark body bg */
  background-color: var(--background, #08160F); /* Ensure body background is dark */
}

/* Sections */
.page-promotions__section {
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 1200px;
  box-sizing: border-box;
}

.page-promotions__dark-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-promotions__section-title {
  font-size: clamp(2rem, 5vw, 2.8rem); /* H1 font size constraint, applies to H2 as well for consistency */
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 200px; /* Push content down to avoid overlapping the top of the image */
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 1.2rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--gold, #F2C14E);
  color: var(--background, #08160F);
}

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

.page-promotions__card {
  background-color: var(--card-b-g, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
  color: var(--text-main, #F2FFF6); /* Text on card should be light */
}

.page-promotions__card:hover {
  transform: translateY(-5px);
}

.page-promotions__card-title {
  font-size: 1.5rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Content Blocks (image + text) */
.page-promotions__content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-promotions__content-block--reverse {
  flex-direction: row-reverse;
}

.page-promotions__image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border, #2E7A4E);
}

.page-promotions__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promotions__text-block {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  color: var(--text-main, #F2FFF6);
}

.page-promotions__sub-title {
  font-size: 2rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-promotions__list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__list li::before {
  content: '✓';
  color: var(--glow, #57E38D);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-promotions__list--numbered li::before {
  content: counter(list-item) '.';
  counter-increment: list-item;
  color: var(--gold, #F2C14E);
  font-weight: bold;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--card-b-g, #11271B); /* Use card background for FAQ section */
  border-top: 1px solid var(--divider, #1E3A2A);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-promotions__faq-item {
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--gold, #F2C14E);
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Final CTA Section */
.page-promotions__cta-final {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

/* Image responsiveness and size constraints */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-promotions__hero-content {
    margin-top: 100px;
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-promotions__description {
    font-size: 1rem;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__section {
    padding: 30px 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-promotions__section-description {
    font-size: 0.95rem;
  }

  .page-promotions__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__content-block {
    flex-direction: column;
    gap: 30px;
  }

  .page-promotions__content-block--reverse {
    flex-direction: column; /* On mobile, always stack */
  }

  .page-promotions__image-wrapper,
  .page-promotions__text-block {
    max-width: 100%;
    min-width: unset;
  }

  .page-promotions__sub-title {
    font-size: 1.6rem;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__image-wrapper,
  .page-promotions__text-block,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

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