/* style/promotions.css */

/* Variables */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-general: #F5F7FA;
  --border-color: #E0E0E0;
  --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

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

.page-promotions__section {
  padding: 60px 20px;
  margin-bottom: 20px;
  background-color: var(--card-bg-color); /* Default light background for sections */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__text-block,
.page-promotions__dark-section .page-promotions__card-title,
.page-promotions__dark-section .page-promotions__feature-title {
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

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

.page-promotions__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-promotions__dark-section .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px 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;
  /* 页头由 shared 的 body { padding-top: var(--header-offset); } 承担；此处仅用小额顶距，禁止 var(--header-offset) 以免双倍空白 */
  padding-top: 10px;
  margin-bottom: 20px;
  background-color: var(--background-general); /* Ensure it's not transparent */
}

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

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

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.4);
}

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

.page-promotions__promo-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__promo-card p {
  font-size: 16px;
  color: var(--text-main-color);
}

/* Buttons */
.page-promotions__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.4);
}

.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--card-bg-color);
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-full-width {
  width: 100%;
  max-width: 400px;
  margin: 20px auto 0 auto;
  display: block;
}

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

.page-promotions__promo-detail-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__promo-detail-card .page-promotions__card-title {
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 24px;
}

.page-promotions__promo-detail-card p {
  text-align: left;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__detail-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-promotions__detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-promotions__step-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--button-gradient);
  color: #ffffff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-promotions__step-card .page-promotions__card-title {
  font-size: 20px;
  color: var(--primary-color);
}

/* Terms & Conditions */
.page-promotions__list {
  list-style: disc;
  text-align: left;
  max-width: 800px;
  margin: 30px auto 40px auto;
  padding-left: 25px;
  font-size: 17px;
  color: var(--text-main-color);
}

.page-promotions__list li {
  margin-bottom: 10px;
}

.page-promotions__list strong {
  color: var(--primary-color);
}

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

.page-promotions__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-promotions__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-promotions__feature-item p {
  font-size: 16px;
  color: #f0f0f0;
}

/* FAQ Section */
details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: #f5f5f5;
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
  font-size: 16px;
}

/* Bottom CTA */
.page-promotions__cta-bottom {
  text-align: center;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 80px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-bottom .page-promotions__section-title {
  color: #ffffff;
  font-size: 36px;
  margin-bottom: 25px;
}

.page-promotions__cta-bottom .page-promotions__text-block {
  color: #f0f0f0;
  font-size: 19px;
  margin-bottom: 40px;
}

.page-promotions__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-promotions__button-group .page-promotions__cta-button {
  margin-top: 0; /* Override default margin-top */
}

.page-promotions__button-group .page-promotions__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.page-promotions__button-group .page-promotions__btn-secondary:hover {
  background: #f0f0f0;
  color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* General Link Styling */
.page-promotions a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-promotions__dark-section a {
  color: #ffffff;
}

.page-promotions__dark-section a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Utility classes */
.page-promotions__mt-40 {
  margin-top: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 28px;
  }
  .page-promotions__text-block {
    font-size: 17px;
  }
  .page-promotions__hero-image {
    margin-bottom: 20px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__description {
    font-size: 18px;
  }
  .page-promotions__cta-button {
    padding: 14px 35px;
    font-size: 17px;
  }
  .page-promotions__promo-card,
  .page-promotions__promo-detail-card,
  .page-promotions__step-card,
  .page-promotions__feature-item {
    padding: 25px;
  }
  .page-promotions__card-title,
  .page-promotions__feature-title {
    font-size: 20px;
  }
  .page-promotions__promo-detail-card .page-promotions__card-title {
    font-size: 22px;
  }
  .page-promotions__list {
    font-size: 16px;
  }
  .page-promotions__cta-bottom .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__cta-bottom .page-promotions__text-block {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__container {
    padding: 0 10px;
  }
  .page-promotions__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-promotions__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Hero Section */
  .page-promotions__hero-section {
    /* body 已留白；与桌面一致，小额顶距即可 */
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-promotions__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Images and their containers */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-detail-card,
  .page-promotions__step-card,
  .page-promotions__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__detail-image {
    height: 180px; /* Adjust height for mobile */
  }

  /* Buttons and their containers */
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-promotions__btn-full-width {
    max-width: 100%;
    margin: 20px auto 0 auto;
  }

  /* FAQ */
  details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
  .page-promotions__faq-qtext { font-size: 16px; }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }

  /* Bottom CTA */
  .page-promotions__cta-bottom {
    padding: 50px 15px;
  }
  .page-promotions__cta-bottom .page-promotions__section-title {
    font-size: 28px;
  }
  .page-promotions__cta-bottom .page-promotions__text-block {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .page-promotions__section {
    padding: 30px 10px;
  }
  .page-promotions__section-title {
    font-size: 22px;
  }
  .page-promotions__hero-section {
    padding-bottom: 30px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-promotions__description {
    font-size: 15px;
  }
  .page-promotions__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-promotions__promo-grid,
  .page-promotions__promo-detail-grid,
  .page-promotions__steps-grid,
  .page-promotions__features-grid {
    gap: 20px;
  }
  .page-promotions__card-title,
  .page-promotions__feature-title {
    font-size: 18px;
  }
  .page-promotions__promo-detail-card .page-promotions__card-title {
    font-size: 20px;
  }
  .page-promotions__step-number {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  .page-promotions__list {
    font-size: 15px;
    padding-left: 20px;
  }
  .page-promotions__faq-qtext {
    font-size: 15px;
  }
  .page-promotions__faq-toggle {
    font-size: 22px;
    width: 24px;
    height: 24px;
  }
  .page-promotions__cta-bottom .page-promotions__section-title {
    font-size: 24px;
  }
  .page-promotions__cta-bottom .page-promotions__text-block {
    font-size: 16px;
  }
}