:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --text-dark: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--page-bg);
  line-height: 1.6;
}

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 60px;
  background-color: var(--page-bg);
  color: var(--text-main);
}

.page-khuyen-mai__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
}

.page-khuyen-mai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-khuyen-mai__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-khuyen-mai__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main);
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-promo-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-khuyen-mai__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-khuyen-mai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
  background-color: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-promo-details {
  background-color: var(--secondary-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 6px;
}

.page-khuyen-mai__btn-promo-details:hover {
  opacity: 0.9;
}

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

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

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

.page-khuyen-mai__content-area--center {
  text-align: center;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-khuyen-mai__section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.page-khuyen-mai__benefits-section {
  padding-bottom: 60px;
  background-color: var(--page-bg);
}

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

.page-khuyen-mai__benefit-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-khuyen-mai__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 0 0 8px rgba(111, 163, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-khuyen-mai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image itself is circular */
  display: block;
}

.page-khuyen-mai__benefit-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-khuyen-mai__benefit-card-description {
  font-size: 1rem;
  color: var(--text-main);
}

.page-khuyen-mai__promo-list-section {
  padding-bottom: 60px;
  background-color: var(--page-bg);
}

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

.page-khuyen-mai__promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-khuyen-mai__promo-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-khuyen-mai__promo-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--text-main);
}

.page-khuyen-mai__guide-section {
  padding-bottom: 60px;
  background-color: var(--page-bg);
}

.page-khuyen-mai__guide-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-khuyen-mai__guide-steps {
  flex: 1 1 45%;
  min-width: 300px;
}

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

.page-khuyen-mai__guide-step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.page-khuyen-mai__guide-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.page-khuyen-mai__guide-step-description {
  font-size: 1rem;
  color: var(--text-main);
}

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

.page-khuyen-mai__guide-illustration {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

.page-khuyen-mai__terms-section {
  padding-bottom: 60px;
  background-color: var(--page-bg);
}

.page-khuyen-mai__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-khuyen-mai__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.page-khuyen-mai__text-link:hover {
  color: var(--secondary-color);
}

.page-khuyen-mai__faq-section {
  padding-bottom: 60px;
  background-color: var(--page-bg);
}

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

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-khuyen-mai__faq-question .page-khuyen-mai__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  transform: rotate(45deg);
}

.page-khuyen-mai__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

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

.page-khuyen-mai__cta-final-section {
  padding-bottom: 80px;
  background-color: var(--page-bg);
}

.page-khuyen-mai__cta-final-section .page-khuyen-mai__section-title {
  margin-bottom: 30px;
}

.page-khuyen-mai__cta-final-section .page-khuyen-mai__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
}

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

  .page-khuyen-mai__hero-content {
    order: 2;
    flex: 1 1 100%;
  }

  .page-khuyen-mai__hero-image {
    order: 1;
    flex: 1 1 100%;
    margin-bottom: 30px;
  }

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

  .page-khuyen-mai__section-title {
    margin-bottom: 40px;
  }

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

  .page-khuyen-mai__guide-steps,
  .page-khuyen-mai__guide-image {
    flex: 1 1 100%;
  }

  .page-khuyen-mai__guide-image {
    order: -1; /* Image above steps on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-khuyen-mai__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }

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

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

  .page-khuyen-mai__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons - MUST BE PRESENT */
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai__btn-promo-details,
  .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-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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Section Titles */
  .page-khuyen-mai__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-khuyen-mai__section-title::after {
    bottom: -10px;
  }

  /* Module 1: Benefits Section (3 columns with circular images) - MUST BE PRESENT */
  .page-khuyen-mai__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__icon-box-media {
    width: 150px;
    height: 150px;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 6px rgba(111, 163, 255, 0.3);
  }

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

  /* Promo List Section (cards) */
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}