/* style/khuynmi.css */
/* Custom Color Variables */
:root {
  --page-khuynmi-primary-color: #11A84E;
  --page-khuynmi-secondary-color: #22C768;
  --page-khuynmi-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-khuynmi-card-bg: #11271B;
  --page-khuynmi-background: #08160F;
  --page-khuynmi-text-main: #F2FFF6;
  --page-khuynmi-text-secondary: #A7D9B8;
  --page-khuynmi-border-color: #2E7A4E;
  --page-khuynmi-glow-color: #57E38D;
  --page-khuynmi-gold-color: #F2C14E;
  --page-khuynmi-divider-color: #1E3A2A;
  --page-khuynmi-deep-green: #0A4B2C;
}

.page-khuynmi {
  font-family: 'Arial', sans-serif;
  color: var(--page-khuynmi-text-main); /* Main text color for dark background */
  background-color: var(--page-khuynmi-background); /* Body background from shared.css is dark, ensure text is light */
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom for overall page */
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: var(--page-khuynmi-deep-green); /* A slightly different dark green for hero background */
}

.page-khuynmi__hero-image {
  width: 100%;
  max-width: 1920px; /* Ensure image is responsive */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and content */
}

.page-khuynmi__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background layers */
}

.page-khuynmi__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  color: var(--page-khuynmi-gold-color); /* Use gold for main title for prominence */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5); /* Subtle glow for gold text */
}

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

.page-khuynmi__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

/* Buttons */
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary,
.page-khuynmi__step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-khuynmi__btn-primary {
  background: var(--page-khuynmi-btn-gradient);
  color: var(--page-khuynmi-text-main); /* White text on dark green gradient */
  border: 2px solid var(--page-khuynmi-glow-color); /* Glow color border */
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.4); /* Subtle glow */
}

.page-khuynmi__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(87, 227, 141, 0.6);
  filter: brightness(1.1);
}

.page-khuynmi__btn-secondary {
  background: transparent;
  color: var(--page-khuynmi-glow-color); /* Green text on transparent/dark background */
  border: 2px solid var(--page-khuynmi-glow-color);
}

.page-khuynmi__btn-secondary:hover {
  background: var(--page-khuynmi-glow-color);
  color: var(--page-khuynmi-background); /* Dark text on green background */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.3);
}

.page-khuynmi__step-btn {
  background: var(--page-khuynmi-secondary-color);
  color: var(--page-khuynmi-background);
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  margin-top: 15px;
}

.page-khuynmi__step-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* General Sections & Containers */
.page-khuynmi__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--page-khuynmi-gold-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-khuynmi__sub-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--page-khuynmi-glow-color);
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  font-weight: 600;
}

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

.page-khuynmi__text-block {
  font-size: 1rem;
  color: var(--page-khuynmi-text-secondary);
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Overview Section */
.page-khuynmi__overview-section {
  background-color: var(--page-khuynmi-background); /* Dark background */
  padding: 60px 0;
}

.page-khuynmi__grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.page-khuynmi__grid-item {
  background-color: var(--page-khuynmi-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-khuynmi-border-color);
}

.page-khuynmi__grid-title {
  font-size: 1.6rem;
  color: var(--page-khuynmi-text-main);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-khuynmi__list {
  list-style: none;
  padding: 0;
}

.page-khuynmi__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--page-khuynmi-text-secondary);
}

.page-khuynmi__list li strong {
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--page-khuynmi-glow-color);
  font-weight: bold;
  font-size: 1.2em;
  top: -2px;
}

.page-khuynmi__image-content {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-khuynmi__card {
  background-color: var(--page-khuynmi-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-khuynmi-border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 220px; /* Ensure cards have consistent height */
}

.page-khuynmi__card-title {
  font-size: 1.4rem;
  color: var(--page-khuynmi-text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-khuynmi__card-text {
  font-size: 0.95rem;
  color: var(--page-khuynmi-text-secondary);
}

/* Featured Promotions */
.page-khuynmi__featured-promotions {
  padding: 60px 0;
  background-color: var(--page-khuynmi-background); /* Dark background */
}

.page-khuynmi__promotion-card {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-khuynmi-border-color);
}

.page-khuynmi__promotion-card.page-khuynmi__dark-bg {
  background-color: var(--page-khuynmi-card-bg);
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__promotion-card.page-khuynmi__light-bg {
  background-color: var(--page-khuynmi-deep-green); /* Slightly lighter dark green */
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__promotion-content {
  flex: 1;
}

.page-khuynmi__promotion-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--page-khuynmi-gold-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-khuynmi__promotion-description {
  font-size: 1.05rem;
  color: var(--page-khuynmi-text-secondary);
  margin-bottom: 25px;
}

.page-khuynmi__promotion-details {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-khuynmi__promotion-details li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--page-khuynmi-text-secondary);
  font-size: 0.95rem;
}

.page-khuynmi__promotion-details li strong {
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__promotion-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--page-khuynmi-glow-color);
  font-weight: bold;
  font-size: 1.2em;
  top: -2px;
}

.page-khuynmi__promotion-image-wrapper {
  flex: 0 0 45%; /* Fixed width for image wrapper */
  max-width: 45%;
}

.page-khuynmi__promotion-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* How To Join Section */
.page-khuynmi__how-to-join-section {
  padding: 60px 0;
  background-color: var(--page-khuynmi-background);
}

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

.page-khuynmi__step-item {
  background-color: var(--page-khuynmi-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-khuynmi-border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push button to bottom */
}

.page-khuynmi__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--page-khuynmi-glow-color);
  margin-bottom: 15px;
  background: var(--page-khuynmi-deep-green);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 2px solid var(--page-khuynmi-glow-color);
}

.page-khuynmi__step-title {
  font-size: 1.5rem;
  color: var(--page-khuynmi-text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-khuynmi__step-description {
  font-size: 0.95rem;
  color: var(--page-khuynmi-text-secondary);
  flex-grow: 1; /* Allow description to take available space */
}

.page-khuynmi__guide-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Terms & Conditions Section */
.page-khuynmi__terms-conditions {
  padding: 60px 0;
  background-color: var(--page-khuynmi-background);
}

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

.page-khuynmi__terms-list li {
  background-color: var(--page-khuynmi-card-bg);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--page-khuynmi-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__terms-list-title {
  font-size: 1.4rem;
  color: var(--page-khuynmi-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-khuynmi__terms-list p {
  font-size: 1rem;
  color: var(--page-khuynmi-text-secondary);
}

/* FAQ Section */
.page-khuynmi__faq-section {
  padding: 60px 0;
  background-color: var(--page-khuynmi-background);
}

.page-khuynmi__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-khuynmi__faq-item {
  background-color: var(--page-khuynmi-card-bg);
  border: 1px solid var(--page-khuynmi-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--page-khuynmi-text-main);
  font-weight: 600;
  background-color: var(--page-khuynmi-deep-green); /* Slightly darker background for summary */
  border-bottom: 1px solid var(--page-khuynmi-divider-color);
  list-style: none; /* Remove default marker for details/summary */
}

.page-khuynmi__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-khuynmi__faq-question::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-khuynmi__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-khuynmi-glow-color);
  transition: transform 0.3s ease;
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-khuynmi__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--page-khuynmi-text-secondary);
  border-top: 1px solid var(--page-khuynmi-divider-color);
}

.page-khuynmi__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-khuynmi__conclusion-section {
  padding: 60px 0;
  background-color: var(--page-khuynmi-background);
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-khuynmi__grid-container {
    grid-template-columns: 1fr;
  }

  .page-khuynmi__promotion-card {
    flex-direction: column;
    text-align: center;
  }

  .page-khuynmi__promotion-card.page-khuynmi__light-bg {
    flex-direction: column-reverse; /* Maintain visual flow for reversed card */
  }

  .page-khuynmi__promotion-image-wrapper {
    max-width: 100%;
    flex: none;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-khuynmi {
    font-size: 16px;
    line-height: 1.6;
  }
}