/* style/promotions.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* Base styles for the page */
.page-promotions {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some space above the footer */
}

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

/* Section titles */
.page-promotions__section-title {
  font-size: 2.5rem;
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small,
.page-promotions__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box; /* Button responsiveness */
  white-space: normal; /* Button responsiveness */
  word-wrap: break-word; /* Button responsiveness */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Use a lighter green from the gradient */
  border: 2px solid #2AD16F;
}

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

.page-promotions__btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  border-radius: 5px;
}

.page-promotions__btn-small:hover {
  opacity: 0.9;
}

.page-promotions__btn-link {
  background: none;
  color: #2AD16F;
  padding: 0;
  border: none;
  text-decoration: underline;
  font-size: 1rem;
}

.page-promotions__btn-link:hover {
  color: #57E38D; /* Glow color for hover */
}


/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  justify-content: center;
  padding: 0; /* Reset padding for the section itself */
  overflow: hidden;
}

.page-promotions__hero-image {
  position: relative; /* Ensure image is part of flow */
  z-index: 0; /* Image below content */
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px;
  max-height: 700px;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-promotions__hero-content {
  position: absolute; /* Position content over image */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #F2FFF6;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1; /* Content above image */
  width: 100%; /* Ensure it spans width for text alignment */
}


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

.page-promotions__hero-description {
  font-size: 1.15rem;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%; /* Ensure it spans width for button responsiveness */
  max-width: 600px; /* Limit max width for desktop */
  margin: 0 auto;
}

/* Promo Overview Section */
.page-promotions__promo-overview {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green for a distinct section */
}

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

.page-promotions__card {
  background-color: #11271B; /* Custom card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__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;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__card-title {
  font-size: 1.5rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-promotions__step-item {
  background-color: #11271B;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(34, 199, 104, 0.4);
}

.page-promotions__step-title {
  font-size: 1.4rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__step-text {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promo Types Section */
.page-promotions__promo-types {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green for a distinct section */
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 50px 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__list-item {
  background-color: #11271B;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-promotions__list-title {
  font-size: 1.4rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__list-text {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
  padding: 80px 0;
  background-color: #08160F;
  text-align: center;
}

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

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

.page-promotions__faq-item {
  background-color: #11271B;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  color: #F2FFF6;
  font-weight: bold;
  cursor: pointer;
  background-color: #1E3A2A; /* Divider color for question background */
  border-bottom: 1px solid #2E7A4E; /* Border color */
  list-style: none; /* Remove default marker for summary */
}

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

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

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8;
  line-height: 1.7;
}

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

.page-promotions__advantages-list {
  list-style: none;
  padding: 0;
  margin: 50px 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-promotions__advantages-item {
  background-color: #11271B;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-promotions__advantages-title {
  font-size: 1.4rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__advantages-text {
  font-size: 1rem;
  color: #A7D9B8;
}

.page-promotions__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* Contact Us Section */
.page-promotions__contact-us {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

/* Image optimization rules */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-promotions__hero-description {
    font-size: 1.05rem;
  }
  .page-promotions__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    display: block; /* Change to block to stack naturally */
    padding: 0;
  }
  .page-promotions__hero-image {
    position: relative; /* Make it flow naturally */
    min-height: 250px;
    max-height: 400px;
  }
  .page-promotions__hero-content {
    position: static; /* Remove absolute positioning for mobile */
    transform: none; /* Remove transform for mobile */
    padding: 20px 15px;
    background-color: rgba(0, 0, 0, 0.6); /* Add a background to ensure readability over image */
    width: 100%;
    box-sizing: border-box;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    margin-bottom: 10px;
  }
  .page-promotions__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 10px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__promo-overview,
  .page-promotions__how-to-claim,
  .page-promotions__promo-types,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__why-choose,
  .page-promotions__contact-us {
    padding: 50px 0;
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
  }
  .page-promotions__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-promotions__promo-cards,
  .page-promotions__steps,
  .page-promotions__list,
  .page-promotions__advantages-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__card-title,
  .page-promotions__step-title,
  .page-promotions__list-title,
  .page-promotions__advantages-title {
    font-size: 1.3rem;
  }

  .page-promotions__card-text,
  .page-promotions__step-text,
  .page-promotions__list-text,
  .page-promotions__advantages-text {
    font-size: 0.9rem;
  }

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

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

  /* Force image responsiveness on mobile */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific padding for video section, if it existed */
  .page-promotions__video-section {
    padding-top: 10px !important; /* body has --header-offset, this is for internal spacing */
  }
}

/* Ensure contrast for text on custom backgrounds */
.page-promotions__dark-bg {
  color: #ffffff; /* Deep Green, card bg are dark, so light text */
}

.page-promotions__light-bg {
  color: #333333; /* Not used much, but for safety */
}

/* Text colors */
.page-promotions p,
.page-promotions li,
.page-promotions a {
  color: #A7D9B8; /* Secondary text color */
}

.page-promotions h1,
.page-promotions h2,
.page-promotions h3,
.page-promotions h4,
.page-promotions h5,
.page-promotions h6 {
  color: #F2FFF6; /* Main text color */
}

.page-promotions__hero-content p {
  color: #A7D9B8;
}

.page-promotions__hero-content a {
  color: #ffffff;
}

.page-promotions__card-text {
  color: #A7D9B8;
}

.page-promotions__step-text {
  color: #A7D9B8;
}

.page-promotions__list-text {
  color: #A7D9B8;
}

.page-promotions__faq-answer {
  color: #A7D9B8;
}

.page-promotions__advantages-text {
  color: #A7D9B8;
}

/* Ensure padding for containers on mobile */
@media (max-width: 768px) {
  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}