/* style/khuynmi.css */

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

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

.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;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure no image overflow */
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and text */
}

.page-khuynmi__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-khuynmi__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-khuynmi__main-title {
  color: var(--page-khuynmi-text-main);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  font-size: clamp(2em, 5vw, 3.5em); /* Use clamp for responsive H1 font size */
}

.page-khuynmi__description {
  color: var(--page-khuynmi-text-secondary);
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-khuynmi__cta-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-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-khuynmi__btn-primary {
  background: var(--page-khuynmi-btn-gradient);
  color: var(--page-khuynmi-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

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

.page-khuynmi__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__large-cta-button {
  padding: 18px 40px;
  font-size: 1.1em;
  min-width: 220px;
}

/* Sections */
.page-khuynmi__overview-section,
.page-khuynmi__promo-cards-section,
.page-khuynmi__vip-section,
.page-khuynmi__how-to-claim-section,
.page-khuynmi__faq-section,
.page-khuynmi__cta-final-section {
  padding: 80px 0;
}

.page-khuynmi__dark-section {
  background-color: var(--page-khuynmi-bg-card); /* Using Card BG for dark sections */
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__section-heading {
  font-size: 2.5em;
  color: var(--page-khuynmi-color-glow);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-khuynmi__text-block {
  font-size: 1.1em;
  color: var(--page-khuynmi-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* Promo Cards */
.page-khuynmi__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-khuynmi__promo-card {
  background-color: var(--page-khuynmi-bg-card); /* Card BG for dark theme */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--page-khuynmi-text-main);
  border: 1px solid var(--page-khuynmi-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-khuynmi__promo-card h3 {
  font-size: 1.5em;
  color: var(--page-khuynmi-color-glow);
  margin: 20px 20px 10px 20px;
}

.page-khuynmi__promo-card p {
  color: var(--page-khuynmi-text-secondary);
  margin: 0 20px 20px 20px;
  flex-grow: 1; /* Make description take available space */
}

.page-khuynmi__card-button {
  margin: 0 20px 20px 20px;
}

/* VIP Section */
.page-khuynmi__vip-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-khuynmi__vip-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Minimum image size */
}

.page-khuynmi__vip-text {
  flex: 1;
  min-width: 300px;
}

.page-khuynmi__vip-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-khuynmi__vip-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2357E38D"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 18px 18px;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--page-khuynmi-text-main);
  font-size: 1.1em;
}

/* How To Claim Section */
.page-khuynmi__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-khuynmi__steps-list li {
  counter-increment: step-counter;
  margin-bottom: 20px;
  padding-left: 50px;
  position: relative;
  font-size: 1.1em;
  color: var(--page-khuynmi-text-secondary);
}

.page-khuynmi__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--page-khuynmi-color-glow);
  color: var(--page-khuynmi-bg-primary);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-khuynmi__steps-list li strong {
  color: var(--page-khuynmi-text-main);
}

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

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

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--page-khuynmi-text-main);
  background-color: var(--page-khuynmi-color-deep-green);
  border-bottom: 1px solid var(--page-khuynmi-border-color);
  list-style: none; /* For details/summary */
}

.page-khuynmi__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-question {
  border-bottom: 1px solid var(--page-khuynmi-border-color);
}

.page-khuynmi__faq-qtext {
  flex-grow: 1;
}

.page-khuynmi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-khuynmi-color-glow);
}

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

.page-khuynmi__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Final CTA */
.page-khuynmi__cta-final-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--page-khuynmi-bg-primary);
}
.page-khuynmi__cta-final-section .page-khuynmi__section-heading {
  color: var(--page-khuynmi-color-glow);
}
.page-khuynmi__cta-final-section .page-khuynmi__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuynmi__section-heading {
    font-size: 2em;
  }
  .page-khuynmi__hero-content {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .page-khuynmi {
    font-size: 15px;
  }

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

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

  .page-khuynmi__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
    line-height: 1.1;
  }

  .page-khuynmi__description {
    font-size: 1em;
  }

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

  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary,
  .page-khuynmi a[class*="button"],
  .page-khuynmi a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !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;
  }
  .page-khuynmi__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-khuynmi__section-heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-khuynmi__overview-section,
  .page-khuynmi__promo-cards-section,
  .page-khuynmi__vip-section,
  .page-khuynmi__how-to-claim-section,
  .page-khuynmi__faq-section,
  .page-khuynmi__cta-final-section {
    padding: 40px 0;
  }

  .page-khuynmi__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-khuynmi__card-image {
    height: auto; /* Allow height to adjust for smaller screens */
    min-height: 200px !important; /* Ensure minimum size */
  }

  .page-khuynmi__vip-content {
    flex-direction: column;
  }

  .page-khuynmi__vip-image {
    max-width: 100%;
    min-width: 200px !important; /* Ensure minimum size */
  }

  .page-khuynmi__steps-list li {
    padding-left: 40px;
  }
  .page-khuynmi__steps-list li::before {
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

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

  /* Image responsive rules */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }

  /* Video responsive rules (not used on this page, but included for completeness) */
  .page-khuynmi video,
  .page-khuynmi__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-khuynmi__video-section,
  .page-khuynmi__video-container,
  .page-khuynmi__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-khuynmi__video-section {
    padding-top: 10px !important;
  }
}