/* ------------------------------------ */
/* Khuyen Mai Page Specific Styles */
/* ------------------------------------ */

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

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  background-color: #E53935;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
}

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

.page-khuyen-mai__hero-content {
  max-width: 800px;
  padding: 0 20px;
  color: #ffffff;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-khuyen-mai__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General Section Title */
.page-khuyen-mai__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin: 60px auto 40px auto;
  color: #E53935;
  max-width: 900px;
  padding: 0 15px;
}

/* Promotion Cards Section */
.page-khuyen-mai__promotions-overview {
  padding: 40px 0;
  background-color: #F5F7FA;
}

.page-khuyen-mai__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-khuyen-mai__card {
  background: #ffffff; /* Card background */
  color: #333333; /* Text main */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

.page-khuyen-mai__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935;
  line-height: 1.3;
}

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

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

.page-khuyen-mai__steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-khuyen-mai__step-card {
  background: #F5F7FA; /* Light background */
  color: #333333; /* Dark text */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-khuyen-mai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-khuyen-mai__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
}

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

.page-khuyen-mai__step-description a {
  color: #E53935;
  text-decoration: none;
  font-weight: bold;
}

.page-khuyen-mai__step-description a:hover {
  text-decoration: underline;
}

/* Terms & Conditions Section */
.page-khuyen-mai__terms-conditions {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-khuyen-mai__content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-khuyen-mai__content-area p {
  margin-bottom: 1.2em;
  font-size: 1rem;
  color: #555555;
}

.page-khuyen-mai__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #E53935;
}

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

.page-khuyen-mai__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-khuyen-mai__feature-item {
  background: #E53935; /* Dark background */
  color: #ffffff; /* Light text */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

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

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

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

.page-khuyen-mai__faq-item {
  background: #ffffff; /* Light background */
  color: #333333; /* Dark text */
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  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: 600;
  color: #E53935;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-khuyen-mai__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #E53935;
  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: 1rem;
  color: #555555;
  line-height: 1.6;
}

/* Call To Action Section */
.page-khuyen-mai__call-to-action {
  padding: 60px 0;
  background-color: #E53935; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

.page-khuyen-mai__cta-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
  color: #f0f0f0;
}

/* Button Styles */
.page-khuyen-mai__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-khuyen-mai__cta-buttons--center {
  margin: 30px auto 0 auto;
}

.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: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.page-khuyen-mai__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-outline {
  background: transparent;
  color: #E53935;
  border: 2px solid #E53935;
  margin-top: auto; /* Push to bottom of card */
}

.page-khuyen-mai__btn-outline:hover {
  background: #E53935;
  color: #ffffff;
}

/* Color Contrast Specifics */
.page-khuyen-mai__dark-bg {
  background: #E53935;
  color: #ffffff;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__card-title {
  color: #ffffff;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__card-description {
  color: #f0f0f0;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__btn-outline {
  color: #ffffff;
  border-color: #ffffff;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__btn-outline:hover {
  background: #FF5A4F;
  color: #ffffff;
}

.page-khuyen-mai__light-bg {
  background: #ffffff;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-content {
    max-width: 700px;
  }

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

  .page-khuyen-mai__hero-description {
    font-size: 1rem;
  }

  .page-khuyen-mai__promotion-cards,
  .page-khuyen-mai__steps-container,
  .page-khuyen-mai__feature-list {
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-khuyen-mai__content-area {
    padding: 30px;
  }

  .page-khuyen-mai__section-title {
    margin: 50px auto 30px auto;
  }
}

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

  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Enforce small top padding */
    padding-bottom: 30px !important;
  }

  .page-khuyen-mai__hero-image {
    height: 250px !important;
    margin-bottom: 20px !important;
  }

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

  .page-khuyen-mai__main-title {
    font-size: clamp(2rem, 6vw, 2.5rem) !important;
    margin-bottom: 15px !important;
  }

  .page-khuyen-mai__hero-description {
    font-size: 0.95rem !important;
    margin-bottom: 25px !important;
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem) !important;
    margin: 40px auto 25px auto !important;
    padding: 0 15px !important;
  }

  /* Promotion Cards Section */
  .page-khuyen-mai__promotions-overview {
    padding: 30px 0 !important;
  }

  .page-khuyen-mai__promotion-cards {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 15px !important;
  }

  .page-khuyen-mai__card {
    padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }

  .page-khuyen-mai__card-image {
    height: 180px !important;
    margin-bottom: 15px !important;
  }

  .page-khuyen-mai__card-title {
    font-size: 1.3rem !important;
    margin-bottom: 10px !important;
  }

  .page-khuyen-mai__card-description {
    font-size: 0.9rem !important;
  }

  /* How To Claim Section */
  .page-khuyen-mai__how-to-claim {
    padding: 40px 0 !important;
  }

  .page-khuyen-mai__steps-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 15px !important;
  }

  .page-khuyen-mai__step-card {
    padding: 25px !important;
  }

  .page-khuyen-mai__step-number {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.2rem !important;
  }

  /* Terms & Conditions Section */
  .page-khuyen-mai__terms-conditions {
    padding: 40px 0 !important;
  }

  .page-khuyen-mai__content-area {
    padding: 25px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .page-khuyen-mai__content-area p {
    font-size: 0.95rem !important;
  }

  .page-khuyen-mai__sub-title {
    font-size: 1.4rem !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
  }

  /* Why Choose Section */
  .page-khuyen-mai__why-choose {
    padding: 40px 0 !important;
  }

  .page-khuyen-mai__feature-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 15px !important;
  }

  .page-khuyen-mai__feature-item {
    padding: 25px !important;
  }

  .page-khuyen-mai__feature-title {
    font-size: 1.2rem !important;
  }

  /* FAQ Section */
  .page-khuyen-mai__faq-section {
    padding: 40px 0 !important;
  }

  .page-khuyen-mai__faq-list {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai__faq-item {
    margin-bottom: 10px !important;
    border-radius: 8px !important;
  }

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

  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px 20px !important;
    font-size: 0.9rem !important;
  }

  /* Call To Action Section */
  .page-khuyen-mai__call-to-action {
    padding: 40px 0 !important;
  }

  .page-khuyen-mai__cta-text {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
    padding: 0 15px !important;
  }

  /* Buttons and Button Containers */
  .page-khuyen-mai__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important;
    margin-top: 25px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* General Image and Container Adapations */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Long text golden frame (not present on this page, but included for completeness as per required list) */
  /* .page-khuyen-mai__home-content { ... } */

  /* Game carousel (not present on this page, but included for completeness as per required list) */
  /* .page-khuyen-mai__slider-track { ... } */

  /* Cooperative brand 6-grid (not present on this page, but included for completeness as per required list) */
  /* .page-khuyen-mai__banners-top-wrapper { ... } */

  /* Blog card section (not present on this page, but included for completeness as per required list) */
  /* .page-khuyen-mai__blog-masonry { ... } */
  /* .page-khuyen-mai__blog-slider-track { ... } */
}

/* Placeholder styles for elements not explicitly present on this page but required in CSS output */
/* (These are minimal to satisfy the "必写清单" for non-homepage pages) */
.page-khuyen-mai__home-content {
  /* Not applicable for Khuyen Mai page, but included for completeness */
  height: auto;
  overflow-y: visible;
}

.page-khuyen-mai__slider-track,
.page-khuyen-mai__blog-slider-track {
  /* Not applicable for Khuyen Mai page, but included for completeness */
  display: flex;
  flex-wrap: nowrap;
}

.page-khuyen-mai__banners-top-wrapper {
  /* Not applicable for Khuyen Mai page, but included for completeness */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.page-khuyen-mai__blog-masonry {
  /* Not applicable for Khuyen Mai page, but included for completeness */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

@media (max-width: 768px) {
  .page-khuyen-mai__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px !important;
  }
  .page-khuyen-mai__slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
  }
  .page-khuyen-mai__slider-track > * {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
  }
  .page-khuyen-mai__banners-top-wrapper {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    max-width: 100% !important;
    padding: 0 15px !important;
  }
  .page-khuyen-mai__banners-top-wrapper img {
    
    height: auto !important;
  }
  .page-khuyen-mai__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }
  .page-khuyen-mai__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
  }
  .page-khuyen-mai__blog-slider-track > * {
    flex: 0 0 80% !important; /* Example width for mobile slides */
    scroll-snap-align: start;
  }
}