/* Base Styles for Khuyến Mãi Page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  position: relative;
  overflow: hidden;
  color: #FFFFFF; /* White text for dark brand background */
  background-color: #26A9E0; /* Brand main color */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability without changing hue */
}

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: -100px; /* Pull content up over the image slightly for visual flow */
}

.page-khuyen-mai__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-khuyen-mai__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-khuyen-mai__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-khuyen-mai__btn-primary:hover {
  background-color: #D46F00;
  border-color: #D46F00;
}

.page-khuyen-mai__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand main color for secondary action */
  border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #F0F8FF;
  color: #1A7FB0;
  border-color: #1A7FB0;
}

.page-khuyen-mai__btn-outline {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-outline:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* General Section Styling */
.page-khuyen-mai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand main color for titles */
}

.page-khuyen-mai__dark-bg .page-khuyen-mai__section-title {
  color: #FFFFFF;
}

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

.page-khuyen-mai__dark-bg .page-khuyen-mai__section-description {
  color: #E0E0E0;
}

.page-khuyen-mai__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-khuyen-mai__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* Why Choose Section */
.page-khuyen-mai__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__benefit-card {
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-khuyen-mai__benefit-icon {
  width: 100%;
  max-width: 250px; /* Adjusted from 100% to a max-width */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-khuyen-mai__benefit-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-khuyen-mai__benefit-text {
  font-size: 1em;
  color: #555555;
}

/* Promotions List Section */
.page-khuyen-mai__promotion-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__promotion-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-khuyen-mai__promotion-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-khuyen-mai__promotion-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-khuyen-mai__promotion-details-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #555555;
}

.page-khuyen-mai__promotion-details-list li {
  margin-bottom: 5px;
}

.page-khuyen-mai__btn-outline {
  margin-top: auto; /* Push button to bottom */
}

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

.page-khuyen-mai__step-card {
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-khuyen-mai__step-icon {
  width: 100%;
  max-width: 200px; /* Adjusted from 100% to a max-width */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-khuyen-mai__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-khuyen-mai__step-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Terms Section */
.page-khuyen-mai__terms-list {
  list-style-type: disc;
  margin-left: 25px;
  color: #E0E0E0;
}

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

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

.page-khuyen-mai__terms-cta {
  text-align: center;
  margin-top: 40px;
}

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

.page-khuyen-mai__faq-item {
  background-color: #F8F8F8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #E0F2F7; /* Lighter brand color */
  border-bottom: 1px solid #D0E8EF;
  list-style: none; /* For details/summary */
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
  border-bottom: 1px solid transparent; /* Hide border when open */
}

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

.page-khuyen-mai__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text from intercepting click for summary */
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  pointer-events: none; /* Prevent toggle from intercepting click for summary */
}

.page-khuyen-mai__faq-item:not([open]) .page-khuyen-mai__faq-toggle {
  content: '+';
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  content: '-';
}

.page-khuyen-mai__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #FFFFFF;
}

.page-khuyen-mai__faq-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-khuyen-mai__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Bottom Section */
.page-khuyen-mai__cta-bottom-section {
  padding: 60px 20px;
  text-align: center;
}

/* --- General CSS for modules from Homepage (as per requirement, even if not used on this page) --- */
/* The following rules are included as per the '移动端 @media (max-width: 768px) 必写清单' instruction. */
/* They are designed with .page-khuyen-mai prefix but might not be actively used on this specific page. */

/* Long Text Gold Border Section (Placeholder for potential future use or general structure) */
.page-khuyen-mai__home-content {
  border: 1px solid #FBB00D; /* Gold border */
  border-radius: 10px;
  padding: 20px;
  height: auto; /* Default for non-fixed height */
  overflow-y: visible; /* Default for non-scrolling */
  margin-bottom: 40px;
}

.page-khuyen-mai__home-content h2 {
  font-size: 2em;
  color: #26A9E0;
}

/* Game Carousel Section (Placeholder) */
.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 40px auto;
}

.page-khuyen-mai__games-title, .page-khuyen-mai__sport-title, .page-khuyen-mai__coop-title {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.page-khuyen-mai__slider-wrapper {
  overflow: hidden;
  position: relative;
  padding: 0 20px;
}

.page-khuyen-mai__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.5s ease-in-out;
}

.page-khuyen-mai__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #333;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding-bottom: 15px;
}

.page-khuyen-mai__game-slide img {
  width: 100%;
  
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__game-slide h4 {
  font-size: 1.1em;
  margin: 10px 0 5px;
}

.page-khuyen-mai__slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.page-khuyen-mai__slider-prev {
  left: 0;
}

.page-khuyen-mai__slider-next {
  right: 0;
}

/* Partner/Brand Grid (Placeholder for gameshow-like section) */
.page-khuyen-mai__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  align-items: center;
  justify-items: center;
}

.page-khuyen-mai__banner-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-khuyen-mai__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Blog/News Section (Placeholder) */
.page-khuyen-mai__blog-section {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.page-khuyen-mai__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch; /* Ensures cards in the same row have equal height */
}

.page-khuyen-mai__blog-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuyen-mai__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.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;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-khuyen-mai__blog-card-text {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-khuyen-mai__blog-card-meta {
  font-size: 0.85em;
  color: #888;
}

.page-khuyen-mai__blog-slider-wrapper {
  overflow: hidden;
  position: relative;
  padding: 0 20px;
}

.page-khuyen-mai__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.page-khuyen-mai__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* For 3 items with 20px gap */
  max-width: calc(33.333% - 14px);
}

/* View All Button */
.page-khuyen-mai__view-all-btn {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  padding: 12px 30px;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-khuyen-mai__view-all-btn:hover {
  background-color: #1A7FB0;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-content {
    margin-top: -80px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.8em);
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(1.6em, 3.8vw, 2.2em);
  }

  .page-khuyen-mai__benefits-grid,
  .page-khuyen-mai__promotion-cards-grid,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-khuyen-mai__blog-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-khuyen-mai__blog-slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

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

  .page-khuyen-mai__hero-content {
    margin-top: -60px; /* Adjust for smaller screens */
    padding: 15px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-khuyen-mai__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  /* 按钮与按钮容器 */
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai__btn-outline,
  .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; /* Ensure vertical stacking for multiple buttons */
  }

  .page-khuyen-mai__container {
    padding: 20px 15px;
  }

  .page-khuyen-mai__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 15px;
  }

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

  /* 长文金框区 */
  .page-khuyen-mai__home-content {
    height: auto;
    overflow-y: visible;
    padding: 15px;
  }

  .page-khuyen-mai__home-content h2 {
    font-size: 1.8em;
  }

  /* 游戏轮播 */
  .page-khuyen-mai__row-games, .page-khuyen-mai__row-sport, .page-khuyen-mai__row-coop {
    padding: 20px 0;
    margin-bottom: 20px;
  }
  .page-khuyen-mai__slider-wrapper {
    padding: 0 10px;
  }
  .page-khuyen-mai__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .page-khuyen-mai__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
  }
  .page-khuyen-mai__slider-nav {
    padding: 8px;
  }
  .page-khuyen-mai__slider-prev {
    left: -5px;
  }
  .page-khuyen-mai__slider-next {
    right: -5px;
  }

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

  /* 博客卡片区 */
  .page-khuyen-mai__blog-masonry {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  .page-khuyen-mai__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
  }

  .page-khuyen-mai__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* 通用图片与容器 */
  .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,
  .page-khuyen-mai__benefit-card,
  .page-khuyen-mai__promotion-card,
  .page-khuyen-mai__step-card,
  .page-khuyen-mai__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific adjustments for cards */
  .page-khuyen-mai__benefit-card,
  .page-khuyen-mai__promotion-card,
  .page-khuyen-mai__step-card {
    padding: 20px;
  }

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

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

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