.page-khuynmi {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color, will be overridden by section-specific colors */
  background-color: var(--bg-color);
}

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

/* Ensure body padding is handled by shared.css */

.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.5rem);
  font-weight: bold;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

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

.page-khuynmi__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  min-height: 600px;
  overflow: hidden;
  background: var(--bg-color);
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-khuynmi__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  filter: brightness(0.7);
}

.page-khuynmi__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over image slightly for better visual flow */
  padding: 0 20px;
}

.page-khuynmi__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-main-color);
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

.page-khuynmi__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

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

.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-khuynmi__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-khuynmi__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

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

.page-khuynmi__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: var(--text-main-color);
  border-color: var(--text-main-color);
  transform: translateY(-2px);
}

.page-khuynmi__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
  min-width: 150px;
}

.page-khuynmi__dark-bg {
  background-color: var(--bg-color);
  color: var(--text-main-color);
}

.page-khuynmi__light-bg {
  background-color: #0A1F16; /* A slightly lighter dark green to provide contrast from main bg */
  color: var(--text-main-color);
}

.page-khuynmi__overview-section,
.page-khuynmi__terms-section,
.page-khuynmi__faq-section,
.page-khuynmi__cta-final-section {
  padding: 80px 0;
}

.page-khuynmi__featured-promos-section,
.page-khuynmi__how-to-claim-section {
  padding: 80px 0;
}

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

.page-khuynmi__promo-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

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

.page-khuynmi__card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-khuynmi__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-khuynmi__card-title a:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

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

.page-khuynmi__terms-list,
.page-khuynmi__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-khuynmi__terms-item,
.page-khuynmi__step-item {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid var(--divider-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-khuynmi__terms-item strong,
.page-khuynmi__step-title {
  color: var(--gold-color);
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: block;
}

.page-khuynmi__terms-item,
.page-khuynmi__step-description {
  color: var(--text-secondary-color);
  font-size: 1rem;
}

.page-khuynmi__step-description a {
  color: var(--glow-color);
  text-decoration: none;
}

.page-khuynmi__step-description a:hover {
  text-decoration: underline;
}

.page-khuynmi__cta-buttons--center {
  margin-top: 40px;
}

.page-khuynmi__faq-list {
  margin-top: 40px;
}

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

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-main-color);
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
}

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

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

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

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

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

/* Details element native toggle styling */
.page-khuynmi__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-khuynmi__faq-item summary {
  list-style: none;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-khuynmi__container {
    padding: 0 15px;
  }

  .page-khuynmi__hero-section {
    padding: 10px 0 40px 0;
    min-height: 450px;
  }

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

  .page-khuynmi__main-title {
    font-size: 2.2rem;
  }

  .page-khuynmi__subtitle {
    font-size: 1rem;
  }

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

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

  .page-khuynmi__overview-section,
  .page-khuynmi__featured-promos-section,
  .page-khuynmi__terms-section,
  .page-khuynmi__how-to-claim-section,
  .page-khuynmi__faq-section,
  .page-khuynmi__cta-final-section {
    padding: 40px 0;
  }

  .page-khuynmi__section-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }

  .page-khuynmi__text-block {
    font-size: 0.95rem;
  }

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

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

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

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

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

  .page-khuynmi__terms-item strong,
  .page-khuynmi__step-title {
    font-size: 1.05rem;
  }

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

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

  .page-khuynmi__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Mobile image and video responsive adaptation */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-khuynmi video,
  .page-khuynmi__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-khuynmi__section,
  .page-khuynmi__card,
  .page-khuynmi__container,
  .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__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
}