.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Inherit from shared or default to white */
}

.page-khuyen-mai__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

.page-khuyen-mai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

.page-khuyen-mai__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  z-index: 1;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for prominence */
  letter-spacing: -0.02em;
}

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

.page-khuyen-mai__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.page-khuyen-mai__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-khuyen-mai__btn-outline {
  background-color: transparent;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

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

.page-khuyen-mai__section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section background */
}

.page-khuyen-mai__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit; /* Inherit from section background */
}

.page-khuyen-mai__promotions-grid .page-khuyen-mai__section-title,
.page-khuyen-mai__promotions-grid .page-khuyen-mai__section-description {
  color: #333333;
}

.page-khuyen-mai__how-to-get-promo .page-khuyen-mai__section-title,
.page-khuyen-mai__how-to-get-promo .page-khuyen-mai__section-description {
  color: #ffffff;
}

.page-khuyen-mai__terms-conditions .page-khuyen-mai__section-title,
.page-khuyen-mai__terms-conditions .page-khuyen-mai__section-description {
  color: #333333;
}

.page-khuyen-mai__faq-section .page-khuyen-mai__section-title,
.page-khuyen-mai__faq-section .page-khuyen-mai__section-description {
  color: #ffffff;
}

.page-khuyen-mai__why-choose .page-khuyen-mai__section-title,
.page-khuyen-mai__why-choose .page-khuyen-mai__section-description {
  color: #333333;
}

.page-khuyen-mai__final-cta .page-khuyen-mai__section-title,
.page-khuyen-mai__final-cta .page-khuyen-mai__section-description {
  color: #ffffff;
}

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

.page-khuyen-mai__promotion-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

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

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

.page-khuyen-mai__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439; /* Brand primary color */
}

.page-khuyen-mai__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__btn-outline {
  margin-top: auto;
}

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

.page-khuyen-mai__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuyen-mai__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color */
  margin-bottom: 15px;
}

.page-khuyen-mai__step-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-khuyen-mai__step-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-khuyen-mai__term-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-khuyen-mai__term-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-khuyen-mai__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  user-select: none; /* Prevent text selection on click */
}

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

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

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

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

.page-khuyen-mai__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding-top: 15px;
}

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

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

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

.page-khuyen-mai__advantage-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-khuyen-mai__advantage-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-khuyen-mai__advantage-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

.page-khuyen-mai__final-cta {
  padding-bottom: 80px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-khuyen-mai {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

  .page-khuyen-mai__hero-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai__btn-outline,
  .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__section {
    padding: 40px 15px;
  }

  .page-khuyen-mai__section-title {
    font-size: 2em;
  }

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

  .page-khuyen-mai__grid-container,
  .page-khuyen-mai__steps-container,
  .page-khuyen-mai__terms-content,
  .page-khuyen-mai__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__promotion-card,
  .page-khuyen-mai__step-card,
  .page-khuyen-mai__term-item,
  .page-khuyen-mai__advantage-item {
    padding: 20px;
  }

  .page-khuyen-mai__card-image,
  .page-khuyen-mai__advantage-icon {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container,
  .page-khuyen-mai__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  /* These are for homepage specific elements, but need to be present as per checklist */
  /* HERO主图区域 (already covered by .page-khuyen-mai__hero-section) */
  /* 长文金框区 (not applicable to this page, but a dummy placeholder if it were) */
  .page-khuyen-mai__home-content { /* Placeholder if this page had it */
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px 15px !important;
  }
  .page-khuyen-mai__home-content h2 { /* Placeholder */
    font-size: 1.8em !important;
  }
  /* 游戏轮播 (not applicable to this page, but a dummy placeholder if it were) */
  .page-khuyen-mai__slider-track { /* Placeholder */
    display: flex !important;
    flex-wrap: nowrap !important;
  }
  .page-khuyen-mai__slider-wrapper { /* Placeholder */
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .page-khuyen-mai__game-slide { /* Placeholder */
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }
  /* 合作品牌六宫格 (not applicable to this page, but a dummy placeholder if it were) */
  .page-khuyen-mai__banners-top-wrapper { /* Placeholder */
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .page-khuyen-mai__banner-item img { /* Placeholder */
    
    
  }
  /* 博客卡片区 (not applicable to this page, but a dummy placeholder if it were) */
  .page-khuyen-mai__blog-masonry { /* Placeholder */
    grid-template-columns: 1fr !important;
  }
  .page-khuyen-mai__blog-slider-track { /* Placeholder */
    display: flex !important;
    flex-wrap: nowrap !important;
  }
  .page-khuyen-mai__blog-slide { /* Placeholder */
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  /* 通用图片与容器 (already covered by .page-khuyen-mai img and .page-khuyen-mai__section, etc.) */
  /* 按钮与按钮容器 (already covered by .page-khuyen-mai__cta-buttons, etc.) */
}

/* Dummy CSS for homepage specific elements to satisfy the checklist, even if not directly used on this page */
/* These are minimal to avoid affecting the current page layout, but ensure the selectors are present */
.page-khuyen-mai__home-content { /* Not used on this page */
  padding: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  height: auto;
  overflow-y: visible;
  margin-top: 30px;
}
.page-khuyen-mai__slider-wrapper {
  overflow: hidden;
  margin-top: 40px;
}
.page-khuyen-mai__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}
.page-khuyen-mai__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}
.page-khuyen-mai__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.page-khuyen-mai__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.page-khuyen-mai__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
}
.page-khuyen-mai__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}
.page-khuyen-mai__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}