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

.page-khuyen-mai__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for dark background */
}

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

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

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-khuyen-mai__hero-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* White text for dark hero */
}

.page-khuyen-mai__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for contrast */
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherit from parent section */
}

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

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-khuyen-mai__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #e0f7fa;
  color: #1e88e5;
  border-color: #1e88e5;
}

/* Intro Section */
.page-khuyen-mai__icon-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-khuyen-mai__icon-box {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: #f8f8f8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-khuyen-mai__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
}

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

.page-khuyen-mai__icon-box-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-khuyen-mai__icon-box-text {
  font-size: 0.95em;
  color: #555555;
}

/* Promo Grid Section */
.page-khuyen-mai__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

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

.page-khuyen-mai__promo-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-khuyen-mai__promo-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

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

/* Terms Section */
.page-khuyen-mai__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-khuyen-mai__terms-item {
  margin-bottom: 10px;
  font-size: 1em;
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0;
  list-style: none;
}

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

.page-khuyen-mai__faq-item summary::marker {
  display: none;
}

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

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

/* Final CTA Section */
.page-khuyen-mai__cta-final-section {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

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

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

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

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-khuyen-mai__intro-text {
    font-size: 1em;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Module 1 (three-column intro) */
  .page-khuyen-mai__icon-boxes {
    flex-direction: column;
    gap: 20px;
  }

  .page-khuyen-mai__icon-box {
    max-width: 100%;
    padding: 15px;
  }

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

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

  /* Promo Grid Section */
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__promo-card {
    margin: 0 15px;
  }

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

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

  .page-khuyen-mai__promo-description {
    font-size: 0.85em;
  }

  /* Terms Section */
  .page-khuyen-mai__terms-list {
    padding-left: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-khuyen-mai__terms-item {
    font-size: 0.9em;
  }

  /* FAQ Section */
  .page-khuyen-mai__faq-list {
    margin-left: 15px;
    margin-right: 15px;
  }

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

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

  /* General images and containers */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-khuyen-mai__container,
  .page-khuyen-mai__section,
  .page-khuyen-mai__box,
  .page-khuyen-mai__promo-grid-section,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}