/* Base styles for the Khuyến Mãi page, ensuring BEM naming and adherence to color scheme */
.page-khuyen-mai {
  background-color: #0D0E12; /* Custom background color */
  color: #FFF3E6; /* Custom main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-bottom: 40px;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  height: 675px; /* Fixed height for hero image, adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-khuyen-mai__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size */
  color: #FFB04D; /* Glow color for title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-khuyen-mai__cta-buttons--center {
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
  color: #ffffff;
  border: none;
}

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

.page-khuyen-mai__btn-secondary {
  background: #17191F; /* Card BG color */
  color: #FF8C1A;
  border: 2px solid #A84F0C; /* Border color */
}

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

.page-khuyen-mai__section-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  color: #FFB04D; /* Glow color */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  font-weight: bold;
}

.page-khuyen-mai__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-khuyen-mai__overview-section, 
.page-khuyen-mai__promo-categories, 
.page-khuyen-mai__how-to-claim-section, 
.page-khuyen-mai__terms-section, 
.page-khuyen-mai__faq-section, 
.page-khuyen-mai__final-cta-section {
  padding: 40px 0;
}

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

.page-khuyen-mai__promo-card {
  background-color: #17191F; /* Card BG color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__promo-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.page-khuyen-mai__promo-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-khuyen-mai__promo-card-title a:hover {
  text-decoration: underline;
}

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

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

.page-khuyen-mai__step-item {
  background-color: #17191F; /* Card BG color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-khuyen-mai__step-title {
  font-size: 1.4em;
  color: #FFB04D; /* Glow color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-khuyen-mai__step-description {
  font-size: 1em;
  color: #FFF3E6;
}

.page-khuyen-mai__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-khuyen-mai__terms-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

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

.page-khuyen-mai a {
  color: #FF8C1A;
  text-decoration: none;
}

.page-khuyen-mai a:hover {
  text-decoration: underline;
}

.page-khuyen-mai__faq-list {
  margin-top: 40px;
}

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

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

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

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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: 1.05em;
  color: #FFF3E6;
  line-height: 1.6;
}

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

/* Placeholder styles for elements not used on this page, but required in CSS output */
.page-khuyen-mai__home-content {border:1px solid #A84F0C;border-radius:10px;padding:30px;height:auto;overflow-y:visible;margin-top:40px;margin-bottom:40px;background-color:#17191F;color:#FFF3E6}
.page-khuyen-mai__row-games, .page-khuyen-mai__row-sport, .page-khuyen-mai__row-coop {background-color:#0D0E12;padding:40px 20px;max-width:1330px;margin:0 auto}
.page-khuyen-mai__games-title, .page-khuyen-mai__sport-title, .page-khuyen-mai__coop-title {color:#FFB04D;text-align:center;font-size:2em;margin-bottom:30px}
.page-khuyen-mai__slider-wrapper {overflow:hidden;margin-top:30px}
.page-khuyen-mai__slider-track {display:flex;flex-wrap:nowrap;gap:16px;transform:translateX(0);transition:transform 0.5s ease-in-out;}
.page-khuyen-mai__game-slide {flex:0 0 200px;max-width:200px;background-color:#17191F;border-radius:8px;overflow:hidden;box-shadow:0 4px 8px rgba(0,0,0,0.2);}
.page-khuyen-mai__game-slide img {width:100%;object-fit:cover;display:block;}
.page-khuyen-mai__game-slide-title {color:#FFF3E6;font-size:1em;padding:10px;text-align:center;}
.page-khuyen-mai__slider-prev, .page-khuyen-mai__slider-next {background-color:#FF8C1A;color:#fff;border:none;padding:10px 15px;cursor:pointer;border-radius:5px;}
.page-khuyen-mai__banners-top-wrapper {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;max-width:900px;margin:40px auto;padding:20px;background-color:#17191F;border-radius:10px;}
.page-khuyen-mai__banner-item img {object-fit:contain;margin:0 auto;display:block;}
.page-khuyen-mai__blog-masonry {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch;margin-top:40px;}
.page-khuyen-mai__blog-card {background-color:#17191F;border:1px solid #A84F0C;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;height:100%;box-shadow:0 4px 10px rgba(0,0,0,0.3);}
.page-khuyen-mai__blog-card-image {width:100%;height:200px;object-fit:cover;display:block;}
.page-khuyen-mai__blog-card-content {padding:20px;flex-grow:1;display:flex;flex-direction:column;}
.page-khuyen-mai__blog-card-title {font-size:1.3em;color:#FFB04D;margin-bottom:10px;font-weight:bold;}
.page-khuyen-mai__blog-card-title a {color:inherit;text-decoration:none;}
.page-khuyen-mai__blog-card-title a:hover {text-decoration:underline;}
.page-khuyen-mai__blog-card-description {font-size:0.95em;color:#FFF3E6;margin-bottom:15px;flex-grow:1;}
.page-khuyen-mai__btn-outline {background:none;color:#FF8C1A;border:1px solid #FF8C1A;padding:10px 20px;border-radius:5px;text-decoration:none;font-weight:bold;margin-top:auto;display:inline-block;}
.page-khuyen-mai__btn-outline:hover {background-color:#FF8C1A;color:#fff;}
.page-khuyen-mai__blog-slider {margin-top:40px;overflow:hidden;}
.page-khuyen-mai__blog-slider-track {display:flex;flex-wrap:nowrap;gap:20px;transform:translateX(0);transition:transform 0.5s ease-in-out;}
.page-khuyen-mai__blog-slide {flex:0 0 calc(33.333% - 14px);max-width:calc(33.333% - 14px);background-color:#17191F;border:1px solid #A84F0C;border-radius:10px;overflow:hidden;box-shadow:0 4px 10px rgba(0,0,0,0.3);}
.page-khuyen-mai__blog-slider-prev, .page-khuyen-mai__blog-slider-next {background-color:#FF8C1A;color:#fff;border:none;padding:10px 15px;cursor:pointer;border-radius:5px;}

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

  .page-khuyen-mai__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Enforce small top padding */
    padding-bottom: 20px;
  }
  .page-khuyen-mai__hero-image-wrapper {
    height: 300px;
  }
  .page-khuyen-mai__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-khuyen-mai__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  /* 长文金框区 (Placeholder for home-content) */
  .page-khuyen-mai__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
  .page-khuyen-mai__home-content h2 {font-size: 1.5em;}

  /* 游戏轮播 (Placeholder for slider-track) */
  .page-khuyen-mai__slider-wrapper {overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;}
  .page-khuyen-mai__slider-track {display: flex; flex-wrap: nowrap; gap: 10px;}
  .page-khuyen-mai__game-slide {flex: 0 0 160px; max-width: 160px; scroll-snap-align: start;}
  .page-khuyen-mai__slider-prev, .page-khuyen-mai__slider-next {display: none;}

  /* 合作品牌六宫格 (Placeholder for banners-top-wrapper) */
  .page-khuyen-mai__banners-top-wrapper {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    max-width: 100% !important;
    padding: 15px !important;
  }
  .page-khuyen-mai__banner-item img { }

  /* 博客卡片区 (Placeholder for blog-masonry/slider) */
  .page-khuyen-mai__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-khuyen-mai__blog-card-image {height: 180px;}
  .page-khuyen-mai__blog-card-title {font-size: 1.2em;}
  .page-khuyen-mai__blog-slide {flex: 0 0 100% !important; max-width: 100% !important;}
  .page-khuyen-mai__blog-slider-track {display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;}
  .page-khuyen-mai__blog-slider-prev, .page-khuyen-mai__blog-slider-next {display: none;}

  /* 通用图片与容器 */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-khuyen-mai__promo-card-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-khuyen-mai__step-grid {
    grid-template-columns: 1fr;
  }

  .page-khuyen-mai__step-image {
    height: 150px;
  }

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

  .page-khuyen-mai__faq-answer {
    padding: 0 20px 15px;
    font-size: 1em;
  }

  .page-khuyen-mai__terms-list {
    padding-left: 20px;
  }
  .page-khuyen-mai__terms-list li {
    font-size: 1em;
  }
}