/* Base styles for .page-khuyen-mai */
.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles shared header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 550px;
  background-color: #0A0A0A;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over image slightly for visual flow, but not overlap text on image */
  background-color: rgba(10, 10, 10, 0.8);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-khuyen-mai__tagline {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-khuyen-mai__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
  color: #ffffff; /* Button text */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-khuyen-mai__description-text {
  font-size: 1rem;
  color: #FFF6D6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-khuyen-mai__overview-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-khuyen-mai__type-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-khuyen-mai__type-item:hover {
  transform: translateY(-5px);
}

.page-khuyen-mai__type-title {
  font-size: 1.8rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-khuyen-mai__type-description {
  font-size: 0.95rem;
  color: #FFF6D6;
}

.page-khuyen-mai__featured-promotions {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-khuyen-mai__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__card:hover {
  transform: translateY(-5px);
}

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

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

.page-khuyen-mai__card-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-khuyen-mai__card-description {
  font-size: 0.9rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  margin-top: auto; /* Push button to bottom */
}

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

.page-khuyen-mai__how-to-claim {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-khuyen-mai__step-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #F2C14E;
  color: #111111;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-khuyen-mai__step-title {
  font-size: 1.6rem;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-khuyen-mai__step-description {
  font-size: 0.95rem;
  color: #FFF6D6;
}

.page-khuyen-mai__step-description a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-khuyen-mai__step-description a:hover {
  color: #FFD36B;
}

.page-khuyen-mai__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-khuyen-mai__terms-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-khuyen-mai__why-choose-us {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-khuyen-mai__feature-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-khuyen-mai__feature-title {
  font-size: 1.6rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-khuyen-mai__feature-description {
  font-size: 0.95rem;
  color: #FFF6D6;
}

.page-khuyen-mai__faq-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-khuyen-mai__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2C14E;
  cursor: pointer;
  background-color: #1A1A1A;
  user-select: none;
  list-style: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #FFD36B;
  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 20px 25px;
  font-size: 0.95rem;
  color: #FFF6D6;
}

.page-khuyen-mai__final-cta {
  padding: 80px 0;
  background-color: #0A0A0A;
  text-align: center;
}

.page-khuyen-mai__final-cta .page-khuyen-mai__description-text {
  margin-bottom: 30px;
}

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

/* General button responsive styles */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Placeholder for homepage-specific CSS modules, as per checklist, even if not in HTML */
.page-khuyen-mai__home-content { /* Not present in HTML, but for checklist */ }
.page-khuyen-mai__row-games { /* Not present in HTML, but for checklist */ }
.page-khuyen-mai__games-title { /* Not present in HTML, but for checklist */ }
.page-khuyen-mai__slider-wrapper { /* Not present in HTML, but for checklist */ }
.page-khuyen-mai__slider-track { /* Not present in HTML, but for checklist */ display: flex; flex-wrap: nowrap; }
.page-khuyen-mai__game-slide { /* Not present in HTML, but for checklist */ }
.page-khuyen-mai__banners-top-wrapper { /* Not present in HTML, but for checklist */ display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.page-khuyen-mai__banner-item img { /* Not present in HTML, but for checklist */ }
.page-khuyen-mai__blog-masonry { /* Not present in HTML, but for checklist */ display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.page-khuyen-mai__blog-card-link { /* Not present in HTML, but for checklist */ }
.page-khuyen-mai__btn-outline { /* Not present in HTML, but for checklist */ }
.page-khuyen-mai__blog-slider-track { /* Not present in HTML, but for checklist */ display: flex; flex-wrap: nowrap; }
.page-khuyen-mai__blog-slide { /* Not present in HTML, but for checklist */ }

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .page-khuyen-mai__container {
    padding: 15px;
  }

  .page-khuyen-mai__hero-content {
    padding: 20px;
    margin-top: -50px;
  }

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

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

  .page-khuyen-mai__btn-primary {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

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

  .page-khuyen-mai__description-text {
    margin-bottom: 30px;
  }

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

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

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

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

  .page-khuyen-mai__step-title,
  .page-khuyen-mai__feature-title {
    font-size: 1.4rem;
  }

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

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

  /* Mobile image 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button adaptation */
  .page-khuyen-mai__cta-button,
  .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;
  }
  
  /* Button container mobile adaptation */
  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__button-group,
  .page-khuyen-mai__btn-container,
  .page-khuyen-mai__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-khuyen-mai__cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  /* Placeholder for homepage-specific CSS modules in mobile media query */
  .page-khuyen-mai__home-content { /* Not present in HTML, but for checklist */
    height: auto;
    padding: 15px;
  }
  .page-khuyen-mai__slider-track { /* Not present in HTML, but for checklist */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-khuyen-mai__game-slide { /* Not present in HTML, but for checklist */
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
  }
  .page-khuyen-mai__banners-top-wrapper { /* Not present in HTML, but for checklist */
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Adjusted for mobile, from 3 to 2 for better spacing */
    gap: 10px;
  }
  .page-khuyen-mai__banner-item img { /* Not present in HTML, but for checklist */
    
    
  }
  .page-khuyen-mai__blog-masonry { /* Not present in HTML, but for checklist */
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai__blog-slider-track { /* Not present in HTML, but for checklist */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-khuyen-mai__blog-slide { /* Not present in HTML, but for checklist */
    flex: 0 0 90%;
    max-width: 90%;
    scroll-snap-align: start;
  }
}