.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F3F8FF); /* Default text color for dark body background */
  background-color: var(--color-deep-navy); /* Ensure consistency with body background */
}

.page-ban-ca__section {
  padding: 40px 20px;
  margin-bottom: 20px;
}

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  color: var(--text-main, #F3F8FF);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ban-ca__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-secondary, #AFC4E8);
}

.page-ban-ca__card {
  background: var(--card-bg, #10233F);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main, #F3F8FF);
}

.page-ban-ca__light-bg {
  background: #ffffff; /* Override for light background sections/cards */
  color: #333333; /* Dark text for light backgrounds */
}

.page-ban-ca__dark-section {
  background: var(--color-deep-navy, #08162B);
  color: var(--text-main, #F3F8FF);
}

.page-ban-ca__dark-section .page-ban-ca__section-title,
.page-ban-ca__dark-section .page-ban-ca__text-main {
  color: var(--text-main, #F3F8FF);
}

.page-ban-ca__dark-section .page-ban-ca__text-secondary {
  color: var(--text-secondary, #AFC4E8);
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
}

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

.page-ban-ca__btn-secondary {
  background: transparent;
  color: var(--glow, #4FA8FF);
  border: 2px solid var(--glow, #4FA8FF);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--glow, #4FA8FF);
  color: var(--color-deep-navy, #08162B);
  transform: translateY(-2px);
}

.page-ban-ca__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-ban-ca__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-ban-ca__hero-content {
  max-width: 900px;
  margin-top: 30px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-ban-ca__main-title {
  font-size: 3.2em;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-ban-ca__intro-text {
  font-size: 1.2em;
  color: var(--text-secondary, #AFC4E8);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Intro Overview Section */
.page-ban-ca__intro-overview-section .page-ban-ca__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Game Showcase Section */
.page-ban-ca__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-ban-ca__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--border, #244D84);
  background: var(--card-bg, #10233F);
  color: var(--text-main, #F3F8FF);
}

.page-ban-ca__game-image {
  width: 100%;
  max-width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-ban-ca__game-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold, #F2C14E);
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  color: var(--text-secondary, #AFC4E8);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-ban-ca__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-ban-ca__guide-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 280px;
}

.page-ban-ca__guide-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  display: block;
}

.page-ban-ca__step-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333333; /* Dark text for light background */
}

.page-ban-ca__step-description {
  font-size: 0.95em;
  color: #555555; /* Darker text for light background */
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-ban-ca__promo-card {
  background: var(--card-bg, #10233F);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-ban-ca__promo-title {
  font-size: 1.5em;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: var(--gold, #F2C14E);
}

.page-ban-ca__promo-description {
  font-size: 0.95em;
  color: var(--text-secondary, #AFC4E8);
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-ban-ca__promo-section .page-ban-ca__btn-large {
  margin-top: 40px;
}

/* Why Choose Section */
.page-ban-ca__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
  list-style: none;
  padding: 0;
}

.page-ban-ca__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 280px;
}

.page-ban-ca__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  display: block;
}

.page-ban-ca__feature-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333333; /* Dark text for light background */
}

.page-ban-ca__feature-description {
  font-size: 0.95em;
  color: #555555; /* Darker text for light background */
  flex-grow: 1;
}

/* FAQ Section */
.page-ban-ca__faq-list {
  margin-top: 30px;
}

.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border, #244D84);
  overflow: hidden;
  color: #333333; /* Dark text for light background */
  background: #ffffff;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #333333;
  list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-item summary {
  list-style: none;
}

.page-ban-ca__faq-item summary::marker,
.page-ban-ca__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-ban-ca__faq-qtext {
  flex-grow: 1;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #4FA8FF);
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* CTA Section */
.page-ban-ca__cta-content {
  text-align: center;
  padding: 40px 20px;
}

.page-ban-ca__cta-content .page-ban-ca__main-title,
.page-ban-ca__cta-content .page-ban-ca__intro-text {
  margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: 2.8em;
  }
  .page-ban-ca__section-title {
    font-size: 2em;
  }
  .page-ban-ca__intro-text {
    font-size: 1.1em;
  }
  .page-ban-ca__game-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__promo-cards,
  .page-ban-ca__feature-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-ban-ca__section {
    padding: 30px 15px;
  }
  .page-ban-ca__container {
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
  .page-ban-ca__hero-image-wrapper {
    max-height: 400px;
  }
  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Mobile: contain, not cover */
    aspect-ratio: unset !important;
    max-height: none !important;
  }
  .page-ban-ca__hero-content {
    margin-top: 20px;
  }
  .page-ban-ca__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-ban-ca__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  /* Buttons */
  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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-left: 15px;
    padding-right: 15px;
  }

  /* Game Showcase Section */
  .page-ban-ca__game-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for mobile */
    gap: 15px;
    overflow-x: hidden;
  }
  .page-ban-ca__game-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-width: none !important;
  }

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr !important;
  }
  .page-ban-ca__guide-step {
    min-height: unset;
  }

  /* Promo Section */
  .page-ban-ca__promo-cards {
    grid-template-columns: 1fr !important;
  }
  .page-ban-ca__promo-image {
    height: 200px;
  }

  /* Why Choose Section */
  .page-ban-ca__feature-list {
    grid-template-columns: 1fr !important;
  }
  .page-ban-ca__feature-item {
    min-height: unset;
  }

  /* FAQ Section */
  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9em;
  }

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

  /* Content area containers to prevent overflow */
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}