/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  background-color: var(--background-color, #B71C1C); /* Use custom background color, fallback to deep red */
  color: #FFF5E1; /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom for spacing */
}

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of the image wrapper */
  overflow: hidden;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly dim the image to make text pop */
}

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px; /* Adjust spacing from image */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #F4D34D; /* Gold color for main title */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-khuyen-mai__hero-description {
  font-size: 1.1em;
  color: #FFF5E1;
  margin-bottom: 30px;
}

.page-khuyen-mai__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red text for button */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-khuyen-mai__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #F4D34D; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-khuyen-mai__section-description {
  font-size: 1.1em;
  color: #FFF5E1;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__content-grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.page-khuyen-mai__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-khuyen-mai__text-block {
  flex: 1;
  color: #FFF5E1;
}

.page-khuyen-mai__text-block p {
  margin-bottom: 15px;
}

.page-khuyen-mai__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-khuyen-mai__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-khuyen-mai__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-khuyen-mai__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-khuyen-mai__list-item::before {
  content: '✔'; /* Checkmark for list items */
  position: absolute;
  left: 0;
  color: #FFCC66; /* Glow color for checkmark */
  font-weight: bold;
}

.page-khuyen-mai__list--ordered {
  list-style: decimal;
  padding-left: 20px;
}

.page-khuyen-mai__list--ordered .page-khuyen-mai__list-item::before {
  content: none; /* Remove custom checkmark for ordered list */
}

.page-khuyen-mai__list-item a {
  color: #FFCC66; /* Gold for links in lists */
  text-decoration: underline;
}

.page-khuyen-mai__list-item a:hover {
  color: #F4D34D;
}

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

.page-khuyen-mai__card {
  background-color: #D32F2F; /* Card BG color */
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in grid have same height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid #F2B544; /* Border color */
}

.page-khuyen-mai__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__card-title {
  font-size: 1.5em;
  color: #FFCC66; /* Glow color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: #FFF5E1; /* Text Main color for background */
  color: #C91F17; /* Primary brand color for text */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #C91F17; /* Primary brand color for border */
  margin-top: auto;
}

.page-khuyen-mai__btn-secondary:hover {
  background: #C91F17; /* Primary brand color for background */
  color: #FFF5E1; /* Text Main color for text */
  border-color: #FFF5E1;
}

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

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

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  color: #FFCC66; /* Glow color for FAQ questions */
  font-weight: bold;
  position: relative;
  list-style: none; /* Remove default marker */
}

.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;
  color: #FFF5E1;
  font-size: 1em;
}

.page-khuyen-mai__cta-final-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #7A0E0E; /* Deep Red for final CTA section */
  border-radius: 15px;
  margin-top: 40px;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-khuyen-mai__cta-final-section .page-khuyen-mai__btn-primary,
.page-khuyen-mai__cta-final-section .page-khuyen-mai__btn-secondary {
  min-width: 180px;
}

/* Ensure links within text blocks have appropriate color */
.page-khuyen-mai__text-block a {
  color: #FFCC66;
  text-decoration: underline;
}

.page-khuyen-mai__text-block a:hover {
  color: #F4D34D;
}

/* General image and container responsiveness */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-khuyen-mai__section,
.page-khuyen-mai__card,
.page-khuyen-mai__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

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

  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    min-height: 400px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-khuyen-mai__main-title {
    font-size: 1.8em !important;
  }

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

  /* 长文金框区 - N/A for this page, but keeping placeholder for checklist */
  /* .page-khuyen-mai__home-content { height: auto !important; overflow-y: visible !important; } */

  /* 游戏轮播 - N/A for this page, but keeping placeholder for checklist */
  /* .page-khuyen-mai__slider-track { display: flex !important; flex-wrap: nowrap !important; } */
  /* .page-khuyen-mai__game-slide { flex: 0 0 160px !important; max-width: 160px !important; } */

  /* 合作品牌六宫格 - N/A for this page, but keeping placeholder for checklist */
  /* .page-khuyen-mai__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; } */
  /* .page-khuyen-mai__banner-item img {   } */

  /* 博客卡片区 - N/A for this page, but keeping placeholder for checklist */
  /* .page-khuyen-mai__blog-masonry { grid-template-columns: 1fr !important; } */
  /* .page-khuyen-mai__blog-slide { flex: 0 0 100% !important; max-width: 100% !important; } */
  /* .page-khuyen-mai__blog-slider-track { display: flex !important; flex-wrap: nowrap !important; } */

  .page-khuyen-mai__section-title {
    font-size: 1.6em !important;
  }

  .page-khuyen-mai__content-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-khuyen-mai__content-grid--reverse {
    flex-direction: column;
  }

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

  .page-khuyen-mai__card {
    padding: 20px;
  }

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

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

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

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* 通用图片与容器 */
  .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;
  }

  /* 按钮与按钮容器 */
  .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;
  }

  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__button-group,
  .page-khuyen-mai__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-khuyen-mai__cta-buttons {
    flex-direction: column;
  }
}