.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

.page-khuyen-mai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-khuyen-mai__section-title {
  font-size: 3em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

.page-khuyen-mai__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #1F2D3D; /* Text Main */
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  background-color: #F4F7FB; /* Background */
}

.page-khuyen-mai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

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

.page-khuyen-mai__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden;
}

.page-khuyen-mai__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  display: inline-block; /* For proper padding and alignment */
  box-sizing: border-box; /* Include padding in width calculation */
  max-width: 100%; /* Ensure button does not overflow */
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-khuyen-mai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-khuyen-mai__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
}

.page-khuyen-mai__btn-secondary:hover {
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

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

.page-khuyen-mai__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Intro Section */
.page-khuyen-mai__intro-section {
  background-color: #F4F7FB; /* Background */
  padding: 60px 0;
}

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

.page-khuyen-mai__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  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 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #D6E2FF; /* Border */
  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 is also circular */
  display: block;
}

.page-khuyen-mai__feature-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-khuyen-mai__feature-text {
  color: #1F2D3D; /* Text Main */
  font-size: 1em;
}

/* Promotion List Section */
.page-khuyen-mai__promo-list-section {
  background: #2F6BFF; /* Main Color */
  color: #ffffff; /* White text for contrast */
  padding: 60px 0;
}

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

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

.page-khuyen-mai__promo-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-khuyen-mai__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promo-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: #1F2D3D; /* Text Main */
}

.page-khuyen-mai__promo-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-khuyen-mai__promo-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-khuyen-mai__promo-button {
  width: 100%;
  display: block;
  margin-top: auto; /* Push button to bottom */
}

/* Guide Section */
.page-khuyen-mai__guide-section {
  background-color: #F4F7FB; /* Background */
  padding: 60px 0;
}

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

.page-khuyen-mai__guide-step {
  text-align: center;
  padding: 30px 20px;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 4px solid #2F6BFF; /* Main Color */
}

.page-khuyen-mai__step-icon {
  width: 60px;
  height: 60px;
  background-color: #2F6BFF; /* Main Color */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 20px;
}

.page-khuyen-mai__step-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-khuyen-mai__step-text {
  color: #1F2D3D; /* Text Main */
  font-size: 1em;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  background-color: #F4F7FB; /* Background */
  padding: 60px 0;
}

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

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  background-color: #ffffff; /* Card BG */
  border-bottom: 1px solid #D6E2FF; /* Border */
  list-style: none; /* For details/summary */
}

.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
  border-bottom: 1px solid #D6E2FF; /* Border */
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-khuyen-mai__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
}

/* Image responsive rules for all content images */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box; /* Crucial for preventing overflow */
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-khuyen-mai__container {
    padding: 20px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Ensure no horizontal overflow */
  }

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

  .page-khuyen-mai__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* HERO Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 20px;
  }

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

  .page-khuyen-mai__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Adjust H1 for mobile */
    text-align: center;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1em;
    text-align: center;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Ensure no horizontal overflow */
  }

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

  .page-khuyen-mai__hero-image-wrapper {
    order: -1; /* Move image above text on mobile */
    width: 100%;
  }

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

  /* Intro Section */
  .page-khuyen-mai__intro-section {
    padding: 30px 0;
  }

  .page-khuyen-mai__features-grid {
    grid-template-columns: 1fr; /* Single column for features */
    gap: 20px;
  }

  .page-khuyen-mai__icon-box-media {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
  }
  .page-khuyen-mai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure it stays circular */
  }

  /* Promotion List Section */
  .page-khuyen-mai__promo-list-section {
    padding: 30px 0;
  }

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

  .page-khuyen-mai__promo-image {
    height: 180px; /* Slightly smaller image height on mobile */
  }

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

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

  .page-khuyen-mai__promo-text {
    font-size: 0.9em;
  }

  /* Guide Section */
  .page-khuyen-mai__guide-section {
    padding: 30px 0;
  }

  .page-khuyen-mai__guide-steps {
    grid-template-columns: 1fr; /* Single column for guide steps */
    gap: 20px;
  }

  .page-khuyen-mai__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.4em;
  }

  /* FAQ Section */
  .page-khuyen-mai__faq-section {
    padding: 30px 0;
  }

  .page-khuyen-mai__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-khuyen-mai__faq-toggle {
    font-size: 1.2em;
  }

  .page-khuyen-mai__faq-answer {
    padding: 10px 15px 15px;
    font-size: 0.95em;
  }

  /* Generic image and container responsive rules */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container,
  .page-khuyen-mai__features-grid,
  .page-khuyen-mai__promo-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;
    overflow-x: hidden; /* Ensure no horizontal overflow */
  }
}