/* style/khuynmi.css */

/* Base styles for the page */
.page-khuynmi {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF;
}

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

/* Color Contrast Classes */
.page-khuynmi__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-khuynmi__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  position: relative;
}

.page-khuynmi__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px;
}

.page-khuynmi__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual appeal, but not over image */
  position: relative; /* Ensure content is above other sections */
  z-index: 10;
  background-color: #FFFFFF; /* Ensure text is readable on its own background */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-khuynmi__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-khuynmi__hero-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-khuynmi__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-khuynmi__btn-primary:hover {
  background-color: #1a7bbd;
  border-color: #1a7bbd;
}

.page-khuynmi__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-khuynmi__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #26A9E0;
}

/* Section Titles */
.page-khuynmi__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

/* Intro Section */
.page-khuynmi__intro-section {
  padding: 60px 0;
  background-color: #f5faff;
}

.page-khuynmi__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* Promotions Grid */
.page-khuynmi__promotions-grid {
  padding: 60px 0;
}

.page-khuynmi__grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-khuynmi__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px; /* Ensure cards have a minimum height */
}

.page-khuynmi__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-khuynmi__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-khuynmi__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-khuynmi__card-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
  text-align: justify;
}

.page-khuynmi__card-link {
  display: inline-block;
  background-color: #EA7C07;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 90%;
}

.page-khuynmi__card-link:hover {
  background-color: #c96700;
}

/* Guide Section */
.page-khuynmi__guide-section {
  padding: 60px 0;
}

.page-khuynmi__guide-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-khuynmi__guide-steps {
  flex: 1;
}

.page-khuynmi__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFFFFF;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-khuynmi__step-title {
  font-size: 1.3em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-khuynmi__step-description {
  font-size: 0.95em;
  color: #f0f0f0;
  text-align: justify;
}

.page-khuynmi__guide-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-khuynmi__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  min-height: 200px;
}

/* Terms Section */
.page-khuynmi__terms-section {
  padding: 60px 0;
  background-color: #f5faff;
}

.page-khuynmi__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Why Choose Section */
.page-khuynmi__why-choose-section {
  padding: 60px 0;
}

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

.page-khuynmi__advantage-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 30px;
  transition: transform 0.3s ease;
}

.page-khuynmi__advantage-item:hover {
  transform: translateY(-5px);
}

.page-khuynmi__advantage-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Ensure icons are not too big */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-height: 200px;
}

.page-khuynmi__advantage-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-khuynmi__advantage-description {
  font-size: 0.95em;
  color: #555555;
  text-align: justify;
}

/* FAQ Section */
.page-khuynmi__faq-section {
  padding: 60px 0;
  background-color: #f5faff;
}

.page-khuynmi__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-khuynmi__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-khuynmi__faq-question:hover {
  background-color: #f0f8ff;
}

.page-khuynmi__faq-qtext {
  flex-grow: 1;
}

.page-khuynmi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-khuynmi__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

/* Final CTA Section */
.page-khuynmi__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

.page-khuynmi__cta-final-section .page-khuynmi__section-title {
  color: #FFFFFF;
  margin-bottom: 30px;
}

.page-khuynmi__cta-final-section .page-khuynmi__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-khuynmi__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuynmi__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-khuynmi__hero-content {
    margin-top: -50px;
    padding: 30px 15px;
  }

  .page-khuynmi__main-title {
    font-size: 2.5em;
  }

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

  .page-khuynmi__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-khuynmi__grid-wrapper {
    grid-template-columns: 1fr;
  }

  .page-khuynmi__guide-content {
    flex-direction: column-reverse; /* Steps above image on mobile */
  }

  .page-khuynmi__guide-steps {
    margin-top: 30px;
  }

  .page-khuynmi__advantage-icon {
    max-width: 200px;
  }

  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-khuynmi video,
  .page-khuynmi__video {
    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-image-wrapper,
  .page-khuynmi__guide-image-wrapper,
  .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__hero-section {
    padding-top: 10px !important;
  }

  .page-khuynmi__promo-card {
    min-height: auto;
  }

  .page-khuynmi__card-description,
  .page-khuynmi__advantage-description,
  .page-khuynmi__text-block,
  .page-khuynmi__step-description {
    text-align: left;
  }

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

  .page-khuynmi__faq-answer {
    padding: 0 20px 15px 20px;
  }
}