/* General styles for the Khuyến Mãi page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

/* Fixed header spacing - Rely on shared.css body padding-top */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  background-color: #F4F7FB;
}

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

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-khuyen-mai__hero-content {
  text-align: center;
  padding: 0 20px 40px;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for H1 */
  color: #1F2D3D; /* Text Main */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-khuyen-mai__intro-text {
  font-size: 1.1rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* 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);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

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

.page-khuyen-mai__btn-secondary:hover {
  background-color: #F4F7FB;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai__btn-large {
  padding: 16px 40px;
  font-size: 1.15rem;
}

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

.page-khuyen-mai__dark-section {
  background-color: #2F6BFF; /* Main color as background */
  color: #ffffff;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
  color: inherit; /* Inherits color from parent section */
}

.page-khuyen-mai__text-block {
  font-size: 1rem;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherits color from parent section */
}

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

.page-khuyen-mai__feature-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark section */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  height: 100%; /* Ensure cards are same height */
}

.page-khuyen-mai__feature-icon {
  width: 200px; /* Min size */
  height: 150px;
  object-fit: contain; /* Use contain to prevent cropping for icons */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-khuyen-mai__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-khuyen-mai__feature-description {
  font-size: 0.95rem;
  color: #ffffff;
}

/* Promo Cards */
.page-khuyen-mai__promo-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 30px;
  border: 1px solid #D6E2FF; /* Border color */
}

.page-khuyen-mai__promo-card:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image/text order */
}

.page-khuyen-mai__promo-image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image has enough space */
}

.page-khuyen-mai__promo-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-khuyen-mai__promo-content {
  flex: 2;
}

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

.page-khuyen-mai__promo-description {
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
}

.page-khuyen-mai__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-khuyen-mai__promo-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #1F2D3D; /* Text Main */
}

.page-khuyen-mai__promo-list li::before {
  content: '✔';
  color: #2F6BFF; /* Main color */
  position: absolute;
  left: 0;
  top: 0;
}

/* Steps Grid */
.page-khuyen-mai__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-khuyen-mai__step-item {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark section */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  height: 100%;
}

.page-khuyen-mai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #6FA3FF; /* Auxiliary color */
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-khuyen-mai__step-description {
  font-size: 0.95rem;
  color: #ffffff;
}

.page-khuyen-mai__inline-link {
  color: #6FA3FF; /* Auxiliary color */
  text-decoration: underline;
}

.page-khuyen-mai__inline-link:hover {
  color: #A5C4FF; /* Glow color */
}

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

/* FAQ Section */
.page-khuyen-mai__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: #1F2D3D; /* Text Main */
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  font-weight: 500;
  color: #2F6BFF; /* Main color */
  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;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
}

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

/* Bottom CTA */
.page-khuyen-mai__bottom-cta {
  background: linear-gradient(90deg, #2F6BFF 0%, #6FA3FF 100%); /* Gradient background */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-khuyen-mai__cta-content {
  max-width: 900px;
}

/* Ensure all images adhere to min size */
.page-khuyen-mai img {
  min-width: 200px;
  min-height: 200px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-khuyen-mai__promo-card {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .page-khuyen-mai__promo-card:nth-child(even) {
    flex-direction: column; /* Reset order for smaller screens */
  }
  .page-khuyen-mai__promo-content {
    text-align: center;
  }
  .page-khuyen-mai__promo-list {
    text-align: left; /* Keep list left aligned */
  }
  .page-khuyen-mai__features-grid,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}


@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
  }
  .page-khuyen-mai__hero-content {
    padding: 0 15px 30px;
  }
  .page-khuyen-mai__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
  }
  .page-khuyen-mai__intro-text {
    font-size: 1rem;
  }

  /* 按钮与按钮容器 */
  .page-khuyen-mai__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .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-wrap: wrap !important; /* Ensure multiple buttons wrap */
    gap: 10px;
  }
  .page-khuyen-mai__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  /* 通用图片与容器 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce min-width */
    min- /* Adjust min-height for smaller screens */
  }
  .page-khuyen-mai__section,
  .page-khuyen-mai__container,
  .page-khuyen-mai__card,
  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__feature-card,
  .page-khuyen-mai__step-item,
  .page-khuyen-mai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-khuyen-mai__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .page-khuyen-mai__text-block {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  /* Specific card adjustments */
  .page-khuyen-mai__promo-card {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }
  .page-khuyen-mai__promo-card:nth-child(even) {
    flex-direction: column; /* Reset order for mobile */
  }
  .page-khuyen-mai__promo-image-wrapper {
    min-width: unset;
  }
  .page-khuyen-mai__features-grid,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }
  .page-khuyen-mai__feature-icon {
    width: 180px; /* Adjust size for mobile */
    height: 130px;
  }
  .page-khuyen-mai__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px;
  }
  .page-khuyen-mai__bottom-cta {
    padding: 60px 15px;
  }
}