/* style/khuyen-mai.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register-login: #C30808;
  --button-register-login-text: #FFFF00;
  --section-bg-light: #ffffff;
  --section-bg-dark: #017439;
}

.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--section-bg-light);
}

.page-khuyen-mai__light-bg {
  background-color: var(--section-bg-light);
  color: var(--text-dark);
}

.page-khuyen-mai__dark-bg {
  background-color: var(--section-bg-dark);
  color: var(--text-light);
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherits from parent section */
  line-height: 1.2;
}

.page-khuyen-mai__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherits from parent section */
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-khuyen-mai__btn-primary {
  background-color: var(--button-register-login);
  color: var(--button-register-login-text);
  border: 2px solid var(--button-register-login);
}

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

.page-khuyen-mai__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* HERO Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 40px;
  background-color: var(--section-bg-light);
}

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

.page-khuyen-mai__hero-content {
  flex: 1 1 50%;
  padding-right: 20px;
  color: var(--text-dark);
}

.page-khuyen-mai__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--primary-color);
}

.page-khuyen-mai__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

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

/* Promo Categories Section */
.page-khuyen-mai__promo-categories {
  padding: 60px 0;
}

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

.page-khuyen-mai__promo-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-khuyen-mai__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 0 20px;
  color: var(--primary-color);
}

.page-khuyen-mai__card-text {
  font-size: 1em;
  line-height: 1.6;
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__btn-primary {
  margin-top: auto; /* Push button to bottom */
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 40px);
}

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

.page-khuyen-mai__how-to-claim .page-khuyen-mai__section-title,
.page-khuyen-mai__how-to-claim .page-khuyen-mai__section-description {
  color: var(--text-light);
}

.page-khuyen-mai__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  text-align: center;
}

.page-khuyen-mai__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  color: var(--text-light);
}

.page-khuyen-mai__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--button-register-login-text);
  margin-bottom: 15px;
}

.page-khuyen-mai__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-khuyen-mai__step-text {
  font-size: 0.95em;
  line-height: 1.5;
}

.page-khuyen-mai__how-to-claim-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Terms and Conditions Section */
.page-khuyen-mai__terms-conditions {
  padding: 60px 0;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
}

.page-khuyen-mai__terms-list li {
  margin-bottom: 10px;
  font-size: 1em;
  line-height: 1.6;
}

.page-khuyen-mai__terms-conditions .page-khuyen-mai__btn-secondary {
  display: block;
  margin: 0 auto;
  max-width: 350px;
}

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

.page-khuyen-mai__faq-section .page-khuyen-mai__section-title,
.page-khuyen-mai__faq-section .page-khuyen-mai__section-description {
  color: var(--text-light);
}

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

.page-khuyen-mai__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-light);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Hide default marker for details/summary */
}

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

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

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

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

/* CTA Bottom Section */
.page-khuyen-mai__cta-bottom {
  padding: 60px 0;
  text-align: center;
}

.page-khuyen-mai__cta-bottom .page-khuyen-mai__btn-primary {
  margin: 0 auto;
  max-width: 300px;
}

/* General Images */
.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 {
    padding-right: 0;
    margin-bottom: 30px;
  }

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

  .page-khuyen-mai__hero-image {
    flex: none;
    width: 100%;
  }

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

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

@media (max-width: 768px) {
  /* HERO Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

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

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

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

  .page-khuyen-mai__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .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;
  }

  /* Promo Categories Section */
  .page-khuyen-mai__promo-categories {
    padding: 40px 0;
  }

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

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

  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-khuyen-mai__promo-card .page-khuyen-mai__btn-primary {
    width: calc(100% - 30px);
  }

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

  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-khuyen-mai__how-to-claim-image {
    padding: 0 15px;
  }

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

  .page-khuyen-mai__terms-list {
    margin-left: 15px;
    padding-left: 0;
    margin-bottom: 30px;
  }

  .page-khuyen-mai__terms-conditions .page-khuyen-mai__btn-secondary {
    max-width: calc(100% - 30px);
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

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

  /* CTA Bottom Section */
  .page-khuyen-mai__cta-bottom {
    padding: 40px 0;
  }

  .page-khuyen-mai__cta-bottom .page-khuyen-mai__btn-primary {
    max-width: calc(100% - 30px);
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Images & Containers */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__container,
  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__step-item,
  .page-khuyen-mai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* No circular images for Module 1 on this page, so no special handling for __icon-box-media img */
}