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

.page-ban-ca__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-ban-ca__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  position: relative;
  text-align: center;
  overflow: hidden;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Special color for H1 as per custom palette */
}

.page-ban-ca__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
}

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

.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;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

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

.page-ban-ca__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #017439;
  border-color: #017439;
}

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

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

.page-ban-ca__section-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-ban-ca__why-choose .page-ban-ca__section-title {
  color: #017439;
}

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

.page-ban-ca__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-ban-ca__feature-title,
.page-ban-ca__game-title,
.page-ban-ca__promo-title,
.page-ban-ca__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-ban-ca__game-card .page-ban-ca__game-title,
.page-ban-ca__promo-card .page-ban-ca__promo-title {
  color: #017439;
}

.page-ban-ca__game-showcase .page-ban-ca__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-ban-ca__game-showcase .page-ban-ca__game-title {
  color: #FFFF00;
}

.page-ban-ca__game-showcase .page-ban-ca__game-description {
  color: #f0f0f0;
}

.page-ban-ca__promo-card.page-ban-ca__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-ban-ca__promo-card .page-ban-ca__promo-title {
  color: #FFFF00;
}

.page-ban-ca__promo-card .page-ban-ca__promo-text {
  color: #f0f0f0;
}

.page-ban-ca__game-thumbnail,
.page-ban-ca__promo-thumbnail,
.page-ban-ca__step-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-ban-ca__tips-section {
  margin-top: 60px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 10px;
}

.page-ban-ca__tips-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: #FFFF00;
}

.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-ban-ca__tips-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1rem;
}

.page-ban-ca__tips-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #FFFF00;
}

.page-ban-ca__how-to-play .page-ban-ca__section-title {
  color: #017439;
}

.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: #017439;
}

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

.page-ban-ca__faq-item {
  margin-bottom: 15px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #017439; /* Brand color for FAQ question */
  color: #ffffff;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  list-style: none;
}

.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.5rem;
  line-height: 1;
  margin-left: 10px;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  content: '−';
}

.page-ban-ca__faq-answer {
  padding: 15px 20px;
  background-color: #f9f9f9;
  color: #333333;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-ban-ca__conclusion .page-ban-ca__section-title {
  color: #FFFF00;
}

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

/* Button container responsiveness */
.page-ban-ca__cta-buttons,
.page-ban-ca__button-group,
.page-ban-ca__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-ban-ca__container {
    padding: 0 15px;
  }

  .page-ban-ca__hero-content {
    padding: 30px 15px;
  }

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

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

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-ban-ca__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  .page-ban-ca__card {
    padding: 20px;
  }

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

  .page-ban-ca__game-thumbnail,
  .page-ban-ca__promo-thumbnail,
  .page-ban-ca__step-image {
    height: 180px;
  }

  .page-ban-ca__tips-section {
    margin-top: 40px;
    padding: 20px;
  }

  .page-ban-ca__tips-title {
    font-size: 1.5rem;
  }

  .page-ban-ca__tips-list li {
    font-size: 0.95rem;
  }

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

  .page-ban-ca__faq-answer {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  /* Mobile specific image rules */
  .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;
  }

  .page-ban-ca__cta-buttons,
  .page-ban-ca__button-group,
  .page-ban-ca__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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