.page-ban-ca {
  color: var(--text-main);
  background-color: var(--bg-color);
  font-family: Arial, sans-serif;
}

.page-ban-ca__content-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 60px;
  background: var(--bg-color);
}

.page-ban-ca__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-ban-ca__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-ban-ca__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--glow-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-ban-ca__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-main);
}

.page-ban-ca__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-ban-ca__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__hero-cta-buttons {
  display: flex;
  gap: 15px;
  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: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-ban-ca__btn-secondary {
  background: #111111;
  color: var(--primary-color);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--primary-color);
  color: #111111;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Section Titles */
.page-ban-ca__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--glow-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: -20px auto 60px auto;
  color: var(--text-main);
}

/* Intro Section */
.page-ban-ca__intro-section {
  padding: 60px 0;
  background: var(--bg-color);
}

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

.page-ban-ca__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background: var(--card-bg-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-ban-ca__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-ban-ca__feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

/* How to Play Section */
.page-ban-ca__how-to-play-section {
  padding: 60px 0;
  background: var(--bg-color);
}

.page-ban-ca__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.page-ban-ca__guide-step {
  text-align: center;
  background: var(--card-bg-color);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-ban-ca__guide-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-ban-ca__guide-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

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

/* Popular Games Section */
.page-ban-ca__popular-games-section {
  padding: 60px 0;
  background: var(--card-bg-color);
}

.page-ban-ca__popular-games-section .page-ban-ca__section-title,
.page-ban-ca__popular-games-section .page-ban-ca__section-description {
  color: var(--text-main);
  text-shadow: none;
}

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

.page-ban-ca__game-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid var(--border-color);
}

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

.page-ban-ca__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__game-short-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 60px 0;
  background: var(--bg-color);
}

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

.page-ban-ca__promo-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid var(--border-color);
}

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

.page-ban-ca__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__promo-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 20px;
  padding: 0 15px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
  background: var(--card-bg-color);
}

.page-ban-ca__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-ban-ca__faq-item {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--glow-color);
}

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

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

.page-ban-ca__faq-answer p {
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-ban-ca__hero-content {
    text-align: center;
  }

  .page-ban-ca__hero-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-ban-ca__hero-description {
    font-size: 1rem;
  }

  .page-ban-ca__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-ban-ca__content-container {
    padding: 15px;
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-ban-ca__section-description {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .page-ban-ca__intro-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__popular-games-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__faq-section {
    padding: 40px 0;
  }

  .page-ban-ca__feature-grid,
  .page-ban-ca__guide-grid,
  .page-ban-ca__game-list-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 2px;
  }

  .page-ban-ca__feature-title {
    font-size: 1.3rem;
  }

  .page-ban-ca__guide-title,
  .page-ban-ca__game-title,
  .page-ban-ca__promo-title {
    font-size: 1.3rem;
  }

  /* General image responsive */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Override for circular images in intro section */
  .page-ban-ca__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

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

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

/* Default text and background colors based on a dark body background */
.page-ban-ca {
  color: var(--text-main);
  background-color: var(--bg-color);
}

.page-ban-ca__card {
  background: var(--card-bg-color);
  color: var(--text-main);
}

.page-ban-ca__dark-section .page-ban-ca__section-title,
.page-ban-ca__dark-section .page-ban-ca__section-description {
  color: var(--text-main); /* Ensure light text on dark background */
}

.page-ban-ca__dark-section {
  background: var(--card-bg-color);
}

/* Specific contrast for primary button text */
.page-ban-ca__btn-primary {
  color: #111111;
}

.page-ban-ca__btn-secondary {
  color: var(--primary-color);
}