/* Base styles for the page-khuyen-mai */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-khuyen-mai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

/* HERO Section */
.page-khuyen-mai__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,1));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-khuyen-mai__hero-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-khuyen-mai__hero-description {
  font-size: 1.15em;
  color: #333333;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

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

/* Overview Section */
.page-khuyen-mai__overview-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

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

.page-khuyen-mai__promotion-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

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

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

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

/* Detailed Promotions Section */
.page-khuyen-mai__detailed-promotions {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-khuyen-mai__detailed-promotions .page-khuyen-mai__section-title,
.page-khuyen-mai__detailed-promotions .page-khuyen-mai__section-description {
  color: #ffffff;
}

.page-khuyen-mai__promo-category {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

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

.page-khuyen-mai__promo-category p {
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-khuyen-mai__promo-list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-khuyen-mai__promo-list li {
  color: #f0f0f0;
  margin-bottom: 8px;
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-khuyen-mai__steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-khuyen-mai__steps-list li {
  counter-increment: step-counter;
  margin-bottom: 20px;
  padding-left: 50px;
  position: relative;
  font-size: 1.1em;
  color: #333333;
}

.page-khuyen-mai__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #26A9E0;
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-khuyen-mai__note {
  text-align: center;
  font-style: italic;
  color: #777777;
  margin-top: 20px;
}

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

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 60px 0;
  background-color: #1a202c;
  color: #ffffff;
}

.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__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  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;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  list-style: none;
  position: relative;
}

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

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  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 18px 25px;
  color: #f0f0f0;
  font-size: 1em;
}

/* Call to Action Section */
.page-khuyen-mai__call-to-action {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.page-khuyen-mai__text-center {
  text-align: center;
}

.page-khuyen-mai__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
  margin-top: 20px;
}

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

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

/* Placeholder styles for homepage modules (as required by prompt, even if not used in HTML) */
.page-khuyen-mai__home-content { border: 1px solid #FBB00D; border-radius: 10px; height: 650px; overflow-y: auto; padding: 20px; }
.page-khuyen-mai__row-games, .page-khuyen-mai__row-sport, .page-khuyen-mai__row-coop { background-color: #1A202C; padding: 40px 20px; max-width: 1330px; margin: 0 auto; }
.page-khuyen-mai__games-title, .page-khuyen-mai__sport-title, .page-khuyen-mai__coop-title { color: #fff; text-align: center; }
.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; }
.page-khuyen-mai__banners-top-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 0 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; }
.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); }

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

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

  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }

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

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

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

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

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-khuyen-mai__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__promotion-card {
    padding: 20px;
  }

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

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

  .page-khuyen-mai__detailed-promotions {
    padding: 40px 0;
  }

  .page-khuyen-mai__promo-category {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__category-title {
    font-size: 1.6em;
  }

  .page-khuyen-mai__how-to-claim {
    padding: 40px 0;
  }

  .page-khuyen-mai__steps-list li {
    font-size: 1em;
    padding-left: 45px;
  }

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

  .page-khuyen-mai__faq-section {
    padding: 40px 0;
  }

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

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

  .page-khuyen-mai__call-to-action {
    padding: 50px 0;
  }

  .page-khuyen-mai__btn-large {
    padding: 12px 25px;
    font-size: 1.1em;
  }

  /* Mandatory mobile styles for homepage modules (even if not used in HTML) */
  .page-khuyen-mai__home-content { height: auto; overflow-y: visible; padding: 15px; }
  .page-khuyen-mai__row-games, .page-khuyen-mai__row-sport, .page-khuyen-mai__row-coop { padding: 20px 15px; }
  .page-khuyen-mai__slider-track { flex-wrap: wrap; justify-content: center; }
  .page-khuyen-mai__game-slide { flex: 0 0 calc(50% - 8px); max-width: calc(50% - 8px); }
  .page-khuyen-mai__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .page-khuyen-mai__banner-item img {   }
  .page-khuyen-mai__blog-masonry { grid-template-columns: 1fr; }
  .page-khuyen-mai__blog-slide { flex: 0 0 100%; max-width: 100%; }

  /* General image and container responsiveness for mobile */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button container mobile adaptation */
  .page-khuyen-mai__hero-cta,
  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__button-group,
  .page-khuyen-mai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px; /* Handled by parent container padding */
    padding-right: 0px; /* Handled by parent container padding */
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure buttons stack vertically */
  }
}