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

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

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0; /* Primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-khuyen-mai__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #EA7C07; /* Login color for accent */
  border-radius: 2px;
}

.page-khuyen-mai__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
}

.page-khuyen-mai__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__hero-content {
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff; /* White background for text */
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__main-title {
  font-size: 3em;
  font-weight: 900;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  color: #555555;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

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

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

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

.page-khuyen-mai__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 1em;
}

.page-khuyen-mai__btn-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Overview Section */
.page-khuyen-mai__overview-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.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;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-10px);
}

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

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

.page-khuyen-mai__card-description {
  font-size: 1em;
  color: #666666;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-khuyen-mai__card-link {
  color: #EA7C07; /* Login color for accent */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-khuyen-mai__card-link:hover {
  color: #c46406;
}

/* Details Section */
.page-khuyen-mai__details-section {
  padding: 80px 0;
}

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

.page-khuyen-mai__dark-bg .page-khuyen-mai__section-title {
  color: #ffffff;
}
.page-khuyen-mai__dark-bg .page-khuyen-mai__section-title::after {
  background-color: #ffffff;
}
.page-khuyen-mai__dark-bg .page-khuyen-mai__text-block {
  color: #f0f0f0;
}

.page-khuyen-mai__promo-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-khuyen-mai__promo-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.page-khuyen-mai__promo-item--reverse {
  flex-direction: row-reverse;
}

.page-khuyen-mai__promo-content {
  flex: 1;
}

.page-khuyen-mai__promo-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-khuyen-mai__promo-detail-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-khuyen-mai__promo-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff; /* White text for dark background */
}

.page-khuyen-mai__promo-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-khuyen-mai__promo-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-khuyen-mai__promo-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-khuyen-mai__promo-features li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #EA7C07; /* Login color for checkmark */
  font-weight: bold;
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim-section {
  padding: 80px 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-card {
  background-color: #f0f8ff; /* Light blue tint */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-khuyen-mai__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__step-icon {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
}

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

.page-khuyen-mai__step-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

/* Terms Section */
.page-khuyen-mai__terms-section {
  padding: 80px 0;
}

.page-khuyen-mai__light-bg {
  background-color: #f0f8ff; /* Light blue background */
  color: #333333; /* Dark text for light background */
}

.page-khuyen-mai__light-bg .page-khuyen-mai__section-title {
  color: #26A9E0;
}
.page-khuyen-mai__light-bg .page-khuyen-mai__text-block {
  color: #555555;
}

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

.page-khuyen-mai__terms-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-khuyen-mai__link-inline {
  color: #26A9E0;
  text-decoration: underline;
}

.page-khuyen-mai__link-inline:hover {
  color: #1e87c0;
}

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

.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;
  transition: all 0.3s ease;
}

.page-khuyen-mai__faq-item[open] {
  background-color: #f0f8ff; /* Light blue when open */
  border-color: #26A9E0;
}

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

/* Hide default marker for WebKit browsers */
.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;
  font-weight: bold;
  color: #EA7C07;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  transform: rotate(45deg); /* Change + to X */
  color: #26A9E0;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__container {
    padding: 15px;
  }

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

  .page-khuyen-mai__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-khuyen-mai__main-title {
    font-size: 2.5em;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1.1em;
  }

  .page-khuyen-mai__promo-item {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .page-khuyen-mai__promo-item--reverse {
    flex-direction: column; /* Revert to column for smaller screens */
  }

  .page-khuyen-mai__promo-image-wrapper {
    width: 80%;
    margin: 0 auto;
  }

  .page-khuyen-mai__promo-features {
    text-align: left;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

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

  .page-khuyen-mai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-khuyen-mai__text-block {
    font-size: 1em;
  }

  /* Hero Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    margin-bottom: 30px;
  }

  .page-khuyen-mai__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }

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

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

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

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

  /* Images */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-khuyen-mai__hero-image-wrapper,
  .page-khuyen-mai__promo-image-wrapper,
  .page-khuyen-mai__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

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

  /* Details Section */
  .page-khuyen-mai__details-section {
    padding: 50px 0;
  }

  .page-khuyen-mai__promo-item {
    padding: 20px 0;
    margin-bottom: 40px;
  }

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

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

  .page-khuyen-mai__promo-features li {
    font-size: 0.95em;
  }

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

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

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

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

  /* Terms Section */
  .page-khuyen-mai__terms-section {
    padding: 50px 0;
  }

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

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

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

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

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