/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
  background-color: var(--site-bg, #08160F); /* Fallback to custom color if --site-bg is not set */
  color: var(--text-main, #F2FFF6); /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Ensure all links and headings have sufficient contrast on dark background */
.page-promotions a {
  color: var(--gold, #F2C14E); /* Gold for links, ensuring contrast */
  text-decoration: none;
}

.page-promotions a:hover {
  text-decoration: underline;
  color: var(--glow, #57E38D); /* Glow color on hover */
}

.page-promotions h1,
.page-promotions h2,
.page-promotions h3 {
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
}

/* H1 specific styling for the hero section */
.page-promotions__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  /* Using clamp for responsive font size without fixed large values */
  font-size: clamp(2.2rem, 5vw, 3.5rem); 
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #F2FFF6);
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--deep-green, #0A4B2C); /* Deep green background for hero */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.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 {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure buttons adapt to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-promotions__btn-secondary:hover {
  background: var(--border, #2E7A4E);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-promotions__btn-text-link {
  color: var(--gold, #F2C14E);
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-promotions__btn-text-link:hover {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

/* Introduction Section */
.page-promotions__introduction-section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
  text-align: justify;
}

/* Promotions List Section */
.page-promotions__promotions-list {
  padding: 60px 0;
  background-color: var(--card-bg, #11271B); /* Card BG for this section */
}

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

.page-promotions__promo-card {
  background-color: var(--background, #08160F); /* Use background for individual card bg */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-promotions__promo-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-promotions__promo-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-promotions__promo-card:hover .page-promotions__promo-card-image {
  transform: scale(1.05);
}

.page-promotions__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

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

/* VIP Program Section */
.page-promotions__vip-program-section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
}

.page-promotions__vip-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on mobile */
}

.page-promotions__vip-text {
  flex: 1;
  min-width: 300px;
}

.page-promotions__vip-benefits-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

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

.page-promotions__vip-benefits-list li::before {
  content: '⭐'; /* Star emoji for list item bullet */
  position: absolute;
  left: 0;
  color: var(--gold, #F2C14E);
}

.page-promotions__vip-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-promotions__vip-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* How to Participate Section */
.page-promotions__how-to-participate-section {
  padding: 60px 0;
  background-color: var(--card-bg, #11271B);
}

.page-promotions__steps-list {
  list-style: decimal;
  padding-left: 25px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1em;
}

.page-promotions__steps-list li {
  margin-bottom: 15px;
}

.page-promotions__steps-list li strong {
  color: var(--text-main, #F2FFF6);
}

.page-promotions__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
}

.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg, #11271B);
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main, #F2FFF6);
  list-style: none; /* Remove default marker for details summary */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--gold, #F2C14E);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

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

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

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-promotions__hero-image-wrapper {
    max-height: 400px;
  }
  .page-promotions__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-promotions__vip-content {
    flex-direction: column;
  }
  .page-promotions__vip-text,
  .page-promotions__vip-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__hero-image-wrapper {
    max-height: 300px;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* All image containers */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-image-wrapper,
  .page-promotions__vip-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* Video section top padding (using hero-section as it's the first content block) */
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ specific adjustments for mobile */
  .page-promotions__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
  }
}