/* style/khuynmi.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #0a0a0a; /* Body background from shared.css */
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --border-color: #e0e0e0;
}

.page-khuynmi {
  color: var(--text-on-dark); /* Default text color for the page, assuming dark body background */
  background-color: var(--background-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-khuynmi__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #0a0a0a);
  color: var(--text-on-dark);
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-khuynmi__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__hero-content {
  width: 100%;
  max-width: 900px;
}

.page-khuynmi__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

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

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

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

.page-khuynmi__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-khuynmi__btn-primary:hover {
  background-color: #1e87b6;
  transform: translateY(-2px);
}

.page-khuynmi__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-khuynmi__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.page-khuynmi__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-khuynmi__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-on-light);
}

.page-khuynmi__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
  color: var(--text-on-dark);
}

.page-khuynmi__section-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

.page-khuynmi__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: var(--primary-color);
}

.page-khuynmi__dark-section .page-khuynmi__section-title {
  color: var(--secondary-color);
}

.page-khuynmi__section-intro {
  font-size: 1.05em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-on-light);
}

.page-khuynmi__dark-section .page-khuynmi__section-intro {
  color: #f0f0f0;
}

.page-khuynmi__subtitle {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-khuynmi__dark-section .page-khuynmi__subtitle {
  color: var(--secondary-color);
}

.page-khuynmi__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-khuynmi__list--white li {
  color: var(--text-on-dark);
}

.page-khuynmi__list li {
  margin-bottom: 10px;
}

.page-khuynmi__list li strong {
  color: var(--primary-color);
}

.page-khuynmi__dark-section .page-khuynmi__list li strong {
  color: var(--secondary-color);
}

.page-khuynmi__promo-cards-grid,
.page-khuynmi__promo-grid,
.page-khuynmi__features-grid,
.page-khuynmi__event-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-khuynmi__promo-card,
.page-khuynmi__promo-item,
.page-khuynmi__feature-item,
.page-khuynmi__event-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-on-light);
}

.page-khuynmi__dark-section .page-khuynmi__promo-card,
.page-khuynmi__dark-section .page-khuynmi__promo-item,
.page-khuynmi__dark-section .page-khuynmi__feature-item,
.page-khuynmi__dark-section .page-khuynmi__event-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-khuynmi__card-image,
.page-khuynmi__item-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too small */
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-khuynmi__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-khuynmi__card-title,
.page-khuynmi__item-title,
.page-khuynmi__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-khuynmi__dark-section .page-khuynmi__card-title,
.page-khuynmi__dark-section .page-khuynmi__item-title,
.page-khuynmi__dark-section .page-khuynmi__feature-title {
  color: var(--secondary-color);
}

.page-khuynmi__card-description,
.page-khuynmi__item-description,
.page-khuynmi__feature-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuynmi__card-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuynmi__card-button:hover {
  background-color: #1e87b6;
}

.page-khuynmi__section-text {
  font-size: 1.05em;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
  color: var(--text-on-light);
}

.page-khuynmi__dark-section .page-khuynmi__section-text {
  color: #f0f0f0;
}

.page-khuynmi__section-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-khuynmi__section-text a:hover {
  text-decoration: underline;
}

.page-khuynmi__terms-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-khuynmi__terms-list li {
  background-color: var(--secondary-color);
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: var(--text-on-light);
}

.page-khuynmi__dark-section .page-khuynmi__terms-list li {
  background-color: rgba(255, 255, 255, 0.05);
  border-left-color: var(--secondary-color);
  color: var(--text-on-dark);
}

.page-khuynmi__terms-list li strong {
  display: block;
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-khuynmi__dark-section .page-khuynmi__terms-list li strong {
  color: var(--secondary-color);
}

.page-khuynmi__faq-section {
  padding-bottom: 60px;
}

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

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

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-khuynmi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

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

.page-khuynmi__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-khuynmi__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-khuynmi__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-khuynmi {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-khuynmi__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuynmi__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-khuynmi__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-khuynmi__promo-cards-grid,
  .page-khuynmi__promo-grid,
  .page-khuynmi__features-grid,
  .page-khuynmi__event-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuynmi__promo-card,
  .page-khuynmi__promo-item,
  .page-khuynmi__feature-item,
  .page-khuynmi__event-card {
    padding: 20px;
  }

  .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__card,
  .page-khuynmi__container,
  .page-khuynmi__section-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuynmi__card-image,
  .page-khuynmi__item-image {
    max-width: 100%;
    width: 100%;
  }

  .page-khuynmi__terms-list li {
    padding: 15px;
  }

  .page-khuynmi__terms-list li strong {
    font-size: 1.1em;
  }

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

  .page-khuynmi__faq-toggle {
    font-size: 1.3em;
  }

  .page-khuynmi__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.9em;
  }
}