/* style/khuynmi.css */

/* Base styles for the page, assuming a dark body background from shared.css */
.page-khuynmi {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Main text color */
  background-color: #08160F; /* Background color */
  line-height: 1.6;
  box-sizing: border-box;
}

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

.page-khuynmi__section-padding {
  padding: 60px 0;
}

.page-khuynmi__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #F2C14E; /* Gold color for main titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-khuynmi__text-block {
  font-size: 16px;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #08160F;
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-khuynmi__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-khuynmi__main-title {
  font-size: clamp(32px, 5vw, 50px);
  color: #F2C14E; /* Gold for H1 */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-khuynmi__hero-description {
  font-size: 18px;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
  line-height: 1.7;
}

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

.page-khuynmi__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Light text for dark button */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-khuynmi__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-khuynmi__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* Promotions Overview */
.page-khuynmi__promotions-overview .page-khuynmi__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Promotion Types */
.page-khuynmi__dark-section {
  background-color: #11271B; /* Card BG color for dark section */
}

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

.page-khuynmi__card {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuynmi__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px;
}

.page-khuynmi__card-title {
  font-size: 24px;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.page-khuynmi__card-text {
  font-size: 15px;
  color: #A7D9B8;
  margin-bottom: 25px;
  flex-grow: 1;
  text-align: justify;
}

/* How to Participate */
.page-khuynmi__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuynmi__step-card {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-khuynmi__step-title {
  font-size: 22px;
  color: #2AD16F;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-khuynmi__step-description {
  font-size: 15px;
  color: #A7D9B8;
  margin-bottom: 25px;
  flex-grow: 1;
  text-align: justify;
}

/* Important Notes */
.page-khuynmi__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuynmi__list-item {
  background-color: #0A4B2C; /* Deep Green */
  border-left: 5px solid #2AD16F;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 16px;
  color: #F2FFF6;
  line-height: 1.6;
}

.page-khuynmi__list-item strong {
  color: #F2C14E;
}

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

.page-khuynmi__feature-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__feature-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px;
}

.page-khuynmi__feature-title {
  font-size: 22px;
  color: #F2C14E;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-khuynmi__feature-description {
  font-size: 15px;
  color: #A7D9B8;
  text-align: justify;
}

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

.page-khuynmi__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: #1E3A2A; /* Divider color for question background */
  color: #F2FFF6;
  position: relative;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-khuynmi__faq-question:hover {
  background-color: #2E7A4E;
}

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

.page-khuynmi__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  margin-left: 15px;
  color: #2AD16F;
}

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

.page-khuynmi__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 15px;
  color: #A7D9B8;
  line-height: 1.7;
  text-align: justify;
}

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

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

/* Final CTA */
.page-khuynmi__cta-final {
  text-align: center;
  background-color: #0A4B2C;
  padding: 80px 0;
  border-top: 1px solid #2E7A4E;
}

.page-khuynmi__cta-content .page-khuynmi__section-title {
  color: #F2C14E;
}

.page-khuynmi__cta-content .page-khuynmi__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-khuynmi__card-grid,
  .page-khuynmi__steps-grid,
  .page-khuynmi__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-khuynmi__section-padding {
    padding: 40px 0;
  }

  .page-khuynmi__hero-section {
    padding-bottom: 40px;
  }

  .page-khuynmi__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-khuynmi__hero-description {
    font-size: 16px;
  }

  .page-khuynmi__section-title {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 30px;
  }

  .page-khuynmi__text-block {
    font-size: 15px;
  }

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

  /* Mobile specific overrides for images, videos, buttons and their containers */
  .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__hero-section,
  .page-khuynmi__promotions-overview,
  .page-khuynmi__promotion-types,
  .page-khuynmi__how-to-participate,
  .page-khuynmi__important-notes,
  .page-khuynmi__why-choose,
  .page-khuynmi__faq-section,
  .page-khuynmi__cta-final,
  .page-khuynmi__steps-grid,
  .page-khuynmi__feature-grid,
  .page-khuynmi__card-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-khuynmi__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .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;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  .page-khuynmi__cta-content .page-khuynmi__btn-primary {
    margin-top: 20px; /* Spacing for the final CTA button */
  }

  .page-khuynmi__hero-content .page-khuynmi__btn-primary {
    margin-top: 20px;
  }

  .page-khuynmi__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-khuynmi__list-item {
    font-size: 15px;
  }

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

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

@media (max-width: 480px) {
  .page-khuynmi__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-khuynmi__section-title {
    font-size: clamp(20px, 6vw, 30px);
  }
  .page-khuynmi__hero-description {
    font-size: 15px;
  }
}