/* style/promotions.css */
/* Custom colors from palette */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --gradient-button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--color-text-main); /* Default text color for dark background */
  background-color: var(--color-background); /* Main background color */
  line-height: 1.6;
}

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

.page-promotions__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -100px; /* Adjust to move content slightly up over the image, but not *on* it */
  background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.page-promotions__main-title {
  font-size: clamp(32px, 4.5vw, 60px);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-promotions__subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--color-text-main);
  margin-bottom: 30px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-promotions__btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-secondary {
  background: var(--color-card-bg);
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.page-promotions__btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-card-bg);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

/* Featured Promos Section */
.page-promotions__featured-promos-section {
  padding: 60px 0;
  background-color: var(--color-deep-green);
}

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

.page-promotions__promo-card {
  background-color: var(--color-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-promotions__promo-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, will be object-fit */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-promotions__promo-card-title {
  font-size: 1.5em;
  color: var(--color-gold);
  margin: 0 15px 10px;
  font-weight: bold;
}

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

.page-promotions__promo-card .page-promotions__cta-button {
  margin: 0 15px;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

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

.page-promotions__step-item {
  text-align: center;
  background-color: var(--color-card-bg);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__step-title {
  font-size: 1.3em;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__step-description {
  font-size: 0.95em;
  color: var(--color-text-secondary);
}

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

/* Important Notes Section */
.page-promotions__important-notes-section {
  padding: 60px 0;
  background-color: var(--color-deep-green);
}

.page-promotions__list {
  list-style: disc inside;
  color: var(--color-text-secondary);
  margin-left: 20px;
  font-size: 1.1em;
}

.page-promotions__list-item {
  margin-bottom: 10px;
}

/* Safety Section */
.page-promotions__safety-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--color-deep-green);
}

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

.page-promotions__faq-item {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--color-text-main);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid var(--color-border);
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--color-gold);
}

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

.page-promotions__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--color-text-secondary);
  background-color: var(--color-card-bg);
}

/* Final CTA Section */
.page-promotions__cta-final-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--color-background);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-content {
    margin-top: -50px; /* Adjust for smaller screens */
    padding: 20px;
  }

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

  .page-promotions__subtitle {
    font-size: clamp(15px, 3vw, 18px);
  }

  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-section .page-promotions__cta-button {
    width: auto !important; /* Allow hero button to be naturally sized */
    max-width: 90% !important; /* But still constrain it */
  }

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

  .page-promotions__promo-card-image {
    height: 180px;
  }

  /* Mobile specific image, video, button adaptations */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-promotions__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

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

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

/* Color contrast safety - ensure text is visible on various backgrounds */
.page-promotions h1, .page-promotions h2, .page-promotions h3 {
  color: var(--color-gold); /* Titles use gold */
}

.page-promotions p, .page-promotions li, .page-promotions__faq-answer p {
  color: var(--color-text-secondary); /* Body text use secondary text color */
}

.page-promotions__dark-bg {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Ensure strong contrast for links within dark sections */
.page-promotions__dark-section a {
  color: var(--color-gold);
}

.page-promotions__dark-section a:hover {
  color: var(--color-glow);
}

/* Specific contrast for hero content */
.page-promotions__hero-content {
  color: var(--color-text-main);
}

.page-promotions__hero-content .page-promotions__main-title {
  color: var(--color-gold);
}

.page-promotions__hero-content .page-promotions__subtitle {
  color: var(--color-text-main);
}

/* Ensure step icons are visible */
.page-promotions__step-icon {
  background-color: transparent; /* Assuming icons have their own color */
  border-radius: 50%;
}

/* Ensure overall page text contrast on main background */
.page-promotions {
  color: var(--color-text-main); /* On --color-background (#08160F), this is #F2FFF6 */
}

.page-promotions__overview-section p, .page-promotions__safety-section p, .page-promotions__cta-final-section p {
  color: var(--color-text-secondary);
}

.page-promotions__important-notes-section .page-promotions__list-item {
  color: var(--color-text-secondary);
}

.page-promotions__faq-question .page-promotions__faq-qtext {
  color: var(--color-text-main);
}

.page-promotions__faq-question .page-promotions__faq-toggle {
  color: var(--color-gold);
}

.page-promotions__faq-answer p {
  color: var(--color-text-secondary);
}