/* 智能文字颜色选择器 - Sử dụng màu chữ phù hợp với nền tối (Black Gold) */
.page-ban-ca {
  color: #FFF6D6; /* Màu chữ chính cho nền tối */
  background-color: #0A0A0A; /* Màu nền chính của body */
}

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

.page-ban-ca__dark-section {
  background-color: #111111;
  color: #FFF6D6;
  padding: 40px 0;
}

.page-ban-ca__hero-section {
  padding-top: 10px; /* Nhỏ hơn so với var(--header-offset) */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -150px; /* Kéo nội dung lên trên hình ảnh một chút, không chồng lấn */
  background: rgba(17, 17, 17, 0.85); /* Nền tối nhẹ để chữ nổi bật */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: #FFD36B; /* Màu vàng sáng từ Glow */
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.page-ban-ca__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 30px;
}

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

.page-ban-ca__cta-buttons--center {
  margin-top: 40px;
}

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Màu chữ tối trên nền sáng */
  border: none;
}

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

.page-ban-ca__btn-secondary {
  background: transparent;
  color: #FFD36B;
  border: 2px solid #FFD36B;
}

.page-ban-ca__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
}

.page-ban-ca__btn-outline {
  background: transparent;
  color: #FFD36B;
  border: 1px solid #FFD36B;
  padding: 10px 20px;
  font-size: 1em;
}

.page-ban-ca__btn-outline:hover {
  background: #FFD36B;
  color: #111111;
}

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFD36B;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-ban-ca__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #FFD36B;
  border-radius: 2px;
}

.page-ban-ca__intro-section p,
.page-ban-ca__how-to-play-section p,
.page-ban-ca__advantages-section p,
.page-ban-ca__promotions-section p,
.page-ban-ca__download-app-section p,
.page-ban-ca__conclusion-section p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF6D6;
  text-align: center;
}

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

.page-ban-ca__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  color: #FFF6D6;
  height: 100%;
}

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

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

.page-ban-ca__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-ban-ca__card-content p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

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

.page-ban-ca__step-item {
  background-color: rgba(242, 193, 78, 0.1); /* Nhẹ nhàng từ màu chủ đạo */
  border: 1px solid #F2C14E;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__step-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-ban-ca__step-item p {
  color: #FFF6D6;
  font-size: 0.95em;
  line-height: 1.6;
  text-align: center;
}

.page-ban-ca__strategy-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-ban-ca__strategy-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__strategy-text {
  flex: 1;
  max-width: 50%;
  color: #FFF6D6;
}

.page-ban-ca__sub-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #F2C14E;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-ban-ca__strategy-text p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: left;
}

.page-ban-ca__advantage-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0 auto;
  max-width: 800px;
  text-align: left;
}

.page-ban-ca__advantage-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #FFF6D6;
  display: flex;
  align-items: flex-start;
}

.page-ban-ca__list-icon {
  color: #FFD36B;
  font-size: 1.4em;
  margin-right: 10px;
  line-height: 1;
}

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

.page-ban-ca__download-app-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-ban-ca__download-app-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__download-app-text {
  flex: 1;
  max-width: 50%;
  color: #FFF6D6;
  text-align: left;
}

.page-ban-ca__download-app-text .page-ban-ca__section-title {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-ban-ca__download-app-text .page-ban-ca__section-title::after {
  left: 0;
  transform: translateX(0);
}

.page-ban-ca__download-app-text .page-ban-ca__cta-buttons {
  justify-content: flex-start;
}

.page-ban-ca__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF6D6;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #FFD36B;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.page-ban-ca__faq-question::-webkit-details-marker {
  display: none;
}

.page-ban-ca__faq-question .page-ban-ca__faq-toggle {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #FFF6D6;
  border-top: 1px solid #3A2A12;
  text-align: left;
}

.page-ban-ca__faq-answer p {
  text-align: left;
  margin-bottom: 0;
}

.page-ban-ca__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__conclusion-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Common image styles for content area */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-ban-ca__description {
    font-size: 1em;
  }

  .page-ban-ca__section-title {
    font-size: 2em;
  }

  .page-ban-ca__strategy-content,
  .page-ban-ca__download-app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-ban-ca__strategy-image,
  .page-ban-ca__strategy-text,
  .page-ban-ca__download-app-image,
  .page-ban-ca__download-app-text {
    max-width: 100%;
  }

  .page-ban-ca__download-app-text .page-ban-ca__section-title,
  .page-ban-ca__download-app-text .page-ban-ca__section-title::after {
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
  }

  .page-ban-ca__download-app-text .page-ban-ca__cta-buttons {
    justify-content: center;
  }

  .page-ban-ca__card-image {
    height: 200px;
  }
}

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

  .page-ban-ca__hero-section {
    min-height: 400px;
  }

  .page-ban-ca__hero-content {
    margin-top: -80px;
    padding: 20px 15px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-ban-ca__description {
    font-size: 0.9em;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-outline,
  .page-ban-ca a[class*="button"],
  .page-ban-ca 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-ban-ca__cta-buttons,
  .page-ban-ca__button-group,
  .page-ban-ca__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-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-ban-ca__intro-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__strategy-section,
  .page-ban-ca__advantages-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__download-app-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__conclusion-section {
    padding: 30px 0;
  }

  .page-ban-ca__container {
    padding: 0 15px;
  }

  .page-ban-ca__game-cards-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__card-image {
    height: 180px;
  }

  .page-ban-ca__strategy-image,
  .page-ban-ca__download-app-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-ban-ca__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

/* --- Specific requirements from template for non-homepage --- */
/* Non-homepage specific rules - no gameshow/game */
.page-ban-ca__home-content { /* Placeholder for template's home-content, not used on this page */ }
.page-ban-ca__row-games, .page-ban-ca__row-sport, .page-ban-ca__row-coop { /* Not used on this page */ }
.page-ban-ca__games-title, .page-ban-ca__sport-title, .page-ban-ca__coop-title { /* Not used on this page */ }
.page-ban-ca__slider-wrapper { /* Not used on this page */ }
.page-ban-ca__slider-track { /* Not used on this page */ }
.page-ban-ca__game-slide { /* Not used on this page */ }
.page-ban-ca__banners-top-wrapper { /* Not used on this page */ }
.page-ban-ca__banner-item img { /* Not used on this page */ }
.page-ban-ca__blog-masonry { /* Not used on this page as primary blog display */ }
.page-ban-ca__blog-card-link { /* Not used on this page */ }
.page-ban-ca__blog-slider-track { /* Not used on this page */ }
.page-ban-ca__blog-slide { /* Not used on this page */ }

/* Ensure min image size */
.page-ban-ca img:not(.page-ban-ca__list-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure no filter */
.page-ban-ca img {
    filter: none !important;
}