/* style/khuyen-mai.css */
.page-khuyen-mai {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding to account for fixed header, as body has padding-top */
  padding-bottom: 40px;
  background: #F5F7FA; /* Light background for hero */
}

.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%;
  min-width: 300px;
  color: #333333;
}

.page-khuyen-mai__hero-title {
  font-size: clamp(2em, 3.5vw, 3em);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #E53935;
}

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

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

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

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

.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: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-khuyen-mai__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-khuyen-mai__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.2);
}

.page-khuyen-mai__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-khuyen-mai__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: #E53935;
}

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

/* Intro Promos Section */
.page-khuyen-mai__intro-promos {
  background: #F5F7FA;
  padding: 60px 0;
}

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

.page-khuyen-mai__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-khuyen-mai__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FF5A4F;
  box-shadow: 0 0 0 8px rgba(255, 90, 79, 0.2);
}

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

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

.page-khuyen-mai__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promo Details Section */
.page-khuyen-mai__promo-details {
  background: #E53935;
  color: #ffffff;
  padding: 60px 0;
}

.page-khuyen-mai__promo-details .page-khuyen-mai__section-title,
.page-khuyen-mai__promo-details .page-khuyen-mai__section-description {
  color: #ffffff;
}

.page-khuyen-mai__promo-details .page-khuyen-mai__promo-card {
  padding: 0;
  text-align: left;
  overflow: hidden;
  background: #ffffff;
}

.page-khuyen-mai__promo-details .page-khuyen-mai__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: block;
}

.page-khuyen-mai__promo-details .page-khuyen-mai__card-body {
  padding: 25px;
  color: #333333;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px); /* Adjust height based on image height */
}

.page-khuyen-mai__promo-details .page-khuyen-mai__card-body .page-khuyen-mai__card-title {
  color: #E53935;
  margin-bottom: 10px;
}

.page-khuyen-mai__promo-details .page-khuyen-mai__card-body .page-khuyen-mai__card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
}

/* Guide Section */
.page-khuyen-mai__guide-section {
  background: #F5F7FA;
  padding: 60px 0;
}

.page-khuyen-mai__guide-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.page-khuyen-mai__guide-steps {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-khuyen-mai__step-list {
  list-style: none;
  padding: 0;
}

.page-khuyen-mai__step-item {
  background: #ffffff;
  border-left: 5px solid #E53935;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

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

.page-khuyen-mai__guide-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

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

.page-khuyen-mai__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 40px auto;
  flex: 1 1 50%;
  min-width: 300px;
}

.page-khuyen-mai__faq-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 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: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #E53935;
  cursor: pointer;
  list-style: none;
}

.page-khuyen-mai__faq-question::-webkit-details-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;
  line-height: 1.7;
  color: #333333;
}

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

.page-khuyen-mai__faq-section .page-khuyen-mai__content-area {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

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

.page-khuyen-mai__faq-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Join CTA Section */
.page-khuyen-mai__join-cta {
  background: #E53935;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-khuyen-mai__join-cta .page-khuyen-mai__section-title,
.page-khuyen-mai__join-cta .page-khuyen-mai__section-description {
  color: #ffffff;
}

.page-khuyen-mai__join-cta .page-khuyen-mai__cta-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.page-khuyen-mai__join-cta .page-khuyen-mai__cta-buttons {
  justify-content: center;
  margin-top: 30px;
}

.page-khuyen-mai__join-cta .page-khuyen-mai__btn-primary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #ffffff;
}

.page-khuyen-mai__join-cta .page-khuyen-mai__btn-primary:hover {
  background: #FF5A4F;
  color: #ffffff;
  border-color: #FF5A4F;
}

.page-khuyen-mai__join-cta .page-khuyen-mai__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-khuyen-mai__join-cta .page-khuyen-mai__btn-secondary:hover {
  background: #ffffff;
  color: #E53935;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-khuyen-mai {
    font-size: 15px;
  }

  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

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

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

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

  .page-khuyen-mai__hero-description {
    text-align: center;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-khuyen-mai__section-description {
    margin-bottom: 30px;
  }

  /* Module 1: Intro Promos */
  .page-khuyen-mai__intro-promos {
    padding: 40px 0;
  }

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

  .page-khuyen-mai__promo-card {
    padding: 20px;
  }

  .page-khuyen-mai__icon-box-media {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    border: 3px solid #FF5A4F;
    box-shadow: 0 0 0 6px rgba(255, 90, 79, 0.15);
  }

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

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

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

  .page-khuyen-mai__promo-details .page-khuyen-mai__card-body {
    padding: 20px;
  }

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

  .page-khuyen-mai__guide-content {
    flex-direction: column-reverse; /* Image above text on mobile */
    gap: 30px;
  }

  .page-khuyen-mai__guide-steps,
  .page-khuyen-mai__guide-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-khuyen-mai__step-item {
    padding: 15px;
    margin-bottom: 15px;
  }

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

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

  .page-khuyen-mai__faq-section .page-khuyen-mai__content-area {
    flex-direction: column;
    gap: 30px;
  }

  .page-khuyen-mai__faq-list,
  .page-khuyen-mai__faq-image {
    flex: 1 1 100%;
    min-width: unset;
  }

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

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

  /* Join CTA Section */
  .page-khuyen-mai__join-cta {
    padding: 40px 0;
  }

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

  /* General Image Responsiveness for content area */
  .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,
  .page-khuyen-mai__promo-cards-grid,
  .page-khuyen-mai__guide-content,
  .page-khuyen-mai__faq-list,
  .page-khuyen-mai__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}