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

.page-khuyen-mai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
}

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

.page-khuyen-mai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  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: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

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

.page-khuyen-mai__dark-bg .page-khuyen-mai__section-title,
.page-khuyen-mai__dark-bg .page-khuyen-mai__section-description {
  color: #FFFFFF;
}

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

/* HERO SECTION */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Adjusted for header offset */
  padding-bottom: 60px;
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF;
}

.page-khuyen-mai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 16px;
  max-width: 1170px;
  margin: 0 auto;
}

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

.page-khuyen-mai__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

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

.page-khuyen-mai__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* INTRO SECTION (Module 1 - Three-column with square images) */
.page-khuyen-mai__intro-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-khuyen-mai__icon-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-khuyen-mai__icon-box {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  text-align: center;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-khuyen-mai__icon-box-media {
  width: 280px;
  height: 280px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
  box-shadow: 0 0 0 5px rgba(38, 169, 224, 0.3);
}

.page-khuyen-mai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image itself is clipped to circle */
  display: block;
}

.page-khuyen-mai__icon-box-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* PROMO CATEGORIES SECTION */
.page-khuyen-mai__promo-categories-section {
  padding: 60px 0;
  background-color: #26A9E0;
}

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

.page-khuyen-mai__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-khuyen-mai__promo-card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* GUIDE SECTION */
.page-khuyen-mai__guide-section {
  padding: 60px 0;
  background-color: #f5f5f5;
}

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

.page-khuyen-mai__guide-step {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

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

.page-khuyen-mai__guide-step-text {
  font-size: 1em;
  color: #555555;
}

/* TERMS SECTION */
.page-khuyen-mai__terms-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  text-align: center;
}

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

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

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-khuyen-mai__faq-question::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  margin-left: 15px;
}

.page-khuyen-mai__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

/* CTA BOTTOM SECTION */
.page-khuyen-mai__cta-bottom-section {
  padding: 60px 0;
  background-color: #26A9E0;
  text-align: center;
}

/* General image styling for content sections */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-khuyen-mai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  /* HERO SECTION Mobile */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-khuyen-mai__hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 30px 15px;
  }

  .page-khuyen-mai__hero-content {
    order: 2; /* Content below image on mobile */
  }

  .page-khuyen-mai__hero-image {
    order: 1; /* Image above content on mobile */
  }

  .page-khuyen-mai__hero-title {
    font-size: 2.2em;
    text-align: center;
  }

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

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  /* Buttons mobile */
  .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;
  }

  /* INTRO SECTION Mobile (Module 1 - Three-column with square images) */
  .page-khuyen-mai__icon-boxes {
    flex-direction: column;
    gap: 20px;
  }

  .page-khuyen-mai__icon-box {
    min-width: unset;
    flex: 1 1 100%;
    padding: 20px;
  }

  .page-khuyen-mai__icon-box-media {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
  }

  .page-khuyen-mai__icon-box-title {
    font-size: 1.4em;
  }

  /* PROMO CATEGORIES SECTION Mobile */
  .page-khuyen-mai__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__promo-card-image {
    height: 200px; /* Adjust height for mobile */
  }

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

  /* GUIDE SECTION Mobile */
  .page-khuyen-mai__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  /* FAQ SECTION Mobile */
  .page-khuyen-mai__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  /* CTA BOTTOM SECTION Mobile */
  .page-khuyen-mai__cta-bottom-section .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* General image styling 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;
  }
}