/* Base styles for the Khuyen Mai page */
.page-khuyen-mai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

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

.page-khuyen-mai__dark-bg {
  background: #E53935;
  color: #ffffff;
}

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

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #333333;
}

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

.page-khuyen-mai__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #E53935;
}

.page-khuyen-mai__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-khuyen-mai__description--white {
  color: #ffffff;
}

.page-khuyen-mai__text-block p {
  margin-bottom: 1em;
  font-size: 1.05em;
}

/* Buttons */
.page-khuyen-mai__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

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

.page-khuyen-mai__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-khuyen-mai__btn-secondary--center {
  display: block;
  margin: 40px auto 0;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Small top padding, main padding from body */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-khuyen-mai__hero-section .page-khuyen-mai__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-khuyen-mai__hero-content {
  flex: 1;
  text-align: left;
  z-index: 1;
}

.page-khuyen-mai__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 600px;
}

.page-khuyen-mai__hero-section .page-khuyen-mai__description {
  color: #f0f0f0;
  text-align: left;
  max-width: 700px;
  margin: 0 0 30px 0;
}

.page-khuyen-mai__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
}

.page-khuyen-mai__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-khuyen-mai__intro-section {
  padding: 80px 0;
}

.page-khuyen-mai__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__content-image--bottom {
  margin-top: 60px;
  margin-bottom: 0;
}

/* Promo Types Grid */
.page-khuyen-mai__types-section {
  padding: 80px 0;
}

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

.page-khuyen-mai__card {
  background: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-khuyen-mai__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-khuyen-mai__card-content .page-khuyen-mai__btn-primary {
  margin-top: auto;
  width: 100%;
}

/* Terms and Conditions */
.page-khuyen-mai__terms-conditions {
  padding: 80px 0;
}

/* How to Get Promo */
.page-khuyen-mai__how-to-get-promo {
  padding: 80px 0;
}

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

.page-khuyen-mai__step-card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuyen-mai__card--dark {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

.page-khuyen-mai__step-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-khuyen-mai__step-card .page-khuyen-mai__btn-primary {
  width: 100%;
  margin-top: auto;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
  padding: 80px 0;
}

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

.page-khuyen-mai__faq-item {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  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.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background: #fdfdfd;
  transition: background 0.3s ease;
  list-style: none;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
  background: #E53935;
  color: #ffffff;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

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

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: #E53935;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #E0E0E0;
}

/* Conclusion CTA */
.page-khuyen-mai__conclusion-cta {
  padding: 80px 0;
  text-align: center;
}

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

.page-khuyen-mai__section,
.page-khuyen-mai__card,
.page-khuyen-mai__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-section .page-khuyen-mai__container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-khuyen-mai__hero-content {
    text-align: center;
  }

  .page-khuyen-mai__main-title {
    font-size: 2.8em;
    max-width: none;
  }

  .page-khuyen-mai__hero-section .page-khuyen-mai__description {
    text-align: center;
    max-width: none;
    margin: 0 auto 30px;
  }

  .page-khuyen-mai__hero-image-wrapper {
    justify-content: center;
  }

  .page-khuyen-mai__section-title {
    font-size: 2em;
  }

  .page-khuyen-mai__sub-title {
    font-size: 1.6em;
  }

  .page-khuyen-mai__promo-grid,
  .page-khuyen-mai__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

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

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

  .page-khuyen-mai__hero-section .page-khuyen-mai__container {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .page-khuyen-mai__main-title {
    font-size: 2.2em !important;
    margin-bottom: 15px;
  }

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

  /* 按钮与按钮容器 */
  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container,
  .page-khuyen-mai__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-khuyen-mai__sub-title {
    font-size: 1.4em !important;
  }

  .page-khuyen-mai__intro-section,
  .page-khuyen-mai__types-section,
  .page-khuyen-mai__terms-conditions,
  .page-khuyen-mai__how-to-get-promo,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__conclusion-cta {
    padding: 40px 0 !important;
  }

  /* 卡片布局图片要求 */
  .page-khuyen-mai__card-image {
    height: 200px !important;
  }

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

  .page-khuyen-mai__card-title {
    font-size: 1.2em !important;
  }

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

  .page-khuyen-mai__faq-toggle {
    font-size: 1.5em !important;
  }

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

  .page-khuyen-mai__btn-secondary--center {
    margin-top: 30px;
  }

  /* Long text sections - no specific "gold frame" section, apply to general text blocks */
  .page-khuyen-mai__text-block {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  /* No game/brand carousel or blog masonry/slider as per non-homepage rules */
  /* However, if they were present, their media queries would be here */
  /* Placeholder for other required media query sections if they were applicable to this page type */
  /* .page-khuyen-mai__home-content { height: auto !important; overflow-y: visible !important; } */
  /* .page-khuyen-mai__slider-track { display: flex !important; flex-wrap: nowrap !important; } */
  /* .page-khuyen-mai__game-slide { flex: 0 0 100% !important; max-width: 100% !important; } */
  /* .page-khuyen-mai__banners-top-wrapper { grid-template-columns: repeat(2, 1fr) !important; } */
  /* .page-khuyen-mai__blog-masonry { grid-template-columns: 1fr !important; } */
  /* .page-khuyen-mai__blog-slider-track { display: flex !important; flex-wrap: nowrap !important; } */
  /* .page-khuyen-mai__blog-slide { flex: 0 0 100% !important; max-width: 100% !important; } */
}