.page-khuynmi {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background); /* Default background for the page */
}

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

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as per rules */
  padding-bottom: 40px;
  overflow: hidden;
  color: var(--text-main);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-khuynmi__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-khuynmi__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--gold);
}

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

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

/* General Section Styles */
.page-khuynmi__intro-section,
.page-khuynmi__promo-types-section,
.page-khuynmi__how-to-claim-section,
.page-khuynmi__faq-section,
.page-khuynmi__cta-section {
  padding: 60px 0;
  background-color: var(--background);
  color: var(--text-main);
}

.page-khuynmi__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-main);
}

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

/* Promotion Cards Grid */
.page-khuynmi__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuynmi__promo-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
}

.page-khuynmi__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-khuynmi__promo-card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main);
  padding: 0 15px;
}

.page-khuynmi__promo-card-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0 15px;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* How to Claim Section */
.page-khuynmi__step-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
}

.page-khuynmi__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.page-khuynmi__step-number {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--glow);
  background-color: var(--deep-green);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 20px;
}

.page-khuynmi__step-content {
  text-align: left;
}

.page-khuynmi__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-main);
}

.page-khuynmi__step-content p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

/* FAQ Section */
.page-khuynmi__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

.page-khuynmi__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider);
}

.page-khuynmi__faq-item summary::-webkit-details-marker,
.page-khuynmi__faq-item summary::marker {
  display: none;
}

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

.page-khuynmi__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: var(--gold);
  transition: transform 0.3s ease;
}

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

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

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

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

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

/* Buttons */
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-khuynmi__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Variables */
:root {
  --main-color: #11A84E;
  --accent-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;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuynmi__hero-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

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

  .page-khuynmi__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.5em);
  }
}

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

  /* HERO 主图区域 */
  .page-khuynmi__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-khuynmi__hero-image-wrapper {
    max-height: 300px;
  }

  .page-khuynmi__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-khuynmi__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-khuynmi__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* 产品展示图区域 & 通用图片与容器 */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-khuynmi__promo-card {
    padding-bottom: 20px;
  }

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

  .page-khuynmi__promo-card-title {
    font-size: 1.3em;
  }

  .page-khuynmi__promo-card-description {
    font-size: 0.95em;
  }

  .page-khuynmi__container,
  .page-khuynmi__section,
  .page-khuynmi__card,
  .page-khuynmi__step-item,
  .page-khuynmi__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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__hero-cta-buttons,
  .page-khuynmi__cta-buttons-center,
  .page-khuynmi__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }

  /* 其他内容模块 */
  .page-khuynmi__intro-section,
  .page-khuynmi__promo-types-section,
  .page-khuynmi__how-to-claim-section,
  .page-khuynmi__faq-section,
  .page-khuynmi__cta-section {
    padding: 40px 0;
  }

  .page-khuynmi__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 20px;
  }

  .page-khuynmi__section-text {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

  .page-khuynmi__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-khuynmi__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-khuynmi__step-content {
    text-align: center;
  }

  .page-khuynmi__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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