/* style/khuynmi.css */

/* General styles */
.page-khuynmi {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default to light text for dark body background */
  background-color: var(--deep-navy-color); /* Inherited from body, but good to define scope */
}

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

.page-khuynmi__section-title {
  font-size: 2.5em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
  font-weight: bold;
}

.page-khuynmi__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--glow);
  border-radius: 2px;
}

.page-khuynmi__paragraph {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
}

.page-khuynmi__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-khuynmi__list-item {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  color: var(--text-secondary);
  text-align: left;
}

.page-khuynmi__list-item::before {
  content: '✓';
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

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

.page-khuynmi__list-text {
  font-size: 1em;
  color: var(--text-secondary);
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 60px 0; /* Adjusted for better spacing, body handles top padding */
}

.page-khuynmi__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text readability, no color change */
}

.page-khuynmi__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-khuynmi__main-title {
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
}

.page-khuynmi__description {
  color: var(--text-main);
  font-size: 1.2em;
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-khuynmi__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid #2B73F6;
}

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

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

.page-khuynmi__btn-secondary:hover {
  background-color: var(--gold);
  color: var(--deep-navy-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__full-width-button {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  display: block;
}

/* Section specific styles */
.page-khuynmi__introduction-section,
.page-khuynmi__benefits-section,
.page-khuynmi__how-to-claim,
.page-khuynmi__faq-section,
.page-khuynmi__final-cta {
  padding: 60px 0;
}

.page-khuynmi__dark-section {
  background-color: var(--card-b-g); /* Dark background for sections */
  color: var(--text-main);
}

.page-khuynmi__dark-section .page-khuynmi__paragraph {
  color: var(--text-secondary);
}

.page-khuynmi__promotions-overview {
  padding: 60px 0;
  background-color: var(--deep-navy-color); /* Ensure consistent dark background */
}

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

.page-khuynmi__promotion-card {
  background-color: var(--card-b-g);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.page-khuynmi__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

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

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

.page-khuynmi__card-button {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 1em;
}

/* How to Claim Section */
.page-khuynmi__step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step-counter;
  margin-top: 40px;
}

.page-khuynmi__step-list .page-khuynmi__list-item {
  background-color: var(--deep-navy-color);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  padding-left: 20px; /* Reset for custom counter */
}

.page-khuynmi__step-list .page-khuynmi__list-item:hover {
  transform: translateY(-5px);
}

.page-khuynmi__step-list .page-khuynmi__list-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--glow);
  color: var(--deep-navy-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  border: 3px solid var(--card-b-g);
  box-shadow: 0 0 15px rgba(79, 168, 255, 0.5);
}

.page-khuynmi__step-list .page-khuynmi__list-title {
  margin-top: 20px;
  font-size: 1.2em;
  color: var(--gold);
}

/* FAQ Section */
.page-khuynmi__faq-list {
  margin-top: 40px;
}

.page-khuynmi__faq-item {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  color: var(--text-main);
  font-weight: bold;
  background-color: var(--card-b-g);
  user-select: none;
  list-style: none; /* For details/summary */
}

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

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

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

.page-khuynmi__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 20px 20px;
}

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

/* Video Section */
.page-khuynmi__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom */
  background-color: var(--deep-navy-color);
  text-align: center;
}

.page-khuynmi__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.page-khuynmi__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-khuynmi__video-caption {
  max-width: 800px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-khuynmi__video-caption .page-khuynmi__paragraph {
  margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-khuynmi__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-khuynmi__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-khuynmi__description {
    font-size: 1em;
  }

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

  .page-khuynmi__paragraph {
    font-size: 1em;
  }

  .page-khuynmi__hero-section,
  .page-khuynmi__introduction-section,
  .page-khuynmi__promotions-overview,
  .page-khuynmi__benefits-section,
  .page-khuynmi__how-to-claim,
  .page-khuynmi__terms-conditions,
  .page-khuynmi__faq-section,
  .page-khuynmi__final-cta {
    padding: 40px 0;
  }

  .page-khuynmi__cta-buttons {
    flex-direction: column;
    gap: 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: 12px 20px !important;
    font-size: 1em !important;
  }

  .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: 15px;
  }

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

  .page-khuynmi__card-image {
    height: auto; /* Allow image to scale with aspect ratio */
  }

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

  .page-khuynmi__step-list .page-khuynmi__list-item {
    padding-top: 40px; /* Adjust for number badge */
  }

  .page-khuynmi__video-section {
    padding-top: 10px !important; /* body has padding-top, this is for internal spacing */
    padding-bottom: 40px;
  }

  .page-khuynmi__video-container {
    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__container {
    padding: 0 15px;
  }

  .page-khuynmi img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-khuynmi__card,
  .page-khuynmi__promotion-card,
  .page-khuynmi__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Color Contrast Enforcement */
:root {
  --deep-navy-color: #08162B;
  --card-b-g: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --gold: #F2C14E;
  --glow: #4FA8FF;
  --border: #244D84;
  --divider: #1B3357;
}

.page-khuynmi__dark-bg {
  color: var(--text-main); /* Deep Navy is dark, so light text */
  background: var(--deep-navy-color);
}

/* Ensure all text elements have appropriate color for dark background */
.page-khuynmi h1,
.page-khuynmi h2,
.page-khuynmi h3,
.page-khuynmi h4,
.page-khuynmi h5,
.page-khuynmi h6 {
  color: var(--text-main); /* Default for headings */
}

.page-khuynmi__section-title {
  color: var(--gold); /* Specific for section titles */
}

.page-khuynmi__card-title {
  color: var(--gold);
}

.page-khuynmi__faq-question {
  color: var(--text-main);
}

.page-khuynmi__faq-toggle {
  color: var(--gold);
}

/* Button colors are already defined with high contrast */
/* Main content area text */
.page-khuynmi__paragraph,
.page-khuynmi__list-text {
  color: var(--text-secondary);
}

/* Ensure contrast for video caption text */
.page-khuynmi__video-caption .page-khuynmi__paragraph {
  color: var(--text-secondary);
}

/* Ensure general link styles are readable */
.page-khuynmi a {
  color: var(--glow); /* Default link color */
  text-decoration: none;
}

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

/* Specific contrast for elements with background-color: var(--card-b-g) */
.page-khuynmi__promotion-card,
.page-khuynmi__faq-item {
  color: var(--text-secondary); /* Text on card background */
}

.page-khuynmi__promotion-card .page-khuynmi__card-title {
  color: var(--gold);
}

.page-khuynmi__promotion-card .page-khuynmi__card-text {
  color: var(--text-secondary);
}

/* Ensure no filter is used on images */
.page-khuynmi img:not(.page-khuynmi__hero-image) {
  filter: none;
}
/* Hero image filter is for darkening, not color change */
.page-khuynmi__hero-image {
  filter: brightness(0.5);
}