.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: var(--secondary-color, #FFFFFF);
}

.page-ban-ca__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding as body already has var(--header-offset) */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-ban-ca__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-ban-ca__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover for desktop */
  aspect-ratio: 16/9;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow, but text is below image */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-ban-ca__description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 30px;
  color: #333333;
}

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

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

.page-ban-ca__btn-primary {
  background: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-ban-ca__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
}

.page-ban-ca__btn-secondary {
  background: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-ban-ca__btn-secondary:hover {
  background: #e0f2f7;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-ban-ca__section {
  padding: 60px 0;
}

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

.page-ban-ca__content-area p {
  margin-bottom: 15px;
  color: #333333;
}

.page-ban-ca__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
  font-weight: 700;
}

.page-ban-ca__sub-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__dark-bg {
  background: #26A9E0;
}

.page-ban-ca__light-bg {
  background: #FFFFFF;
}

.page-ban-ca__light-text {
  color: #FFFFFF;
}

.page-ban-ca__light-text .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__light-text .page-ban-ca__description {
  color: #f0f0f0;
}

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

.page-ban-ca__game-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

.page-ban-ca__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-ban-ca__game-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__game-description {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-ban-ca__btn-play {
  display: inline-block;
  background: #EA7C07; /* Login color */
  color: #FFFFFF;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-ban-ca__btn-play:hover {
  background: #d66a00;
}

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

.page-ban-ca__strategy-text {
  flex: 1;
}

.page-ban-ca__strategy-image {
  flex: 1;
  text-align: center;
}

.page-ban-ca__strategy-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

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

.page-ban-ca__promo-card {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 20px;
}

.page-ban-ca__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-ban-ca__promo-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__promo-description {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-ban-ca__btn-view-more {
  display: inline-block;
  background: #26A9E0;
  color: #FFFFFF;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-ban-ca__btn-view-more:hover {
  background: #1e87c0;
}

.page-ban-ca__promo-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1rem;
  color: #333333;
}

.page-ban-ca__promo-text a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-ban-ca__promo-text a:hover {
  text-decoration: underline;
}

.page-ban-ca__btn-full-width {
  display: block;
  width: fit-content;
  margin: 30px auto 0 auto;
  text-align: center;
}

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

.page-ban-ca__advantage-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__advantage-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
}

.page-ban-ca__advantage-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-ban-ca__advantage-description {
  font-size: 0.95rem;
  color: #555555;
}

.page-ban-ca__advantages-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1rem;
  color: #f0f0f0;
}

/* FAQ Styles */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question::-webkit-details-marker {
  display: none;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question:hover {
  background: #f5f5f5;
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-ban-ca__btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.page-ban-ca__conclusion .page-ban-ca__btn-primary {
  margin-top: 40px;
}

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

  .page-ban-ca__main-title {
    font-size: 2.8rem;
  }

  .page-ban-ca__description {
    font-size: 1.1rem;
  }

  .page-ban-ca__section-title {
    font-size: 2.2rem;
  }

  .page-ban-ca__sub-title {
    font-size: 1.7rem;
  }

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

  .page-ban-ca__strategy-image {
    order: -1; /* Image on top for smaller screens */
  }
}

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

  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }
  .page-ban-ca__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    height: 250px; /* Fixed height for mobile hero */
  }
  .page-ban-ca__hero-content {
    margin-top: -50px;
    padding: 25px 15px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    width: 100% !important; /* Ensure content area fits screen */
    box-sizing: border-box !important;
  }
  .page-ban-ca__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-ban-ca__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* General Sections and Containers */
  .page-ban-ca__section {
    padding: 40px 0;
  }
  .page-ban-ca__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-ban-ca__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    margin-top: 25px;
  }
  .page-ban-ca p,
  .page-ban-ca li {
    font-size: 15px;
  }

  /* Sản phẩm/Game Showcase */
  .page-ban-ca__games-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__advantage-card {
    padding-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__game-card img,
  .page-ban-ca__promo-card img,
  .page-ban-ca__advantage-card img {
    
    max-width: 100% !important;
    width: 100% !important;
    object-fit: cover;
  }

  /* Chiến thuật và Mẹo Chơi (Strategy Section) */
  .page-ban-ca__strategy-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-ban-ca__strategy-image {
    order: -1;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__strategy-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Buttons */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .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: 12px 15px;
    font-size: 1rem;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Ensure vertical stacking for CTAs */
    gap: 10px;
  }
  .page-ban-ca__btn-full-width {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
  }
  .page-ban-ca__btn-large {
    padding: 15px 25px;
    font-size: 1rem;
  }

  /* FAQ */
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 15px;
  }
  .page-ban-ca__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 15px 15px;
  }
}

/* Ensure all images within .page-ban-ca are responsive */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Content area images CSS size lower limit check */
.page-ban-ca__content-area img,
.page-ban-ca__games-grid img,
.page-ban-ca__promo-grid img,
.page-ban-ca__advantages-grid img {
  min-width: 200px;
  min-height: 200px;
}

/* Contrast Fixes */
.page-ban-ca__dark-bg .page-ban-ca__content-area p,
.page-ban-ca__dark-bg .page-ban-ca__content-area a {
  color: #f0f0f0; /* Ensure light text on dark background */
}

.page-ban-ca__dark-bg .page-ban-ca__content-area h3 {
  color: #FFFFFF; /* Ensure light text on dark background */
}