/* style/khuynmi.css */

/* Base styles for page-khuynmi to ensure text color contrasts with body background */
.page-khuynmi {
  color: #ffffff; /* Default light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* General section padding and max-width */
.page-khuynmi__hero-section,
.page-khuynmi__content-area,
.page-khuynmi__call-to-action {
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-khuynmi__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #333333; /* Dark text for light background */
  background: #ffffff; /* Explicitly set light background for content area */
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #000000; /* Fallback for image loading */
  color: #ffffff;
  overflow: hidden;
}

.page-khuynmi__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-khuynmi__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

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

.page-khuynmi__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-khuynmi__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Call to Action Buttons */
.page-khuynmi__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

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

.page-khuynmi__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-khuynmi__btn-primary:hover {
  background: #1e87b3;
  border-color: #1e87b3;
}

.page-khuynmi__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-khuynmi__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-khuynmi__btn-large {
  font-size: 1.25rem;
  padding: 16px 32px;
}

/* Section Titles and Descriptions */
.page-khuynmi__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-khuynmi__section-description {
  font-size: 1.05rem;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Features Grid / Cards */
.page-khuynmi__features-grid,
.page-khuynmi__product-promotions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-khuynmi__feature-card,
.page-khuynmi__promotion-item,
.page-khuynmi__card {
  background: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-khuynmi__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-khuynmi__feature-image,
.page-khuynmi__promotion-image,
.page-khuynmi__vip-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-khuynmi__feature-title,
.page-khuynmi__promotion-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-khuynmi__feature-text,
.page-khuynmi__promotion-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuynmi__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  width: 100%;
}

.page-khuynmi__feature-list li {
  margin-bottom: 8px;
  color: #444444;
  position: relative;
  padding-left: 25px;
}

.page-khuynmi__feature-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-khuynmi__card-btn {
  display: inline-block;
  background: #EA7C07;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-top: auto;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-khuynmi__card-btn:hover {
  background: #c26505;
}

/* VIP Program Section */
.page-khuynmi__vip-benefits {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  margin-bottom: 60px;
}

.page-khuynmi__vip-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 30px;
}

.page-khuynmi__vip-content {
  max-width: 700px;
}

.page-khuynmi__vip-title {
  font-size: 2rem;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 25px;
}

.page-khuynmi__vip-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
}

.page-khuynmi__vip-list li {
  margin-bottom: 12px;
  color: #444444;
  position: relative;
  padding-left: 30px;
  font-size: 1.05rem;
}

.page-khuynmi__vip-list li strong {
  color: #26A9E0;
}

.page-khuynmi__vip-list li::before {
  content: '⭐';
  position: absolute;
  left: 0;
  top: 0;
}

/* Terms and Conditions */
.page-khuynmi__terms-conditions {
  padding: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.page-khuynmi__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-khuynmi__terms-list li {
  margin-bottom: 15px;
  color: #444444;
  font-size: 1.05rem;
  position: relative;
  padding-left: 25px;
}

.page-khuynmi__terms-list li strong {
  color: #26A9E0;
}

.page-khuynmi__terms-list li::before {
  content: '•';
  color: #26A9E0;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  font-size: 1.2em;
}

/* How to Claim Section */
.page-khuynmi__how-to-claim {
  padding: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.page-khuynmi__claim-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-khuynmi__claim-steps li {
  counter-increment: step-counter;
  margin-bottom: 20px;
  color: #444444;
  font-size: 1.05rem;
  position: relative;
  padding-left: 40px;
}

.page-khuynmi__claim-steps li strong {
  color: #26A9E0;
}

.page-khuynmi__claim-steps li::before {
  content: counter(step-counter);
  background: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  font-size: 0.9em;
}

.page-khuynmi__tip {
  background: #f0f8ff;
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  border-radius: 5px;
  color: #333333;
  font-style: italic;
  margin-top: 30px;
}

.page-khuynmi__tip strong {
  color: #26A9E0;
}

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

.page-khuynmi__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #ffffff;
  color: #333333;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-khuynmi__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.page-khuynmi__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-khuynmi__faq-question {
  flex-grow: 1;
  text-align: left;
}

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

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
  transform: rotate(45deg);
}

.page-khuynmi__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
  text-align: left;
}

/* Call to Action Section at bottom */
.page-khuynmi__call-to-action {
  background: #26A9E0;
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 12px;
  margin: 60px auto;
  max-width: 1200px;
}

.page-khuynmi__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-khuynmi__cta-description {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuynmi__hero-content {
    padding: 15px;
  }
  .page-khuynmi__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-khuynmi__hero-description {
    font-size: 1rem;
  }
  .page-khuynmi__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-khuynmi__vip-benefits {
    flex-direction: column;
  }
  .page-khuynmi__vip-image {
    margin-bottom: 20px;
  }
}

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

  /* General mobile padding */
  .page-khuynmi__hero-section,
  .page-khuynmi__content-area,
  .page-khuynmi__call-to-action {
    padding: 20px 15px !important;
  }

  /* Mobile image responsiveness */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
  }
  
  /* Mobile button responsiveness */
  .page-khuynmi__cta-button,
  .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 !important;
    padding-right: 15px !important;
  }
  
  /* Button containers */
  .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: 0 !important;
    padding-right: 0 !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    overflow: hidden !important;
  }

  .page-khuynmi__cta-buttons > * {
    width: 100%;
  }

  /* Card and section containers */
  .page-khuynmi__section,
  .page-khuynmi__card,
  .page-khuynmi__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  .page-khuynmi__hero-section {
    padding-bottom: 40px;
  }

  .page-khuynmi__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-khuynmi__hero-description {
    font-size: 0.95rem;
  }
  .page-khuynmi__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-khuynmi__section-description {
    margin-bottom: 30px;
  }
  .page-khuynmi__features-grid,
  .page-khuynmi__product-promotions {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuynmi__feature-card,
  .page-khuynmi__promotion-item,
  .page-khuynmi__vip-benefits,
  .page-khuynmi__terms-conditions,
  .page-khuynmi__how-to-claim,
  .page-khuynmi__faq-item {
    padding: 20px !important;
  }
  .page-khuynmi__vip-title {
    font-size: 1.5rem;
  }
  .page-khuynmi__cta-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .page-khuynmi__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-khuynmi__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    font-size: 0.95rem;
    padding: 12px 20px;
  }
  .page-khuynmi__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}