/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  background-color: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-khuyen-mai__section {
  padding: 60px 20px;
  text-align: center;
}

.page-khuyen-mai__dark-section {
  background-color: #17191F;
}

.page-khuyen-mai__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #FFB04D; /* Glow color for titles */
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

.page-khuyen-mai__text-block {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__inline-link {
  color: #FFA53A;
  text-decoration: none;
  font-weight: bold;
}

.page-khuyen-mai__inline-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Fixed header spacing - assuming body already has padding-top */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* H1 font size with clamp */
  font-weight: 900;
  color: #FFB04D; /* Glow color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 176, 77, 0.7);
}

.page-khuyen-mai__hero-description {
  font-size: 1.3em;
  color: #FFF3E6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-khuyen-mai__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
}

.page-khuyen-mai__btn-outline {
  background: transparent;
  border: 2px solid #FFA53A;
  color: #FFA53A;
  box-shadow: none;
}

.page-khuyen-mai__btn-outline:hover {
  background: rgba(255, 165, 58, 0.1);
  color: #FFB04D;
  border-color: #FFB04D;
}

.page-khuyen-mai__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Card Grid for Promotion Types */
.page-khuyen-mai__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-khuyen-mai__card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
}

.page-khuyen-mai__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 176, 77, 0.3);
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-khuyen-mai__card-title {
  font-size: 1.6em;
  color: #FFB04D;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyen-mai__card-description {
  font-size: 1em;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-khuyen-mai__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-khuyen-mai__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFA53A;
  margin-right: 20px;
  min-width: 50px;
  text-align: center;
}

.page-khuyen-mai__step-content h3 {
  font-size: 1.4em;
  color: #FFB04D;
  margin-bottom: 10px;
}

.page-khuyen-mai__step-content p {
  color: #FFF3E6;
}

.page-khuyen-mai__cta-wrapper {
  margin-top: 50px;
}

/* Terms Section */
.page-khuyen-mai__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__terms-item {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.page-khuyen-mai__terms-heading {
  font-size: 1.4em;
  color: #FFA53A;
  margin-bottom: 10px;
}

/* Why Choose Section */
.page-khuyen-mai__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  text-align: left;
}

.page-khuyen-mai__advantage-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
}

.page-khuyen-mai__advantage-heading {
  font-size: 1.5em;
  color: #FFB04D;
  margin-bottom: 10px;
}

/* Tips Section */
.page-khuyen-mai__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  text-align: left;
}

.page-khuyen-mai__tip-item {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
}

.page-khuyen-mai__tip-heading {
  font-size: 1.5em;
  color: #FFA53A;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-khuyen-mai__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFF3E6;
  cursor: pointer;
  background-color: #17191F;
  position: relative;
  list-style: none; /* For details/summary */
}

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

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  color: #FFA53A;
  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;
  font-size: 1em;
  color: #FFF3E6;
  line-height: 1.5;
}

.page-khuyen-mai__faq-answer p {
    margin-top: 10px;
}

/* Final CTA Section */
.page-khuyen-mai__cta-final-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-khuyen-mai__text-center {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__container {
    padding: 20px 40px;
  }

  .page-khuyen-mai__section-title {
    font-size: 2.5em;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(2.2em, 4vw, 3em);
  }

  .page-khuyen-mai__hero-description {
    font-size: 1.2em;
  }

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

  .page-khuyen-mai__advantage-list,
  .page-khuyen-mai__tip-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }

  .page-khuyen-mai__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* General content sections */
  .page-khuyen-mai__section {
    padding: 40px 15px;
  }

  .page-khuyen-mai__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

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

  /* Card Grid for Promotion Types */
  .page-khuyen-mai__card-grid {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 25px;
    margin-top: 30px;
  }

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

  .page-khuyen-mai__card-title {
    font-size: 1.4em;
  }

  .page-khuyen-mai__card-description {
    font-size: 0.9em;
  }
}