/* style/khuynmi.css */

/* Custom CSS Variables (assuming they might not be in shared.css, for safety) */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color-dark: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* General styles for the page content, using custom background and text colors */
.page-khuynmi {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color for the page */
  background-color: var(--background-color-dark, #08160F); /* Page background */
}

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

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

.page-khuynmi__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main-color, #F2FFF6);
  line-height: 1.2;
}

.page-khuynmi__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--text-secondary-color, #A7D9B8);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 60px 0; /* Small top padding, then larger bottom */
  background-color: var(--background-color-dark, #08160F);
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it spans full width */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-khuynmi__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-khuynmi__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuynmi__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

.page-khuynmi__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-khuynmi__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: var(--text-main-color, #F2FFF6); /* Text Main */
  border: none;
}

.page-khuynmi__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-khuynmi__btn-secondary {
  background: transparent;
  color: var(--text-main-color, #F2FFF6); /* Text Main */
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-khuynmi__btn-secondary:hover {
  background: var(--border-color, #2E7A4E);
  color: var(--text-main-color, #F2FFF6);
  transform: translateY(-2px);
}

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

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

.page-khuynmi__card {
  background-color: var(--card-bg-color, #11271B); /* Card B G */
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuynmi__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-khuynmi__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  margin: 20px 20px 10px 20px;
}

.page-khuynmi__card-description {
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
  margin: 0 20px 20px 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-khuynmi__card .page-khuynmi__btn-primary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

/* Guide List & Terms List */
.page-khuynmi__guide-list,
.page-khuynmi__terms-list,
.page-khuynmi__benefits-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
}

.page-khuynmi__guide-list li,
.page-khuynmi__terms-list li,
.page-khuynmi__benefits-list li {
  background-color: var(--card-bg-color, #11271B);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-main-color, #F2FFF6);
  border-left: 5px solid var(--glow-color, #57E38D);
}

.page-khuynmi__guide-list li strong {
  color: var(--gold-color, #F2C14E);
}

/* FAQ Section */
.page-khuynmi__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-khuynmi__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main-color, #F2FFF6);
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-question {
  border-bottom: 1px solid var(--glow-color, #57E38D);
}

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

.page-khuynmi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow-color, #57E38D);
}

.page-khuynmi__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-khuynmi__container,
  .page-khuynmi__hero-content,
  .page-khuynmi__section-description,
  .page-khuynmi__guide-list,
  .page-khuynmi__terms-list,
  .page-khuynmi__benefits-list,
  .page-khuynmi__faq-list,
  .page-khuynmi__promotion-grid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-khuynmi__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-khuynmi__section-title {
    font-size: 1.8em;
  }

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

  .page-khuynmi img,
  .page-khuynmi__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure card images maintain aspect ratio */
  .page-khuynmi__card-image {
    height: 200px !important; /* Adjust height for mobile */
  }

  .page-khuynmi__card .page-khuynmi__btn-primary {
    width: calc(100% - 40px) !important;
  }

  .page-khuynmi__guide-list li,
  .page-khuynmi__terms-list li,
  .page-khuynmi__benefits-list li {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-khuynmi__faq-answer {
    font-size: 0.95em;
    padding: 15px;
  }
}