/* style/khuynmi.css */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

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

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

/* 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(--deep-navy);
  overflow: hidden;
}

.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: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-khuynmi__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-khuynmi__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-khuynmi__cta-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styles */
.page-khuynmi__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-khuynmi__section:last-of-type {
  border-bottom: none;
}

.page-khuynmi__dark-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-khuynmi__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-khuynmi__text-block {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-align: justify;
}

.page-khuynmi__text-secondary {
  color: var(--text-secondary);
}

/* Grid for Promotion Types */
.page-khuynmi__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuynmi__card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-main);
}

.page-khuynmi__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-khuynmi__card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-khuynmi__card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-khuynmi__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuynmi__btn-secondary:hover {
  background-color: #1144A6;
  transform: translateY(-1px);
}

/* Guide List */
.page-khuynmi__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-khuynmi__guide-list li {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
  font-size: 1.05rem;
  position: relative;
  padding-left: 50px;
}

.page-khuynmi__guide-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 15px;
  top: 15px;
  background-color: var(--gold-color);
  color: var(--deep-navy);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.page-khuynmi__guide-step {
  color: var(--text-main);
}

/* Why Choose List */
.page-khuynmi__reason-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-khuynmi__reason-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px 25px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-size: 1rem;
  position: relative;
  padding-left: 45px;
}

.page-khuynmi__reason-item strong {
  color: var(--text-main);
}

.page-khuynmi__reason-item::before {
  content: '✔';
  color: var(--gold-color);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

/* FAQ Section */
details.page-khuynmi__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-secondary);
}
details.page-khuynmi__faq-item summary.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: rgba(var(--primary-color), 0.5);
}
.page-khuynmi__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-khuynmi__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-khuynmi__faq-item .page-khuynmi__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-navy);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}

/* Final CTA Section */
.page-khuynmi__cta-final-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--primary-color);
  color: #ffffff;
  margin-top: 40px;
}

.page-khuynmi__cta-final-section .page-khuynmi__section-title {
  color: var(--gold-color);
  margin-bottom: 30px;
}

.page-khuynmi__cta-final-section .page-khuynmi__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuynmi__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-khuynmi__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-khuynmi__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-khuynmi__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-khuynmi__hero-image img {
    border-radius: 4px;
  }
  
  .page-khuynmi__cta-button {
    padding: 12px 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__section {
    padding: 40px 0;
  }

  .page-khuynmi__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuynmi__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuynmi__card {
    padding: 20px;
  }

  .page-khuynmi__card-image {
    height: 150px;
  }

  .page-khuynmi__card-title {
    font-size: 1.3rem;
  }

  .page-khuynmi__card-description {
    font-size: 0.9rem;
  }

  .page-khuynmi__btn-secondary {
    font-size: 0.85rem;
    padding: 10px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-khuynmi__guide-list li,
  .page-khuynmi__reason-item {
    font-size: 0.95rem;
    padding: 15px 15px 15px 45px;
  }

  details.page-khuynmi__faq-item summary.page-khuynmi__faq-question { padding: 15px; }
  .page-khuynmi__faq-qtext { font-size: 1rem; }
  .page-khuynmi__faq-toggle { font-size: 20px; width: 24px; }
  details.page-khuynmi__faq-item .page-khuynmi__faq-answer { padding: 0 15px 15px; }

  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuynmi__cta-final-section {
    padding: 50px 15px;
  }
}