/* style/khuyen-mai.css */
.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Background color from custom palette */
}

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

.page-khuyen-mai__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__section-description {
  font-size: 18px;
  color: #333333;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  background: #FFFFFF;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
}

.page-khuyen-mai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-khuyen-mai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-khuyen-mai__hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: left;
}

.page-khuyen-mai__hero-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
  line-height: 1.6;
  text-align: left;
}

.page-khuyen-mai__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-khuyen-mai__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-khuyen-mai__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Buttons */
.page-khuyen-mai__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-khuyen-mai__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-khuyen-mai__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Promo Types Section */
.page-khuyen-mai__promo-types-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-khuyen-mai__promo-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 450px;
  box-sizing: border-box;
}

.page-khuyen-mai__promo-card-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-khuyen-mai__promo-card-title {
  font-size: 24px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 15px;
}

.page-khuyen-mai__promo-card-description {
  font-size: 16px;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-khuyen-mai__how-to-claim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-khuyen-mai__how-to-claim-step {
  background: #F5F7FA;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.page-khuyen-mai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  margin-bottom: 15px;
}

.page-khuyen-mai__step-title {
  font-size: 20px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 10px;
}

.page-khuyen-mai__step-description {
  font-size: 15px;
  color: #333333;
  line-height: 1.5;
}

.page-khuyen-mai__how-to-claim-image-container {
  text-align: center;
  margin-top: 40px;
}

.page-khuyen-mai__how-to-claim-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

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

.page-khuyen-mai__terms-list {
  list-style: disc;
  margin-left: 20px;
  color: #333333;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-khuyen-mai__terms-list li {
  margin-bottom: 10px;
}

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

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

.page-khuyen-mai__faq-item {
  background: #F5F7FA;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  list-style: none;
  outline: none;
  user-select: none;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
}

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

.page-khuyen-mai__faq-qtext {
  flex-grow: 1;
  color: #E53935;
}

.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935;
  margin-left: 15px;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  content: '−';
}

.page-khuyen-mai__faq-answer {
  padding: 15px 20px 20px;
  font-size: 16px;
  color: #333333;
  line-height: 1.6;
  background-color: #F5F7FA;
}

/* Final CTA Section */
.page-khuyen-mai__cta-final-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

.page-khuyen-mai__cta-final-content {
  text-align: center;
}

.page-khuyen-mai__cta-final-section .page-khuyen-mai__section-title,
.page-khuyen-mai__cta-final-section .page-khuyen-mai__section-description {
  color: #ffffff;
}

.page-khuyen-mai__cta-final-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-khuyen-mai__cta-final-buttons .page-khuyen-mai__btn-primary {
  background: #ffffff;
  color: #E53935;
  border: none;
}

.page-khuyen-mai__cta-final-buttons .page-khuyen-mai__btn-primary:hover {
  background: #f0f0f0;
}

.page-khuyen-mai__cta-final-buttons .page-khuyen-mai__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-khuyen-mai__cta-final-buttons .page-khuyen-mai__btn-secondary:hover {
  background: #ffffff;
  color: #E53935;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-khuyen-mai__hero-content {
    text-align: center;
  }

  .page-khuyen-mai__hero-title,
  .page-khuyen-mai__hero-description {
    text-align: center;
  }

  .page-khuyen-mai__hero-cta-buttons {
    justify-content: center;
  }

  .page-khuyen-mai__promo-card {
    min-height: 400px; /* Adjust for smaller screens */
  }

  .page-khuyen-mai__how-to-claim-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-khuyen-mai__container,
  .page-khuyen-mai__hero-container,
  .page-khuyen-mai__promo-types-section .page-khuyen-mai__container,
  .page-khuyen-mai__how-to-claim-section .page-khuyen-mai__container,
  .page-khuyen-mai__terms-section .page-khuyen-mai__container,
  .page-khuyen-mai__faq-section .page-khuyen-mai__container,
  .page-khuyen-mai__cta-final-section .page-khuyen-mai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section (必写清单 1) */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px !important;
  }

  .page-khuyen-mai__hero-title {
    font-size: 32px !important;
  }

  .page-khuyen-mai__hero-description {
    font-size: 16px !important;
  }

  .page-khuyen-mai__hero-image {
    order: 1; /* Image appears first in mobile */
  }

  .page-khuyen-mai__hero-content {
    order: 2; /* Content appears after image in mobile */
  }

  /* Buttons (必写清单 6) */
  .page-khuyen-mai__cta-button,
  .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 !important;
    padding-right: 15px !important;
  }

  .page-khuyen-mai__hero-cta-buttons,
  .page-khuyen-mai__cta-final-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Images (必写清单 5) */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Promo Cards */
  .page-khuyen-mai__promo-card {
    min-height: auto;
  }

  /* How to Claim Grid (必写清单 4) */
  .page-khuyen-mai__how-to-claim-grid {
    grid-template-columns: 1fr;
  }

  /* Terms Section */
  .page-khuyen-mai__terms-list {
    margin-left: 15px;
    font-size: 15px;
  }

  /* FAQ Section */
  .page-khuyen-mai__faq-item summary {
    font-size: 16px;
    padding: 15px;
  }

  .page-khuyen-mai__faq-qtext {
    font-size: 16px !important;
  }

  .page-khuyen-mai__faq-toggle {
    font-size: 20px !important;
  }

  .page-khuyen-mai__faq-answer {
    font-size: 15px;
    padding: 10px 15px 15px;
  }

  /* Section Titles & Descriptions */
  .page-khuyen-mai__section-title {
    font-size: 28px !important;
  }

  .page-khuyen-mai__section-description {
    font-size: 16px !important;
    margin-bottom: 30px !important;
  }

  /* No Module 1 three-column intro or game tabs, so no specific rules for them */
  /* (必写清单 2, 3 - not applicable for this page's content structure) */
  /* The content structure for Khuyến Mãi doesn't inherently include Module 1 (three-column intro) or Game Tabs. */
  /* However, if they were present, their responsive rules would be here. */
}

@media (max-width: 480px) {
  .page-khuyen-mai__hero-title {
    font-size: 28px !important;
  }

  .page-khuyen-mai__section-title {
    font-size: 24px !important;
  }

  .page-khuyen-mai__promo-card-title {
    font-size: 20px !important;
  }

  .page-khuyen-mai__step-title {
    font-size: 18px !important;
  }
}