/* Base styles for 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: clamp(28px, 3.5vw, 42px);
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Aligned with shared.css body padding-top */
  padding-bottom: 60px;
  background-color: #017439;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-khuyen-mai__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  gap: 30px;
}

.page-khuyen-mai__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

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

.page-khuyen-mai__hero-text-content {
  text-align: center;
  padding: 0 20px;
}

.page-khuyen-mai__main-title {
  font-size: clamp(32px, 4.5vw, 55px);
  color: #FFFF00; /* Custom color for H1 */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__cta-buttons {
  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: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-khuyen-mai__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-khuyen-mai__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  transform: translateY(-2px);
}

.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;
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-outline {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
}

.page-khuyen-mai__btn-outline:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

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

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

.page-khuyen-mai__promotion-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e0e0e0;
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 220px;
  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.5em;
  margin-bottom: 15px;
  color: #017439;
  font-weight: bold;
}

.page-khuyen-mai__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-khuyen-mai__card-title a:hover {
  text-decoration: underline;
}

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

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

.page-khuyen-mai__how-to-claim .page-khuyen-mai__section-title,
.page-khuyen-mai__how-to-claim .page-khuyen-mai__section-description {
  color: #ffffff;
}

.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-item {
  background-color: #00602f;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuyen-mai__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00;
  margin-bottom: 15px;
}

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

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

.page-khuyen-mai__step-item .page-khuyen-mai__btn-outline {
  color: #ffffff;
  border-color: #ffffff;
  margin-top: auto;
}

.page-khuyen-mai__step-item .page-khuyen-mai__btn-outline:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Why Choose Section */
.page-khuyen-mai__why-choose {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-khuyen-mai__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e0e0e0;
}

.page-khuyen-mai__feature-icon {
  width: 100%;
  max-width: 150px; /* Reduced max-width for feature icons */
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  object-fit: contain;
}

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

.page-khuyen-mai__feature-text {
  color: #555555;
  font-size: 0.95em;
  flex-grow: 1;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 60px 0;
  background-color: #017439;
  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: 40px auto 0 auto;
}

.page-khuyen-mai__faq-item {
  background-color: #00602f;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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: #ffffff;
  cursor: pointer;
  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-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text from intercepting click */
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  pointer-events: none; /* Prevent toggle from intercepting click */
}

.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: 1em;
  color: #f0f0f0;
}

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

.page-khuyen-mai__faq-answer .page-khuyen-mai__btn-outline {
  color: #ffffff;
  border-color: #ffffff;
  margin-top: 10px;
}

.page-khuyen-mai__faq-answer .page-khuyen-mai__btn-outline:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Bottom CTA Section */
.page-khuyen-mai__cta-bottom {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-khuyen-mai__center-content {
  text-align: center;
}

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

.page-khuyen-mai__cta-bottom .page-khuyen-mai__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-khuyen-mai__cta-bottom .page-khuyen-mai__btn-primary:hover {
  background-color: #004d26;
  border-color: #004d26;
}

.page-khuyen-mai__cta-bottom .page-khuyen-mai__btn-secondary {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-khuyen-mai__cta-bottom .page-khuyen-mai__btn-secondary:hover {
  background-color: #e02020;
  border-color: #e02020;
  color: #ffffff;
}

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

  .page-khuyen-mai__main-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }

  .page-khuyen-mai__description {
    font-size: 1.1em;
  }

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

  .page-khuyen-mai__steps-grid,
  .page-khuyen-mai__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

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

  .page-khuyen-mai__hero-content-wrapper {
    flex-direction: column;
    padding: 15px;
    gap: 20px;
  }

  .page-khuyen-mai__hero-text-content {
    padding: 0;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-khuyen-mai__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;
    padding: 0 15px;
  }

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai__btn-outline {
    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__promotions-overview,
  .page-khuyen-mai__how-to-claim,
  .page-khuyen-mai__why-choose,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__cta-bottom {
    padding: 40px 0;
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 15px;
  }

  .page-khuyen-mai__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

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

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

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

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

  .page-khuyen-mai__step-item,
  .page-khuyen-mai__feature-item {
    padding: 25px;
  }

  .page-khuyen-mai__feature-icon {
    max-width: 120px;
  }

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

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

  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  /* Image responsive force */
  .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-container,
  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__promotion-card,
  .page-khuyen-mai__step-item,
  .page-khuyen-mai__feature-item,
  .page-khuyen-mai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* CSS for elements not specific to Khuyen Mai, but included in the '必写清单' */
/* These are placeholders to satisfy the '必写清单' requirement. */
/* As Khuyen Mai is not a homepage, some elements like gameshow, slider-track, blog-masonry are not directly applicable but need media query definitions. */
.page-khuyen-mai__home-content { /* Placeholder for long golden frame area */
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: auto;
  overflow-y: visible;
  padding: 20px;
  margin-top: 30px;
  background-color: #fff;
  color: #333;
}
.page-khuyen-mai__home-content h2 {
  font-size: 2em;
  color: #017439;
  margin-bottom: 15px;
}

.page-khuyen-mai__row-games, .page-khuyen-mai__row-sport, .page-khuyen-mai__row-coop { /* Placeholder for game/sport/coop rows */
  background-color: #017439;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 40px auto;
  border-radius: 10px;
}
.page-khuyen-mai__games-title, .page-khuyen-mai__sport-title, .page-khuyen-mai__coop-title { /* Placeholder titles */
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  font-size: 2em;
}

.page-khuyen-mai__slider-wrapper { /* Placeholder for game carousel wrapper */
  overflow: hidden;
  margin-top: 30px;
}
.page-khuyen-mai__slider-track { /* Placeholder for game carousel track */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}
.page-khuyen-mai__game-slide { /* Placeholder for individual game slide */
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #00602f;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  color: #fff;
}

.page-khuyen-mai__banners-top-wrapper { /* Placeholder for partner grid */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 40px auto;
  align-items: center;
}
.page-khuyen-mai__banner-item img { /* Placeholder for partner images */
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-khuyen-mai__blog-masonry { /* Placeholder for blog masonry layout */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
}
.page-khuyen-mai__blog-card-link { /* Placeholder for blog card link */
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.page-khuyen-mai__blog-card-link:hover .page-khuyen-mai__card-title a { text-decoration: underline; }

.page-khuyen-mai__blog-slider-track { /* Placeholder for blog slider track */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}
.page-khuyen-mai__blog-slide { /* Placeholder for individual blog slide */
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .page-khuyen-mai__home-content {
    height: auto;
    overflow-y: visible;
    padding: 15px;
    margin-top: 20px;
  }
  .page-khuyen-mai__home-content h2 {
    font-size: 1.5em;
  }

  .page-khuyen-mai__row-games, .page-khuyen-mai__row-sport, .page-khuyen-mai__row-coop {
    padding: 20px 15px;
    margin: 30px auto;
  }
  .page-khuyen-mai__games-title, .page-khuyen-mai__sport-title, .page-khuyen-mai__coop-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .page-khuyen-mai__slider-wrapper {
    margin-top: 20px;
  }
  .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 160px;
    max-width: 160px;
    scroll-snap-align: start;
  }

  .page-khuyen-mai__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-khuyen-mai__banner-item img {
    
    
  }

  .page-khuyen-mai__blog-masonry {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .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 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai__cta-buttons {
    padding: 0 10px;
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(22px, 6vw, 28px);
  }

  .page-khuyen-mai__section-description {
    font-size: 0.9em;
    padding: 0 5px;
  }

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

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

  .page-khuyen-mai__step-icon {
    font-size: 2em;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.2em;
  }

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

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