/* style/khuynmi.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #FFFFFF;
  --black-color: #000000;
}

/* Body background is var(--black-color) from shared.css, so main content text should be light */
.page-khuynmi {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--secondary-color); /* Light text on dark body background */
  background-color: transparent; /* Rely on body background */
}

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

/* 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;
  background-color: var(--primary-color);
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Fixed height for hero image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-khuynmi__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
  border-radius: 8px;
}

.page-khuynmi__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

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

.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-khuynmi__btn-primary {
  background-color: var(--login-color); /* Use login color for primary CTA */
  color: var(--secondary-color);
  border: 2px solid var(--login-color);
}

.page-khuynmi__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

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

.page-khuynmi__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-khuynmi__btn-center {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Section Titles */
.page-khuynmi__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.page-khuynmi__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Overview Section */
.page-khuynmi__overview-section {
  padding: 80px 0;
  background-color: var(--background-color); /* Light background */
  color: var(--black-color); /* Dark text on light background */
}

.page-khuynmi__overview-section .page-khuynmi__section-title,
.page-khuynmi__overview-section .page-khuynmi__text-block {
  color: var(--black-color);
}

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

.page-khuynmi__card {
  background-color: var(--secondary-color);
  color: var(--black-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-khuynmi__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Promotions List Section */
.page-khuynmi__promotions-list {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--secondary-color); /* Light text on dark background */
}

.page-khuynmi__promotions-list .page-khuynmi__section-title,
.page-khuynmi__promotions-list .page-khuynmi__text-block {
  color: var(--secondary-color);
}

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

.page-khuynmi__promotion-card {
  background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent dark background */
  color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

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

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

.page-khuynmi__promotion-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-khuynmi__promotion-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

/* Terms Section */
.page-khuynmi__terms-section {
  padding: 80px 0;
  background-color: var(--background-color); /* Light background */
  color: var(--black-color); /* Dark text on light background */
}

.page-khuynmi__terms-section .page-khuynmi__section-title,
.page-khuynmi__terms-section .page-khuynmi__text-block {
  color: var(--black-color);
}

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

.page-khuynmi__terms-list li {
  background-color: var(--secondary-color);
  color: var(--black-color);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-khuynmi__terms-list li p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--black-color);
  text-align: left;
}

.page-khuynmi__terms-list li strong {
  color: var(--primary-color);
}

/* How-To-Claim Section */
.page-khuynmi__how-to-claim-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--secondary-color); /* Light text on dark background */
}

.page-khuynmi__how-to-claim-section .page-khuynmi__section-title,
.page-khuynmi__how-to-claim-section .page-khuynmi__text-block {
  color: var(--secondary-color);
}

.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: rgba(0, 0, 0, 0.3);
  color: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuynmi__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--login-color); /* Use login color for step numbers */
  margin-bottom: 15px;
  background: var(--secondary-color);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-khuynmi__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-khuynmi__step-card p {
  font-size: 1rem;
  color: var(--secondary-color);
}

/* FAQ Section */
.page-khuynmi__faq-section {
  padding: 80px 0;
  background-color: var(--background-color); /* Light background */
  color: var(--black-color); /* Dark text on light background */
}

.page-khuynmi__faq-section .page-khuynmi__section-title {
  color: var(--black-color);
}

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

.page-khuynmi__faq-item {
  background-color: var(--secondary-color);
  color: var(--black-color);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--secondary-color);
  color: var(--black-color);
  border-bottom: 1px solid #eee;
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-question {
  border-bottom: 1px solid var(--primary-color);
}

.page-khuynmi__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  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: 15px 25px 20px;
  font-size: 1rem;
  color: #555;
}

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

/* CTA Section */
.page-khuynmi__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color); /* Dark background */
  color: var(--secondary-color); /* Light text on dark background */
}

.page-khuynmi__cta-section .page-khuynmi__section-title,
.page-khuynmi__cta-section .page-khuynmi__text-block {
  color: var(--secondary-color);
}

.page-khuynmi__cta-section .page-khuynmi__btn-primary,
.page-khuynmi__cta-section .page-khuynmi__btn-secondary {
  margin-top: 30px;
  margin-bottom: 15px;
  margin-left: 10px;
  margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuynmi__main-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }
  .page-khuynmi__section-title {
    font-size: 2rem;
  }
  .page-khuynmi__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-khuynmi {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-khuynmi__hero-section,
  .page-khuynmi__overview-section,
  .page-khuynmi__promotions-list,
  .page-khuynmi__terms-section,
  .page-khuynmi__how-to-claim-section,
  .page-khuynmi__faq-section,
  .page-khuynmi__cta-section {
    padding: 40px 0;
  }

  .page-khuynmi__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuynmi__hero-image-wrapper {
    max-height: 400px;
    margin-bottom: 20px;
  }

  .page-khuynmi__hero-image,
  .page-khuynmi__card-image,
  .page-khuynmi__promotion-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-khuynmi__card,
  .page-khuynmi__promotion-card,
  .page-khuynmi__step-card,
  .page-khuynmi__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 20px;
    padding-right: 20px;
  }

  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px !important;
  }

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

  .page-khuynmi__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

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

  .page-khuynmi__feature-cards,
  .page-khuynmi__promotion-grid,
  .page-khuynmi__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuynmi__cta-section .page-khuynmi__btn-primary,
  .page-khuynmi__cta-section .page-khuynmi__btn-secondary {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .page-khuynmi__main-title {
    font-size: clamp(1.2rem, 8vw, 2rem);
  }
  .page-khuynmi__hero-description {
    font-size: 1rem;
  }
  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-khuynmi__section-title {
    font-size: 1.5rem;
  }
  .page-khuynmi__card-title,
  .page-khuynmi__promotion-title,
  .page-khuynmi__step-title {
    font-size: 1.2rem;
  }
  .page-khuynmi__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-khuynmi__faq-answer {
    padding: 10px 20px 15px;
  }
}