/* style/khuynmi.css */

/* Custom Colors */
:root {
  --page-khuynmi-primary-color: #11A84E;
  --page-khuynmi-secondary-color: #22C768;
  --page-khuynmi-button-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: #2E7A4E;
  --page-khuynmi-glow: #57E38D;
  --page-khuynmi-gold: #F2C14E;
  --page-khuynmi-divider: #1E3A2A;
  --page-khuynmi-deep-green: #0A4B2C;
}

.page-khuynmi {
  background-color: var(--page-khuynmi-background);
  color: var(--page-khuynmi-text-main);
  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;
}

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

.page-khuynmi__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-khuynmi__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: var(--page-khuynmi-card-bg);
  border-radius: 10px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual effect, but not on image */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  z-index: 1;
  border: 1px solid var(--page-khuynmi-border);
}

.page-khuynmi__main-title {
  color: var(--page-khuynmi-gold);
  font-size: clamp(2em, 5vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-khuynmi__cta-button {
  display: inline-block;
  background: var(--page-khuynmi-button-gradient);
  color: var(--page-khuynmi-text-main);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuynmi__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-khuynmi__cta-button--secondary {
  background: none;
  border: 2px solid var(--page-khuynmi-primary-color);
  color: var(--page-khuynmi-primary-color);
  box-shadow: none;
}

.page-khuynmi__cta-button--secondary:hover {
  background: var(--page-khuynmi-primary-color);
  color: var(--page-khuynmi-text-main);
}

.page-khuynmi__cta-button--final {
  margin-top: 30px;
}

/* General Section Styling */
.page-khuynmi__intro-section,
.page-khuynmi__promo-types,
.page-khuynmi__featured-promos,
.page-khuynmi__terms-section,
.page-khuynmi__how-to-claim,
.page-khuynmi__faq-section,
.page-khuynmi__conclusion-section {
  padding: 60px 0;
  position: relative;
  z-index: 0;
}

.page-khuynmi__section-title {
  color: var(--page-khuynmi-text-main);
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-khuynmi__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--page-khuynmi-gold);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-khuynmi__text-block {
  color: var(--page-khuynmi-text-secondary);
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

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

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

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

.page-khuynmi__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Featured Promos */
.page-khuynmi__promo-detail-card {
  background: var(--page-khuynmi-card-bg);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 30px;
  margin-bottom: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--page-khuynmi-border);
}

.page-khuynmi__promo-detail-card--reversed {
  flex-direction: column-reverse;
}

.page-khuynmi__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--page-khuynmi-divider);
}

.page-khuynmi__promo-content {
  flex: 1;
  text-align: left;
}

.page-khuynmi__promo-subtitle {
  color: var(--page-khuynmi-gold);
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 20px;
}

.page-khuynmi__promo-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-khuynmi__promo-list li {
  color: var(--page-khuynmi-text-secondary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-khuynmi__promo-list li::before {
  content: '✔';
  color: var(--page-khuynmi-primary-color);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Terms Section */
.page-khuynmi__terms-list {
  list-style: decimal;
  padding-left: 20px;
  color: var(--page-khuynmi-text-secondary);
  margin-top: 20px;
}

.page-khuynmi__terms-list li {
  margin-bottom: 15px;
  color: var(--page-khuynmi-text-secondary);
}

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

/* How-To-Claim Section */
.page-khuynmi__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-khuynmi__steps-list li {
  background: var(--page-khuynmi-card-bg);
  border: 1px solid var(--page-khuynmi-border);
  padding: 20px 30px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--page-khuynmi-text-main);
  font-size: 1.1em;
  position: relative;
  padding-left: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-khuynmi__steps-list li::before {
  content: attr(data-step);
  counter-increment: step-counter;
  content: 'Bước ' counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--page-khuynmi-primary-color);
  color: var(--page-khuynmi-text-main);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

/* FAQ Section */
.page-khuynmi__faq-list {
  margin-top: 40px;
}

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

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--page-khuynmi-text-main);
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-khuynmi__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-khuynmi__faq-question:hover {
  background-color: rgba(var(--page-khuynmi-primary-color), 0.1);
}

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

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

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

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

/* Conclusion Section */
.page-khuynmi__conclusion-section {
  text-align: center;
}

/* Global Image/Video/Button Responsive Styles */
.page-khuynmi img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-khuynmi video,
.page-khuynmi__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-khuynmi__video-section,
.page-khuynmi__video-container,
.page-khuynmi__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-khuynmi__cta-button,
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary,
.page-khuynmi a[class*="button"],
.page-khuynmi a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuynmi__cta-buttons,
.page-khuynmi__button-group,
.page-khuynmi__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-khuynmi__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
  }

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

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

  .page-khuynmi__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-khuynmi__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-khuynmi__promo-detail-card,
  .page-khuynmi__promo-detail-card--reversed {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .page-khuynmi__promo-subtitle {
    font-size: 1.5em;
    text-align: center;
  }

  .page-khuynmi__promo-content {
    text-align: center;
  }

  .page-khuynmi__promo-list li {
    padding-left: 0;
    text-align: left;
  }
  .page-khuynmi__promo-list li::before {
    position: static;
    transform: none;
    margin-right: 5px;
    display: inline-block;
  }

  .page-khuynmi__terms-list,
  .page-khuynmi__steps-list {
    padding-left: 10px;
  }

  .page-khuynmi__steps-list li {
    padding-left: 20px;
    font-size: 1em;
  }

  .page-khuynmi__steps-list li::before {
    position: static;
    transform: none;
    display: block;
    margin-bottom: 5px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--page-khuynmi-primary-color);
    text-align: left;
    padding: 0;
  }

  /* Mobile specific overrides for images, videos, buttons */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuynmi video,
  .page-khuynmi__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-khuynmi__video-section,
  .page-khuynmi__video-container,
  .page-khuynmi__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-khuynmi__video-section {
    padding-top: 10px !important;
  }

  .page-khuynmi__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuynmi__cta-button,
  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary,
  .page-khuynmi a[class*="button"],
  .page-khuynmi a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuynmi__cta-buttons,
  .page-khuynmi__button-group,
  .page-khuynmi__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-khuynmi__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  .page-khuynmi__promo-detail-card {
    flex-direction: row;
    text-align: left;
  }
  .page-khuynmi__promo-detail-card--reversed {
    flex-direction: row-reverse;
  }
  .page-khuynmi__promo-image {
    flex: 0 0 45%;
    max-width: 45%;
  }
  .page-khuynmi__promo-content {
    flex: 1;
    padding: 0 20px;
  }
}