/* style/promo.css */

/* Base styles for the promo page content */
.page-promo {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color */
  background-color: #0A0A0A; /* Background color */
  padding-bottom: 60px; /* Space for footer */
}

/* Hero Section */
.page-promo__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Desktop: Ensure content is below fixed header */
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Fallback gradient */
}

.page-promo__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.7); /* Slightly darken image for text readability, not color change */
}

.page-promo__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 30px;
  color: #ffffff; /* Ensure white text on darkened image */
  background: rgba(0, 0, 0, 0.4); /* Subtle overlay for text readability */
  border-radius: 10px;
  margin: 20px;
}

.page-promo__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: #FFD36B; /* Glow color for title */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-promo__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
}

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

/* General Section Styles */
.page-promo__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-promo__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Main color for section titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promo__section-description {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Button Styles */
.page-promo__btn-primary,
.page-promo__btn-secondary,
.page-promo__btn-text,
.page-promo a[class*="button"],
.page-promo a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promo__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-promo__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Main color border */
}

.page-promo__btn-secondary:hover {
  background: #F2C14E; /* Main color */
  color: #111111; /* Card BG */
}

.page-promo__btn-text {
  color: #FFD36B; /* Glow color */
  text-decoration: underline;
  padding: 0;
  background: none;
  border: none;
  font-size: 1em;
}

.page-promo__btn-text:hover {
  color: #F2C14E; /* Main color */
}

.page-promo__cta-center {
  text-align: center;
  margin-top: 50px;
}

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

.page-promo__feature-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-promo__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-promo__feature-icon {
  width: 200px; /* Minimum size enforced */
  height: 200px; /* Minimum size enforced */
  margin: 0 auto 20px auto;
  object-fit: contain;
}

.page-promo__feature-title {
  font-size: 1.5em;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promo__feature-text {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
}

/* Promotion Types Section */
.page-promo__promo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promo__promo-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-promo__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-promo__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-promo__promo-card-content {
  padding: 25px;
}

.page-promo__promo-card-title {
  font-size: 1.3em;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promo__promo-card-text {
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
}

/* How to Claim Section */
.page-promo__claim-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promo__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 25px;
  gap: 20px;
}

.page-promo__step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #F2C14E; /* Main color */
  color: #111111; /* Dark text for bright background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-promo__step-content {
  flex-grow: 1;
}

.page-promo__step-title {
  font-size: 1.4em;
  color: #F2C14E; /* Main color */
  margin-bottom: 8px;
  font-weight: bold;
}

.page-promo__step-text {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
}

.page-promo__step-text a {
  color: #FFD36B; /* Glow color for links */
  text-decoration: underline;
}

.page-promo__step-text a:hover {
  color: #F2C14E; /* Main color */
}

/* VIP Rewards Section */
.page-promo__vip-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promo__benefit-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-promo__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-promo__benefit-icon {
  width: 200px; /* Minimum size enforced */
  height: 200px; /* Minimum size enforced */
  margin: 0 auto 20px auto;
  object-fit: contain;
}

.page-promo__benefit-title {
  font-size: 1.5em;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promo__benefit-text {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
}

/* FAQ Section */
.page-promo__faq-list {
  margin-top: 40px;
}

.page-promo__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF6D6; /* Text Main */
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: #111111; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: #1a1a1a; /* Slightly darker on hover */
}

.page-promo__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #F2C14E; /* Main color */
  font-weight: bold;
}

.page-promo__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD36B; /* Glow color */
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-promo__faq-item.active .page-promo__faq-toggle {
  transform: rotate(0deg); /* Explicitly set to 0 for '-' sign */
}

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #FFF6D6; /* Text Main */
}

.page-promo__faq-item.active .page-promo__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content, important for override */
  padding: 15px 25px;
}

.page-promo__faq-answer p {
  margin-bottom: 15px;
}

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

.page-promo__cta-final {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promo__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

@media (max-width: 768px) {
  .page-promo {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promo__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: Ensure content is below fixed header */
    min-height: 400px;
  }

  .page-promo__hero-content {
    padding: 20px;
    margin: 10px;
  }

  .page-promo__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-promo__hero-cta {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure button container takes full width */
    padding: 0 15px; /* Add padding for small screens */
    box-sizing: border-box;
  }

  .page-promo__btn-primary,
  .page-promo__btn-secondary,
  .page-promo a[class*="button"],
  .page-promo a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-promo__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-promo__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promo__features-grid,
  .page-promo__promo-card-grid,
  .page-promo__vip-benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promo__feature-card,
  .page-promo__promo-card,
  .page-promo__benefit-card {
    padding: 20px;
  }

  .page-promo__feature-icon,
  .page-promo__promo-card-image,
  .page-promo__benefit-icon {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px; /* Still enforce minimum size */
    min-height: 200px; /* Still enforce minimum size */
  }

  .page-promo__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .page-promo__step-number {
    margin-bottom: 15px;
  }

  .page-promo__faq-question {
    padding: 15px 20px;
  }

  .page-promo__faq-question h3 {
    font-size: 1.1em;
  }

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

  .page-promo__faq-item.active .page-promo__faq-answer {
    padding: 15px 20px;
  }

  .page-promo__cta-final {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
}

/* Image responsive overrides for content area - MUST be present */
.page-promo img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile forced image and container adaptation */
@media (max-width: 768px) {
  .page-promo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promo__section,
  .page-promo__card,
  .page-promo__container,
  .page-promo__hero-section,
  .page-promo__why-choose-section,
  .page-promo__promotion-types-section,
  .page-promo__how-to-claim-section,
  .page-promo__vip-rewards-section,
  .page-promo__faq-section,
  .page-promo__join-today-section,
  .page-promo__hero-cta, /* Button container */
  .page-promo__cta-final /* Button container */
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for hero section in mobile media query */
  .page-promo__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: by shared's media control */
  }

  /* Ensure button containers allow wrapping */
  .page-promo__hero-cta,
  .page-promo__cta-final {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promo__hero-cta {
    flex-direction: column; /* Force vertical stacking for hero buttons on mobile */
  }
}

/* Contrast Fixes - applying based on dark background */
/* Body background is #0A0A0A (dark), Card BG is #111111 (dark) */
/* Text Main is #FFF6D6 (light) - this is already set as default text color */

/* Ensure buttons have dark text on bright gradient */
.page-promo__btn-primary {
  color: #111111; /* Dark text on bright button */
}

/* Ensure secondary buttons have bright text on dark background */
.page-promo__btn-secondary {
  color: #F2C14E; /* Bright text on dark button */
}

/* Ensure links have bright color */
.page-promo__step-text a {
  color: #FFD36B;
}

.page-promo__step-text a:hover {
  color: #F2C14E;
}

.page-promo__btn-text {
  color: #FFD36B;
}
.page-promo__btn-text:hover {
  color: #F2C14E;
}