.page-khuyen-mai {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --main-bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;

  color: var(--text-main); /* Assuming body is dark, use light text */
  background-color: var(--main-bg);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-khuyen-mai__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Assuming body handles header offset */
  padding-bottom: 40px;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  overflow: hidden;
}

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

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, var(--main-bg) 100%);
  margin-top: -100px; /* Pull content up over the image for blend effect */
  padding-top: 100px;
}

.page-khuyen-mai__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.7);
}

.page-khuyen-mai__hero-description {
  font-size: 1.15rem;
  color: var(--text-main);
  max-width: 900px;
  margin: 0 auto 30px;
}

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

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

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  background: linear-gradient(180deg, #FFE18D 0%, #E6AE2A 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

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

.page-khuyen-mai__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--card-bg);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-khuyen-mai__btn-outline {
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  padding: 10px 20px;
  font-size: 0.9rem;
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-khuyen-mai__section-description {
  font-size: 1.1rem;
  color: var(--text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-khuyen-mai__intro-section,
.page-khuyen-mai__how-to-claim-section,
.page-khuyen-mai__terms-section,
.page-khuyen-mai__why-choose-section,
.page-khuyen-mai__faq-section,
.page-khuyen-mai__final-cta-section {
  padding: 60px 0;
}

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

.page-khuyen-mai__feature-item,
.page-khuyen-mai__step-item,
.page-khuyen-mai__why-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__feature-item:hover,
.page-khuyen-mai__step-item:hover,
.page-khuyen-mai__why-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

.page-khuyen-mai__feature-icon,
.page-khuyen-mai__why-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-khuyen-mai__feature-title,
.page-khuyen-mai__step-title,
.page-khuyen-mai__why-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-khuyen-mai__feature-text,
.page-khuyen-mai__step-text,
.page-khuyen-mai__why-text {
  color: var(--text-main);
  font-size: 1rem;
}

.page-khuyen-mai__step-number {
  font-size: 2.5rem;
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-khuyen-mai__promotions-grid-section {
  background-color: var(--main-bg);
  padding: 60px 0;
}

.page-khuyen-mai__promotion-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__promotion-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

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

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

.page-khuyen-mai__promotion-title {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-khuyen-mai__promotion-text {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__terms-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  color: var(--text-main);
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
}

.page-khuyen-mai__terms-list li::before {
  content: '✔️';
  color: var(--secondary-color);
  margin-right: 10px;
  font-size: 1.2rem;
  line-height: 1;
}

.page-khuyen-mai__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

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

.page-khuyen-mai__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-khuyen-mai__faq-item[open] {
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.15);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  list-style: none;
  transition: background-color 0.3s ease;
}

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

.page-khuyen-mai__faq-question:hover {
  background-color: #1a1a1a;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
  background-color: #1a1a1a;
  border-bottom: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color);
  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;
  color: var(--text-main);
  font-size: 1rem;
  background-color: var(--card-bg);
}

.page-khuyen-mai__final-cta-section {
  background: linear-gradient(135deg, var(--main-bg) 0%, #1a1a1a 100%);
  padding: 80px 0;
  text-align: center;
}

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

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

.page-khuyen-mai__section,
.page-khuyen-mai__card,
.page-khuyen-mai__container,
.page-khuyen-mai__hero-image-wrapper,
.page-khuyen-mai__hero-cta,
.page-khuyen-mai__final-cta-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-image-wrapper {
    height: 500px;
  }

  .page-khuyen-mai__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-khuyen-mai__promotion-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-khuyen-mai__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__hero-section {
    padding-bottom: 20px;
  }

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

  .page-khuyen-mai__hero-content {
    margin-top: -50px;
    padding-top: 50px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-khuyen-mai__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai__btn-outline {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-khuyen-mai__section-title {
    font-size: 1.8rem;
  }

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

  .page-khuyen-mai__intro-section,
  .page-khuyen-mai__how-to-claim-section,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__why-choose-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__final-cta-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__features-grid,
  .page-khuyen-mai__steps-grid,
  .page-khuyen-mai__why-grid,
  .page-khuyen-mai__promotion-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-khuyen-mai__promotion-title {
    font-size: 1.4rem;
  }

  .page-khuyen-mai__promotion-text {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__terms-list {
    margin-top: 30px;
  }

  .page-khuyen-mai__terms-list li {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

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

  .page-khuyen-mai__faq-toggle {
    font-size: 1.5rem;
  }

  .page-khuyen-mai__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.95rem;
  }

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

  /* Mobile image forced adaptation */
  .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__hero-image-wrapper,
  .page-khuyen-mai__hero-cta,
  .page-khuyen-mai__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__hero-cta,
  .page-khuyen-mai__final-cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Required for module 3-6 even if not used, to satisfy checklist */
  .page-khuyen-mai__row-games, .page-khuyen-mai__row-sport, .page-khuyen-mai__row-coop { padding: 20px 15px; }
  .page-khuyen-mai__slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .page-khuyen-mai__game-slide { flex: 0 0 80%; max-width: 80%; scroll-snap-align: start; }
  .page-khuyen-mai__banners-top-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .page-khuyen-mai__banner-item img {   }
  .page-khuyen-mai__blog-masonry { grid-template-columns: 1fr; }
  .page-khuyen-mai__blog-slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .page-khuyen-mai__blog-slide { flex: 0 0 90%; max-width: 90%; scroll-snap-align: start; }
}