/* style/khuynmi.css */

:root {
  --khuynmi-primary-color: #11A84E;
  --khuynmi-secondary-color: #22C768;
  --khuynmi-text-main: #F2FFF6;
  --khuynmi-text-secondary: #A7D9B8;
  --khuynmi-bg-dark: #08160F;
  --khuynmi-card-bg: #11271B;
  --khuynmi-border-color: #2E7A4E;
  --khuynmi-glow-color: #57E38D;
  --khuynmi-gold-color: #F2C14E;
  --khuynmi-divider-color: #1E3A2A;
  --khuynmi-deep-green: #0A4B2C;
  --khuynmi-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

/* HERO Section */
.page-khuynmi__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  overflow: hidden;
  text-align: center;
}

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

.page-khuynmi__hero-content {
  max-width: 900px;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  border-radius: 10px;
  margin-top: -100px; /* Slightly overlap image for visual effect, but text is below */
  position: relative;
  z-index: 1;
}

.page-khuynmi__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--khuynmi-text-main);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__hero-description {
  font-size: 1.15rem;
  color: var(--khuynmi-text-secondary);
  margin-bottom: 30px;
}

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

.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-khuynmi__btn-primary {
  background: var(--khuynmi-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-khuynmi__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

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

.page-khuynmi__btn-secondary:hover {
  background-color: var(--khuynmi-secondary-color);
  color: var(--khuynmi-bg-dark);
  transform: translateY(-3px);
}

/* General Section Styling */
.page-khuynmi__introduction-section,
.page-khuynmi__featured-promos-section,
.page-khuynmi__terms-conditions-section,
.page-khuynmi__how-to-join-section,
.page-khuynmi__faq-section,
.page-khuynmi__cta-bottom-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--khuynmi-divider-color);
}

.page-khuynmi__section-title {
  font-size: 2.5rem;
  color: var(--khuynmi-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-khuynmi__section-description {
  font-size: 1.1rem;
  color: var(--khuynmi-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Promo Overview Grid */
.page-khuynmi__promo-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuynmi__card {
  background-color: var(--khuynmi-card-bg);
  border: 1px solid var(--khuynmi-border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--khuynmi-text-main);
}

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

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

.page-khuynmi__card-text {
  font-size: 1rem;
  color: var(--khuynmi-text-secondary);
}

/* Featured Promos Section */
.page-khuynmi__promo-item {
  display: flex;
  align-items: center;
  background-color: var(--khuynmi-card-bg);
  border-radius: 12px;
  margin-bottom: 60px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--khuynmi-border-color);
}

.page-khuynmi__promo-item:last-of-type {
  margin-bottom: 0;
}

.page-khuynmi__promo-item--reverse {
  flex-direction: row-reverse;
}

.page-khuynmi__promo-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-khuynmi__promo-content {
  flex: 1;
  padding: 40px;
  color: var(--khuynmi-text-main);
}

.page-khuynmi__promo-title {
  font-size: 2rem;
  color: var(--khuynmi-secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-khuynmi__promo-text {
  font-size: 1.05rem;
  color: var(--khuynmi-text-secondary);
  margin-bottom: 15px;
}

.page-khuynmi__promo-subtitle {
  font-size: 1.3rem;
  color: var(--khuynmi-text-main);
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Terms and Conditions Section */
.page-khuynmi__terms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuynmi__terms-item {
  background-color: var(--khuynmi-card-bg);
  border: 1px solid var(--khuynmi-border-color);
  border-radius: 12px;
  padding: 30px;
  color: var(--khuynmi-text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__terms-subtitle {
  font-size: 1.4rem;
  color: var(--khuynmi-secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-khuynmi__terms-text {
  font-size: 1rem;
  color: var(--khuynmi-text-secondary);
}

/* How to Join Section */
.page-khuynmi__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-khuynmi__step-item {
  display: flex;
  align-items: flex-start;
  background-color: var(--khuynmi-card-bg);
  border: 1px solid var(--khuynmi-border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--khuynmi-gold-color);
  margin-right: 20px;
  line-height: 1;
}

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

.page-khuynmi__step-title {
  font-size: 1.6rem;
  color: var(--khuynmi-secondary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-khuynmi__step-text {
  font-size: 1rem;
  color: var(--khuynmi-text-secondary);
  margin-bottom: 15px;
}

.page-khuynmi__btn-text-link {
  color: var(--khuynmi-secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-khuynmi__btn-text-link:hover {
  color: var(--khuynmi-gold-color);
}

/* FAQ Section */
.page-khuynmi__faq-list {
  margin-top: 40px;
}

.page-khuynmi__faq-item {
  background-color: var(--khuynmi-card-bg);
  border: 1px solid var(--khuynmi-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--khuynmi-text-main);
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--khuynmi-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-khuynmi__faq-question:hover {
  background-color: var(--khuynmi-deep-green);
}

.page-khuynmi__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--khuynmi-secondary-color);
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
  color: var(--khuynmi-gold-color);
}

.page-khuynmi__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--khuynmi-text-secondary);
  line-height: 1.7;
}

/* CTA Bottom Section */
.page-khuynmi__cta-bottom-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-khuynmi__cta-bottom-section .page-khuynmi__section-title {
  color: var(--khuynmi-secondary-color);
}

.page-khuynmi__cta-bottom-section .page-khuynmi__section-description {
  color: var(--khuynmi-text-secondary);
}

/* Universal image settings */
.page-khuynmi img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuynmi__hero-content {
    margin-top: -80px;
    padding: 25px 20px;
  }

  .page-khuynmi__main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .page-khuynmi__hero-description {
    font-size: 1.05rem;
  }

  .page-khuynmi__promo-item {
    flex-direction: column;
  }

  .page-khuynmi__promo-item--reverse {
    flex-direction: column;
  }

  .page-khuynmi__promo-image {
    max-width: 100%;
  }

  .page-khuynmi__promo-content {
    padding: 30px;
  }

  .page-khuynmi__promo-title {
    font-size: 1.75rem;
  }

  .page-khuynmi__section-title {
    font-size: 2rem;
  }

  .page-khuynmi__section-description {
    font-size: 1rem;
  }

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

  .page-khuynmi__step-title {
    font-size: 1.4rem;
  }

  .page-khuynmi__faq-question {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-khuynmi__hero-section {
    padding-top: 10px !important; /* Adhere to ~10px top padding */
    padding-bottom: 20px;
  }

  .page-khuynmi__hero-content {
    margin-top: -60px;
    padding: 20px 15px;
  }

  .page-khuynmi__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-khuynmi__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* Buttons and Button Containers */
  .page-khuynmi__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  /* General Section Styling */
  .page-khuynmi__introduction-section,
  .page-khuynmi__featured-promos-section,
  .page-khuynmi__terms-conditions-section,
  .page-khuynmi__how-to-join-section,
  .page-khuynmi__faq-section,
  .page-khuynmi__cta-bottom-section {
    padding: 40px 0;
  }

  .page-khuynmi__container {
    padding: 0 15px;
  }

  .page-khuynmi__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-khuynmi__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* Promo Overview Grid */
  .page-khuynmi__promo-overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuynmi__card {
    padding: 25px;
  }

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

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

  /* Featured Promos Section */
  .page-khuynmi__promo-item {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .page-khuynmi__promo-item--reverse {
    flex-direction: column;
  }

  .page-khuynmi__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuynmi__promo-content {
    padding: 25px;
  }

  .page-khuynmi__promo-title {
    font-size: 1.6rem;
  }

  .page-khuynmi__promo-text {
    font-size: 0.95rem;
  }

  .page-khuynmi__promo-subtitle {
    font-size: 1.2rem;
    margin-top: 20px;
  }

  /* Terms and Conditions Section */
  .page-khuynmi__terms-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuynmi__terms-item {
    padding: 25px;
  }

  .page-khuynmi__terms-subtitle {
    font-size: 1.3rem;
  }

  .page-khuynmi__terms-text {
    font-size: 0.9rem;
  }

  /* How to Join Section */
  .page-khuynmi__steps-list {
    gap: 20px;
  }

  .page-khuynmi__step-item {
    padding: 20px;
  }

  .page-khuynmi__step-number {
    font-size: 2rem;
    margin-right: 15px;
  }

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

  .page-khuynmi__step-text {
    font-size: 0.9rem;
  }

  /* FAQ Section */
  .page-khuynmi__faq-question {
    padding: 18px 20px;
    font-size: 1.1rem;
  }

  .page-khuynmi__faq-toggle {
    font-size: 1.5rem;
  }

  .page-khuynmi__faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 0.9rem;
  }

  /* CTA Bottom Section */
  .page-khuynmi__cta-bottom-section {
    padding-bottom: 50px;
  }

  /* Universal image settings */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuynmi__section,
  .page-khuynmi__card,
  .page-khuynmi__container,
  .page-khuynmi__promo-item,
  .page-khuynmi__terms-item,
  .page-khuynmi__step-item,
  .page-khuynmi__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}