.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though body is white */
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #f8f8f8; /* Light background for hero */
}

.page-khuyen-mai__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 20px 15px;
}

.page-khuyen-mai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #333333;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: #017439; /* Brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-khuyen-mai__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't increase total width */
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

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

.page-khuyen-mai__btn-secondary {
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-khuyen-mai__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-khuyen-mai__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure no extra space below image */
}

/* General Section Styling */
.page-khuyen-mai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px;
}

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-khuyen-mai__section-title--white {
  color: #FFFFFF;
}

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

.page-khuyen-mai__section-description--white {
  color: #f0f0f0;
}

/* Intro Section */
.page-khuyen-mai__intro-section {
  padding: 60px 0;
}

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

.page-khuyen-mai__promo-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-khuyen-mai__feature-item {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-khuyen-mai__icon-box-media {
  width: 180px; /* Adjusted from 240px for better fit in 3 cols */
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-khuyen-mai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-khuyen-mai__feature-title {
  font-size: 1.5rem;
  color: #017439;
  margin-bottom: 10px;
}

.page-khuyen-mai__feature-text {
  font-size: 1rem;
  color: #666666;
}

/* Promo List Section */
.page-khuyen-mai__promo-list-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color for dark background */
  color: #FFFFFF;
}

.page-khuyen-mai__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

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

.page-khuyen-mai__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-8px);
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  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.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

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

.page-khuyen-mai__card-title a:hover {
  color: #005a2e;
}

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

.page-khuyen-mai__card-link {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-khuyen-mai__card-link:hover {
  background-color: #a00606;
}

.page-khuyen-mai__all-promos-cta {
  text-align: center;
  margin-top: 60px;
}

/* Guide Section */
.page-khuyen-mai__guide-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-khuyen-mai__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__guide-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  counter-increment: step-counter;
  position: relative;
}

.page-khuyen-mai__guide-item::before {
  content: "Bước " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: #017439;
  color: #FFFFFF;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.page-khuyen-mai__guide-step-title {
  font-size: 1.4rem;
  color: #017439;
  margin-top: 10px;
  margin-bottom: 15px;
}

.page-khuyen-mai__guide-item p {
  font-size: 1rem;
  color: #666666;
}

.page-khuyen-mai__guide-item a {
  color: #C30808; /* Register/Login color */
  text-decoration: none;
  font-weight: 600;
}

.page-khuyen-mai__guide-item a:hover {
  text-decoration: underline;
}

.page-khuyen-mai__guide-cta {
  text-align: center;
  margin-top: 60px;
}

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

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

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

.page-khuyen-mai__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #017439;
  background-color: #e8f5e9; /* Lighter shade of brand green */
  border-bottom: 1px solid #d4e9d5;
}

.page-khuyen-mai__faq-item summary::-webkit-details-marker {
  display: none; /* Hide for webkit browsers */
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: #017439;
  pointer-events: none; /* Prevent summary click from being blocked by span */
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
  color: #C30808; /* Highlight active question */
}

.page-khuyen-mai__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  border-top: 1px solid #f0f0f0;
}

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

.page-khuyen-mai__faq-answer a {
  color: #C30808; /* Register/Login color */
  text-decoration: none;
  font-weight: 600;
}

.page-khuyen-mai__faq-answer a:hover {
  text-decoration: underline;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-khuyen-mai__hero-content,
  .page-khuyen-mai__hero-image {
    flex: 1 1 100%;
  }

  .page-khuyen-mai__cta-buttons {
    justify-content: center;
  }

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

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

  .page-khuyen-mai__promo-features {
    gap: 20px;
  }

  .page-khuyen-mai__feature-item {
    max-width: none;
  }

  .page-khuyen-mai__icon-box-media {
    width: 160px;
    height: 160px;
  }

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


@media (max-width: 768px) {
  /* 1. HERO Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
  }

  .page-khuyen-mai__hero-container {
    padding: 20px 15px;
    gap: 30px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    text-align: center;
  }

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

  .page-khuyen-mai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    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;
  }

  /* 2. Module 1 (three-column, round images) */
  .page-khuyen-mai__promo-features {
    flex-direction: column;
    align-items: center;
  }

  .page-khuyen-mai__feature-item {
    width: 100%;
    max-width: 350px; /* Constrain individual item width */
    padding: 15px;
  }

  .page-khuyen-mai__icon-box-media {
    width: 200px; /* Maintain square aspect ratio */
    height: 200px;
    border-width: 3px;
  }

  /* 3. Game Tabs (Not present on this specific page, but if it were, rules would apply) */
  /* For this page, this section is implicitly handled by general section responsiveness */

  /* 4. Content sections (Promo List, Guide, FAQ) */
  .page-khuyen-mai__container {
    padding: 30px 15px;
  }

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

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

  .page-khuyen-mai__promo-cards {
    grid-template-columns: 1fr; /* Single column for promo cards */
    gap: 20px;
  }

  .page-khuyen-mai__card-image {
    height: 180px; /* Slightly smaller height for mobile card images */
  }

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

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

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

  .page-khuyen-mai__guide-list {
    grid-template-columns: 1fr; /* Single column for guide steps */
    gap: 20px;
  }

  .page-khuyen-mai__guide-item {
    padding: 25px;
  }

  .page-khuyen-mai__guide-item::before {
    top: -12px;
    left: 15px;
    padding: 6px 12px;
  }

  .page-khuyen-mai__guide-step-title {
    font-size: 1.25rem;
  }

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

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

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

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

  /* 5. General images and containers */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container,
  .page-khuyen-mai__hero-section,
  .page-khuyen-mai__intro-section,
  .page-khuyen-mai__promo-list-section,
  .page-khuyen-mai__guide-section,
  .page-khuyen-mai__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 6. Buttons and Button Containers */
  .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-right: 0px; /* Handled by parent container */
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
}