/* style/promotions.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-promotions {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body已承担 header-offset，此处仅装饰顶距 */
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-promotions__hero-content {
  position: relative; /* Ensure content is above the image but not overlaying it directly */
  z-index: 2;
  max-width: 1200px;
  margin-top: -150px; /* Pull content up over the image's lower part */
  padding: 0 20px;
  box-sizing: border-box;
  background: linear-gradient(to top, #08160F 0%, rgba(8, 22, 15, 0.8) 50%, transparent 100%);
  padding-top: 150px;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__description {
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-promotions__cta-button--small {
  padding: 10px 20px;
  font-size: 1rem;
}

.page-promotions__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

.page-promotions__cta-button--centered {
  margin: 30px auto 0 auto;
  display: block;
  width: fit-content;
}

.page-promotions__section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-promotions__section:nth-of-type(odd) {
  background-color: #11271B; /* Card BG */
}

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

.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  line-height: 1.3;
}

.page-promotions__text-block {
  font-size: 1rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__text-block strong {
  color: #A7D9B8; /* Text Secondary */
}

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

.page-promotions__promotion-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__card-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.page-promotions__card-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
  flex-grow: 1;
  text-align: justify;
}

.page-promotions__terms-list,
.page-promotions__steps-list,
.page-promotions__tips-list {
  list-style-type: none;
  padding: 0;
  margin: 30px 0;
}

.page-promotions__terms-item,
.page-promotions__steps-item,
.page-promotions__tips-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
}

.page-promotions__terms-item::before,
.page-promotions__steps-item::before,
.page-promotions__tips-item::before {
  content: '✓';
  color: #2AD16F; /* Bright green checkmark */
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1;
}

.page-promotions__steps-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9em;
  font-weight: 700;
  flex-shrink: 0;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
  background-color: #0A4B2C; /* Deep Green */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F; /* Button 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 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  line-height: 1.7;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    margin-top: -100px;
    padding-top: 100px;
  }

  .page-promotions__main-title {
    font-size: 2rem;
  }

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

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
  }

  .page-promotions__promotions-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__promotion-card {
    padding: 20px;
  }

  .page-promotions__card-title {
    font-size: 1.3rem;
  }

  .page-promotions__card-description {
    font-size: 0.9rem;
  }

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

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

  .page-promotions__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
    padding-left: 0;
    padding-right: 0;
  }

  /* Mobile button responsiveness */
  .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__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;
    gap: 10px;
  }
  
  .page-promotions__cta-button--centered {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__promotion-card .page-promotions__cta-button--small {
    width: auto !important; /* Allow small buttons to adjust width */
    max-width: none !important;
    padding: 10px 20px !important;
  }

  .page-promotions__promotion-card {
    align-items: center;
  }
}