.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly setting for clarity, though shared.css might handle body */
  line-height: 1.6;
}

.page-khuyen-mai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-khuyen-mai__section {
  padding: 60px 0;
}

.page-khuyen-mai__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-khuyen-mai__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-khuyen-mai__section-title--white {
  color: #FFFFFF;
}
.page-khuyen-mai__section-title--white::after {
  background-color: #FFFFFF;
}

.page-khuyen-mai__text-block {
  font-size: 16px;
  text-align: justify;
  margin-bottom: 20px;
}

.page-khuyen-mai__text-block--white {
  color: #FFFFFF;
}

/* HERO 主图区域 */
.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f0f8ff; /* Light background for hero */
  overflow: hidden;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  max-height: 500px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-khuyen-mai__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-khuyen-mai__hero-content {
  text-align: center;
  padding: 40px 15px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai__main-title {
  font-size: clamp(32px, 4vw, 48px); /* H1 clamp for responsiveness */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__intro-text {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

/* 按钮与按钮容器 */
.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-khuyen-mai__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #e0f2ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-khuyen-mai__btn-primary--large,
.page-khuyen-mai__btn-secondary--large {
  padding: 18px 35px;
  font-size: 20px;
}

/* 产品展示图区域 */
.page-khuyen-mai__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__promo-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-khuyen-mai__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-khuyen-mai__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-khuyen-mai__card-description {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__btn-primary {
  margin: 0 20px 20px;
  text-align: center;
}

/* How To Claim Section */
.page-khuyen-mai__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-khuyen-mai__step-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyen-mai__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.page-khuyen-mai__step-title {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-khuyen-mai__step-item p {
  font-size: 15px;
  color: #555555;
  margin: 0;
}

.page-khuyen-mai__cta-wrapper {
  text-align: center;
}

/* Terms Section */
.page-khuyen-mai__terms-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
  font-size: 16px;
  color: #333333;
}

.page-khuyen-mai__terms-section ul li {
  margin-bottom: 10px;
}

.page-khuyen-mai__terms-section strong {
  color: #26A9E0;
}

.page-khuyen-mai__link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-khuyen-mai__link:hover {
  color: #1e87c0;
}

/* Why Choose Section */
.page-khuyen-mai__why-choose-section ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-khuyen-mai__why-choose-section ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #333333;
}

.page-khuyen-mai__why-choose-section ul li::before {
  content: '✔'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
}

/* FAQ Section */
details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__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-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question:hover {
  background: #f5f5f5;
}
.page-khuyen-mai__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure contrast */
}
.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Ensure contrast */
}
.page-khuyen-mai__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Final CTA Section */
.page-khuyen-mai__cta-final-section {
  background-color: #26A9E0; /* Brand color background */
  padding: 80px 0;
  text-align: center;
}

.page-khuyen-mai__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__section-title {
    font-size: 32px;
  }
  .page-khuyen-mai__main-title {
    font-size: clamp(28px, 5vw, 40px);
  }
  .page-khuyen-mai__promo-grid {
    gap: 20px;
  }
  .page-khuyen-mai__promo-card img {
    
  }
  .page-khuyen-mai__card-title {
    font-size: 20px;
  }
  .page-khuyen-mai__step-item {
    padding: 25px;
  }
  .page-khuyen-mai__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .page-khuyen-mai__step-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
  }
  .page-khuyen-mai__hero-image img {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Mobile: unset aspect ratio */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-khuyen-mai__hero-content {
    padding: 30px 15px 40px;
  }
  .page-khuyen-mai__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }
  .page-khuyen-mai__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  /* 通用图片与容器 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-khuyen-mai__section,
  .page-khuyen-mai__container,
  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__step-item,
  .page-khuyen-mai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuyen-mai__section {
    padding: 40px 0;
  }
  .page-khuyen-mai__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-khuyen-mai__text-block {
    font-size: 15px;
  }

  /* 产品展示图区域 (promo-grid) */
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-khuyen-mai__promo-card img {
    height: auto !important; /* Adjust height for mobile */
    min-height: 200px !important; /* Ensure min size */
  }
  .page-khuyen-mai__promo-card .page-khuyen-mai__btn-primary {
    width: calc(100% - 40px); /* Adjust for padding in card */
  }

  /* 按钮与按钮容器 */
  .page-khuyen-mai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai a[class*="button"],
  .page-khuyen-mai 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 internal padding */
    padding-right: 15px; /* Ensure internal padding */
  }

  /* 按钮容器移动端适配 */
  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__button-group,
  .page-khuyen-mai__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布局，确保在移动端换行 */
  .page-khuyen-mai__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }

  /* 长文 SEO 区 */
  .page-khuyen-mai__overview-section .page-khuyen-mai__text-block,
  .page-khuyen-mai__terms-section .page-khuyen-mai__text-block,
  .page-khuyen-mai__why-choose-section .page-khuyen-mai__text-block,
  .page-khuyen-mai__cta-final-section .page-khuyen-mai__text-block {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px; /* Add padding for readability */
    box-sizing: border-box;
  }
  .page-khuyen-mai__terms-section ul,
  .page-khuyen-mai__why-choose-section ul {
    padding-left: 35px; /* Adjust for mobile */
  }

  /* FAQ Section */
  details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question { padding: 15px; }
  .page-khuyen-mai__faq-qtext { font-size: 15px; }
  details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
    padding: 0 15px 15px;
  }
  .page-khuyen-mai__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  /* Final CTA Section */
  .page-khuyen-mai__cta-final-section {
    padding: 50px 0;
  }
  .page-khuyen-mai__cta-final-section .page-khuyen-mai__cta-buttons {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai__section-title {
    font-size: 24px;
  }
  .page-khuyen-mai__main-title {
    font-size: clamp(20px, 7vw, 30px);
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-khuyen-mai__btn-primary--large,
  .page-khuyen-mai__btn-secondary--large {
    font-size: 18px;
    padding: 15px 25px;
  }
  .page-khuyen-mai__card-title {
    font-size: 18px;
  }
  .page-khuyen-mai__step-number {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
  .page-khuyen-mai__step-title {
    font-size: 16px;
  }
}