/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  background-color: var(--site-bg, #0A0A0A); /* Default to dark background if --site-bg is not set */
  color: #FFF6D6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-khuyen-mai__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Brand main color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

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

.page-khuyen-mai strong {
  color: #FFD36B;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  margin-bottom: 50px;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  height: auto;
  display: block;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-khuyen-mai__hero-content {
  position: relative; /* Ensure content is above image if needed, but not overlaying */
  text-align: center;
  padding: 40px 15px;
  background: rgba(17, 17, 17, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  margin-top: -80px; /* Pull up to overlap image slightly for design effect */
  z-index: 10;
  max-width: 900px;
  transform: translateY(-50px);
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #FFD36B; /* Accent color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-khuyen-mai__subtitle {
  font-size: 19px;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for golden button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  opacity: 0.9;
}

.page-khuyen-mai__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #3A2A12; /* Border color */
}

.page-khuyen-mai__btn-secondary:hover {
  transform: translateY(-3px);
  background: #3A2A12;
  color: #FFF6D6;
  opacity: 0.9;
}

/* Intro Section */
.page-khuyen-mai__intro-section {
  padding: 50px 0;
  margin-bottom: 50px;
}

/* Promotion Types Section */
.page-khuyen-mai__promotion-types {
  padding: 50px 0;
  margin-bottom: 50px;
}

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

.page-khuyen-mai__promo-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

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

.page-khuyen-mai__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
}

.page-khuyen-mai__card-description {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

/* How to Claim Section */
.page-khuyen-mai__how-to-claim {
  padding: 50px 0;
  margin-bottom: 50px;
}

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

.page-khuyen-mai__step-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 70px;
}

.page-khuyen-mai__step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  border: 3px solid #0A0A0A; /* Background color */
}

.page-khuyen-mai__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-khuyen-mai__step-description {
  font-size: 16px;
  color: #FFF6D6;
}

.page-khuyen-mai__cta-section {
  text-align: center;
  padding: 40px;
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  margin-top: 40px;
}

.page-khuyen-mai__cta-section p {
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 25px;
}

/* Terms and Conditions Section */
.page-khuyen-mai__terms-conditions {
  padding: 50px 0;
  margin-bottom: 50px;
}

.page-khuyen-mai__terms-list {
  list-style: disc inside;
  padding-left: 20px;
  color: #FFF6D6;
  font-size: 17px;
}

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

.page-khuyen-mai__terms-list li strong {
  color: #FFD36B;
}

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

details.page-khuyen-mai__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD36B; /* Glow color for questions */
  font-weight: 600;
  font-size: 18px;
}

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

details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question:hover {
  background: #1a1a1a;
}

.page-khuyen-mai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6; /* Text Main */
}

.page-khuyen-mai__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main brand color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
  padding: 0 25px 20px;
  background: #0A0A0A; /* Background color */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6; /* Text Main */
  font-size: 16px;
}

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

/* Final CTA Section */
.page-khuyen-mai__final-cta {
  padding: 50px 0 80px;
  text-align: center;
}

.page-khuyen-mai__final-cta .page-khuyen-mai__cta-buttons {
  margin-top: 30px;
}

.page-khuyen-mai__copyright {
  font-size: 14px;
  color: #666;
  margin-top: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-khuyen-mai__subtitle {
    font-size: 18px;
  }
  .page-khuyen-mai__section-title {
    font-size: 32px;
  }
  .page-khuyen-mai__hero-content {
    margin-top: -60px;
    transform: translateY(-40px);
  }
}

@media (max-width: 768px) {
  /* Top section / Hero content */
  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 30px;
  }
  .page-khuyen-mai__hero-content {
    padding: 30px 15px;
    margin-top: -40px; /* Adjust overlap */
    transform: translateY(-20px);
    border-radius: 0;
  }
  .page-khuyen-mai__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust for mobile, smaller clamp */
    margin-bottom: 15px;
  }
  .page-khuyen-mai__subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* General content sections */
  .page-khuyen-mai__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-khuyen-mai__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-khuyen-mai__text-block {
    font-size: 16px;
  }

  /* Image responsiveness */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-khuyen-mai__promo-image {
    height: auto;
  }

  /* Promo Grid */
  .page-khuyen-mai__promo-grid {
    grid-template-columns: 1fr; /* Single column for promo cards */
    gap: 20px;
  }
  .page-khuyen-mai__promo-card {
    padding: 20px;
  }
  .page-khuyen-mai__card-title {
    font-size: 20px;
  }
  .page-khuyen-mai__card-description {
    font-size: 15px;
  }
  .page-khuyen-mai__btn-small {
    font-size: 14px;
    padding: 8px 15px;
  }

  /* How to Claim Steps */
  .page-khuyen-mai__steps-grid {
    grid-template-columns: 1fr; /* Single column for steps */
    gap: 40px;
  }
  .page-khuyen-mai__step-item {
    padding: 60px 20px 30px;
  }
  .page-khuyen-mai__step-number {
    top: -20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .page-khuyen-mai__step-title {
    font-size: 18px;
  }
  .page-khuyen-mai__cta-section {
    padding: 30px 20px;
  }
  .page-khuyen-mai__cta-section p {
    font-size: 18px;
  }

  /* Terms and Conditions */
  .page-khuyen-mai__terms-list {
    font-size: 15px;
    padding-left: 15px;
  }

  /* FAQ Section */
  details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-khuyen-mai__faq-qtext {
    font-size: 16px;
  }
  .page-khuyen-mai__faq-toggle {
    font-size: 22px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  /* Footer padding for copyright */
  .page-khuyen-mai__copyright {
    margin-top: 30px;
    font-size: 13px;
  }
}