/* style/promotions.css */

/* Base styles for the page */
.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--background, #08160F); /* Default background color from custom palette */
  line-height: 1.6;
  font-size: 16px;
}

/* Container for main content */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
}

.page-promotions__hero-content {
  position: relative; /* Not absolute, for "image above text" rule */
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but not over image */
  background: var(--card-bg, #11271B); /* Use card background for content block */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1; /* Ensure content is above other elements if any */
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Responsive H1, no fixed huge size */
  font-weight: 800;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.3); /* Glow effect */
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff; /* White text for button */
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 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), 0 0 15px var(--glow, #57E38D);
}

/* Current Promotions Section */
.page-promotions__current-promotions {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

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

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

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow, #57E38D);
}

.page-promotions__promo-image-wrapper {
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio (300/400 = 0.75) */
  position: relative;
  overflow: hidden;
}

.page-promotions__promo-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-promotions__promo-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-promotions__promo-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__promo-button:hover {
  opacity: 0.9;
  box-shadow: 0 0 10px var(--glow, #57E38D);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B); /* Use card background for this section */
  color: var(--text-main, #F2FFF6);
}

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

.page-promotions__step-item {
  background-color: var(--background, #08160F); /* Darker background for steps */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--deep-green, #0A4B2C); /* Deep green for number background */
  color: var(--gold, #F2C14E); /* Gold text for number */
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 2px solid var(--gold, #F2C14E);
}

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

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

.page-promotions__step-text a {
  color: var(--glow, #57E38D); /* Highlight links in steps */
  text-decoration: none;
  font-weight: 600;
}

.page-promotions__step-text a:hover {
  text-decoration: underline;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  text-align: center;
}

.page-promotions__cta-button--secondary {
  background: var(--card-bg, #11271B); /* Darker background for secondary button */
  color: var(--glow, #57E38D); /* Green glow color for text */
  border: 1px solid var(--glow, #57E38D);
}

.page-promotions__cta-button--secondary:hover {
  background: var(--deep-green, #0A4B2C);
  box-shadow: 0 0 15px var(--glow, #57E38D);
  transform: translateY(-3px);
}

/* FAQ Section */
.page-promotions__faq {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B); /* Use card background for this section */
  color: var(--text-main, #F2FFF6);
}

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

.page-promotions__faq-item {
  background-color: var(--background, #08160F);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border, #2E7A4E);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Deep green for question background */
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--gold, #F2C14E);
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  /* Display controlled by <details> tag, no explicit JS display toggle needed for this CSS */
}

/* Final CTA Section */
.page-promotions__cta-final {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  text-align: center;
}

.page-promotions__cta-final-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }

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

  .page-promotions__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
  }

  .page-promotions__promo-card {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 15px;
  }

  .page-promotions__container {
    padding: 0 15px; /* Add padding for mobile content */
  }

  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(26px, 6vw, 40px);
  }

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

  .page-promotions__cta-button,
  .page-promotions__promo-button,
  .page-promotions__cta-button--secondary,
  .page-promotions__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 10px; /* Space between stacked buttons */
  }

  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__section-title {
    font-size: clamp(22px, 5vw, 32px);
  }

  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-promotions__current-promotions,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__faq,
  .page-promotions__cta-final {
    padding: 60px 0;
  }

  /* Image responsive rules for mobile */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/content */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-promotions__promo-image-wrapper {
    padding-top: 56.25%; /* 16:9 aspect ratio for mobile cards */
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-promotions__hero-content {
    margin-top: -30px;
    padding: 20px 10px;
  }
  .page-promotions__cta-button--large {
    padding: 15px 25px;
    font-size: 18px;
  }
}

/* Color contrast enforcement for specific elements */
.page-promotions__dark-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-promotions__light-bg { /* Used for how-to-claim and faq sections */
  background-color: var(--card-bg, #11271B); /* Slightly lighter dark green */
  color: var(--text-main, #F2FFF6);
}

/* Ensure specific text elements have good contrast */
.page-promotions p,
.page-promotions li {
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__main-title,
.page-promotions__section-title,
.page-promotions__promo-title,
.page-promotions__step-title,
.page-promotions__faq-question {
  color: var(--text-main, #F2FFF6);
}

/* Button text color already set to #ffffff for gradient buttons */
/* Secondary button text color is var(--glow, #57E38D) which is bright green on dark green, good contrast */