.page-khuynmi {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default light text for dark background */
  background-color: var(--background-color, #08160F);
}

.page-khuynmi__dark-bg {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-khuynmi__card {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.page-khuynmi__card:hover {
  transform: translateY(-5px);
}

.page-khuynmi__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold-color, #F2C14E);
  letter-spacing: 1px;
  line-height: 1.2;
}

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

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

.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.5); /* Darken image for text readability */
}

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

.page-khuynmi__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  color: var(--gold-color, #F2C14E);
}

.page-khuynmi__hero-description {
  font-size: clamp(1em, 2vw, 1.3em);
  margin-bottom: 30px;
  color: var(--text-main-color, #F2FFF6);
}

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

.page-khuynmi__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuynmi__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-khuynmi__cta-button--secondary {
  background: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-khuynmi__cta-button--secondary:hover {
  background: var(--deep-green-color, #0A4B2C);
  border-color: var(--primary-color, #11A84E);
  color: #ffffff;
}

.page-khuynmi__why-choose-section,
.page-khuynmi__promo-types-section,
.page-khuynmi__how-to-claim-section,
.page-khuynmi__featured-promos-section,
.page-khuynmi__terms-section,
.page-khuynmi__faq-section,
.page-khuynmi__final-cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-khuynmi__feature-card,
.page-khuynmi__type-card,
.page-khuynmi__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-khuynmi__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-khuynmi__feature-text,
.page-khuynmi__type-text,
.page-khuynmi__step-text {
  color: var(--text-secondary-color, #A7D9B8);
}

.page-khuynmi__read-more-link,
.page-khuynmi__step-cta {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color, #11A84E);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-khuynmi__read-more-link:hover,
.page-khuynmi__step-cta:hover {
  color: var(--gold-color, #F2C14E);
}

.page-khuynmi__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color, #11A84E);
  margin-bottom: 15px;
  background-color: var(--deep-green-color, #0A4B2C);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-khuynmi__promo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-khuynmi__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color, #2E7A4E);
}

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

.page-khuynmi__promo-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold-color, #F2C14E);
}

.page-khuynmi__promo-text {
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-khuynmi__promo-date {
  font-size: 0.9em;
  color: var(--primary-color, #11A84E);
  margin-bottom: 15px;
}

.page-khuynmi__promo-cta {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: opacity 0.3s ease;
}

.page-khuynmi__promo-cta:hover {
  opacity: 0.9;
}

.page-khuynmi__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-khuynmi__terms-item {
  margin-bottom: 10px;
}

.page-khuynmi__terms-footer {
  text-align: center;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-khuynmi__terms-link {
  color: var(--primary-color, #11A84E);
  text-decoration: none;
  font-weight: bold;
}

.page-khuynmi__terms-link:hover {
  color: var(--gold-color, #F2C14E);
  text-decoration: underline;
}

.page-khuynmi__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-khuynmi__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  overflow: hidden;
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--deep-green-color, #0A4B2C);
  user-select: none;
  list-style: none; /* For details tag */
}

.page-khuynmi__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

.page-khuynmi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color, #F2C14E);
  transition: transform 0.3s ease;
}

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

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

.page-khuynmi__final-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Image & Video Responsiveness */
.page-khuynmi img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-khuynmi video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-khuynmi__hero-image-wrapper,
.page-khuynmi__hero-image,
.page-khuynmi__feature-icon,
.page-khuynmi__promo-image {
  box-sizing: border-box;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-khuynmi {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-khuynmi__main-title {
    font-size: clamp(2em, 8vw, 2.5em) !important;
  }

  .page-khuynmi__hero-description {
    font-size: clamp(0.9em, 4vw, 1.1em) !important;
  }

  .page-khuynmi__section-title {
    font-size: 2em !important;
  }

  .page-khuynmi__section-description {
    font-size: 1em !important;
  }

  .page-khuynmi__hero-section,
  .page-khuynmi__why-choose-section,
  .page-khuynmi__promo-types-section,
  .page-khuynmi__how-to-claim-section,
  .page-khuynmi__featured-promos-section,
  .page-khuynmi__terms-section,
  .page-khuynmi__faq-section,
  .page-khuynmi__final-cta-section {
    padding: 30px 15px !important;
  }

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

  .page-khuynmi__cta-button,
  .page-khuynmi__cta-button--primary,
  .page-khuynmi__cta-button--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: 12px 20px !important;
  }

  .page-khuynmi__features-grid,
  .page-khuynmi__types-grid,
  .page-khuynmi__steps-grid,
  .page-khuynmi__promo-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-khuynmi__card {
    padding: 20px !important;
  }

  .page-khuynmi__promo-image {
    height: 200px !important;
  }

  /* Ensure images do not cause horizontal scroll */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure containers holding images/videos don't overflow */
  .page-khuynmi__hero-image-wrapper,
  .page-khuynmi__feature-card,
  .page-khuynmi__promo-card,
  .page-khuynmi__type-card,
  .page-khuynmi__step-card,
  .page-khuynmi__why-choose-section,
  .page-khuynmi__promo-types-section,
  .page-khuynmi__how-to-claim-section,
  .page-khuynmi__featured-promos-section,
  .page-khuynmi__terms-section,
  .page-khuynmi__faq-section,
  .page-khuynmi__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-khuynmi__faq-answer {
    padding: 0 20px 15px 20px !important;
  }
}