/* style/khuynmi.css */

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

/* Base styles for the page content, considering body background is dark (--bg) */
.page-khuynmi {
  background-color: var(--page-khuynmi-background); /* Dark background */
  color: var(--page-khuynmi-text-main); /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-khuynmi__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-khuynmi-divider);
}

.page-khuynmi__section:last-of-type {
  border-bottom: none;
}

.page-khuynmi__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Clamp for responsive H1/H2 */
  color: var(--page-khuynmi-gold); /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0; /* Adjusted for overall padding, body handles header offset */
  padding-top: 10px; /* Small top padding */
  text-align: center;
  overflow: hidden; /* Ensure no overflow from images */
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0; /* Ensure image is behind content if any overlap */
}

.page-khuynmi__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Minimum height for hero image */
}

.page-khuynmi__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image for better flow */
  background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.page-khuynmi__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Responsive H1 */
  color: var(--page-khuynmi-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-khuynmi__hero-description {
  font-size: 1.1em;
  color: var(--page-khuynmi-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-khuynmi__cta-buttons--center {
  margin-top: 40px;
  text-align: center;
}

.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: inline-block; /* Ensure padding works */
  text-align: center;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-khuynmi__btn-primary {
  background: var(--page-khuynmi-btn-gradient);
  color: var(--page-khuynmi-text-main);
  border: 2px solid transparent;
}

.page-khuynmi__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 20px var(--page-khuynmi-glow);
}

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

.page-khuynmi__btn-secondary:hover {
  background: var(--page-khuynmi-primary);
  color: var(--page-khuynmi-text-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Text Blocks */
.page-khuynmi__text-block {
  margin-bottom: 20px;
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__text-block strong {
  color: var(--page-khuynmi-gold);
}

/* Promotion Types Grid */
.page-khuynmi__grid-cards {
  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); /* Dark card background */
  color: var(--page-khuynmi-text-main); /* Light text */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-khuynmi-border);
}

.page-khuynmi__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 15px var(--page-khuynmi-glow);
}

.page-khuynmi__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
  display: block; /* Ensure no extra space below */
}

.page-khuynmi__card-title {
  font-size: 1.5em;
  color: var(--page-khuynmi-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuynmi__card-text {
  font-size: 0.95em;
  color: var(--page-khuynmi-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Allows text to take up available space */
}

/* How to Claim Section */
.page-khuynmi__dark-section {
  background-color: var(--page-khuynmi-deep-green); /* Darker background for contrast */
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__numbered-list,
.page-khuynmi__bullet-list {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-khuynmi__numbered-list .page-khuynmi__list-item {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__numbered-list .page-khuynmi__list-item strong {
  color: var(--page-khuynmi-gold);
}

.page-khuynmi__bullet-list .page-khuynmi__list-item {
  margin-bottom: 10px;
  font-size: 1em;
  color: var(--page-khuynmi-text-secondary);
}

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

.page-khuynmi__benefit-item {
  background-color: var(--page-khuynmi-card-bg);
  color: var(--page-khuynmi-text-main);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  border: 1px solid var(--page-khuynmi-border);
  transition: transform 0.3s ease;
}

.page-khuynmi__benefit-item:hover {
  transform: translateY(-5px);
}

.page-khuynmi__benefit-icon {
  width: 100%; /* Make them scale to fit */
  height: auto;
  max-width: 200px; /* Restrict max size to maintain icon-like appearance but meet min-size */
  margin-bottom: 15px;
  min-width: 200px; /* Enforcing min size for all images */
  min-height: 200px;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.page-khuynmi__benefit-title {
  font-size: 1.3em;
  color: var(--page-khuynmi-gold);
  margin-bottom: 10px;
}

.page-khuynmi__benefit-description {
  font-size: 0.9em;
  color: var(--page-khuynmi-text-secondary);
}


/* 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(--page-khuynmi-card-bg);
  border: 1px solid var(--page-khuynmi-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.page-khuynmi__faq-item[open] {
  background-color: var(--page-khuynmi-deep-green); /* Slightly darker when open */
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-khuynmi-text-main);
  cursor: pointer;
  background-color: var(--page-khuynmi-card-bg);
  border-bottom: 1px solid var(--page-khuynmi-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default summary marker */
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-question {
  background-color: var(--page-khuynmi-deep-green);
  color: var(--page-khuynmi-gold);
  border-bottom: 1px solid var(--page-khuynmi-border);
}

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

.page-khuynmi__faq-qtext {
  flex-grow: 1;
  color: inherit; /* Inherit color from parent */
}

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

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become an 'x' or similar */
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--page-khuynmi-text-secondary);
  background-color: var(--page-khuynmi-deep-green);
}

.page-khuynmi__faq-answer p {
  margin: 0;
  color: var(--page-khuynmi-text-secondary);
}

.page-khuynmi__faq-answer strong {
  color: var(--page-khuynmi-gold);
}


/* Conclusion Section */
.page-khuynmi__conclusion {
  text-align: center;
  padding-bottom: 80px;
}

.page-khuynmi__conclusion .page-khuynmi__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-khuynmi__hero-content {
    margin-top: -50px; /* Adjust overlap */
    padding: 30px;
  }
}

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

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

  .page-khuynmi__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body handles --header-offset, this is just small decorative top padding */
  }

  .page-khuynmi__hero-content {
    margin-top: -30px; /* Further adjust overlap */
    padding: 20px;
    border-radius: 10px;
  }

  .page-khuynmi__main-title {
    font-size: clamp(28px, 7vw, 48px);
    margin-bottom: 15px;
  }

  .page-khuynmi__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-khuynmi__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-khuynmi__grid-cards,
  .page-khuynmi__grid-benefits {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-khuynmi__card {
    padding: 20px;
  }

  .page-khuynmi__card-image {
    height: 180px; /* Adjust card image height */
  }

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

  .page-khuynmi__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image and container responsiveness */
  .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__intro-promotions,
  .page-khuynmi__promotion-types,
  .page-khuynmi__how-to-claim,
  .page-khuynmi__terms-conditions,
  .page-khuynmi__benefits,
  .page-khuynmi__faq-section,
  .page-khuynmi__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific adjustment for hero image wrapper padding */
  .page-khuynmi__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}