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

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

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color, #1F2D3D);
}

.page-khuyen-mai__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding as per instruction */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.9); /* Slightly transparent white background for text */
  border-radius: 10px;
  margin-top: -100px; /* Overlap slightly on desktop for visual effect */
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  font-weight: 900;
  color: var(--primary-color, #2F6BFF);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  color: var(--text-main-color, #1F2D3D);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-khuyen-mai__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-khuyen-mai__btn-secondary {
  background-color: var(--card-bg-color, #FFFFFF);
  color: var(--primary-color, #2F6BFF);
  border: 2px solid var(--primary-color, #2F6BFF);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: var(--primary-color, #2F6BFF);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(47, 107, 255, 0.2);
}

.page-khuyen-mai__cta-bottom {
  margin-top: 50px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Overview Section */
.page-khuyen-mai__overview-section {
  padding: 60px 0;
  background-color: var(--primary-color, #2F6BFF); /* Dark background */
  color: #ffffff; /* Light text */
  margin-bottom: 40px;
}

.page-khuyen-mai__overview-section .page-khuyen-mai__section-title {
  color: #ffffff;
}

.page-khuyen-mai__overview-section .page-khuyen-mai__text-block {
  color: #f0f0f0;
}

/* Promotion Types Section */
.page-khuyen-mai__promotion-types-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-khuyen-mai__promotion-card {
  background-color: var(--card-bg-color, #FFFFFF);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-main-color, #1F2D3D);
  height: 100%;
}

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

.page-khuyen-mai__card-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--primary-color, #2F6BFF);
  margin-bottom: 15px;
}

.page-khuyen-mai__card-description {
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-khuyen-mai__card-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 0.95em;
  color: var(--text-main-color, #1F2D3D);
}

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

/* Guide Section */
.page-khuyen-mai__guide-section {
  padding: 60px 0;
  background-color: var(--primary-color, #2F6BFF); /* Dark background */
  color: #ffffff; /* Light text */
  margin-bottom: 40px;
}

.page-khuyen-mai__guide-section .page-khuyen-mai__section-title {
  color: #ffffff;
}

.page-khuyen-mai__guide-section .page-khuyen-mai__text-block {
  color: #f0f0f0;
}

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

.page-khuyen-mai__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.page-khuyen-mai__guide-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-khuyen-mai__guide-item p {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__guide-item a {
  margin-top: auto;
}

/* Terms Section */
.page-khuyen-mai__terms-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-khuyen-mai__terms-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 30px;
  font-size: 1.1em;
  color: var(--text-main-color, #1F2D3D);
}

.page-khuyen-mai__terms-list li {
  margin-bottom: 15px;
}

.page-khuyen-mai__terms-highlight {
  font-weight: bold;
  color: var(--primary-color, #2F6BFF);
}

.page-khuyen-mai__terms-section a {
  color: var(--primary-color, #2F6BFF);
  text-decoration: underline;
}

.page-khuyen-mai__terms-section a:hover {
  color: var(--secondary-color, #6FA3FF);
}

/* Why Choose Section */
.page-khuyen-mai__why-choose-section {
  padding: 60px 0;
  background-color: var(--primary-color, #2F6BFF); /* Dark background */
  color: #ffffff; /* Light text */
  margin-bottom: 40px;
}

.page-khuyen-mai__why-choose-section .page-khuyen-mai__section-title {
  color: #ffffff;
}

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

.page-khuyen-mai__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuyen-mai__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-khuyen-mai__feature-item p {
  color: #f0f0f0;
  flex-grow: 1;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-khuyen-mai__faq-item {
  background-color: var(--card-bg-color, #FFFFFF);
  border: 1px solid var(--border-color, #D6E2FF);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #1F2D3D);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color, #2F6BFF);
  list-style: none; /* For details/summary */
}

.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.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 25px;
  font-size: 1.05em;
  color: var(--text-main-color, #1F2D3D);
}

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

.page-khuyen-mai__faq-answer a {
  color: var(--primary-color, #2F6BFF);
  text-decoration: underline;
}

.page-khuyen-mai__faq-answer a:hover {
  color: var(--secondary-color, #6FA3FF);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__container {
    padding: 20px 30px;
  }

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

  .page-khuyen-mai__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }

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

  .page-khuyen-mai__promotion-grid,
  .page-khuyen-mai__guide-list,
  .page-khuyen-mai__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

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

  .page-khuyen-mai__guide-title,
  .page-khuyen-mai__feature-title {
    font-size: 1.3em;
  }
}

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

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

  /* HERO 主图区域 */
  .page-khuyen-mai__hero-section {
    padding-top: 10px; /* Approximately 10px top padding */
    margin-bottom: 30px;
  }

  .page-khuyen-mai__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__hero-content {
    margin-top: -60px; /* Adjust overlap for mobile */
    padding: 25px 15px;
    max-width: 95%;
  }

  .page-khuyen-mai__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

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

  /* General content section titles */
  .page-khuyen-mai__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

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

  /* 按钮与按钮容器 */
  .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: 12px 15px;
    font-size: 1em;
  }

  .page-khuyen-mai__cta-bottom {
    margin-top: 30px;
    width: 100%;
  }

  /* 按钮容器移动端适配 */
  .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 {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* Promotion Grid */
  .page-khuyen-mai__promotion-grid {
    grid-template-columns: 1fr; /* Single column for promotion cards */
    gap: 25px;
  }

  .page-khuyen-mai__promotion-card {
    padding: 20px;
  }

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

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

  /* Guide List */
  .page-khuyen-mai__guide-list {
    grid-template-columns: 1fr; /* Single column for guide items */
    gap: 25px;
  }

  .page-khuyen-mai__guide-item {
    padding: 20px;
  }

  .page-khuyen-mai__guide-title {
    font-size: 1.2em;
  }

  /* Feature Grid */
  .page-khuyen-mai__feature-grid {
    grid-template-columns: 1fr; /* Single column for feature items */
    gap: 25px;
  }

  .page-khuyen-mai__feature-item {
    padding: 20px;
  }

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

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

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

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

  .page-khuyen-mai__overview-section,
  .page-khuyen-mai__promotion-types-section,
  .page-khuyen-mai__guide-section,
  .page-khuyen-mai__terms-section,
  .page-khuyen-mai__why-choose-section,
  .page-khuyen-mai__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* No specific styles for long text gold frame, game/brand carousels, blog sections as this is not homepage */
}

/* Placeholder for modules that are not present on this non-homepage page, but required for CSS output */
/* Long text gold frame area (not applicable to this page, but placeholder for structure) */
.page-khuyen-mai__home-content { /* Not used on this page, but present for completeness */ }
/* Game carousel (not applicable to this page, but placeholder for structure) */
.page-khuyen-mai__slider-wrapper { /* Not used on this page */ }
.page-khuyen-mai__slider-track { /* Not used on this page */ }
.page-khuyen-mai__game-slide { /* Not used on this page */ }
/* Partner brand grid (not applicable to this page, but placeholder for structure) */
.page-khuyen-mai__banners-top-wrapper { /* Not used on this page */ }
.page-khuyen-mai__banner-item img { /* Not used on this page */ }
/* Blog card section (using generic blog type for content cards, not a dedicated blog section for homepage) */
.page-khuyen-mai__blog-masonry { /* Not used on this page as a dedicated section */ }
.page-khuyen-mai__blog-card-link { /* Not used on this page as a dedicated section */ }
.page-khuyen-mai__btn-outline { /* Not used on this page as a dedicated section */ }
.page-khuyen-mai__blog-slider-track { /* Not used on this page as a dedicated section */ }
.page-khuyen-mai__blog-slide { /* Not used on this page as a dedicated section */ }

/* Default colors for contrast safety - these should be overridden by specific elements */
.page-khuyen-mai__dark-bg {
  color: #ffffff;
  background-color: var(--primary-color, #2F6BFF);
}

.page-khuyen-mai__light-bg {
  color: #333333;
  background-color: var(--page-bg-color, #F4F7FB);
}

.page-khuyen-mai__medium-bg {
  color: #000000;
  background-color: var(--secondary-color, #6FA3FF);
}