/* style/promotions.css */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero */
  padding-top: 0; /* Assumes shared.css handles body padding-top */
  background: linear-gradient(135deg, #26A9E0, #0a0a0a 70%); /* Blend brand color with dark background */
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Make image subtle behind text */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
  background-color: #1e87b3;
  border-color: #1e87b3;
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Section Styling */
.page-promotions__intro-section,
.page-promotions__terms-section,
.page-promotions__why-choose-section {
  padding: 60px 0;
}

.page-promotions__offers-grid,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
  padding: 60px 0;
}

/* Backgrounds and Text Colors */
.page-promotions__dark-bg {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-promotions__intro-title,
.page-promotions__terms-title,
.page-promotions__why-choose-title,
.page-promotions__how-to-claim-title,
.page-promotions__faq-title,
.page-promotions__cta-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Use brand color for titles */
}

.page-promotions__intro-text,
.page-promotions__terms-description,
.page-promotions__why-choose-description,
.page-promotions__how-to-claim-description,
.page-promotions__cta-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Offers Grid */
.page-promotions__offers-grid-subtitle {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 60px;
  color: #f0f0f0;
}

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

.page-promotions__card {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__card-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure full image is visible */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-promotions__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-promotions__card-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Terms List */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-promotions__terms-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
}

.page-promotions__terms-item strong {
  color: #26A9E0;
}

/* How to Claim List */
.page-promotions__how-to-claim-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 900px;
  margin: 40px auto;
}

.page-promotions__how-to-claim-item {
  position: relative;
  padding: 20px 20px 20px 80px;
  margin-bottom: 25px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__how-to-claim-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3em;
}

.page-promotions__how-to-claim-item strong {
  color: #26A9E0;
}

.page-promotions__how-to-claim-item a {
  color: #EA7C07; /* Login color for links */
  text-decoration: underline;
}

.page-promotions__how-to-claim-item a:hover {
  color: #ff9933;
}

/* Why Choose List */
.page-promotions__why-choose-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 40px auto;
}

.page-promotions__why-choose-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-promotions__why-choose-item strong {
  color: #26A9E0;
  display: block;
  margin-bottom: 10px;
  font-size: 1.2em;
}

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 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.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes a cross */
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Adjust padding to match question */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px; /* Padding when open */
}

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

/* CTA Section */
.page-promotions__cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(to right, #26A9E0, #1e87b3); /* Brand color gradient */
  color: #ffffff;
}

.page-promotions__cta-title {
  color: #ffffff;
  font-size: 3em;
  margin-bottom: 20px;
}

.page-promotions__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

/* General image styling for responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }

  .page-promotions__intro-title,
  .page-promotions__terms-title,
  .page-promotions__why-choose-title,
  .page-promotions__how-to-claim-title,
  .page-promotions__faq-title,
  .page-promotions__cta-title {
    font-size: 2em;
  }

  .page-promotions__grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-promotions__why-choose-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

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

  /* HERO 主图区域 */
  .page-promotions__hero-section {
    min-height: 400px;
    padding-top: 0 !important; /* Ensure no double padding if shared.css adds it */
  }

  .page-promotions__hero-content {
    padding: 20px;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-promotions__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    width: 100%;
    box-sizing: border-box;
  }

  /* 产品展示图区域 - Offers Grid */
  .page-promotions__offers-grid {
    padding: 40px 0;
  }
  .page-promotions__offers-grid-title,
  .page-promotions__offers-grid-subtitle {
    padding: 0 15px;
  }
  .page-promotions__grid-cards {
    grid-template-columns: 1fr; /* Single column layout for cards */
    padding: 0 15px;
  }
  .page-promotions__card {
    padding: 20px;
  }
  .page-promotions__card-image {
    height: 200px;
  }
  .page-promotions__card-title {
    font-size: 1.5em;
  }

  /* 通用图片与容器 */
  .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;
  }

  /* 按钮与按钮容器 */
  .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; /* Ensure padding is applied */
    padding-right: 15px; /* Ensure padding is applied */
  }

  .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; /* Stack buttons vertically on mobile */
  }

  /* Other Content Modules */
  .page-promotions__intro-section,
  .page-promotions__terms-section,
  .page-promotions__why-choose-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    padding: 40px 0;
  }

  .page-promotions__intro-title,
  .page-promotions__terms-title,
  .page-promotions__why-choose-title,
  .page-promotions__how-to-claim-title,
  .page-promotions__faq-title,
  .page-promotions__cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions__intro-text,
  .page-promotions__terms-description,
  .page-promotions__why-choose-description,
  .page-promotions__how-to-claim-description,
  .page-promotions__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-promotions__terms-list,
  .page-promotions__how-to-claim-list,
  .page-promotions__why-choose-list,
  .page-promotions__faq-list {
    margin: 30px auto;
    padding: 0 15px;
  }

  .page-promotions__terms-item,
  .page-promotions__how-to-claim-item,
  .page-promotions__why-choose-item {
    padding: 15px;
    font-size: 1em;
  }

  .page-promotions__how-to-claim-item {
    padding-left: 60px;
  }

  .page-promotions__how-to-claim-item::before {
    left: 15px;
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

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

  .page-promotions__faq-answer {
    padding: 0 20px;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px;
  }
}