/* style/khuynmi.css */

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

/* Base styles for the page-khuynmi scope */
.page-khuynmi {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background-dark); /* Ensure contrast with body background */
  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;
  text-align: center;
}

.page-khuynmi__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-khuynmi__text-block {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuynmi__text-block a {
  color: var(--glow-color);
  text-decoration: underline;
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-khuynmi__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-khuynmi__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 80px 20px;
  color: var(--text-main);
}

.page-khuynmi__main-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-khuynmi__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 40px;
  color: var(--text-secondary);
}

/* Buttons */
.page-khuynmi__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  min-width: 180px;
}

.page-khuynmi__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* Always white for primary button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-khuynmi__btn-secondary {
  background-color: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-khuynmi__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--background-dark);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
  transform: translateY(-2px);
}

.page-khuynmi__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  min-width: unset;
}

/* Promotion Categories Grid */
.page-khuynmi__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-khuynmi__promotion-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
}

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

.page-khuynmi__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--divider-color);
}

.page-khuynmi__promotion-card h3 {
  font-size: 22px;
  color: var(--text-main);
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-khuynmi__promotion-card p {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-khuynmi__promotion-card .page-khuynmi__btn-primary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

/* How-to-Claim Section */
.page-khuynmi__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-khuynmi__container--flex-reverse {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-khuynmi__content-block {
  flex: 1;
}

.page-khuynmi__image-block {
  flex: 1;
  min-width: 200px;
}

.page-khuynmi__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-khuynmi__numbered-list,
.page-khuynmi__bullet-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-khuynmi__numbered-list li,
.page-khuynmi__bullet-list li {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 30px;
}

.page-khuynmi__numbered-list li strong {
  color: var(--text-main);
}

.page-khuynmi__numbered-list li::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.page-khuynmi__bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--glow-color);
  font-weight: bold;
  font-size: 18px;
}

/* Dark Background Section */
.page-khuynmi__dark-bg {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-khuynmi__dark-bg .page-khuynmi__section-title {
  color: var(--gold-color);
}

.page-khuynmi__dark-bg .page-khuynmi__text-block,
.page-khuynmi__dark-bg .page-khuynmi__bullet-list li {
  color: var(--text-secondary);
}

.page-khuynmi__dark-bg .page-khuynmi__bullet-list li::before {
  color: var(--gold-color);
}

/* FAQ Section */
.page-khuynmi__faq-section {
  text-align: left;
}

.page-khuynmi__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-khuynmi__faq-item[open] {
  background-color: var(--deep-green);
  border-color: var(--primary-color);
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-khuynmi__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--glow-color);
  margin-left: 15px;
}

.page-khuynmi__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* Final CTA Section */
.page-khuynmi__final-cta .page-khuynmi__cta-buttons {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuynmi__container--flex,
  .page-khuynmi__container--flex-reverse {
    flex-direction: column;
    text-align: center;
  }
  .page-khuynmi__image-block {
    margin-top: 30px;
  }
  .page-khuynmi__hero-content {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .page-khuynmi__section {
    padding: 40px 0;
  }
  .page-khuynmi__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-khuynmi__text-block {
    font-size: 15px;
  }
  .page-khuynmi__hero-content {
    padding: 40px 15px;
  }
  .page-khuynmi__main-title {
    font-size: clamp(28px, 7vw, 48px);
  }
  .page-khuynmi__hero-description {
    font-size: clamp(16px, 3.5vw, 20px);
  }
  .page-khuynmi__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-khuynmi__card-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-khuynmi__promotion-card h3 {
    font-size: 20px;
  }
  .page-khuynmi__promotion-card p {
    font-size: 14px;
  }
  .page-khuynmi__container,
  .page-khuynmi__promotion-card,
  .page-khuynmi__content-block,
  .page-khuynmi__image-block,
  .page-khuynmi__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-khuynmi__hero-image-wrapper {
    padding: 0;
  }
  .page-khuynmi__video-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
  .page-khuynmi__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-khuynmi__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }
}