/* style/promotions.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-text-yellow: #FFFF00;
  --border-color: #e0e0e0;
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background: var(--secondary-color);
}

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

.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__section--intro {
  background: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-promotions__dark-section {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__light-bg {
  background: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-promotions__section-title {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit; /* Inherit color from parent section */
}

.page-promotions__dark-section .page-promotions__section-title {
  color: var(--text-color-light);
}

.page-promotions__sub-title {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
  color: inherit;
}

.page-promotions__text-block {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, var(--primary-color) 0%, #00a859 100%); /* Adjusted gradient for visual appeal */
  color: var(--text-color-light);
  overflow: hidden; /* Ensure no overflow from hero image */
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  filter: none; /* Ensure no filter is applied */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-section .page-promotions__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 180px;
}

.page-promotions__btn-primary {
  background: var(--button-register-bg); /* Use specific color for register/primary */
  color: var(--button-text-yellow); /* Use specific color for button text */
  border: 2px solid var(--button-register-bg);
}

.page-promotions__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #015c2d;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Promo Highlight */
.page-promotions__promo-highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-promotions__promo-highlight img {
  flex: 1 1 400px;
  max-width: 50%;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no filter is applied */
}

.page-promotions__promo-content {
  flex: 1 1 400px;
  max-width: 50%;
  padding-left: 20px;
  box-sizing: border-box;
}

.page-promotions__promo-content .page-promotions__btn-primary {
  margin-top: 20px;
}

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

.page-promotions__promo-card {
  background: var(--secondary-color);
  color: var(--text-color-dark);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  filter: none; /* Ensure no filter is applied */
}

.page-promotions__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-promotions__promo-card p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__btn-secondary {
  width: auto;
  align-self: flex-start;
  margin-top: auto; /* Push button to bottom */
}

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

.page-promotions__step-item {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  position: relative;
  padding-top: 60px;
}

.page-promotions__step-number {
  position: absolute;
  top: 20px;
  left: 25px;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
}

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

.page-promotions__cta-bottom {
  margin-top: 50px;
}

/* Terms List */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-list li {
  background: #f0f0f0;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  color: #555;
  position: relative;
  padding-left: 40px;
}

.page-promotions__terms-list li::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 15px;
  top: 15px;
  font-weight: bold;
}

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

.page-promotions__feature-item {
  background: var(--secondary-color);
  color: var(--text-color-dark);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
  filter: none; /* Ensure no filter is applied */
}

.page-promotions__feature-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-promotions__feature-item p {
  font-size: 15px;
  color: #555;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  text-align: left;
}

/* 问题样式 */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  text-align: left;
}

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

.page-promotions__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--text-color-dark);
}

/* 切换图标 */
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

.page-promotions__text-center {
  text-align: center;
}

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

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

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

  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-promotions__hero-section .page-promotions__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-promotions__cta-button,
  .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-highlight {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .page-promotions__promo-highlight img,
  .page-promotions__promo-content {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
  }

  .page-promotions__promo-highlight img {
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions__promo-card img {
    
  }

  .page-promotions__terms-list {
    padding: 0;
  }

  .page-promotions__terms-list li {
    font-size: 15px;
    padding: 12px 15px 12px 35px;
  }

  .page-promotions__terms-list li::before {
    left: 10px;
    top: 12px;
  }

  .page-promotions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-promotions__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-promotions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover; /* Maintain aspect ratio for content images */
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-highlight,
  .page-promotions__step-item,
  .page-promotions__feature-item,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px; /* Buttons already have internal padding */
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}