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

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

.page-khuyen-mai__top-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  text-align: center;
  background: #2F6BFF; /* Main brand color for dark background */
  color: #ffffff; /* White text for dark background */
}

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

.page-khuyen-mai__description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-khuyen-mai__top-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-khuyen-mai__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 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: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__btn-secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai__cta-inline {
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-khuyen-mai__section {
  padding: 60px 0;
  background-color: #ffffff; /* Card BG color for main content sections */
  color: #1F2D3D; /* Text Main color */
  border-bottom: 1px solid #D6E2FF; /* Border color */
}

.page-khuyen-mai__section:last-of-type {
  border-bottom: none;
}

.page-khuyen-mai__light-bg {
  background-color: #F4F7FB; /* Custom background color */
  color: #1F2D3D;
}

.page-khuyen-mai__heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 30px;
  text-align: left;
}

.page-khuyen-mai__sub-heading {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-khuyen-mai__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-khuyen-mai__figure {
  margin: 30px 0;
  text-align: center;
}

.page-khuyen-mai__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-khuyen-mai__figcaption {
  font-size: 0.9rem;
  color: #666666;
  margin-top: 10px;
}

.page-khuyen-mai__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-khuyen-mai__ordered-list {
  list-style: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-khuyen-mai__list-item {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-khuyen-mai__button-group {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  justify-content: center;
}

.page-khuyen-mai__promo-grid-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Custom background color */
  color: #1F2D3D;
}

.page-khuyen-mai__heading--center {
  text-align: center;
}

.page-khuyen-mai__description--center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.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: #ffffff; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding-bottom: 20px;
  text-align: center;
  border: 1px solid #D6E2FF; /* Border color */
  color: #1F2D3D;
}

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

.page-khuyen-mai__promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-khuyen-mai__promo-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-khuyen-mai__promo-title a:hover {
  color: #2F6BFF;
}

.page-khuyen-mai__promo-text {
  font-size: 0.95rem;
  color: #1F2D3D;
  margin-bottom: 20px;
  padding: 0 20px;
}

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

/* @media (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-khuyen-mai__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-khuyen-mai__heading {
    font-size: 2rem;
  }

  .page-khuyen-mai__sub-heading {
    font-size: 1.4rem;
  }

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

/* @media (max-width: 768px) */
@media (max-width: 768px) {
  /* 1. Top Section (Top Section Title + Double CTA) */
  .page-khuyen-mai__top-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

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

  .page-khuyen-mai__description {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-khuyen-mai__top-cta {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-khuyen-mai__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* 2. Single-Column Long-Form Container */
  .page-khuyen-mai__container {
    padding: 0 15px !important;
  }

  .page-khuyen-mai__section {
    padding: 40px 0;
  }

  .page-khuyen-mai__heading {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
  }

  .page-khuyen-mai__sub-heading {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
  }

  .page-khuyen-mai__text-block,
  .page-khuyen-mai__list-item,
  .page-khuyen-mai__figcaption {
    font-size: 0.95rem;
    padding: 0 5px;
  }

  .page-khuyen-mai__list,
  .page-khuyen-mai__ordered-list {
    margin-left: 20px;
    padding: 0 5px;
  }

  /* 3. Generic Images and Figure */
  .page-khuyen-mai__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  /* Ensure all containers with images also adapt */
  .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;
    overflow-x: hidden;
  }

  /* 4. Buttons and Button Containers */
  .page-khuyen-mai__btn-container,
  .page-khuyen-mai__button-group {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Ensure buttons themselves are 100% width in mobile */
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .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;
  }

  /* 5. Promo Grid Section */
  .page-khuyen-mai__promo-grid-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

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

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

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

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