/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default background for the page content */
}

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

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

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

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

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

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

.page-khuyen-mai__hero-content {
  max-width: 900px;
  padding: 20px;
  margin-top: 20px;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

/* General Section Titles and Descriptions */
.page-khuyen-mai__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-khuyen-mai__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Promotions Overview Section */
.page-khuyen-mai__promotions-overview {
  padding: 60px 0;
}

.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: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-khuyen-mai__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

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

/* Da Ga Promo Section */
.page-khuyen-mai__daga-promo-section {
  padding: 60px 0;
}

.page-khuyen-mai__daga-promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-khuyen-mai__daga-promo-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  min-width: 200px;
  min-height: 200px;
}

.page-khuyen-mai__daga-promo-text {
  width: 50%;
  text-align: left;
}

.page-khuyen-mai__daga-promo-text h3 {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-khuyen-mai__daga-promo-text p {
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Terms Section */
.page-khuyen-mai__terms-section {
  padding: 60px 0;
}

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

.page-khuyen-mai__term-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
  box-sizing: border-box;
}

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

.page-khuyen-mai__term-text {
  color: #555555;
}

/* How To Join Section */
.page-khuyen-mai__how-to-join-section {
  padding: 60px 0;
}

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

.page-khuyen-mai__step-card {
  background-color: #017439;
  border: 1px solid #1a8a58;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-khuyen-mai__step-icon {
  background-color: #C30808;
  color: #FFFF00;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

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

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 60px 0;
}

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

.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-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9; /* Lighter shade of brand color */
  list-style: none; /* Remove default marker */
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 15px 25px 25px;
  background-color: #ffffff;
  color: #555555;
  font-size: 1em;
}

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

/* Bottom CTA Section */
.page-khuyen-mai__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-khuyen-mai__cta-bottom-section .page-khuyen-mai__section-title {
  color: #ffffff;
}

.page-khuyen-mai__cta-bottom-section .page-khuyen-mai__section-description {
  color: #f0f0f0;
}

.page-khuyen-mai__cta-bottom-section .page-khuyen-mai__cta-buttons {
  margin-top: 30px;
}

/* Image specific styles */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

  .page-khuyen-mai__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

  .page-khuyen-mai__daga-promo-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-khuyen-mai__daga-promo-image,
  .page-khuyen-mai__daga-promo-text {
    width: 100%;
    text-align: center;
  }

  .page-khuyen-mai__daga-promo-text h3 {
    font-size: 1.6em;
  }

  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__terms-list,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

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

  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-khuyen-mai__hero-image-wrapper {
    max-height: 300px;
  }

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

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

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

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

  /* 按钮与按钮容器 */
  .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__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    padding-top: 30px;
  }

  .page-khuyen-mai__section-description {
    margin-bottom: 25px;
  }

  /* 通用图片与容器 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__promotions-overview,
  .page-khuyen-mai__daga-promo-section,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__how-to-join-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__cta-bottom-section {
    padding: 30px 0;
  }

  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__terms-list,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-khuyen-mai__card-title {
    font-size: 1.3em;
  }

  .page-khuyen-mai__daga-promo-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-khuyen-mai__daga-promo-image,
  .page-khuyen-mai__daga-promo-text {
    width: 100%;
    text-align: center;
  }

  .page-khuyen-mai__daga-promo-text h3 {
    font-size: 1.5em;
  }

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

  .page-khuyen-mai__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Placeholder for long text gold frame (not applicable but for checklist) */
  .page-khuyen-mai__home-content {
    height: auto;
    overflow-y: visible;
    border: none;
    padding: 15px;
  }

  /* Placeholder for game carousel (not applicable but for checklist) */
  .page-khuyen-mai__slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-khuyen-mai__game-slide {
    flex: 0 0 80% !important;
    max-width: 80% !important;
    scroll-snap-align: start;
  }

  /* Placeholder for partner grid (not applicable but for checklist) */
  .page-khuyen-mai__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .page-khuyen-mai__banner-item img {
    
    
  }

  /* Placeholder for blog cards (not applicable but for checklist) */
  .page-khuyen-mai__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-khuyen-mai__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-khuyen-mai__blog-slide {
    flex: 0 0 90% !important;
    max-width: 90% !important;
    scroll-snap-align: start;
  }
}