/* style/khuynmi.css */

/* General styles for the promotions page */
.page-khuynmi {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F); /* Body background color */
  line-height: 1.6;
  font-size: 16px;
}

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

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--background, #08160F);
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width of the image */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-khuynmi__hero-content {
  text-align: center;
  padding: 0 20px 60px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  color: var(--text-main, #F2FFF6);
}

.page-khuynmi__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E); /* Gold for main title */
}

.page-khuynmi__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-khuynmi__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to screen width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-khuynmi__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-khuynmi__btn-secondary:hover {
  background-color: var(--deep-green, #0A4B2C);
  transform: translateY(-2px);
}

/* Section General Styles */
.page-khuynmi__intro-section,
.page-khuynmi__promotions-grid,
.page-khuynmi__how-to-claim,
.page-khuynmi__terms-conditions,
.page-khuynmi__faq-section,
.page-khuynmi__cta-final {
  padding: 60px 0;
  background-color: var(--background, #08160F);
  border-top: 1px solid var(--divider, #1E3A2A);
}

.page-khuynmi__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold, #F2C14E);
  line-height: 1.3;
}

.page-khuynmi__text-block {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuynmi__text-block a {
  color: var(--main-color, #11A84E);
  text-decoration: underline;
}

.page-khuynmi__text-block a:hover {
  color: var(--gold, #F2C14E);
}

/* Feature List (Intro Section) */
.page-khuynmi__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

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

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

.page-khuynmi__feature-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Promotions Grid */
.page-khuynmi__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-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #2E7A4E);
  display: flex;
  flex-direction: column;
}

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

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

.page-khuynmi__card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
  line-height: 1.4;
}

.page-khuynmi__card-title a {
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
}

.page-khuynmi__card-title a:hover {
  color: var(--gold, #F2C14E);
}

.page-khuynmi__card-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuynmi__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
  align-self: flex-start; /* Align button to start of card content */
}

/* 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-card {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #2E7A4E);
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-khuynmi__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--glow, #57E38D);
}

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

.page-khuynmi__step-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

.page-khuynmi__step-text a {
  color: var(--main-color, #11A84E);
  text-decoration: underline;
}

.page-khuynmi__step-text a:hover {
  color: var(--gold, #F2C14E);
}

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

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

.page-khuynmi__terms-item {
  background-color: var(--card-bg, #11271B);
  padding: 20px 25px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1rem;
  border: 1px solid var(--divider, #1E3A2A);
  position: relative;
  padding-left: 40px; /* Space for custom bullet */
}

.page-khuynmi__terms-item::before {
  content: "•";
  color: var(--main-color, #11A84E);
  font-size: 1.5rem;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

.page-khuynmi__text-secondary {
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95rem;
  text-align: center;
}

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

.page-khuynmi__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  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;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Slightly darker for question */
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

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

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

.page-khuynmi__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: var(--gold, #F2C14E);
}

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

.page-khuynmi__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  border-top: 1px solid var(--divider, #1E3A2A);
  background-color: var(--card-bg, #11271B);
}

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

.page-khuynmi__faq-answer a {
  color: var(--main-color, #11A84E);
  text-decoration: underline;
}

.page-khuynmi__faq-answer a:hover {
  color: var(--gold, #F2C14E);
}

/* Final CTA Section */
.page-khuynmi__cta-final {
  text-align: center;
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C); /* Use a darker green for emphasis */
  border-top: 1px solid var(--divider, #1E3A2A);
}

.page-khuynmi__cta-final .page-khuynmi__section-title {
  color: var(--text-main, #F2FFF6); /* White title on dark green */
}

.page-khuynmi__cta-final .page-khuynmi__text-block {
  color: var(--text-secondary, #A7D9B8);
}

.page-khuynmi__cta-final .page-khuynmi__text-block a {
  color: var(--gold, #F2C14E);
}

.page-khuynmi__cta-final .page-khuynmi__cta-buttons {
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-khuynmi__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

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

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

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

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

  .page-khuynmi__main-title {
    font-size: 2.2rem;
  }

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

  .page-khuynmi__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Images and their containers mobile responsiveness */
  .page-khuynmi img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-khuynmi__hero-image-wrapper,
  .page-khuynmi__promotion-card,
  .page-khuynmi__feature-item,
  .page-khuynmi__step-card,
  .page-khuynmi__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-khuynmi__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-khuynmi__text-block {
    font-size: 1rem;
  }

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

  .page-khuynmi__card-image {
    height: 200px;
  }

  .page-khuynmi__card-title {
    font-size: 1.2rem;
  }

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

  .page-khuynmi__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
  
  .page-khuynmi__hero-section,
  .page-khuynmi__intro-section,
  .page-khuynmi__promotions-grid,
  .page-khuynmi__how-to-claim,
  .page-khuynmi__terms-conditions,
  .page-khuynmi__faq-section,
  .page-khuynmi__cta-final {
    padding: 40px 0; /* Adjust section padding */
  }
}

/* Ensure anchor links within sections are visible */
.page-khuynmi a {
  color: var(--main-color, #11A84E);
  text-decoration: none;
}

.page-khuynmi a:hover {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

/* For details/summary elements to ensure proper styling */
.page-khuynmi details summary {
  list-style: none; /* Hide default marker */
}
.page-khuynmi details summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}