/* style/khuynmi.css */

/* Base styles for the page, inheriting from body's light background */
.page-khuynmi {
  color: #333333; /* Dark text for light body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f8f8f8; /* Explicitly set for clarity, though inherited */
}

.page-khuynmi__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-khuynmi__section {
  padding: 60px 0;
  text-align: center;
}

.page-khuynmi__section-title {
  font-size: 2.5rem;
  color: #11A84E;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-khuynmi__section-title--light {
  color: #F2FFF6; /* Light text for dark backgrounds */
}

.page-khuynmi__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuynmi__text-block--light {
  color: #A7D9B8; /* Secondary light text for dark backgrounds */
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #F2FFF6; /* Light text for hero content */
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  min-height: 600px; /* Ensure hero section has a minimum height */
  overflow: hidden;
}

.page-khuynmi__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-khuynmi__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-khuynmi__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #F2FFF6;
  margin-bottom: 20px;
  /* H1 font-size, using clamp for responsiveness */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-khuynmi__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #A7D9B8;
}

.page-khuynmi__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuynmi__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-khuynmi__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-khuynmi__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Light text for dark hero section */
  border: 2px solid #2AD16F;
}

.page-khuynmi__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F;
  transform: translateY(-2px);
}

.page-khuynmi__btn-primary--large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

/* Dark background section */
.page-khuynmi__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

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

.page-khuynmi__promotion-card {
  background-color: #11271B; /* Card B G */
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #F2FFF6; /* Main text for dark card background */
  border: 1px solid #2E7A4E; /* Border color */
}

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

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

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

.page-khuynmi__card-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #A7D9B8; /* Secondary text for dark card background */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuynmi__promotion-card .page-khuynmi__btn-primary {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* Benefits Section */
.page-khuynmi__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuynmi__benefits-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid #e0e0e0;
}

.page-khuynmi__benefits-title {
  font-size: 1.3rem;
  color: #11A84E;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-khuynmi__benefits-description {
  font-size: 1rem;
  color: #333333;
}

/* Terms and Conditions */
.page-khuynmi__terms-conditions .page-khuynmi__btn-secondary {
  color: #11A84E; /* Dark text for light background */
  border-color: #11A84E;
}

.page-khuynmi__terms-conditions .page-khuynmi__btn-secondary:hover {
  background-color: #11A84E;
  color: #F2FFF6; /* Light text on hover */
}

/* FAQ Section */
.page-khuynmi__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-khuynmi__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Main text for dark card background */
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #11271B;
  color: #F2FFF6;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-khuynmi__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-khuynmi__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #A7D9B8; /* Secondary text for dark background */
}

/* Final CTA Section */
.page-khuynmi__cta-final-section {
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuynmi__section-title {
    font-size: 2rem;
  }

  .page-khuynmi__hero-description {
    font-size: 1.1rem;
  }

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

@media (max-width: 768px) {
  .page-khuynmi__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    min-height: 450px;
  }

  .page-khuynmi__hero-content {
    padding: 15px;
  }

  .page-khuynmi__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .page-khuynmi__hero-description {
    font-size: 1rem;
  }

  .page-khuynmi__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .page-khuynmi__section {
    padding: 40px 0;
  }

  .page-khuynmi__section-title {
    font-size: 1.8rem;
  }

  .page-khuynmi__text-block {
    font-size: 1rem;
  }

  .page-khuynmi__promotion-grid,
  .page-khuynmi__benefits-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-khuynmi__card-description {
    font-size: 0.95rem;
  }

  .page-khuynmi__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-khuynmi__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px 15px;
  }

  /* Mobile image and video responsive adaptation */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-khuynmi__section,
  .page-khuynmi__card,
  .page-khuynmi__container,
  .page-khuynmi__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-khuynmi__hero-image {
    filter: brightness(0.5) !important;
  }

  .page-khuynmi__video-section {
    padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
  }

  .page-khuynmi video,
  .page-khuynmi__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-khuynmi__video-section,
  .page-khuynmi__video-container,
  .page-khuynmi__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-khuynmi__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}