/* Base styles for page-khuyen-mai */
.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5rem;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-khuyen-mai__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-khuyen-mai__dark-bg {
  background-color: #2F6BFF; /* Main Color */
  color: #ffffff;
}

.page-khuyen-mai__light-bg {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  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;
  z-index: 1;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-khuyen-mai__hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #f0f8ff;
  margin-bottom: 30px;
}

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

.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: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  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 {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-khuyen-mai__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #2257cc;
  border-color: #2257cc;
}

.page-khuyen-mai__btn-lg {
  padding: 18px 35px;
  font-size: 1.2rem;
}

/* Intro Section */
.page-khuyen-mai__intro-section,
.page-khuyen-mai__categories-section,
.page-khuyen-mai__why-choose-us-section,
.page-khuyen-mai__how-to-claim-section,
.page-khuyen-mai__terms-section,
.page-khuyen-mai__faq-section,
.page-khuyen-mai__cta-final {
  padding: 60px 0;
}

/* Categories Section - Promo Grid */
.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: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border Color */
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a row have equal height */
  box-sizing: border-box;
}

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

.page-khuyen-mai__promo-card-image {
  width: 100%;
  max-width: 400px; /* Constrain image size within card */
  height: auto;
  min-height: 200px; /* Minimum image height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-khuyen-mai__promo-card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

.page-khuyen-mai__promo-card-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-khuyen-mai__btn-outline {
  background: none;
  border: 2px solid #2F6BFF;
  color: #2F6BFF;
  padding: 10px 20px;
  font-size: 1rem;
  margin-top: auto; /* Push button to bottom */
}

.page-khuyen-mai__btn-outline:hover {
  background: #2F6BFF;
  color: #ffffff;
}

/* Why Choose Us Section */
.page-khuyen-mai__why-choose-us-section .page-khuyen-mai__section-title {
  color: #ffffff;
}

.page-khuyen-mai__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-khuyen-mai__feature-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: #A5C4FF; /* Glow */
}

.page-khuyen-mai__feature-content h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-khuyen-mai__feature-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f8ff;
  margin-bottom: 0;
}

/* How to Claim Section */
.page-khuyen-mai__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-khuyen-mai__step-card {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border Color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  box-sizing: border-box;
}

.page-khuyen-mai__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #2F6BFF; /* Main Color */
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-khuyen-mai__step-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-khuyen-mai__step-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #1F2D3D;
}

.page-khuyen-mai__step-description a {
  color: #2F6BFF;
  text-decoration: none;
}

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

/* Terms Section */
.page-khuyen-mai__terms-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
  color: #1F2D3D;
}

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

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

.page-khuyen-mai__terms-list a {
  color: #2F6BFF;
  text-decoration: none;
}

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

/* FAQ Section */
.page-khuyen-mai__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai__faq-item {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border Color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1F2D3D;
  cursor: pointer;
  background-color: #fdfdff;
  border-bottom: 1px solid transparent; /* default */
  list-style: none; /* Remove default marker */
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
  border-bottom: 1px solid #D6E2FF;
  background-color: #f7f9ff;
  color: #2F6BFF;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  color: #2F6BFF; /* Main Color */
  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: 15px 25px 25px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
  background-color: #ffffff;
}

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

.page-khuyen-mai__cta-final .page-khuyen-mai__section-title {
  color: #ffffff;
}

.page-khuyen-mai__cta-final .page-khuyen-mai__text-block {
  color: #f0f8ff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Image and Container Responsive Styles */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-khuyen-mai__container,
.page-khuyen-mai__promo-grid,
.page-khuyen-mai__feature-list,
.page-khuyen-mai__steps-grid,
.page-khuyen-mai__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Homepage-specific CSS selectors (as per prompt, even if not used on this page) */
.page-khuyen-mai__home-content{
  border:1px solid #D6E2FF;
  border-radius:10px;
  height:650px;
  overflow-y:auto;
  padding: 20px;
  margin-top: 40px;
}
.page-khuyen-mai__row-games,
.page-khuyen-mai__row-sport,
.page-khuyen-mai__row-coop{
  background-color:#1A202C;
  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:#fff;
  text-align:center;
}
.page-khuyen-mai__slider-wrapper{
  overflow:hidden;
}
.page-khuyen-mai__slider-track{
  display:flex;
  flex-wrap:nowrap;
  gap:16px;
}
.page-khuyen-mai__game-slide{
  flex:0 0 200px;
  max-width:200px;
}
.page-khuyen-mai__banners-top-wrapper{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  max-width:900px;
  margin:0 auto;
}
.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;
}
.page-khuyen-mai__blog-card-link{
  display:flex;
  flex-direction:column;
  height:100%;
}
.page-khuyen-mai__btn-outline.blog-card-btn{
  margin-top:auto;
}
.page-khuyen-mai__blog-slider-track{
  display:flex;
  flex-wrap:nowrap;
  gap:20px;
}
.page-khuyen-mai__blog-slide{
  flex:0 0 calc(33.333% - 14px);
  max-width:calc(33.333% - 14px);
}

/* 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;
  }

  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-khuyen-mai__hero-image-wrapper {
    max-height: 300px;
  }

  .page-khuyen-mai__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

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

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

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1rem;
  }

  .page-khuyen-mai__btn-lg {
    font-size: 1.1rem;
    padding: 15px 25px;
  }

  /* 长文金框区 (from homepage template) */
  .page-khuyen-mai__home-content {
    height: auto;
    overflow-y: visible;
    padding: 15px;
    margin-top: 20px;
  }
  .page-khuyen-mai__home-content h2 {
    font-size: 1.8rem;
  }

  /* 游戏轮播 (from homepage template) */
  .page-khuyen-mai__row-games,
  .page-khuyen-mai__row-sport,
  .page-khuyen-mai__row-coop {
    padding: 20px 15px;
  }
  .page-khuyen-mai__games-title,
  .page-khuyen-mai__sport-title,
  .page-khuyen-mai__coop-title {
    font-size: 1.8rem;
  }
  .page-khuyen-mai__slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px; /* For scrollbar */
  }
  .page-khuyen-mai__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
    scroll-snap-align: start;
  }

  /* 合作品牌六宫格 (from homepage template) */
  .page-khuyen-mai__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .page-khuyen-mai__banner-item img {
    
    
  }

  /* 博客卡片区 (from homepage template) */
  .page-khuyen-mai__blog-masonry {
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .page-khuyen-mai__blog-slide {
    flex: 0 0 90%; /* Make slides take up most of the screen */
    max-width: 90%;
    scroll-snap-align: start;
  }

  /* General content sections */
  .page-khuyen-mai__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-khuyen-mai__text-block {
    font-size: 1rem;
  }

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

  .page-khuyen-mai__promo-card,
  .page-khuyen-mai__feature-item,
  .page-khuyen-mai__step-card,
  .page-khuyen-mai__faq-item {
    padding: 20px;
  }

  .page-khuyen-mai__promo-card-image {
    min-height: 150px;
  }

  .page-khuyen-mai__promo-card-title {
    font-size: 1.3rem;
  }

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

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

  /* Ensure all images are responsive and don't cause overflow */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all content containers are responsive */
  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container,
  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__feature-list,
  .page-khuyen-mai__steps-grid,
  .page-khuyen-mai__faq-list,
  .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;
  }

  /* Button text wrapping */
  .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"] {
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

/* Desktop specific styles for game/blog sliders if they were present */
@media (min-width: 769px) {
  .page-khuyen-mai__slider-track,
  .page-khuyen-mai__blog-slider-track {
    overflow-x: hidden;
  }
}