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

/* --- Hero Section --- */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: #F4F7FB; /* Background */
  box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Using clamp for H1 font size */
  font-weight: 700;
  color: #2F6BFF; /* Main color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #1F2D3D; /* Text Main */
}

.page-promotions__keyword {
  color: #2F6BFF; /* Main color for keywords */
  font-weight: bold;
}

/* --- CTA Buttons --- */
.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-promotions__cta-buttons--center {
  margin-top: 40px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF; /* Border color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-promotions__btn-secondary:hover {
  background-color: #F4F7FB; /* Background */
  color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* --- General Sections --- */
.page-promotions__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

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

.page-promotions__text-link {
  color: #2F6BFF; /* Main color */
  text-decoration: none;
  font-weight: 600;
}

.page-promotions__text-link:hover {
  text-decoration: underline;
}

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

.page-promotions__card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-promotions__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
  transition: background 0.3s ease;
  margin-top: auto; /* Push button to bottom */
  max-width: 100%; /* Ensure button fits card */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

/* --- Terms and Conditions / How to Claim --- */
.page-promotions__terms-list,
.page-promotions__claim-steps {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-promotions__terms-item,
.page-promotions__step-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-promotions__step-item strong {
  color: #2F6BFF; /* Main color */
}

/* --- FAQ Section --- */
.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-promotions__faq-item summary:hover {
  background-color: #F4F7FB; /* Background */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  margin-right: 10px;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2F6BFF; /* Main color */
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-promotions__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  text-align: justify;
}

/* --- Conclusion --- */
.page-promotions__conclusion {
  text-align: center;
}

/* --- Copyright --- */
.page-promotions__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-promotions__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-promotions__intro-text {
    font-size: 1rem;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-promotions__intro-text {
    font-size: 0.95rem;
  }
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-promotions__text-block,
  .page-promotions__terms-item,
  .page-promotions__step-item,
  .page-promotions__faq-answer {
    font-size: 0.9rem;
  }
  .page-promotions__card {
    padding: 15px;
  }
  .page-promotions__card-title {
    font-size: 1.2rem;
  }
  .page-promotions__card-description {
    font-size: 0.85rem;
  }
  .page-promotions__card-button {
    font-size: 0.85rem;
    padding: 8px 15px;
  }
  .page-promotions__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-promotions__faq-answer {
    padding: 0 15px 15px 15px;
  }

  /* 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;
    overflow: hidden !important; /* For containers to prevent overflow */
  }

  /* 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; /* Add padding to prevent text touching edges */
    padding-right: 15px; /* Add padding to prevent text touching edges */
  }
  .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;
    flex-direction: column !important; /* Stack buttons vertically on mobile */
  }
  /* Ensure hero section padding is correct */
  .page-promotions__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Ensure no filter is used for images */
.page-promotions img {
  filter: none !important;
}

/* Contrast safety check: default to dark text on light background */
.page-promotions__dark-bg {
  color: #ffffff;
  background-color: #2F6BFF;
}

.page-promotions__light-bg {
  color: #1F2D3D; /* Text Main */
  background-color: #FFFFFF;
}

.page-promotions__medium-bg {
  color: #000000; /* Custom Color_1776249996415 */
  background-color: #6FA3FF;
}