/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: #1F2D3D;
  background-color: #F4F7FB; /* Custom Background color */
  line-height: 1.6;
}

.page-khuyen-mai__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #FFFFFF; /* Card BG color */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-khuyen-mai__section:first-of-type {
  margin-top: 10px; /* Small top padding for the first section after header */
}

.page-khuyen-mai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 40px 0; /* Small top padding for hero section */
  background-color: #F4F7FB; /* Matches body background */
  text-align: center;
}

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

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

.page-khuyen-mai__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-khuyen-mai__hero-description {
  font-size: 1.15rem;
  color: #1F2D3D; /* Text Main color */
  margin-bottom: 30px;
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-khuyen-mai__btn-secondary {
  background-color: #ffffff;
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #e0eaff;
  color: #2F6BFF;
}

.page-khuyen-mai__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyen-mai__section-description {
  font-size: 1.05rem;
  color: #1F2D3D; /* Text Main color */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-khuyen-mai__promo-card,
.page-khuyen-mai__game-promo-card {
  background-color: #ffffff; /* Card BG color */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.page-khuyen-mai__promo-image,
.page-khuyen-mai__game-promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__card-title,
.page-khuyen-mai__game-promo-card .page-khuyen-mai__card-title {
  font-size: 1.35rem;
  color: #2F6BFF; /* Main color */
  margin: 20px 15px 10px 15px;
  font-weight: bold;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__card-text,
.page-khuyen-mai__game-promo-card .page-khuyen-mai__card-text {
  font-size: 1rem;
  color: #1F2D3D; /* Text Main color */
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__btn-outline,
.page-khuyen-mai__game-promo-card .page-khuyen-mai__btn-outline {
  margin: 0 15px 20px 15px;
  background-color: transparent;
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
  align-self: center;
  width: calc(100% - 30px); /* Adjust width for padding */
}

.page-khuyen-mai__promo-card .page-khuyen-mai__btn-outline:hover,
.page-khuyen-mai__game-promo-card .page-khuyen-mai__btn-outline:hover {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-khuyen-mai__terms-list,
.page-khuyen-mai__guide-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
}

.page-khuyen-mai__terms-list li,
.page-khuyen-mai__guide-list li {
  background-color: #F4F7FB;
  border-left: 5px solid #2F6BFF;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: #1F2D3D; /* Text Main color */
  font-size: 1.05rem;
}

.page-khuyen-mai__terms-list li strong,
.page-khuyen-mai__guide-list li strong {
  color: #000000; /* Custom Color_1776249996415 */
}

.page-khuyen-mai__terms-section .page-khuyen-mai__btn-primary,
.page-khuyen-mai__guide-section .page-khuyen-mai__btn-primary {
  margin-top: 20px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

.page-khuyen-mai__faq-item {
  background-color: #F4F7FB;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #E6EEFF;
  color: #2F6BFF; /* Main color */
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

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

.page-khuyen-mai__faq-qtext {
  flex-grow: 1;
  font-size: 1.1rem;
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  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 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: #1F2D3D; /* Text Main color */
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth transition */
  padding-bottom: 20px;
}

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

.page-khuyen-mai__final-cta-section {
  background: linear-gradient(135deg, #6FA3FF 0%, #2F6BFF 100%); /* Mix of main and aux color */
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(47, 107, 255, 0.3);
  margin-bottom: 40px;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__section-description {
  color: #ffffff;
  margin-bottom: 30px;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__btn-primary {
  background: #ffffff;
  color: #2F6BFF; /* Main color */
  border: 2px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__btn-primary:hover {
  background-color: #f0f0f0;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-khuyen-mai__section {
    padding: 25px 15px;
    margin-bottom: 20px;
  }

  /* 1. HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding: 10px 0 25px 0; /* Small top padding */
  }
  .page-khuyen-mai__hero-content {
    padding: 0 15px;
  }
  .page-khuyen-mai__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
  }
  .page-khuyen-mai__hero-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 2. 长文金框区 - Omitted HTML, but minimal CSS placeholder for checklist */
  .page-khuyen-mai__home-content {
    height: auto !important; /* Allow content to expand */
    overflow-y: visible !important;
    padding: 20px 15px !important;
  }
  .page-khuyen-mai__home-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
  }

  /* 3. 游戏轮播 - Omitted HTML, but minimal CSS placeholder for checklist */
  .page-khuyen-mai__slider-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuyen-mai__slider-track {
    display: flex !important; /* Ensure flex for horizontal scroll */
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .page-khuyen-mai__game-slide {
    flex: 0 0 160px !important; /* Single card width */
    max-width: 160px !important;
  }

  /* 4. 合作品牌六宫格 - Omitted HTML, but minimal CSS placeholder for checklist */
  .page-khuyen-mai__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 columns */
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuyen-mai__banner-item img {
     /* Smaller size for mobile */
    
  }

  /* 5. 博客卡片区 - Omitted HTML, but minimal CSS placeholder for checklist */
  .page-khuyen-mai__blog-masonry {
    grid-template-columns: 1fr !important; /* Single column */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuyen-mai__blog-card-link {
    display: block !important;
    height: auto !important;
  }
  .page-khuyen-mai__blog-slider-track {
    display: flex !important; /* Ensure flex for horizontal scroll */
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuyen-mai__blog-slide {
    flex: 0 0 100% !important; /* Full width for single slide */
    max-width: 100% !important;
  }

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

  /* 7. 按钮与按钮容器 */
  .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;
    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;
    display: flex;
    flex-direction: column;
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-khuyen-mai__section-description {
    font-size: 0.95rem;
  }

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

  .page-khuyen-mai__promo-card .page-khuyen-mai__card-title,
  .page-khuyen-mai__game-promo-card .page-khuyen-mai__card-title {
    font-size: 1.2rem;
  }

  .page-khuyen-mai__promo-card .page-khuyen-mai__card-text,
  .page-khuyen-mai__game-promo-card .page-khuyen-mai__card-text {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__terms-list li,
  .page-khuyen-mai__guide-list li {
    font-size: 1rem;
    padding: 12px 15px;
  }

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

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

  .page-khuyen-mai__faq-answer p {
    font-size: 0.95rem;
  }

  .page-khuyen-mai__final-cta-section {
    padding: 40px 15px;
  }
}