/* style/khuynmi.css */
.page-khuynmi {
  color: #ffffff; /* Body background is dark #1a1a2e, so use light text */
}

.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 */
  min-height: 500px;
  overflow: hidden;
}

.page-khuynmi__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

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

.page-khuynmi__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.5); /* Slightly darker overlay for text readability */
  padding: 30px;
  border-radius: 8px;
}

.page-khuynmi__main-title {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  /* No fixed font-size for H1, relying on relative sizing and media queries */
}

.page-khuynmi__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  cursor: pointer;
}

.page-khuynmi__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-khuynmi__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-khuynmi__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87b9;
}

/* Sections */
.page-khuynmi__overview-section,
.page-khuynmi__featured-promotions-section,
.page-khuynmi__how-to-claim-section,
.page-khuynmi__terms-section,
.page-khuynmi__faq-section,
.page-khuynmi__join-us-section {
  padding: 60px 0;
}

.page-khuynmi__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-khuynmi__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-khuynmi__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-khuynmi__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: inherit;
}

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

.page-khuynmi__feature-item {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-khuynmi__feature-item .page-khuynmi__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

.page-khuynmi__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

.page-khuynmi__promotion-card .page-khuynmi__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: #26A9E0;
}

.page-khuynmi__promotion-card p {
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-khuynmi__promotion-card .page-khuynmi__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  margin-bottom: 20px;
  align-self: center;
  width: calc(100% - 60px);
}

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

.page-khuynmi__step-item {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-khuynmi__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-khuynmi__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-khuynmi__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* Terms Section */
.page-khuynmi__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuynmi__terms-list li {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-khuynmi__terms-list .page-khuynmi__term-title {
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 5px;
}

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

.page-khuynmi__faq-item {
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-khuynmi__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  color: #333333;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-khuynmi__faq-question .page-khuynmi__faq-qtext {
  color: #26A9E0;
}

.page-khuynmi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-khuynmi__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Floating Buttons */
.page-khuynmi__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-khuynmi__floating-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 50px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.page-khuynmi__floating-btn:hover {
  transform: translateY(-3px);
}

.page-khuynmi__floating-btn--register {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-khuynmi__floating-btn--login {
  background-color: #EA7C07; /* Custom color for login */
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-khuynmi__container {
    padding: 0 15px !important;
  }

  .page-khuynmi__hero-section {
    padding: 40px 15px !important;
    padding-top: 10px !important;
    min-height: 400px;
  }

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

  .page-khuynmi__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }

  .page-khuynmi__hero-description {
    font-size: 1em;
  }

  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important;
  }

  .page-khuynmi__cta-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

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

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

  .page-khuynmi__overview-section,
  .page-khuynmi__featured-promotions-section,
  .page-khuynmi__how-to-claim-section,
  .page-khuynmi__terms-section,
  .page-khuynmi__faq-section,
  .page-khuynmi__join-us-section {
    padding: 40px 0 !important;
  }

  .page-khuynmi__features-grid,
  .page-khuynmi__promotions-grid,
  .page-khuynmi__steps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-khuynmi__promotion-card .page-khuynmi__btn-secondary {
    width: calc(100% - 40px) !important;
  }

  .page-khuynmi__terms-list li {
    padding: 15px !important;
  }

  .page-khuynmi__faq-item summary {
    padding: 15px !important;
    font-size: 1em !important;
  }

  .page-khuynmi__faq-answer {
    padding: 10px 15px 15px !important;
  }

  .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-image-wrapper,
  .page-khuynmi__hero-content,
  .page-khuynmi__feature-item,
  .page-khuynmi__promotion-card,
  .page-khuynmi__step-item,
  .page-khuynmi__faq-item,
  .page-khuynmi__terms-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-khuynmi__floating-buttons {
    flex-direction: row;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 46, 0.95);
    padding: 10px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    justify-content: space-around;
  }

  .page-khuynmi__floating-btn {
    flex: 1;
    margin: 0 5px;
    padding: 10px 15px;
    font-size: 0.9em;
  }
}