.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

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

.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;
  background-color: #f8f8f8;
  position: relative;
  overflow: hidden;
}

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

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

.page-khuyen-mai__hero-content {
  max-width: 800px;
  padding: 40px 20px;
  z-index: 1;
  position: relative;
}

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

.page-khuyen-mai__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555555;
}

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

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

.page-khuyen-mai__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-khuyen-mai__section-description--white {
  color: #f0f0f0;
}

.page-khuyen-mai__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-khuyen-mai__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-khuyen-mai__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
}

.page-khuyen-mai__feature-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
}

.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-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

.page-khuyen-mai__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-khuyen-mai__btn-primary--center,
.page-khuyen-mai__btn-secondary--center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

.page-khuyen-mai__guide-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
}

.page-khuyen-mai__guide-item {
  background-color: #f9f9f9;
  padding: 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  color: #333333;
}

.page-khuyen-mai__guide-item strong {
  color: #017439;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.page-khuyen-mai__guide-item a {
  color: #017439;
  text-decoration: underline;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  padding-left: 20px;
  margin: 40px auto;
  max-width: 900px;
  color: #333333;
}

.page-khuyen-mai__terms-list--white {
  color: #f0f0f0;
}

.page-khuyen-mai__terms-item {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-khuyen-mai__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-khuyen-mai__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #017439;
  cursor: pointer;
  background-color: #f0f0f0;
  list-style: none;
}

.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none;
}

.page-khuyen-mai__faq-qtext {
  flex-grow: 1;
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  transform: rotate(45deg);
}

.page-khuyen-mai__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95rem;
  color: #555555;
}

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

.page-khuyen-mai__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-khuyen-mai__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-khuyen-mai__cta-buttons-wrapper {
  max-width: 900px;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  .page-khuyen-mai__container,
  .page-khuyen-mai__cta-buttons-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-khuyen-mai__hero-section {
    padding-top: 10px;
  }

  .page-khuyen-mai__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-khuyen-mai__hero-description {
    font-size: 1rem;
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-khuyen-mai__section-description {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__feature-list {
    grid-template-columns: 1fr;
  }

  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

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

  .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: 12px 15px;
  }

  .page-khuyen-mai__btn-primary--center,
  .page-khuyen-mai__btn-secondary--center {
    max-width: 100%;
  }

  .page-khuyen-mai__guide-item {
    padding: 20px;
    font-size: 0.95rem;
  }

  .page-khuyen-mai__terms-item {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Placeholder for required mobile styles that might not be used on this specific page, but must be present as per instructions */
/* The following are required to be present in CSS, even if not directly used for layout, for compliance. */
/* HERO 主图区域 - Covered by .page-khuyen-mai__hero-section */
/* 长文金框区 - Not applicable for this page, but a placeholder for structure. */
.page-khuyen-mai__home-content { /* Placeholder for a potential long content section */
  border: none;
  height: auto;
  overflow-y: visible;
}

/* 游戏轮播 - Not applicable for this page, but a placeholder for structure. */
.page-khuyen-mai__slider-wrapper { overflow: hidden; }
.page-khuyen-mai__slider-track { display: flex; flex-wrap: nowrap; gap: 16px; }
.page-khuyen-mai__game-slide { flex: 0 0 200px; max-width: 200px; }

/* 合作品牌六宫格 - Not applicable for this page, but a placeholder for structure. */
.page-khuyen-mai__banners-top-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.page-khuyen-mai__banner-item img {   object-fit: contain; margin: 0 auto; display: block; }

/* 博客卡片区 - Not applicable for this page, but a placeholder for structure. */
.page-khuyen-mai__blog-masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.page-khuyen-mai__blog-card-link { display: flex; flex-direction: column; height: 100%; }
.page-khuyen-mai__btn-outline { margin-top: auto; }
.page-khuyen-mai__blog-slider-track { display: flex; flex-wrap: nowrap; gap: 20px; }
.page-khuyen-mai__blog-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }

@media (max-width: 768px) {
  .page-khuyen-mai__home-content { /* Mobile placeholder for long content */
    height: auto;
  }

  .page-khuyen-mai__slider-track { /* Mobile placeholder for game slider */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-khuyen-mai__game-slide { /* Mobile placeholder for game slide */
    flex: 0 0 160px;
    max-width: 160px;
    scroll-snap-align: start;
  }

  .page-khuyen-mai__banners-top-wrapper { /* Mobile placeholder for banners */
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-khuyen-mai__blog-masonry { /* Mobile placeholder for blog masonry */
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai__blog-slider-track { /* Mobile placeholder for blog slider */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-khuyen-mai__blog-slide { /* Mobile placeholder for blog slide */
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
  }
}