/* Base styles for the promotions page */
.page-khuynmi {
  font-family: Arial, sans-serif;
  color: var(--text-main, #FFF3E6); /* Using custom text color */
  background-color: var(--site-bg, #0D0E12); /* Using custom background color */
}

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

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 40px;
  overflow: hidden;
  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;
}

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

.page-khuynmi__hero-content {
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  z-index: 1;
}

.page-khuynmi__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main, #FFF3E6);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__hero-description {
  font-size: clamp(1em, 1.5vw, 1.25em);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-main, #FFF3E6);
  opacity: 0.9;
}

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

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

.page-khuynmi__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 132, 0, 0.4);
}

.page-khuynmi__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 132, 0, 0.6);
}

.page-khuynmi__btn-secondary {
  background: #17191F;
  color: #FFA53A;
  border: 2px solid #FFA53A;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 165, 58, 0.4);
}

/* Intro Section */
.page-khuynmi__intro-section {
  padding: 60px 0;
  background-color: var(--site-bg, #0D0E12);
}

.page-khuynmi__intro-title {
  font-size: 2.5em;
  color: var(--text-main, #FFF3E6);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-khuynmi__intro-text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-main, #FFF3E6);
  opacity: 0.85;
}

/* Promotions Grid Section */
.page-khuynmi__promotions-grid-section {
  padding: 60px 0;
  background-color: var(--card-bg, #17191F);
}

.page-khuynmi__grid-title {
  font-size: 2.5em;
  color: var(--text-main, #FFF3E6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

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

.page-khuynmi__promotion-card {
  background-color: var(--site-bg, #0D0E12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color, #A84F0C);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuynmi__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(255, 132, 0, 0.3);
}

.page-khuynmi__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-khuynmi__card-title {
  font-size: 1.5em;
  color: var(--text-main, #FFF3E6);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.page-khuynmi__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-main, #FFF3E6);
  opacity: 0.8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuynmi__card-button {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 10px rgba(255, 132, 0, 0.3);
}

.page-khuynmi__card-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Terms Section */
.page-khuynmi__terms-section {
  padding: 60px 0;
  background-color: var(--site-bg, #0D0E12);
}

.page-khuynmi__terms-title {
  font-size: 2.5em;
  color: var(--text-main, #FFF3E6);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-khuynmi__terms-intro {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
  color: var(--text-main, #FFF3E6);
  opacity: 0.85;
}

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

.page-khuynmi__terms-item {
  background-color: var(--card-bg, #17191F);
  border: 1px solid var(--border-color, #A84F0C);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main, #FFF3E6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__terms-item strong {
  color: #FFA53A;
}

.page-khuynmi__terms-cta {
  text-align: center;
}

/* FAQ Section */
.page-khuynmi__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg, #17191F);
}

.page-khuynmi__faq-title {
  font-size: 2.5em;
  color: var(--text-main, #FFF3E6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-khuynmi__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-khuynmi__faq-item {
  background-color: var(--site-bg, #0D0E12);
  border: 1px solid var(--border-color, #A84F0C);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.page-khuynmi__faq-item:hover {
  background-color: #1a1c22;
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main, #FFF3E6);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

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

.page-khuynmi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFA53A;
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
  content: '−';
}

.page-khuynmi__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main, #FFF3E6);
  opacity: 0.8;
}

/* CTA Section */
.page-khuynmi__cta-section {
  padding: 60px 0;
  background-color: var(--deep-orange, #D96800);
  text-align: center;
  color: #ffffff;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #ffffff;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuynmi__cta-button {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__cta-button:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */

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

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

  .page-khuynmi__intro-title,
  .page-khuynmi__grid-title,
  .page-khuynmi__terms-title,
  .page-khuynmi__faq-title {
    font-size: 2.2em;
  }

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

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

  .page-khuynmi__cta-title {
    font-size: 2.4em;
  }
}

/* @media (max-width: 768px) - Mobile */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-khuynmi__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-khuynmi__hero-content {
    padding: 20px 15px;
  }

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

  .page-khuynmi__hero-description {
    font-size: clamp(0.9em, 4vw, 1em);
    margin-bottom: 25px;
  }

  .page-khuynmi__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 按钮与按钮容器 */
  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary,
  .page-khuynmi__card-button,
  .page-khuynmi a[class*="button"],
  .page-khuynmi a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-khuynmi__hero-buttons,
  .page-khuynmi__terms-cta,
  .page-khuynmi__cta-section .page-khuynmi__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-khuynmi__intro-section,
  .page-khuynmi__promotions-grid-section,
  .page-khuynmi__terms-section,
  .page-khuynmi__faq-section,
  .page-khuynmi__cta-section {
    padding: 40px 0;
  }

  .page-khuynmi__intro-title,
  .page-khuynmi__grid-title,
  .page-khuynmi__terms-title,
  .page-khuynmi__faq-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-khuynmi__intro-text,
  .page-khuynmi__terms-intro,
  .page-khuynmi__terms-item,
  .page-khuynmi__card-description,
  .page-khuynmi__faq-answer p {
    font-size: 0.95em;
  }

  /* 产品展示图区域 / 通用图片与容器 */
  .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__promotions-grid,
  .page-khuynmi__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

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

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

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

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

  .page-khuynmi__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}