/* style/khuynmi.css */

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

.page-khuynmi {
  background-color: var(--khuynmi-background);
  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;
}

.page-khuynmi__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem); /* H1 constraint applies to main titles, not all H2s */
  font-weight: bold;
  color: var(--khuynmi-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

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

.page-khuynmi__text-link {
  color: var(--khuynmi-secondary-color);
  text-decoration: underline;
}

/* Buttons */
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  box-sizing: border-box;
  white-space: nowrap;
}

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

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

.page-khuynmi__btn-secondary {
  background: 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-background);
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
  min-height: 500px;
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

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

.page-khuynmi__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image, but not overlap text on image */
  background: var(--khuynmi-background);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-khuynmi__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 900;
  color: var(--khuynmi-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-khuynmi__hero-description {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  color: var(--khuynmi-text-main);
  margin-bottom: 30px;
}

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

/* Video Section */
.page-khuynmi__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-khuynmi__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  width: 100%; /* Desktop width */
}

.page-khuynmi__video,
.page-khuynmi__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.page-khuynmi__video-cta {
  margin-top: 20px;
}

/* General Intro Section */
.page-khuynmi__general-intro-section {
  padding: 60px 0;
  background-color: var(--khuynmi-card-bg);
}

/* Promotion Types Grid */
.page-khuynmi__promo-types-section {
  padding: 60px 0;
}

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

.page-khuynmi__promo-card {
  background-color: var(--khuynmi-card-bg);
  border: 1px solid var(--khuynmi-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuynmi__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-khuynmi__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

/* VIP Section */
.page-khuynmi__vip-section {
  padding: 60px 0;
  background-color: var(--khuynmi-deep-green);
}

.page-khuynmi__vip-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-khuynmi__vip-text {
  flex: 1;
}

.page-khuynmi__vip-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-khuynmi__vip-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Terms & Conditions Section */
.page-khuynmi__terms-conditions-section {
  padding: 60px 0;
}

/* How To Claim Section */
.page-khuynmi__how-to-claim-section {
  padding: 60px 0;
  background-color: var(--khuynmi-card-bg);
}

.page-khuynmi__how-to-claim-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-khuynmi__how-to-claim-steps {
  flex: 1;
}

.page-khuynmi__ordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
}

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

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

.page-khuynmi__how-to-claim-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-khuynmi__how-to-claim-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* FAQ Section */
.page-khuynmi__faq-section {
  padding: 60px 0;
}

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

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

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--khuynmi-text-main);
  cursor: pointer;
  background-color: var(--khuynmi-deep-green);
  border-bottom: 1px solid var(--khuynmi-divider);
  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-question:hover {
  background-color: var(--khuynmi-primary-color);
}

.page-khuynmi__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

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

/* Final CTA Section */
.page-khuynmi__cta-final-section {
  padding: 60px 0 80px 0;
  text-align: center;
  background-color: var(--khuynmi-deep-green);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuynmi__vip-content,
  .page-khuynmi__how-to-claim-content {
    flex-direction: column;
    text-align: center;
  }

  .page-khuynmi__vip-image-wrapper,
  .page-khuynmi__how-to-claim-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

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

@media (max-width: 768px) {
  .page-khuynmi__container,
  .page-khuynmi__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-khuynmi__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-khuynmi__hero-cta-buttons,
  .page-khuynmi__cta-final-section .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__promo-grid {
    grid-template-columns: 1fr;
  }

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

  .page-khuynmi__video-section {
    padding-top: 10px !important;
  }

  /* Images responsiveness */
  .page-khuynmi img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-khuynmi__section,
  .page-khuynmi__card,
  .page-khuynmi__container,
  .page-khuynmi__promo-card,
  .page-khuynmi__vip-section,
  .page-khuynmi__how-to-claim-section,
  .page-khuynmi__cta-final-section,
  .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; /* Ensure no overflow */
  }

  /* Video responsiveness */
  .page-khuynmi video,
  .page-khuynmi__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}