/* Base Styles for Khuyen Mai Page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
}

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

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Rely on body padding-top for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #E53935;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the image wrapper */
  overflow: hidden;
}

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

.page-khuyen-mai__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
}

.page-khuyen-mai__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: #ffffff;
  /* clamp for responsive font size without fixed large values */
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.page-khuyen-mai__subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-outline {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 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: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

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

.page-khuyen-mai__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #E53935; /* Primary color */
  border: 2px solid #E53935;
}

.page-khuyen-mai__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-outline {
  background: transparent;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-khuyen-mai__btn-outline:hover {
  background: #E53935;
  color: #ffffff;
}

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935;
}

.page-khuyen-mai__intro-section,
.page-khuyen-mai__promo-types-section,
.page-khuyen-mai__special-offers-section,
.page-khuyen-mai__terms-section,
.page-khuyen-mai__why-choose-section,
.page-khuyen-mai__faq-section,
.page-khuyen-mai__cta-final-section {
  padding: 60px 0;
}

.page-khuyen-mai__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-khuyen-mai__promo-card {
  background: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-khuyen-mai__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E53935;
}

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

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

.page-khuyen-mai__offer-card {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-khuyen-mai__offer-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935;
}

.page-khuyen-mai__offer-description {
  font-size: 0.95rem;
  color: #333333;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-khuyen-mai__terms-list,
.page-khuyen-mai__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.page-khuyen-mai__terms-item,
.page-khuyen-mai__benefits-item {
  background-color: #ffffff;
  border-left: 4px solid #E53935;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  font-size: 1.05rem;
}

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

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

.page-khuyen-mai__faq-list {
  margin-top: 30px;
}

.page-khuyen-mai__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E53935;
}

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

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

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

.page-khuyen-mai__cta-final-section {
  background-color: #E53935;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-khuyen-mai__cta-final-section .page-khuyen-mai__section-title {
  color: #ffffff;
}

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

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

.page-khuyen-mai__cta-buttons .page-khuyen-mai__btn-primary,
.page-khuyen-mai__cta-buttons .page-khuyen-mai__btn-secondary {
  min-width: 200px;
}

/* General image responsiveness */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-khuyen-mai__container {
    padding: 15px;
  }

  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
  }

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

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

  .page-khuyen-mai__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* 按钮与按钮容器 */
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai__btn-outline,
  .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__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-direction: column !important;
    gap: 15px;
  }

  .page-khuyen-mai__cta-buttons .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__cta-buttons .page-khuyen-mai__btn-secondary {
    min-width: unset;
  }

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

  .page-khuyen-mai__intro-section,
  .page-khuyen-mai__promo-types-section,
  .page-khuyen-mai__special-offers-section,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__why-choose-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__cta-final-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__offer-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__offer-card {
    flex-direction: column;
    height: auto;
  }

  .page-khuyen-mai__card-image,
  .page-khuyen-mai__offer-image {
    height: 200px; /* Adjust height for mobile */
  }

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

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

  .page-khuyen-mai__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

  /* 通用图片与容器 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__hero-image-wrapper,
  .page-khuyen-mai__container,
  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__offer-card,
  .page-khuyen-mai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Media Queries for Tablet (max-width: 1024px) - added for completeness */
@media (max-width: 1024px) {
  .page-khuyen-mai__container {
    padding: 20px 30px;
  }

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

  .page-khuyen-mai__subtitle {
    font-size: 1.15rem;
  }

  .page-khuyen-mai__section-title {
    font-size: 2.2rem;
  }

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

  .page-khuyen-mai__offer-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}