.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: #333333;
  background-color: #FFFFFF;
  line-height: 1.6;
}

.page-khuyen-mai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #333333;
  background: #FFFFFF;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  margin-top: -80px; /* Overlap with image slightly for visual effect */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 30px;
  color: #555555;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-khuyen-mai__btn-primary:hover {
  background: #a80707;
  border-color: #a80707;
  transform: translateY(-2px);
}

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

.page-khuyen-mai__btn-secondary:hover {
  background: #e0f2f1;
  transform: translateY(-2px);
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-khuyen-mai__text-block {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

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

.page-khuyen-mai__dark-bg .page-khuyen-mai__text-block {
  color: #e0e0e0;
}

.page-khuyen-mai__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-khuyen-mai__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuyen-mai__promo-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.page-khuyen-mai__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promo-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-khuyen-mai__promo-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-khuyen-mai__promo-card-text {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__promo-card {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__promo-card-title {
  color: #FFFF00; /* Custom font color for titles on dark cards */
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__promo-card-text {
  color: #e0e0e0;
}

.page-khuyen-mai__step-by-step-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuyen-mai__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
  height: 100%;
}

.page-khuyen-mai__step-number {
  width: 60px;
  height: 60px;
  background: #C30808;
  color: #FFFF00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-khuyen-mai__step-description {
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.7;
  flex-grow: 1;
}

.page-khuyen-mai__button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* FAQ styles */
details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
  background-color: #f0f0f0;
}

details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 1rem;
  color: #555555;
}

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

/* General image and container responsive styles */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-khuyen-mai__section,
.page-khuyen-mai__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
  .page-khuyen-mai__container {
    padding: 15px;
  }

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

  /* HERO 主图区域 */
  .page-khuyen-mai__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    height: auto !important;
  }

  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-khuyen-mai__hero-content {
    margin-top: -40px; /* Adjust overlap for mobile */
    padding: 25px 15px;
  }

  .page-khuyen-mai__main-title {
    font-size: 2rem; /* Adjusted for mobile readability */
    margin-bottom: 15px;
  }

  .page-khuyen-mai__description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

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

  .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; /* Ensure multiple buttons wrap */
    gap: 10px;
  }

  .page-khuyen-mai__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-khuyen-mai__text-block {
    font-size: 0.95rem;
    text-align: left; /* Adjust for better mobile readability */
  }

  /* 产品展示图区域 */
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr; /* Single column for promo cards */
    gap: 20px;
  }

  .page-khuyen-mai__promo-card-image {
    height: 200px;
  }

  .page-khuyen-mai__promo-card-content {
    padding: 20px;
  }

  .page-khuyen-mai__promo-card-title {
    font-size: 1.2rem;
  }

  .page-khuyen-mai__promo-card-text {
    font-size: 0.9rem;
  }

  /* 长文 SEO 区 */
  .page-khuyen-mai__introduction .page-khuyen-mai__container,
  .page-khuyen-mai__terms-conditions .page-khuyen-mai__container,
  .page-khuyen-mai__conclusion .page-khuyen-mai__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__step-by-step-guide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__step-item {
    padding: 25px;
  }

  .page-khuyen-mai__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-khuyen-mai__step-description {
    font-size: 0.9rem;
  }

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

@media (max-width: 849px) and (min-width: 769px) {
  .page-khuyen-mai__hero-image {
    object-fit: contain !important; /* Prevent cropping on tablet */
    aspect-ratio: unset !important;
    height: auto !important;
  }
}