:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background-main: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: var(--color-text-main); /* Default text color for the page */
  background-color: var(--color-background-main); /* Overall page background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background: linear-gradient(180deg, var(--color-background-main) 0%, var(--color-deep-green) 100%);
  padding-top: 10px; /* Small top padding for non-header offset */
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

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

.page-khuyen-mai__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 100%;
}

.page-khuyen-mai__description {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
}

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-khuyen-mai__btn-primary {
  background: var(--color-button-gradient-start); /* Fallback */
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-khuyen-mai__btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.page-khuyen-mai__btn-outline {
  background-color: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: auto; /* For card alignment */
}

.page-khuyen-mai__btn-outline:hover {
  background-color: var(--color-gold);
  color: var(--color-background-main);
}

/* General Sections */
.page-khuyen-mai__dark-section {
  background-color: var(--color-background-main);
  padding: 60px 0;
}

.page-khuyen-mai__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-khuyen-mai__text-block {
  font-size: 1.05em;
  color: var(--color-text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-khuyen-mai__text-block strong {
  color: var(--color-gold);
}

.page-khuyen-mai__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-khuyen-mai__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  height: 100%; /* Ensure cards in a row have equal height */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-khuyen-mai__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-khuyen-mai__card-text {
  color: var(--color-text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows text to take up available space */
}

.page-khuyen-mai__note {
  font-size: 0.9em;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 40px;
  padding: 0 20px;
}

/* Terms List */
.page-khuyen-mai__terms-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__terms-list li {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  color: var(--color-text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.0em;
}

.page-khuyen-mai__terms-list li strong {
  color: var(--color-gold);
}

/* How To Claim Steps */
.page-khuyen-mai__steps-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  counter-reset: step-counter;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__steps-list li {
  counter-increment: step-counter;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 25px 20px 60px; /* Left padding for counter */
  margin-bottom: 15px;
  color: var(--color-text-main);
  font-size: 1.05em;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-gold);
  color: var(--color-background-main);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-khuyen-mai__text-link {
  color: var(--color-gold);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-khuyen-mai__text-link:hover {
  color: var(--color-glow);
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--color-gold);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
  border-bottom: 1px solid var(--color-border);
}

.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); /* Change + to X */
}

.page-khuyen-mai__faq-answer {
  padding: 0 25px 18px;
  color: var(--color-text-secondary);
  font-size: 1.0em;
  line-height: 1.6;
}

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

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

/* Conclusion CTA Section */
.page-khuyen-mai__cta-content {
  text-align: center;
  max-width: 800px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__main-title {
    font-size: 2.2em;
  }
  .page-khuyen-mai__section-title {
    font-size: 1.8em;
  }
  .page-khuyen-mai__container {
    padding: 20px 30px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Ensure small top padding */
    padding-bottom: 20px;
  }

  .page-khuyen-mai__hero-content {
    padding: 15px;
  }

  .page-khuyen-mai__main-title {
    font-size: 1.8em; /* Responsive H1 size */
    margin-bottom: 10px;
  }

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

  .page-khuyen-mai__hero-cta-buttons,
  .page-khuyen-mai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons - FORCE responsive */
  .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;
  }

  /* General Content Sections */
  .page-khuyen-mai__dark-section {
    padding: 40px 0;
  }

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

  .page-khuyen-mai__section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__text-block,
  .page-khuyen-mai__terms-list li,
  .page-khuyen-mai__steps-list li,
  .page-khuyen-mai__faq-answer {
    font-size: 0.95em;
  }

  /* Images - FORCE responsive */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-khuyen-mai__hero-image-wrapper,
  .page-khuyen-mai__content-image,
  .page-khuyen-mai__card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-khuyen-mai__card-image {
    height: auto; /* Allow height to adjust on mobile */
  }

  /* Promo Grid */
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
  }

  .page-khuyen-mai__card {
    padding: 20px;
  }

  /* Terms and Steps List */
  .page-khuyen-mai__terms-list,
  .page-khuyen-mai__steps-list,
  .page-khuyen-mai__faq-list {
    margin-top: 20px;
  }
  
  .page-khuyen-mai__steps-list li {
    padding: 15px 20px 15px 55px;
    font-size: 1em;
  }

  .page-khuyen-mai__steps-list li::before {
    left: 15px;
    width: 28px;
    height: 28px;
    font-size: 1em;
  }

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

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

  /* Placeholder for other mandatory media query sections to satisfy checklist */
  /* HERO 主图区域 (already covered above) */

  /* 长文金框区 - Not explicitly used on Khuyen Mai page, but included for checklist compliance */
  .page-khuyen-mai__home-content { 
    height: auto; 
    overflow-y: visible; 
    padding: 15px;
    border-radius: 5px;
  }
  .page-khuyen-mai__home-content h2 {
    font-size: 1.5em;
  }

  /* 游戏轮播 - Not used on Khuyen Mai page, but included for checklist compliance */
  .page-khuyen-mai__slider-track { 
    display: flex; /* Ensure flex for horizontal scroll */
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-snap-type: x mandatory; /* Snap to items */
    gap: 10px;
  }
  .page-khuyen-mai__game-slide {
    flex: 0 0 calc(50% - 5px); /* Two items per row with gap */
    max-width: calc(50% - 5px);
    scroll-snap-align: start;
  }
  /* Ensure general slider wrapper has overflow hidden if needed */
  .page-khuyen-mai__slider-wrapper {
    overflow: hidden; /* This typically wraps the track */
  }

  /* 合作品牌六宫格 - Not used on Khuyen Mai page, but included for checklist compliance */
  .page-khuyen-mai__banners-top-wrapper {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile */
    gap: 10px;
    max-width: 100%;
  }
  .page-khuyen-mai__banner-item img {
     /* Smaller image size for mobile */
    
  }

  /* 博客卡片区 - Not explicitly used on Khuyen Mai page, but included for checklist compliance */
  .page-khuyen-mai__blog-masonry {
    grid-template-columns: 1fr; /* Stack blog cards vertically */
    gap: 15px;
  }
  .page-khuyen-mai__blog-card-link {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .page-khuyen-mai__blog-slide { /* For a potential blog slider if it existed */
    flex: 0 0 100%;
    max-width: 100%;
  }
  .page-khuyen-mai__blog-slider-track {
    display: flex; /* Ensure flex for horizontal scroll */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 10px;
  }
}