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

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

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

.page-khuyen-mai__hero-content {
  flex: 1 1 500px;
  max-width: 600px;
  text-align: left;
  color: #333333;
}

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

.page-khuyen-mai__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 550px;
}

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

.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: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

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

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

.page-khuyen-mai__hero-image {
  flex: 1 1 400px;
  text-align: center;
}

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

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

.page-khuyen-mai__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-khuyen-mai__section-description {
  font-size: 17px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__intro-section {
  padding: 60px 0;
  background-color: #f0fdf5;
}

.page-khuyen-mai__feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-khuyen-mai__feature-item {
  flex: 1 1 300px;
  max-width: 380px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-khuyen-mai__icon-box-media {
  width: 180px;
  height: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure it's a perfect circle */
  display: block;
}

.page-khuyen-mai__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-khuyen-mai__feature-text {
  font-size: 16px;
  color: #666666;
}

.page-khuyen-mai__promo-categories {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-khuyen-mai__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

.page-khuyen-mai__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-khuyen-mai__promo-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-khuyen-mai__promo-card-title a {
  color: #017439;
  text-decoration: none;
}

.page-khuyen-mai__promo-card-title a:hover {
  text-decoration: underline;
}

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

.page-khuyen-mai__guide-section {
  padding: 60px 0;
  background-color: #f0fdf5;
}

.page-khuyen-mai__guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-khuyen-mai__guide-image {
  flex: 1 1 400px;
  max-width: 550px;
  text-align: center;
}

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

.page-khuyen-mai__step-list {
  flex: 1 1 400px;
  max-width: 550px;
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-khuyen-mai__step-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
}

.page-khuyen-mai__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

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

.page-khuyen-mai__step-text {
  font-size: 16px;
  color: #666666;
}

.page-khuyen-mai__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-khuyen-mai__terms-conditions {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  padding-left: 30px;
  margin-bottom: 30px;
}

.page-khuyen-mai__terms-item {
  font-size: 16px;
  color: #555555;
  margin-bottom: 10px;
}

.page-khuyen-mai__read-more-terms {
  text-align: center;
  font-size: 16px;
  color: #555555;
}

.page-khuyen-mai__read-more-terms a {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

.page-khuyen-mai__read-more-terms a:hover {
  text-decoration: underline;
}

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

.page-khuyen-mai__dark-section .page-khuyen-mai__section-title,
.page-khuyen-mai__dark-section .page-khuyen-mai__section-description {
  color: #ffffff;
}

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

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

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

.page-khuyen-mai__dark-section .page-khuyen-mai__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #017439;
  list-style: none;
}

.page-khuyen-mai__dark-section .page-khuyen-mai__faq-question {
  color: #ffffff;
}

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

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

.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-khuyen-mai__dark-section .page-khuyen-mai__faq-toggle {
  color: #ffffff;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  content: '−';
}

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

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

.page-khuyen-mai__cta-bottom {
  padding: 80px 0;
  background: linear-gradient(to right, #017439, #005a2e);
  text-align: center;
  color: #ffffff;
}

.page-khuyen-mai__cta-bottom .page-khuyen-mai__section-title,
.page-khuyen-mai__cta-bottom .page-khuyen-mai__section-description {
  color: #ffffff;
}

.page-khuyen-mai__btn-large {
  font-size: 20px;
  padding: 16px 32px;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-khuyen-mai__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-khuyen-mai__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-khuyen-mai__hero-title {
    font-size: clamp(28px, 5vw, 42px);
  }

  .page-khuyen-mai__hero-description {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-khuyen-mai__cta-buttons {
    justify-content: center;
  }

  .page-khuyen-mai__feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-khuyen-mai__promo-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-khuyen-mai__guide-steps {
    flex-direction: column;
  }

  .page-khuyen-mai__guide-image,
  .page-khuyen-mai__step-list {
    max-width: 100%;
  }
}

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

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

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

  .page-khuyen-mai__hero-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

  .page-khuyen-mai__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__hero-image {
    padding: 0 15px;
  }

  .page-khuyen-mai__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

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

  .page-khuyen-mai__intro-section,
  .page-khuyen-mai__promo-categories,
  .page-khuyen-mai__guide-section,
  .page-khuyen-mai__terms-conditions,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__cta-bottom {
    padding: 40px 0;
  }

  .page-khuyen-mai__feature-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .page-khuyen-mai__feature-item {
    max-width: 90%; /* Adjust as needed for smaller screens */
    padding: 25px;
  }

  .page-khuyen-mai__icon-box-media {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

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

  .page-khuyen-mai__promo-card-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .page-khuyen-mai__promo-card-text {
    font-size: 14px;
  }

  .page-khuyen-mai__guide-steps {
    flex-direction: column;
    gap: 30px;
  }

  .page-khuyen-mai__guide-image {
    padding: 0 15px;
  }

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

  .page-khuyen-mai__step-list {
    padding: 0 15px;
  }

  .page-khuyen-mai__step-item {
    padding-left: 45px;
    margin-bottom: 25px;
  }

  .page-khuyen-mai__step-item::before {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

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

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

  .page-khuyen-mai__terms-list {
    padding-left: 20px;
  }

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

  .page-khuyen-mai__faq-question {
    padding: 18px 20px;
    font-size: 16px;
  }

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

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

  .page-khuyen-mai__btn-large {
    font-size: 18px;
    padding: 14px 28px;
  }

  /* General image responsive styles */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}