:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --border-color: #e0e0e0;
}

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

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

.page-ban-ca__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ban-ca__section-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: var(--text-color-dark);
}

.page-ban-ca__highlight {
  color: var(--primary-color);
  font-weight: bold;
}

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

.page-ban-ca__hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-ban-ca__main-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-color-dark);
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background-color: var(--register-button-bg);
  color: var(--button-text-color);
  border: 2px solid var(--register-button-bg);
}

.page-ban-ca__btn-primary:hover {
  background-color: darken(var(--register-button-bg), 10%);
  border-color: darken(var(--register-button-bg), 10%);
}

.page-ban-ca__btn-secondary {
  background-color: var(--login-button-bg);
  color: var(--button-text-color);
  border: 2px solid var(--login-button-bg);
}

.page-ban-ca__btn-secondary:hover {
  background-color: darken(var(--login-button-bg), 10%);
  border-color: darken(var(--login-button-bg), 10%);
}

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

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

.page-ban-ca__feature-item {
  text-align: center;
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-ban-ca__icon-box-media {
  width: 240px;
  height: 240px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-sizing: border-box;
}

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

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

.page-ban-ca__feature-description {
  font-size: 1rem;
  color: var(--text-color-dark);
}

/* Game Showcase Section */
.page-ban-ca__game-showcase {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

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

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

.page-ban-ca__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

.page-ban-ca__game-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-ban-ca__game-desc {
  font-size: 0.95rem;
  color: var(--text-color-dark);
  padding: 0 15px 20px;
  flex-grow: 1;
}

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

.page-ban-ca__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-ban-ca__dark-section .page-ban-ca__section-title,
.page-ban-ca__dark-section .page-ban-ca__section-description {
  color: var(--text-color-light);
}

.page-ban-ca__dark-section .page-ban-ca__highlight {
  color: var(--button-text-color);
}

.page-ban-ca__promo-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-ban-ca__promo-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-ban-ca__promo-image {
  flex: 1 1 40%;
  text-align: center;
}

.page-ban-ca__promo-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

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

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

.page-ban-ca__step-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-ban-ca__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-ban-ca__step-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-ban-ca__step-desc {
  font-size: 1rem;
  color: var(--text-color-dark);
}

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

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

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

.page-ban-ca__faq-item {
  background-color: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For details/summary */
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  border-bottom: 1px solid transparent;
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  width: 25px;
  text-align: center;
}

.page-ban-ca__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1rem;
  color: var(--text-color-dark);
  background-color: var(--secondary-color);
}

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

.page-ban-ca__cta-final .page-ban-ca__section-title {
  margin-bottom: 20px;
}

.page-ban-ca__cta-final .page-ban-ca__section-description {
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-ban-ca__hero-description {
    font-size: 1.1rem;
  }

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

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

  .page-ban-ca__promo-flex {
    flex-direction: column;
  }

  .page-ban-ca__promo-content,
  .page-ban-ca__promo-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-ban-ca__promo-image img {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Retain small padding, body handles header offset */
    padding-bottom: 40px;
  }

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

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

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

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

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

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

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

  /* Module 1 (Intro Section) */
  .page-ban-ca__intro-section {
    padding: 40px 0;
  }

  .page-ban-ca__icon-box-media {
    width: 200px;
    height: 200px;
    border-width: 3px;
  }

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

  .page-ban-ca__feature-item {
    padding: 20px;
  }

  /* Game Showcase */
  .page-ban-ca__game-showcase {
    padding: 40px 0;
  }

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

  .page-ban-ca__game-title {
    font-size: 1.2rem;
  }

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

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

  .page-ban-ca__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

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

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

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

  .page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    margin-left: 10px;
  }

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

  /* Final CTA */
  .page-ban-ca__cta-final {
    padding: 40px 0;
  }

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

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