/* style/khuynmi.css */

/* Custom properties for color palette */
:root {
  --main-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-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* General styles for the promotions page, ensuring contrast with dark body background */
.page-khuynmi {
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  background-color: var(--background, #08160F); /* Ensure main background is dark */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-khuynmi__section-title {
  font-size: 2.5em;
  color: var(--gold, #F2C14E); /* Using gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-khuynmi__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
  text-align: justify;
}

.page-khuynmi__highlight {
  color: var(--gold, #F2C14E);
  font-weight: bold;
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  background-color: var(--background, #08160F); /* Ensure a consistent dark background */
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-khuynmi__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure hero image is not too small */
}

.page-khuynmi__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--text-main, #F2FFF6);
}

.page-khuynmi__main-title {
  font-size: 3.2em;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-khuynmi__description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

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

.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.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-khuynmi__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #ffffff;
  border: none;
}

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

.page-khuynmi__btn-secondary {
  background: transparent;
  color: var(--main-color, #11A84E); /* Use main color for text */
  border: 2px solid var(--main-color, #11A84E);
}

.page-khuynmi__btn-secondary:hover {
  background-color: var(--main-color, #11A84E);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* Promos Overview Section */
.page-khuynmi__promos-overview-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B); /* Darker background for this section */
  color: var(--text-main, #F2FFF6);
}

.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, #11271B); /* Consistent card background */
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--text-main, #F2FFF6);
}

.page-khuynmi__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-khuynmi__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-khuynmi__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  align-self: flex-start; /* Align button to start */
}

/* How-To Section */
.page-khuynmi__how-to-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

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

.page-khuynmi__step-card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuynmi__step-icon {
  width: 60px;
  height: 60px;
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--glow, #57E38D);
}

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

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

/* Terms Section */
.page-khuynmi__terms-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

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

.page-khuynmi__terms-item {
  background-color: var(--background, #08160F); /* Slightly different background for list items */
  border-left: 5px solid var(--main-color, #11A84E);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__terms-item strong {
  color: var(--gold, #F2C14E);
}

/* Why Choose Section */
.page-khuynmi__why-choose-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

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

.page-khuynmi__benefit-card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main, #F2FFF6);
}

.page-khuynmi__benefit-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-khuynmi__benefit-text {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-khuynmi__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

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

.page-khuynmi__faq-item {
  background-color: var(--background, #08160F);
  border: 1px solid var(--divider-color, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #F2FFF6);
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--gold, #F2C14E);
  list-style: none; /* For details/summary */
}

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

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

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

.page-khuynmi__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
}

/* Call to Action Section (Bottom) */
.page-khuynmi__call-to-action-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  text-align: center;
  color: var(--text-main, #F2FFF6);
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-khuynmi__main-title {
    font-size: 2.8em;
  }
  .page-khuynmi__description {
    font-size: 1.2em;
  }
  .page-khuynmi__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-khuynmi__hero-section {
    padding-bottom: 40px;
  }
  .page-khuynmi__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Clamp for mobile H1 */
  }
  .page-khuynmi__description {
    font-size: 1em;
  }
  .page-khuynmi__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .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: 12px 20px;
    font-size: 1em;
  }

  .page-khuynmi__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-khuynmi__text-block {
    font-size: 0.95em;
  }

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

  .page-khuynmi__promo-card-image,
  .page-khuynmi__benefit-card-image {
    height: 180px; /* Adjust image height for smaller screens */
  }

  .page-khuynmi__promo-card-title {
    font-size: 1.3em;
  }
  .page-khuynmi__step-title {
    font-size: 1.4em;
  }
  .page-khuynmi__benefit-title {
    font-size: 1.2em;
  }

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

  /* 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;
  }
  
  /* Video containers mobile adaptation */
  .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;
  }
  
  /* Video section top padding for mobile */
  .page-khuynmi__video-section {
    padding-top: 10px !important;
  }

  /* General containers for mobile to prevent overflow */
  .page-khuynmi__container,
  .page-khuynmi__promo-grid,
  .page-khuynmi__steps-grid,
  .page-khuynmi__benefits-grid,
  .page-khuynmi__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific button container for flex wrap */
  .page-khuynmi__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }
}

/* Ensure all text elements inherit appropriate colors */
.page-khuynmi h1, .page-khuynmi h2, .page-khuynmi h3, .page-khuynmi h4, .page-khuynmi h5, .page-khuynmi h6 {
  color: var(--gold, #F2C14E); /* Titles generally use gold */
}
.page-khuynmi p {
  color: var(--text-secondary, #A7D9B8);
}
.page-khuynmi__main-title {
  color: var(--gold, #F2C14E);
}
.page-khuynmi__description {
  color: var(--text-secondary, #A7D9B8);
}

/* Ensure text contrast for dark backgrounds */
.page-khuynmi__intro-section, .page-khuynmi__how-to-section, .page-khuynmi__why-choose-section, .page-khuynmi__call-to-action-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}
.page-khuynmi__promos-overview-section, .page-khuynmi__terms-section, .page-khuynmi__faq-section {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

/* Ensure card backgrounds and text colors */
.page-khuynmi__promo-card,
.page-khuynmi__step-card,
.page-khuynmi__benefit-card {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

/* FAQ item background */
.page-khuynmi__faq-item {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

/* Ensure terms list item background */
.page-khuynmi__terms-item {
  background-color: var(--background, #08160F);
}

/* Contrast fix classes, though not actively used with current palette */
.page-khuynmi__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-khuynmi__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}