.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #ffffff;
}

.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: #f5f5f5;
}

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

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

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

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #017439;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-khuyen-mai__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-khuyen-mai__btn-primary {
  background-color: #C30808; /* Đăng ký color */
  color: #FFFF00; /* Đăng ký font color */
  border: 2px solid #C30808;
}

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

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

.page-khuyen-mai__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-khuyen-mai__btn-primary--large,
.page-khuyen-mai__btn-secondary--large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

.page-khuyen-mai__section {
  padding: 60px 0;
  text-align: center;
}

.page-khuyen-mai__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-khuyen-mai__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-khuyen-mai__container--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
  font-weight: 700;
  color: #017439;
}

.page-khuyen-mai__section-title--white {
  color: #ffffff;
}

.page-khuyen-mai__section-intro {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-khuyen-mai__section-intro--white {
  color: #f0f0f0;
}

.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: 30px;
}

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

.page-khuyen-mai__step-card {
  background-color: #f9f9f9;
}

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

.page-khuyen-mai__promo-image,
.page-khuyen-mai__step-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-khuyen-mai__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
  line-height: 1.3;
}

.page-khuyen-mai__card-text {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  margin-top: auto;
  background-color: #017439;
  color: #FFFFFF;
  border: 1px solid #017439;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-khuyen-mai__btn-small:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-khuyen-mai__btn-small--yellow {
  background-color: #FFFF00;
  color: #017439;
  border: 1px solid #FFFF00;
}

.page-khuyen-mai__btn-small--yellow:hover {
  background-color: #e6e600;
  border-color: #e6e600;
}

.page-khuyen-mai__benefits-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-khuyen-mai__benefits-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.page-khuyen-mai__benefits-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: #017439;
  flex-shrink: 0;
}

.page-khuyen-mai__benefits-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 5px;
}

.page-khuyen-mai__benefits-text {
  font-size: 1rem;
  color: #555555;
}

.page-khuyen-mai__benefits-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__app-download {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 40px auto 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 40px;
  text-align: left;
}

.page-khuyen-mai__app-image {
  flex-shrink: 0;
  width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.page-khuyen-mai__download-content {
  flex-grow: 1;
}

.page-khuyen-mai__download-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-khuyen-mai__download-text {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  text-align: left;
}

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

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

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

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

.page-khuyen-mai__copyright-info {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #777777;
  background-color: #f8f8f8;
  border-top: 1px solid #eeeeee;
}

.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Desktop specific adjustments */
@media (min-width: 1025px) {
  .page-khuyen-mai__promo-image,
  .page-khuyen-mai__step-image {
    height: 220px;
  }
}

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }

  .page-khuyen-mai__description {
    font-size: 1rem;
  }

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

  .page-khuyen-mai__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  }

  .page-khuyen-mai__section-intro {
    font-size: 1rem;
  }

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

  .page-khuyen-mai__promo-image,
  .page-khuyen-mai__step-image {
    height: 200px;
  }

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

  .page-khuyen-mai__card-text {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__btn-small {
    font-size: 0.9rem;
    padding: 9px 18px;
  }

  .page-khuyen-mai__benefits-title {
    font-size: 1.4rem;
  }

  .page-khuyen-mai__app-download {
    flex-direction: column;
    text-align: center;
    padding: 30px;
    gap: 30px;
  }

  .page-khuyen-mai__app-image {
    width: 250px;
    height: auto;
  }

  .page-khuyen-mai__download-title {
    font-size: 1.6rem;
  }

  .page-khuyen-mai__download-text {
    font-size: 1rem;
  }

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

  .page-khuyen-mai__faq-qtext {
    font-size: 1rem;
  }

  .page-khuyen-mai__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

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

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Ensure small top padding */
  }

  .page-khuyen-mai__hero-image-wrapper {
    max-height: 300px; /* Adjust height for mobile */
  }

  .page-khuyen-mai__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

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

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-khuyen-mai__description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .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(1.5rem, 5vw, 2rem);
    margin-bottom: 15px;
  }

  .page-khuyen-mai__section-intro {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

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

  .page-khuyen-mai__promo-image,
  .page-khuyen-mai__step-image {
    height: 180px;
  }

  .page-khuyen-mai__card-title {
    font-size: 1.2rem;
  }

  .page-khuyen-mai__card-text {
    font-size: 0.9rem;
  }

  .page-khuyen-mai__btn-small {
    font-size: 0.85rem;
    padding: 8px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai__benefits-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
  }

  .page-khuyen-mai__benefits-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .page-khuyen-mai__benefits-title {
    font-size: 1.3rem;
  }

  .page-khuyen-mai__benefits-text {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__benefits-image {
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__app-download {
    padding: 25px;
    gap: 20px;
  }

  .page-khuyen-mai__app-image {
    width: 200px;
  }

  .page-khuyen-mai__download-title {
    font-size: 1.5rem;
  }

  .page-khuyen-mai__download-text {
    font-size: 0.95rem;
  }

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

  .page-khuyen-mai__faq-qtext {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__faq-toggle {
    font-size: 22px;
    width: 22px;
  }

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

  .page-khuyen-mai__copyright-info {
    font-size: 0.85rem;
    padding: 15px;
  }

  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Ensure content areas and images do not cause horizontal scroll */
.page-khuyen-mai__section,
.page-khuyen-mai__container,
.page-khuyen-mai__promo-grid,
.page-khuyen-mai__steps-grid,
.page-khuyen-mai__benefits-list,
.page-khuyen-mai__app-download,
.page-khuyen-mai__faq-list {
  overflow-x: hidden;
}

/* CSS for color contrast */
.page-khuyen-mai {
  color: #333333; /* Default text color for light body background */
}

.page-khuyen-mai__hero-content {
  background-color: #ffffff;
  color: #333333;
}

.page-khuyen-mai__section-title {
  color: #017439;
}

.page-khuyen-mai__section-title--white {
  color: #ffffff;
}

.page-khuyen-mai__section-intro {
  color: #555555;
}

.page-khuyen-mai__section-intro--white {
  color: #f0f0f0;
}

.page-khuyen-mai__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-khuyen-mai__promo-card,
.page-khuyen-mai__step-card {
  background-color: #ffffff;
  color: #333333;
}

.page-khuyen-mai__card-title {
  color: #017439;
}

.page-khuyen-mai__card-text {
  color: #666666;
}

.page-khuyen-mai__benefits-title {
  color: #017439;
}

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

.page-khuyen-mai__download-title {
  color: #ffffff;
}

.page-khuyen-mai__download-text {
  color: #f0f0f0;
}

details.page-khuyen-mai__faq-item {
  background: #fff;
}

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

details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  background: #f9f9f9;
  color: #555555;
}

.page-khuyen-mai__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
}

.page-khuyen-mai__btn-secondary {
  background-color: #017439;
  color: #FFFFFF;
}

.page-khuyen-mai__btn-small {
  background-color: #017439;
  color: #FFFFFF;
}

.page-khuyen-mai__btn-small--yellow {
  background-color: #FFFF00;
  color: #017439;
}