/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

.page-khuyen-mai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #ffffff; /* Explicitly set for light background */
}

.page-khuyen-mai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 15px;
}

.page-khuyen-mai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
  color: #333333;
}

.page-khuyen-mai__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-khuyen-mai__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #555555;
}

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

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

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

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

.page-khuyen-mai__center-cta {
  text-align: center;
  margin-top: 40px;
}
.page-khuyen-mai__center-cta .page-khuyen-mai__btn-primary,
.page-khuyen-mai__center-cta .page-khuyen-mai__btn-secondary {
    margin: 10px; /* Space out buttons if stacked on mobile */
}

/* Intro Section */
.page-khuyen-mai__intro-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-khuyen-mai__feature-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #f8f8f8;
  transition: transform 0.3s ease;
}

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

.page-khuyen-mai__feature-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px; /* Square images, not round for these */
}

.page-khuyen-mai__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-khuyen-mai__feature-text {
  color: #555555;
}

/* Promotion Types Section */
.page-khuyen-mai__promo-types-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-khuyen-mai__promo-types-section .page-khuyen-mai__section-title {
  color: #FFFFFF;
}

.page-khuyen-mai__promo-types-section .page-khuyen-mai__section-description {
  color: #f0f8ff;
}

.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 {
  background-color: #FFFFFF;
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-khuyen-mai__promo-card-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Ensures buttons align at bottom */
}

/* How To Claim Section */
.page-khuyen-mai__how-to-claim-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-khuyen-mai__step-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  background-color: #f8f8f8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-khuyen-mai__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

.page-khuyen-mai__step-text {
  color: #555555;
}

.page-khuyen-mai__steps-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Terms Section */
.page-khuyen-mai__terms-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-khuyen-mai__terms-section .page-khuyen-mai__section-title {
  color: #FFFFFF;
}

.page-khuyen-mai__terms-section .page-khuyen-mai__section-description {
  color: #f0f8ff;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  max-width: 800px;
  margin: 40px auto 0;
  padding-left: 20px;
  color: #f0f8ff;
}

.page-khuyen-mai__terms-list li {
  margin-bottom: 10px;
}

.page-khuyen-mai__terms-list strong {
  color: #FFFFFF;
}

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

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

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #eaf7ff; /* Lighter brand color */
  border-bottom: 1px solid #d0e8ff;
  transition: background-color 0.3s ease;
}

.page-khuyen-mai__faq-question:hover {
  background-color: #d0e8ff;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
    background-color: #26A9E0;
    color: #FFFFFF;
}
.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question .page-khuyen-mai__faq-qtext {
    color: #FFFFFF;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}
.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
    color: #FFFFFF;
}


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

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

.page-khuyen-mai__faq-answer p {
  margin-bottom: 10px;
}
.page-khuyen-mai__faq-answer p:last-child {
  margin-bottom: 0;
}

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

/* Final CTA Section */
.page-khuyen-mai__final-cta-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__section-title {
  color: #FFFFFF;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__section-description {
  color: #f0f8ff;
  margin-bottom: 30px;
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-title {
    font-size: 2.2em;
  }
  .page-khuyen-mai__section-title {
    font-size: 2em;
  }
  .page-khuyen-mai__hero-content,
  .page-khuyen-mai__hero-image {
    flex: 1 1 100%;
  }
  .page-khuyen-mai__hero-content {
    text-align: center;
  }
  .page-khuyen-mai__hero-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* General mobile styles */
  .page-khuyen-mai {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-khuyen-mai__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
  }
  .page-khuyen-mai__hero-container {
    flex-direction: column-reverse; /* Image on top, content below */
    gap: 30px;
    padding: 30px 15px;
  }
  .page-khuyen-mai__hero-title {
    font-size: 1.8em;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1em;
  }
  .page-khuyen-mai__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
  }
  .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;
  }
  .page-khuyen-mai__center-cta .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__center-cta .page-khuyen-mai__btn-secondary {
    margin: 5px 0;
  }

  /* Section Titles & Descriptions */
  .page-khuyen-mai__section-title {
    font-size: 1.8em;
  }
  .page-khuyen-mai__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Intro Section */
  .page-khuyen-mai__intro-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyen-mai__feature-item {
    padding: 20px;
  }
  .page-khuyen-mai__feature-icon {
    width: 100px;
  }
  .page-khuyen-mai__feature-title {
    font-size: 1.3em;
  }

  /* Promotion Types Section */
  .page-khuyen-mai__promo-types-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyen-mai__promo-card {
    padding: 20px;
  }
  .page-khuyen-mai__promo-card-title {
    font-size: 1.2em;
  }
  .page-khuyen-mai__promo-card-text {
    font-size: 0.9em;
  }

  /* How To Claim Section */
  .page-khuyen-mai__how-to-claim-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyen-mai__step-item {
    padding: 20px;
  }
  .page-khuyen-mai__step-number {
    font-size: 2em;
  }
  .page-khuyen-mai__step-title {
    font-size: 1.2em;
  }

  /* Terms Section */
  .page-khuyen-mai__terms-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__terms-list {
    margin-top: 30px;
    padding-left: 15px;
  }

  /* FAQ Section */
  .page-khuyen-mai__faq-section {
    padding: 40px 0;
  }
  .page-khuyen-mai__faq-list {
    margin: 30px auto;
  }
  .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: 15px 20px;
  }

  /* Final CTA Section */
  .page-khuyen-mai__final-cta-section {
    padding: 40px 0;
  }

  /* Universal image/container responsiveness 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,
  .page-khuyen-mai__hero-cta-buttons,
  .page-khuyen-mai__button-group,
  .page-khuyen-mai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden; /* Ensure no horizontal scroll */
  }
  .page-khuyen-mai__hero-cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}