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

.page-khuyen-mai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #f8f8f8; /* Light background for hero */
  color: #333333;
}

.page-khuyen-mai__hero-image-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-khuyen-mai__hero-content {
  max-width: 900px;
  padding: 20px;
  margin-top: 20px;
}

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

.page-khuyen-mai__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-khuyen-mai__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-khuyen-mai__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #26A9E0;
}

.page-khuyen-mai__content-section {
  padding: 40px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-khuyen-mai__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-khuyen-mai__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 25px;
  text-align: center;
  padding-top: 20px;
}

.page-khuyen-mai__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #333333;
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-khuyen-mai__sub-sub-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #555555;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-khuyen-mai p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 1em;
}

.page-khuyen-mai__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 800px;
}

.page-khuyen-mai__figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
}

.page-khuyen-mai__figcaption {
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
  text-align: center;
}

.page-khuyen-mai__promo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.page-khuyen-mai__step-item {
  background-color: #f2faff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.page-khuyen-mai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(38, 169, 224, 0.3);
}

.page-khuyen-mai__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

.page-khuyen-mai__faq-question {
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  margin-top: 25px;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

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

.page-khuyen-mai__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  padding: 15px 15px 15px 20px;
  background-color: #ffffff;
  border-left: 5px solid #e0e0e0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  margin-bottom: 15px;
}

.page-khuyen-mai__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-khuyen-mai__text-link:hover {
  color: #1a8cc4;
}

.page-khuyen-mai__final-cta {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

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

@media (max-width: 1024px) {
  .page-khuyen-mai__hero-content {
    padding: 15px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.5em);
  }

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

  .page-khuyen-mai__section-title {
    font-size: 2em;
  }

  .page-khuyen-mai__sub-title {
    font-size: 1.6em;
  }

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

  .page-khuyen-mai p {
    font-size: 1em;
  }
}

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

  /* 1. Top section title + CTA */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 20px;
  }

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

  .page-khuyen-mai__main-title {
    font-size: clamp(1.6em, 6vw, 2em) !important;
    margin-bottom: 10px;
  }

  .page-khuyen-mai__description {
    font-size: 0.95em !important;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__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;
  }

  /* 2. Single column long text container */
  .page-khuyen-mai__article-wrap {
    padding: 0 15px !important; /* Mobile padding for content area */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai__content-section {
    padding: 20px 0;
  }

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

  .page-khuyen-mai__sub-title {
    font-size: 1.4em !important;
    margin-top: 25px;
  }

  .page-khuyen-mai__sub-sub-title {
    font-size: 1.2em !important;
    margin-top: 20px;
  }

  .page-khuyen-mai p {
    font-size: 1em !important;
  }

  /* 3. General images and figure */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-khuyen-mai__figure {
    margin: 20px auto;
  }

  .page-khuyen-mai__figcaption {
    font-size: 0.85em !important;
  }

  /* 4. Buttons and button containers (already covered in top section, but general rules here) */
  .page-khuyen-mai__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;
  }

  /* 5. Registration tutorial and FAQ block */
  .page-khuyen-mai__promo-steps {
    grid-template-columns: 1fr !important; /* Single column for steps */
    gap: 15px;
    margin: 30px 0;
  }

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

  .page-khuyen-mai__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6em;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.2em !important;
  }

  .page-khuyen-mai__step-item p {
    font-size: 0.9em !important;
  }

  .page-khuyen-mai__faq-question {
    font-size: 1.1em !important;
    padding: 12px;
  }

  .page-khuyen-mai__faq-answer {
    font-size: 0.95em !important;
    padding: 12px 12px 12px 17px;
  }

  .page-khuyen-mai__final-cta {
    margin-top: 30px;
  }
}