/* style/khuynmi.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --dark-text-color: #333333;
  --light-text-color: #FFFFFF;
  --background-light: #F8F9FA;
  --background-dark: #1A1A1A;
  --border-color: #E0E0E0;
}

.page-khuynmi {
  font-family: 'Arial', sans-serif;
  color: var(--dark-text-color);
  line-height: 1.6;
  background-color: var(--background-light); /* Assuming body background is light */
}

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

.page-khuynmi__section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-khuynmi__section-description {
  font-size: 18px;
  color: var(--dark-text-color);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* 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, header offset handled by body */
  background-color: var(--background-dark);
  color: var(--light-text-color);
}

.page-khuynmi__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-khuynmi__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-khuynmi__hero-title {
  font-size: 52px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__hero-description {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-khuynmi__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--login-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  border: none;
}

.page-khuynmi__cta-button:hover {
  background: darken(var(--login-color), 10%); /* Placeholder for darken */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.page-khuynmi__cta-button--centered {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}

/* Intro Section */
.page-khuynmi__intro-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--dark-text-color);
}

.page-khuynmi__feature-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-khuynmi__feature-content {
  flex: 1;
}

.page-khuynmi__feature-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-khuynmi__feature-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-khuynmi__feature-image {
  flex: 1;
  min-width: 400px;
}

.page-khuynmi__feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Promo List Section */
.page-khuynmi__promo-list-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

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

.page-khuynmi__promo-list-section .page-khuynmi__section-description {
  color: var(--secondary-color);
}

.page-khuynmi__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-khuynmi__promo-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-khuynmi__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.page-khuynmi__promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-khuynmi__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  padding: 20px 25px 10px;
  line-height: 1.3;
}

.page-khuynmi__card-description {
  font-size: 16px;
  color: var(--dark-text-color);
  padding: 0 25px 20px;
  flex-grow: 1;
}

.page-khuynmi__card-button {
  display: inline-block;
  background: var(--login-color);
  color: var(--light-text-color);
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.page-khuynmi__card-button:hover {
  background: darken(var(--login-color), 10%); /* Placeholder for darken */
}

/* Guide Section */
.page-khuynmi__guide-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--dark-text-color);
}

.page-khuynmi__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  counter-reset: guide-step;
}

.page-khuynmi__guide-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
}

.page-khuynmi__guide-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-khuynmi__guide-step-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-khuynmi__guide-item p {
  font-size: 17px;
  line-height: 1.7;
}

/* Terms Section */
.page-khuynmi__terms-section {
  padding: 80px 0;
  background-color: var(--dark-section-bg, #1a1a1a);
  color: var(--light-text-color);
}

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

.page-khuynmi__terms-section .page-khuynmi__section-description {
  color: var(--secondary-color);
}

.page-khuynmi__terms-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-khuynmi__terms-text {
  flex: 1;
}

.page-khuynmi__terms-list {
  list-style: none;
  padding: 0;
}

.page-khuynmi__terms-item {
  margin-bottom: 25px;
}

.page-khuynmi__terms-heading {
  font-size: 22px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.page-khuynmi__terms-item p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.page-khuynmi__terms-image {
  flex: 1;
  min-width: 400px;
}

.page-khuynmi__terms-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-khuynmi__faq-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--dark-text-color);
}

.page-khuynmi__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-khuynmi__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

details.page-khuynmi__faq-item summary.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-khuynmi__faq-item summary.page-khuynmi__faq-question:hover {
  background: #f0f0f0;
}

.page-khuynmi__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--dark-text-color);
}

.page-khuynmi__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar, or just rotate */
}

.page-khuynmi__faq-answer {
  padding: 0 25px 25px;
  background: #fefefe;
  border-radius: 0 0 8px 8px;
}

.page-khuynmi__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

/* Conclusion Section */
.page-khuynmi__conclusion-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  text-align: center;
}

.page-khuynmi__conclusion-section .page-khuynmi__section-title,
.page-khuynmi__conclusion-section .page-khuynmi__section-description {
  color: var(--light-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuynmi__hero-title {
    font-size: 44px;
  }
  .page-khuynmi__hero-description {
    font-size: 18px;
  }
  .page-khuynmi__cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-khuynmi__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-khuynmi__feature-block, .page-khuynmi__terms-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-khuynmi__feature-image, .page-khuynmi__terms-image {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-khuynmi__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuynmi__hero-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .page-khuynmi__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-khuynmi__cta-button {
    padding: 14px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-khuynmi__cta-button--centered {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuynmi__section-title {
    font-size: 30px;
    margin-bottom: 20px;
  }
  .page-khuynmi__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-khuynmi__intro-section, .page-khuynmi__promo-list-section,
  .page-khuynmi__guide-section, .page-khuynmi__terms-section,
  .page-khuynmi__faq-section, .page-khuynmi__conclusion-section {
    padding: 50px 0;
  }
  .page-khuynmi__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-khuynmi__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-khuynmi__promo-card img {
    height: 200px;
  }
  .page-khuynmi__card-title {
    font-size: 20px;
    padding: 15px 20px 8px;
  }
  .page-khuynmi__card-description {
    font-size: 15px;
    padding: 0 20px 15px;
  }
  .page-khuynmi__card-button {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-khuynmi__feature-heading {
    font-size: 24px;
  }
  .page-khuynmi__guide-item {
    padding-left: 60px;
  }
  .page-khuynmi__guide-item::before {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
  .page-khuynmi__guide-step-title {
    font-size: 22px;
  }
  .page-khuynmi__terms-heading {
    font-size: 20px;
  }
  details.page-khuynmi__faq-item summary.page-khuynmi__faq-question {
    padding: 15px 20px;
  }
  .page-khuynmi__faq-qtext {
    font-size: 16px;
  }
  .page-khuynmi__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  .page-khuynmi__faq-answer {
    padding: 0 20px 20px;
  }
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-khuynmi__section, .page-khuynmi__card, .page-khuynmi__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuynmi__cta-buttons,
  .page-khuynmi__button-group,
  .page-khuynmi__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Ensure contrast for dark background sections */
.page-khuynmi__dark-section {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

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

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

/* Ensure contrast for light background sections */
.page-khuynmi__light-bg {
  background-color: var(--background-light);
  color: var(--dark-text-color);
}

/* Placeholder for darken function */
/* This would typically be handled by a preprocessor or JS */
.page-khuynmi__cta-button:hover,
.page-khuynmi__card-button:hover {
  background: #1e87b7; /* Slightly darker primary color */
}

/* Global image rules for no filter */
.page-khuynmi img {
  filter: none; /* Explicitly disable any filters */
}