/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
  background-color: #08160F; /* Background color from custom scheme */
  color: #F2FFF6; /* Main text color from custom scheme */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content on smaller screens */
  align-items: center;
  text-align: center;
  padding: 20px 0; /* Small padding, body handles header offset */
  background-color: #08160F; /* Ensure hero section background matches page */
  overflow: hidden; /* Prevent content overflow */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image wrapper */
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-promotions__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
}

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

.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: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  text-align: center;
  min-width: 200px; /* Minimum width for buttons */
}

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

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slight background on hover */
  transform: translateY(-2px);
}

/* General Section Styling */
.page-promotions__section {
  padding: 60px 20px;
  background-color: #08160F; /* Background color from custom scheme */
  color: #F2FFF6; /* Main text color */
}

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-promotions__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-promotions__image-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0;
  gap: 20px;
}

.page-promotions__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-promotions__image-caption {
  font-style: italic;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95rem;
  text-align: center;
}

/* Promotion Categories */
.page-promotions__promo-category {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__category-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__category-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-promotions__promo-list,
.page-promotions__guide-list,
.page-promotions__guide-rules,
.page-promotions__guide-tips,
.page-promotions__advantage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-promotions__promo-item,
.page-promotions__guide-item,
.page-promotions__advantage-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

.page-promotions__promo-item strong {
  color: #F2FFF6; /* Text Main */
}

.page-promotions__promo-item::before,
.page-promotions__guide-item::before,
.page-promotions__advantage-item::before {
  content: '✓'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #57E38D; /* Glow color */
  font-weight: bold;
  font-size: 1.2rem;
}

/* Guide Section */
.page-promotions__guide-step {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__guide-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__guide-list li::before {
  content: counter(list-item) ". "; /* Numbered list */
  counter-increment: list-item;
  color: #57E38D; /* Glow color */
  font-weight: bold;
  font-size: 1.2rem;
  left: 0;
}

.page-promotions__btn-register {
  margin-top: 20px;
  width: auto; /* Allow button to size itself */
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none; /* Hide default marker for details summary */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  color: #57E38D; /* Glow color */
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
  max-height: 0; /* For JS-driven collapse if details tag not used */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 10px;
}


/* Conclusion Section */
.page-promotions__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 0; /* Small top padding */
  }

  .page-promotions__hero-content {
    padding: 0 15px;
  }

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

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

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important; /* Ensure buttons container is full width */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-promotions__container {
    padding: 0; /* Remove container padding on mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-promotions__text-block,
  .page-promotions__category-description,
  .page-promotions__promo-item,
  .page-promotions__guide-item,
  .page-promotions__advantage-item,
  .page-promotions__faq-answer p {
    font-size: 0.95rem;
  }

  .page-promotions__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  .page-promotions__promo-category,
  .page-promotions__guide-step,
  .page-promotions__faq-item {
    padding: 20px;
    margin-left: 15px; /* Add padding to match container */
    margin-right: 15px; /* Add padding to match container */
    max-width: calc(100% - 30px) !important; /* Adjust for padding */
    width: calc(100% - 30px) !important; /* Adjust for padding */
    box-sizing: border-box !important;
  }

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

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

/* Ensure all images are responsive */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure video elements are responsive */
.page-promotions video,
.page-promotions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Video containers */
.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile specific overrides for images, videos, buttons and their containers */
@media (max-width: 768px) {
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size for content images */
    min-height: 200px !important;
  }

  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__hero-image-wrapper,
  .page-promotions__image-text-block,
  .page-promotions__promo-category,
  .page-promotions__guide-step,
  .page-promotions__faq-item,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
  
  /* Ensure padding for content containers on mobile */
  .page-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Buttons within content areas */
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px; /* Space between wrapped buttons */
  }
  
  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
  }
}

/* Color contrast enforcement */
/* Default text color for the page is #F2FFF6 on #08160F, which has good contrast. */
/* Card backgrounds are #11271B, with text #F2FFF6 or #A7D9B8, also good contrast. */
/* Buttons have strong contrast. */

/* Divider style */
.page-promotions__divider {
  border-top: 1px solid #1E3A2A; /* Divider color */
  margin: 50px auto;
  max-width: 80%;
}