/* style/khuynmi.css */

/* Base styles for the page, ensuring light text on dark body background */
.page-khuynmi {
  color: #ffffff; /* Default text color for the page */
  background-color: #121212; /* Matches body background from shared.css */
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  color: #ffffff;
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

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

.page-khuynmi__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-khuynmi__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General Section Styles */
.page-khuynmi__section {
  padding: 60px 20px;
  position: relative;
}

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

.page-khuynmi__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-khuynmi__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Color Schemes for Sections */
.page-khuynmi__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

.page-khuynmi__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-khuynmi__light-bg .page-khuynmi__section-title,
.page-khuynmi__light-bg .page-khuynmi__section-description {
  color: #333333;
}

/* Buttons */
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-khuynmi__card-dark .page-khuynmi__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

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

.page-khuynmi__card-dark .page-khuynmi__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

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

.page-khuynmi__promo-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  transition: transform 0.3s ease;
}

.page-khuynmi__promo-card:hover {
  transform: translateY(-5px);
}

.page-khuynmi__card-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-khuynmi__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-khuynmi__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* VIP Program Grid */
.page-khuynmi__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.page-khuynmi__text-block {
  text-align: left;
}

.page-khuynmi__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333333;
}

.page-khuynmi__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-khuynmi__list-item {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #333333;
}

.page-khuynmi__list-item::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-khuynmi__image-block {
  text-align: center;
}

.page-khuynmi__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Terms & Conditions / FAQ Accordion */
.page-khuynmi__accordion-group {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-khuynmi__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-khuynmi__light-bg .page-khuynmi__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-khuynmi__faq-item[open] > .page-khuynmi__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-khuynmi__light-bg .page-khuynmi__faq-item[open] > .page-khuynmi__faq-question {
  background-color: #eef;
}

.page-khuynmi__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-khuynmi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
}

.page-khuynmi__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-khuynmi__light-bg .page-khuynmi__faq-answer {
  color: #555555;
}

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

/* Final CTA Section */
.page-khuynmi__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-khuynmi__cta-content {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuynmi__hero-image-wrapper {
    margin-bottom: 0;
  }
  .page-khuynmi__grid-2-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-khuynmi__image-block {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }
  .page-khuynmi__text-block {
    text-align: center;
  }
  .page-khuynmi__list-item {
    padding-left: 0;
    text-align: center;
  }
  .page-khuynmi__list-item::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-khuynmi__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-khuynmi__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
  }
  .page-khuynmi__sub-title {
    font-size: clamp(1.4em, 4.5vw, 1.8em);
  }
  .page-khuynmi__hero-description,
  .page-khuynmi__section-description,
  .page-khuynmi__card-text,
  .page-khuynmi__list-item,
  .page-khuynmi__faq-question,
  .page-khuynmi__faq-answer {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Mobile image and video responsiveness */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-khuynmi__section,
  .page-khuynmi__container,
  .page-khuynmi__promo-card,
  .page-khuynmi__text-block,
  .page-khuynmi__image-block,
  .page-khuynmi__faq-item,
  .page-khuynmi__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons mobile responsiveness */
  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary,
  .page-khuynmi a[class*="button"],
  .page-khuynmi 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;
    margin-bottom: 10px;
  }
  .page-khuynmi__cta-block,
  .page-khuynmi__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .page-khuynmi__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-khuynmi__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}