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

.page-khuyen-mai__dark-section {
  background-color: #26A9E0; /* Main brand color for dark sections */
  color: #ffffff; /* White text for dark backgrounds */
}

.page-khuyen-mai__light-bg {
  background-color: #FFFFFF; /* Auxiliary color for light sections */
  color: #333333; /* Dark text for light backgrounds */
}

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
}

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

.page-khuyen-mai__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  order: 2; /* Image below content on mobile, right on desktop */
  display: flex;
  justify-content: center;
  align-items: 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.2);
}

.page-khuyen-mai__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
  order: 1;
}

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

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

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

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

.page-khuyen-mai__btn-primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
  transform: translateY(-2px);
}

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

.page-khuyen-mai__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  transform: translateY(-2px);
}

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

.page-khuyen-mai__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: inherit; /* Inherits from section, #333333 or #ffffff */
}

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

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

.page-khuyen-mai__feature-item,
.page-khuyen-mai__promo-card,
.page-khuyen-mai__step-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

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

.page-khuyen-mai__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
  flex-shrink: 0;
}

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

.page-khuyen-mai__feature-title,
.page-khuyen-mai__promo-title,
.page-khuyen-mai__step-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

.page-khuyen-mai__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-khuyen-mai__step-icon {
  width: 50px;
  height: 50px;
  background-color: #EA7C07;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.page-khuyen-mai__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-khuyen-mai__center-cta {
  text-align: center;
  margin-top: 50px;
}

.page-khuyen-mai__terms-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-khuyen-mai__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  text-align: left;
  color: #f0f0f0;
}

.page-khuyen-mai__terms-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  font-size: 1.05em;
}

.page-khuyen-mai__terms-list li::before {
  content: '•';
  color: #EA7C07;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.page-khuyen-mai__terms-list li a {
  color: #ffffff;
  text-decoration: underline;
}

.page-khuyen-mai__terms-list li a:hover {
  color: #d16b00;
}

.page-khuyen-mai__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-khuyen-mai__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

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

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #EA7C07;
  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;
}

.page-khuyen-mai__cta-bottom-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-khuyen-mai__center-content {
  text-align: center;
}

/* 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;
    line-height: 1.5;
  }

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

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

  .page-khuyen-mai__hero-image {
    order: 1;
    min-width: unset;
  }

  .page-khuyen-mai__hero-content {
    order: 2;
    text-align: center;
    min-width: unset;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

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

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

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-khuyen-mai__content-area {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
    margin-bottom: 20px;
  }

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

  .page-khuyen-mai__features-grid,
  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-khuyen-mai__icon-box-media {
    width: 150px;
    height: 150px;
    border: 3px solid #26A9E0;
  }

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

  .page-khuyen-mai__feature-title,
  .page-khuyen-mai__promo-title,
  .page-khuyen-mai__step-title {
    font-size: 1.3em;
  }

  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__feature-item,
  .page-khuyen-mai__step-item {
    padding: 25px;
  }

  .page-khuyen-mai__step-icon {
    width: 45px;
    height: 45px;
    font-size: 1.6em;
  }

  .page-khuyen-mai__terms-list {
    padding: 0 10px;
  }

  .page-khuyen-mai__terms-list li {
    font-size: 1em;
    padding-left: 20px;
  }

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

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

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

  /* 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-khuyen-mai__cta-bottom-section .page-khuyen-mai__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Ensure all image containers handle overflow on mobile */
.page-khuyen-mai__promo-grid,
.page-khuyen-mai__steps-grid,
.page-khuyen-mai__features-grid,
.page-khuyen-mai__cta-buttons {
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}