.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color); /* Matches body background from shared */
}

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

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

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 900px;
}

.page-ban-ca__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.page-ban-ca__paragraph--center {
  text-align: center;
}

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

.page-ban-ca__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #C30808;
}

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

.page-ban-ca__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.page-ban-ca__btn-link {
  background: none;
  color: var(--primary-color);
  border: none;
  padding: 0;
  text-decoration: underline;
}

.page-ban-ca__btn-link:hover {
  color: #005f2c;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 50px;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop: cover to fill space */
  display: block;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-ban-ca__hero-description {
  color: #f0f0f0;
  font-size: 1.2em;
  margin-bottom: 30px;
  text-align: center;
}

.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;
}

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

/* Dark Background Section */
.page-ban-ca__dark-bg {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-ban-ca__dark-bg .page-ban-ca__section-title {
  color: var(--secondary-color);
}

.page-ban-ca__dark-bg .page-ban-ca__paragraph {
  color: #f0f0f0;
}

/* Intro Section */
.page-ban-ca__intro-section {
  padding: 60px 0;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  padding: 60px 0;
}

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

.page-ban-ca__feature-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__feature-icon {
  width: 100%;
  height: auto;
  max-width: 100px;
  margin-bottom: 20px;
  display: block;
}

.page-ban-ca__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-ban-ca__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Game List Section */
.page-ban-ca__game-list-section {
  padding: 60px 0;
}

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

.page-ban-ca__game-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-ban-ca__game-image {
  width: 100%;
  height: 250px; /* Fixed height for desktop game cards */
  object-fit: cover;
  display: block;
  aspect-ratio: 1/1; /* Ensure square aspect ratio */
}

.page-ban-ca__game-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin: 15px 10px 5px;
  font-weight: 700;
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
  padding: 0 15px 15px;
  flex-grow: 1;
}

.page-ban-ca__game-btn {
  background-color: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: block;
}

.page-ban-ca__game-btn:hover {
  background-color: #a30606;
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 60px 0;
}

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

.page-ban-ca__guide-step {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary-color);
}

.page-ban-ca__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-ban-ca__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Strategy Section */
.page-ban-ca__strategy-section {
  padding: 60px 0;
}

.page-ban-ca__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ban-ca__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--secondary-color);
}

.page-ban-ca__strategy-subtitle {
  font-size: 1.3em;
  color: #FFFF00;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ban-ca__strategy-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Promo Section */
.page-ban-ca__promo-section {
  padding: 60px 0;
}

.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-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-ban-ca__promo-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 15px 10px 5px;
  font-weight: 700;
}

.page-ban-ca__promo-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
  padding: 0 15px 15px;
  flex-grow: 1;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
}

.page-ban-ca__faq-list {
  margin-top: 40px;
}

.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text from intercepting click for summary */
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  pointer-events: none; /* Prevent + from intercepting click for summary */
}

.page-ban-ca__faq-answer {
  padding: 15px 20px;
  background-color: var(--secondary-color);
  color: #333333;
  font-size: 1em;
  line-height: 1.6;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.page-ban-ca__faq-answer p {
    margin-bottom: 10px;
    color: #333333;
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__cta-final-content {
  max-width: 800px;
}

.page-ban-ca__cta-final-section .page-ban-ca__section-title {
  color: var(--primary-color);
}

.page-ban-ca__cta-final-section .page-ban-ca__paragraph {
  color: #555555;
  margin-bottom: 30px;
}

/* Global image reset for content area */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 15px;
  }

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

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

  .page-ban-ca__features-grid,
  .page-ban-ca__game-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

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

  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  /* Hero Section Mobile */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
    min-height: auto;
  }

  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important;
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-ban-ca__hero-content {
    padding: 15px;
    max-width: 100%;
  }

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

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-link,
  .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;
  }

  /* General Images & Containers Mobile */
  .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;
  }

  /* Game Grid Mobile */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
    gap: 15px;
  }

  .page-ban-ca__game-image {
    height: auto; /* Allow height to adjust for aspect ratio */
    aspect-ratio: 1/1; /* Maintain square aspect ratio */
  }

  /* Other content modules mobile adjustments */
  .page-ban-ca__intro-section,
  .page-ban-ca__why-choose-section,
  .page-ban-ca__game-list-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__strategy-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section {
    padding: 30px 0;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__feature-card,
  .page-ban-ca__guide-step,
  .page-ban-ca__promo-card {
    padding: 20px;
  }

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

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