.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Aligns with header spacing rule */
  margin-bottom: 40px;
  background-color: #f0f8ff; /* Light background for hero */
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 50px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-50px);
  position: relative;
  z-index: 1;
}

.page-khuyen-mai__main-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-khuyen-mai__hero-description {
  font-size: 18px;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-khuyen-mai__cta-buttons--center {
  margin-top: 30px;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

.page-khuyen-mai__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-khuyen-mai__introduction-section {
  background-color: #ffffff;
}

.page-khuyen-mai__featured-promotions-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-khuyen-mai__guide-section {
  background-color: #f9f9f9;
}

.page-khuyen-mai__terms-section {
  background-color: #ffffff;
}

.page-khuyen-mai__faq-section {
  background-color: #f0f8ff;
}

.page-khuyen-mai__cta-bottom-section {
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

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

.page-khuyen-mai__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Default for light backgrounds */
}

.page-khuyen-mai__dark-section .page-khuyen-mai__section-title {
  color: #ffffff; /* White for dark backgrounds */
}

.page-khuyen-mai__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333333;
}

.page-khuyen-mai__dark-section .page-khuyen-mai__sub-title {
  color: #f0f0f0;
}

.page-khuyen-mai__text-block {
  font-size: 17px;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__dark-section .page-khuyen-mai__text-block {
  color: #f0f0f0;
}

.page-khuyen-mai__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__dark-section .page-khuyen-mai__list {
  color: #f0f0f0;
}

.page-khuyen-mai__list-item {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 10px;
}

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

.page-khuyen-mai__promotion-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-khuyen-mai__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-khuyen-mai__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 20px;
}

.page-khuyen-mai__promotion-card .page-khuyen-mai__btn-primary {
  margin: 0 auto;
  width: calc(100% - 40px);
}

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

.page-khuyen-mai__step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
}

.page-khuyen-mai__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #26A9E0;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  border: 4px solid #f9f9f9;
}

.page-khuyen-mai__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-khuyen-mai__step-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

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

.page-khuyen-mai__faq-list {
  margin-top: 40px;
}

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

details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question:hover {
  background: #f5f5f5;
}

.page-khuyen-mai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #26A9E0;
}

.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

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

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

.page-khuyen-mai__cta-bottom-content {
  padding: 40px 20px;
}

.page-khuyen-mai__cta-bottom-section .page-khuyen-mai__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-khuyen-mai__cta-bottom-section .page-khuyen-mai__text-block {
  color: #ffffff;
  margin-bottom: 30px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-image-wrapper {
    height: 400px;
  }

  .page-khuyen-mai__hero-content {
    transform: translateY(-30px);
    padding: 25px 20px 40px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(26px, 3.8vw, 42px);
  }

  .page-khuyen-mai__hero-description {
    font-size: 17px;
  }

  .page-khuyen-mai__section {
    padding: 50px 0;
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(22px, 3.2vw, 34px);
    margin-bottom: 30px;
  }

  .page-khuyen-mai__sub-title {
    font-size: clamp(18px, 2.3vw, 24px);
  }

  .page-khuyen-mai__text-block,
  .page-khuyen-mai__list-item {
    font-size: 16px;
  }

  .page-khuyen-mai__card-title {
    font-size: 20px;
  }

  .page-khuyen-mai__card-description {
    font-size: 15px;
  }

  .page-khuyen-mai__step-title {
    font-size: 20px;
  }

  .page-khuyen-mai__step-item p {
    font-size: 15px;
  }

  .page-khuyen-mai__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 849px) {
  .page-khuyen-mai__hero-image {
    object-fit: contain !important; /* Prevents cropping */
    aspect-ratio: unset !important; /* Allows height to adjust */
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 30px;
  }

  .page-khuyen-mai__hero-image-wrapper {
    height: auto;
    max-height: 300px;
  }

  .page-khuyen-mai__hero-content {
    transform: translateY(-20px);
    padding: 20px 15px 30px;
    margin: 0 15px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjust clamp for smaller screens */
    margin-bottom: 10px;
  }

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

  .page-khuyen-mai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-khuyen-mai__section {
    padding: 40px 0;
  }

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

  .page-khuyen-mai__section-title {
    font-size: clamp(20px, 6vw, 30px);
    margin-bottom: 25px;
  }

  .page-khuyen-mai__sub-title {
    font-size: clamp(18px, 5vw, 22px);
    margin-top: 25px;
  }

  .page-khuyen-mai__text-block,
  .page-khuyen-mai__list-item,
  .page-khuyen-mai p {
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
  }

  .page-khuyen-mai__list {
    margin-left: 20px;
  }

  .page-khuyen-mai__promotions-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 25px;
    margin-top: 30px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

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

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

  .page-khuyen-mai__card-title {
    font-size: 18px;
  }

  .page-khuyen-mai__card-description {
    font-size: 14px;
  }

  .page-khuyen-mai__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }

  .page-khuyen-mai__step-item {
    padding: 25px;
  }

  .page-khuyen-mai__step-number {
    width: 45px;
    height: 45px;
    font-size: 20px;
    top: -18px;
  }

  .page-khuyen-mai__step-title {
    font-size: 18px;
    margin-top: 15px;
  }

  .page-khuyen-mai__step-item p {
    font-size: 14px;
  }

  .page-khuyen-mai__guide-image,
  .page-khuyen-mai__faq-image {
    margin: 30px auto 15px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
    padding: 15px;
  }

  .page-khuyen-mai__faq-qtext {
    font-size: 16px;
  }

  .page-khuyen-mai__faq-toggle {
    font-size: 20px;
    margin-left: 10px;
  }

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

  .page-khuyen-mai__cta-bottom-content {
    padding: 30px 15px;
  }

  /* Ensure all images are responsive */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* General content area containers for mobile */
  .page-khuyen-mai__section,
  .page-khuyen-mai__container,
  .page-khuyen-mai__promotions-grid,
  .page-khuyen-mai__guide-steps,
  .page-khuyen-mai__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove specific padding if already handled by container */
  .page-khuyen-mai__section.page-khuyen-mai__introduction-section .page-khuyen-mai__container,
  .page-khuyen-mai__section.page-khuyen-mai__featured-promotions-section .page-khuyen-mai__container,
  .page-khuyen-mai__section.page-khuyen-mai__guide-section .page-khuyen-mai__container,
  .page-khuyen-mai__section.page-khuyen-mai__terms-section .page-khuyen-mai__container,
  .page-khuyen-mai__section.page-khuyen-mai__faq-section .page-khuyen-mai__container {
    padding-left: 0;
    padding-right: 0;
  }
}