:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --border-color: #e0e0e0;
  --bg-light: #f9f9f9;
}

.page-khuynmi {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark);
  line-height: 1.6;
  background-color: var(--secondary-color);
}

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

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

.page-khuynmi__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 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 */
  background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Background for hero section container */
  color: var(--text-color-light);
}

.page-khuynmi__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width for flex item */
}

.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 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

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

.page-khuynmi__hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-color-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuynmi__hero-content p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

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

.page-khuynmi__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-khuynmi__btn-primary:hover {
  background: #c76a06; /* Darken login-color */
  border-color: #c76a06;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

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

.page-khuynmi__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Intro Section */
.page-khuynmi__intro-section p {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

/* Promo Types Section */
.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: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-khuynmi__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for visual consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-khuynmi__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-khuynmi__promo-card p {
  font-size: 1rem;
  color: var(--text-color-dark);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Terms Section */
.page-khuynmi__terms-section {
  background-color: var(--bg-light);
}

.page-khuynmi__terms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-khuynmi__term-item {
  background: var(--secondary-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.page-khuynmi__term-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-khuynmi__term-item p {
  font-size: 0.95rem;
  color: var(--text-color-dark);
}

.page-khuynmi__terms-btn {
  margin-top: 40px;
}

/* Guide Section */
.page-khuynmi__guide-section {
  background: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-khuynmi__guide-section p {
  color: var(--text-color-light);
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
}

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

.page-khuynmi__step-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-khuynmi__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: var(--login-color);
  color: var(--text-color-light);
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__step-title {
  font-size: 22px;
  color: var(--text-color-light);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-khuynmi__step-item p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-khuynmi__why-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
  text-align: left;
}

.page-khuynmi__why-list li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--text-color-dark);
}

.page-khuynmi__why-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
}

.page-khuynmi__cta-center {
  margin-top: 50px;
}

/* FAQ Section */
.page-khuynmi__faq-section {
  background-color: var(--bg-light);
}

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

details.page-khuynmi__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
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: var(--bg-light);
}
.page-khuynmi__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-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;
}
details.page-khuynmi__faq-item .page-khuynmi__faq-answer {
  padding: 0 25px 25px;
  background: var(--bg-light);
  border-radius: 0 0 10px 10px;
  font-size: 1rem;
  color: var(--text-color-dark);
  line-height: 1.7;
}

/* Conclusion Section */
.page-khuynmi__conclusion-section p {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuynmi__section-title {
    font-size: 32px;
  }
  .page-khuynmi__hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-khuynmi__hero-content p {
    font-size: 1.05rem;
  }
  .page-khuynmi__promo-card img {
    
  }
  .page-khuynmi__card-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-khuynmi__section {
    padding: 40px 0;
  }
  .page-khuynmi__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-khuynmi__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section Mobile */
  .page-khuynmi__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuynmi__hero-image img {
    border-radius: 8px;
    min-width: 200px !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .page-khuynmi__hero-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-khuynmi__hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-khuynmi__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-khuynmi__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Promo Cards Mobile */
  .page-khuynmi__promo-grid {
    gap: 20px;
  }
  .page-khuynmi__promo-card {
    padding: 25px;
  }
  .page-khuynmi__promo-card img {
    
    min-width: 200px !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .page-khuynmi__card-title {
    font-size: 20px;
  }

  /* Terms Mobile */
  .page-khuynmi__terms-list {
    gap: 20px;
  }
  .page-khuynmi__term-item {
    padding: 20px;
  }
  .page-khuynmi__term-title {
    font-size: 18px;
  }
  .page-khuynmi__terms-btn {
    margin-top: 30px;
    width: 100% !important;
  }

  /* Guide Mobile */
  .page-khuynmi__steps-grid {
    gap: 20px;
  }
  .page-khuynmi__step-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 24px;
  }
  .page-khuynmi__step-title {
    font-size: 20px;
  }

  /* Why Choose Mobile */
  .page-khuynmi__why-list li {
    font-size: 1rem;
    padding-left: 25px;
  }
  .page-khuynmi__why-list li::before {
    font-size: 1rem;
  }
  .page-khuynmi__cta-center .page-khuynmi__cta-button {
    width: 100% !important;
  }

  /* FAQ Mobile */
  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: 24px;
  }
  details.page-khuynmi__faq-item .page-khuynmi__faq-answer {
    padding: 0 20px 20px;
  }

  /* General image responsive */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-khuynmi__intro-section p,
  .page-khuynmi__guide-section p,
  .page-khuynmi__conclusion-section p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-khuynmi__section-title {
    font-size: 24px;
  }
  .page-khuynmi__hero-content h1 {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-khuynmi__hero-content p {
    font-size: 0.95rem;
  }
  .page-khuynmi__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
  .page-khuynmi__promo-card img {
    
  }
  .page-khuynmi__card-title {
    font-size: 18px;
  }
  .page-khuynmi__term-title {
    font-size: 16px;
  }
  .page-khuynmi__step-title {
    font-size: 18px;
  }
  .page-khuynmi__faq-qtext {
    font-size: 15px;
  }
}