/* style/khuyen-mai.css */

:root {
  --page-khuyen-mai-primary-color: #2F6BFF;
  --page-khuyen-mai-secondary-color: #6FA3FF;
  --page-khuyen-mai-text-main: #1F2D3D;
  --page-khuyen-mai-text-dark: #000000;
  --page-khuyen-mai-card-bg: #FFFFFF;
  --page-khuyen-mai-background: #F4F7FB;
  --page-khuyen-mai-border-color: #D6E2FF;
  --page-khuyen-mai-glow-color: #A5C4FF;
  --page-khuyen-mai-btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-khuyen-mai-text-main);
  background-color: var(--page-khuyen-mai-background);
}

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

.page-khuyen-mai__light-bg {
  background-color: var(--page-khuyen-mai-background);
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__dark-bg {
  background-color: var(--page-khuyen-mai-primary-color);
  color: #ffffff;
}

.page-khuyen-mai__hero-section {
  display: flex;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  text-align: center;
}

.page-khuyen-mai__hero-section .page-khuyen-mai__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--page-khuyen-mai-text-dark);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-khuyen-mai__hero-section.page-khuyen-mai__light-bg .page-khuyen-mai__main-title {
  color: var(--page-khuyen-mai-primary-color);
}

.page-khuyen-mai__subtitle {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  line-height: 1.2;
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__section-title {
  color: #ffffff;
}

.page-khuyen-mai__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-khuyen-mai__text-block a {
  color: var(--page-khuyen-mai-primary-color);
  text-decoration: underline;
}

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-khuyen-mai__btn-primary {
  background: var(--page-khuyen-mai-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  margin-top: 20px;
}

.page-khuyen-mai__btn-primary:hover {
  box-shadow: 0 0 15px var(--page-khuyen-mai-glow-color);
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
  background: var(--page-khuyen-mai-card-bg);
  color: var(--page-khuyen-mai-primary-color);
  border: 2px solid var(--page-khuyen-mai-primary-color);
  margin-top: 20px;
  margin-left: 15px;
}

.page-khuyen-mai__btn-secondary:hover {
  background: var(--page-khuyen-mai-primary-color);
  color: #ffffff;
  box-shadow: 0 0 15px var(--page-khuyen-mai-glow-color);
  transform: translateY(-2px);
}

/* Promo Category Section */
.page-khuyen-mai__promo-category-section {
  padding: 60px 0;
}

.page-khuyen-mai__promo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__promo-card {
  background-color: var(--page-khuyen-mai-card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-khuyen-mai__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-khuyen-mai__promo-card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-khuyen-mai-primary-color);
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__promo-card-title {
  color: var(--page-khuyen-mai-secondary-color);
}

.page-khuyen-mai__promo-card-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim-section {
  padding: 60px 0;
}

.page-khuyen-mai__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-khuyen-mai__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.page-khuyen-mai__step-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-khuyen-mai-primary-color);
  margin-right: 20px;
  line-height: 1;
}

.page-khuyen-mai__step-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--page-khuyen-mai-primary-color);
  margin-bottom: 10px;
}

.page-khuyen-mai__step-description {
  font-size: 1em;
  line-height: 1.6;
}

.page-khuyen-mai__step-description a {
  color: var(--page-khuyen-mai-primary-color);
  text-decoration: underline;
}

.page-khuyen-mai__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Terms Section */
.page-khuyen-mai__terms-section {
  padding: 60px 0;
}

.page-khuyen-mai__terms-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #ffffff;
}

.page-khuyen-mai__terms-list strong {
  color: var(--page-khuyen-mai-secondary-color);
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__text-block a {
  color: var(--page-khuyen-mai-secondary-color);
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 60px 0;
}

.page-khuyen-mai__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai__faq-item {
  background-color: var(--page-khuyen-mai-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-khuyen-mai-primary-color);
  cursor: pointer;
  list-style: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-khuyen-mai__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-khuyen-mai-text-main);
}

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

/* Final CTA Section */
.page-khuyen-mai__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

.page-khuyen-mai__cta-final-section .page-khuyen-mai__btn-primary,
.page-khuyen-mai__cta-final-section .page-khuyen-mai__btn-secondary {
  margin: 10px;
}

/* Global image and button responsive rules */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Media Queries --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-khuyen-mai__container {
    padding: 15px;
  }

  .page-khuyen-mai__hero-section {
    padding-bottom: 30px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-khuyen-mai__subtitle {
    font-size: 1em;
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(1.6em, 4.5vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-khuyen-mai__promo-card-grid {
    grid-template-columns: 1fr;
  }

  .page-khuyen-mai__promo-card-image {
    height: 200px;
  }

  .page-khuyen-mai__promo-card-title {
    font-size: 1.3em;
  }

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-khuyen-mai__steps-list {
    margin-bottom: 30px;
  }

  .page-khuyen-mai__step-item::before {
    font-size: 2em;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.2em;
  }

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

/* Mobile */
@media (max-width: 768px) {
  /* Hero Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-khuyen-mai__hero-section .page-khuyen-mai__container {
    gap: 20px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-khuyen-mai__subtitle {
    font-size: 0.95em;
  }

  .page-khuyen-mai__hero-image-wrapper {
    margin-top: 10px;
  }

  /* General Section Titles & Text */
  .page-khuyen-mai__section-title {
    font-size: clamp(1.5em, 5.5vw, 2em);
    margin-bottom: 25px;
    padding-top: 30px;
  }

  .page-khuyen-mai__text-block {
    font-size: 0.95em;
  }

  /* Buttons */
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai a[class*="button"],
  .page-khuyen-mai 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;
    margin-left: 0 !important; /* Remove margin between buttons for stacking */
  }

  .page-khuyen-mai__cta-final-section .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__cta-final-section .page-khuyen-mai__btn-secondary {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .page-khuyen-mai__cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Image Responsiveness */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Promo Category Section */
  .page-khuyen-mai__promo-category-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__promo-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuyen-mai__promo-card-image {
    height: 180px;
  }

  .page-khuyen-mai__promo-card-title {
    font-size: 1.2em;
  }

  .page-khuyen-mai__promo-card-content {
    padding: 20px;
  }

  /* How to Claim Section */
  .page-khuyen-mai__how-to-claim-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__steps-list {
    margin-bottom: 20px;
  }

  .page-khuyen-mai__step-item {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
  }

  .page-khuyen-mai__step-item::before {
    font-size: 2em;
    margin-bottom: 10px;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.1em;
  }

  /* Terms Section */
  .page-khuyen-mai__terms-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__terms-list {
    margin-left: 15px;
  }

  /* FAQ Section */
  .page-khuyen-mai__faq-section {
    padding: 40px 0;
  }

  .page-khuyen-mai__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-khuyen-mai__faq-toggle {
    font-size: 1.2em;
  }

  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Final CTA Section */
  .page-khuyen-mai__cta-final-section {
    padding: 40px 0;
  }
}