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

/* style/khuynmi.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-khuynmi {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background); /* Default background color for the page */
}

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

.page-khuynmi__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-khuynmi__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--text-main);
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card B G with transparency */
  border-radius: 10px;
}

.page-khuynmi__main-title {
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: bold;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

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

/* CTA Buttons */
.page-khuynmi__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-khuynmi__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

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

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

.page-khuynmi__btn-secondary:hover {
  background: rgba(242, 255, 246, 0.1);
  transform: translateY(-2px);
}

/* Video Section */
.page-khuynmi__intro-video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--background);
  color: var(--text-main);
}

.page-khuynmi__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto 20px auto;
  border-radius: 10px;
  width: 100%; /* Desktop width */
  box-sizing: border-box;
}

.page-khuynmi__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.page-khuynmi__video-title {
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-khuynmi__video-description {
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* General Sections */
.page-khuynmi__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-khuynmi__section-title {
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.2em;
}

.page-khuynmi__section-description {
  color: var(--text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  line-height: 1.6;
}

/* Promotion Types Section */
.page-khuynmi__promotion-types {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
}

.page-khuynmi__promotion-types .page-khuynmi__section-title,
.page-khuynmi__promotion-types .page-khuynmi__section-description {
  color: #333333; /* Dark text for contrast */
}

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

.page-khuynmi__promo-card {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.page-khuynmi__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-khuynmi__card-title {
  color: var(--text-main);
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-khuynmi__card-text {
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-khuynmi__card-button {
  margin-top: auto; /* Push button to bottom */
}

/* Guide Section */
.page-khuynmi__guide-section {
  padding: 80px 0;
  background-color: var(--background); /* #08160F */
  color: var(--text-main);
}

.page-khuynmi__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-khuynmi__guide-item {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.page-khuynmi__guide-step-title {
  color: var(--text-main);
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-khuynmi__guide-step-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-khuynmi__guide-step-text a {
  color: var(--glow); /* Use glow color for links */
  text-decoration: none;
}

.page-khuynmi__guide-step-text a:hover {
  text-decoration: underline;
}

/* Terms and Conditions Section */
.page-khuynmi__terms-conditions {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
}

.page-khuynmi__terms-conditions .page-khuynmi__section-title,
.page-khuynmi__terms-conditions .page-khuynmi__section-description {
  color: #333333; /* Dark text for contrast */
}

.page-khuynmi__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
  line-height: 1.8;
}

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

/* FAQ Section */
.page-khuynmi__faq-section {
  padding: 80px 0;
  background-color: var(--background); /* #08160F */
  color: var(--text-main);
}

.page-khuynmi__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuynmi__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.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);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-khuynmi__faq-question::-webkit-details-marker {
  display: none;
}

.page-khuynmi__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Lighter border color with transparency */
}

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

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

/* Final CTA Section */
.page-khuynmi__cta-final-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  text-align: center;
}

.page-khuynmi__cta-final-section .page-khuynmi__section-title,
.page-khuynmi__cta-final-section .page-khuynmi__section-description {
  color: #333333; /* Dark text for contrast */
}

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

  .page-khuynmi__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-khuynmi__main-title {
    font-size: 2em;
  }

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

  .page-khuynmi__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    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__intro-video-section {
    padding: 40px 15px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-khuynmi__section-title {
    font-size: 1.8em;
  }

  .page-khuynmi__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-khuynmi__promotion-types,
  .page-khuynmi__guide-section,
  .page-khuynmi__terms-conditions,
  .page-khuynmi__faq-section,
  .page-khuynmi__cta-final-section {
    padding: 50px 0;
  }

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

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

  .page-khuynmi__promo-card,
  .page-khuynmi__guide-item,
  .page-khuynmi__faq-item {
    padding: 20px;
  }

  .page-khuynmi__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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,
  .page-khuynmi__cta-buttons,
  .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;
  }
}

/* Color Contrast Enforcement */
.page-khuynmi__dark-bg {
  background-color: var(--background); /* #08160F */
  color: var(--text-main); /* #F2FFF6 */
}

.page-khuynmi__light-bg {
  background-color: #ffffff; /* White */
  color: #333333; /* Dark gray */
}

.page-khuynmi__promo-card,
.page-khuynmi__guide-item,
.page-khuynmi__faq-item {
  background-color: var(--card-bg); /* #11271B */
  color: var(--text-main); /* #F2FFF6 */
  border: 1px solid var(--border); /* #2E7A4E */
}

/* Ensure links in dark sections are visible */
.page-khuynmi__dark-bg a {
  color: var(--glow); /* #57E38D */
}
.page-khuynmi__dark-bg a:hover {
  text-decoration: underline;
}

/* Specific text color for sections with light background */
.page-khuynmi__promotion-types .page-khuynmi__card-title,
.page-khuynmi__promotion-types .page-khuynmi__card-text,
.page-khuynmi__terms-conditions .page-khuynmi__terms-item {
  color: #333333; /* Ensure dark text on light card background */
}

/* Button colors are already defined with high contrast */