/* style/promotions.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base styles for the promotions page */
.page-promotions {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Body background from shared.css */
  box-sizing: border-box;
}

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

/* Section specific styles */
.page-promotions__section-title {
  font-size: 2.8em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions__text-block {
  font-size: 1.1em;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.page-promotions__dark-section {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px; /* Minimum height for hero */
  overflow: hidden;
  text-align: center;
  padding: 60px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-promotions__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-promotions__hero-section .page-promotions__container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-promotions__hero-title {
  font-size: 3.8em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.5em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.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.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Custom color for register/login type buttons */
  color: #FFFF00; /* Custom font color for register/login type buttons */
  border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-promotions__large-button {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Introduction Section */
.page-promotions__intro-section {
  padding: 60px 0;
  background-color: #017439; /* Brand primary color */
}

/* Featured Promotions */
.page-promotions__featured-promos {
  padding: 80px 0;
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark body */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

.page-promotions__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-promotions__promo-card h3 {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  color: #FFFF00; /* Highlight card titles */
}

.page-promotions__promo-card h3 a {
  color: #FFFF00;
  text-decoration: none;
}

.page-promotions__promo-card h3 a:hover {
  text-decoration: underline;
}

.page-promotions__card-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 20px;
  flex-grow: 1; /* Make description fill available space */
}

.page-promotions__card-button {
  margin: 20px;
  align-self: flex-start; /* Align button to start */
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-promotions__card-button:hover {
  background-color: #a30606;
  border-color: #a30606;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: #017439;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__step-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-promotions__step-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-promotions__step-description a {
  color: #FFFF00;
  text-decoration: underline;
}

/* Video Section */
.page-promotions__video-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
}

.page-promotions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}

.page-promotions__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* Terms Overview Section */
.page-promotions__terms-overview {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-promotions__terms-overview .page-promotions__section-title {
  color: #333333;
}
.page-promotions__terms-overview .page-promotions__text-block {
  color: #333333;
}

.page-promotions__terms-list {
  list-style: disc;
  padding-left: 40px;
  margin-bottom: 30px;
  color: #333333;
}

.page-promotions__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-promotions__terms-list a {
  color: #017439;
  text-decoration: underline;
}

/* Why Choose Section */
.page-promotions__why-choose {
  padding: 80px 0;
  background-color: #017439;
}

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

.page-promotions__reason-card {
  background-color: rgba(255, 255, 255, 0.1); /* Transparent light background for dark section */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-promotions__reason-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-promotions__reason-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-promotions__faq-section .page-promotions__section-title {
  color: #333333;
}

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

.page-promotions__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #e0e0e0;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #d0d0d0;
}

.page-promotions__faq-question h3 {
  margin: 0;
  font-size: 1em; /* Adjust to fit parent font size */
  color: #333333;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-promotions__faq-answer p {
  margin: 0;
  color: #555555;
}

.page-promotions__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* Final CTA Section */
.page-promotions__final-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
}

.page-promotions__final-cta .page-promotions__section-title,
.page-promotions__final-cta .page-promotions__section-subtitle {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__hero-description {
    font-size: 1.3em;
  }
  .page-promotions__section-title {
    font-size: 2.2em;
  }
  .page-promotions__section-subtitle {
    font-size: 1.1em;
  }
}

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

  /* Fixed header spacing for mobile */
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__section-subtitle {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__reason-card {
    padding: 20px;
  }

  .page-promotions__promo-card h3 {
    font-size: 1.3em;
  }

  .page-promotions__promo-image,
  .page-promotions__step-image {
    height: auto; /* Allow image height to adjust */
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }

  .page-promotions__video-section .page-promotions__container,
  .page-promotions__featured-promos .page-promotions__container,
  .page-promotions__how-to-claim .page-promotions__container,
  .page-promotions__terms-overview .page-promotions__container,
  .page-promotions__why-choose .page-promotions__container,
  .page-promotions__faq-section .page-promotions__container,
  .page-promotions__final-cta .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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