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

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

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

.page-ban-ca__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
  font-weight: bold;
}

.page-ban-ca__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-ban-ca__hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page-ban-ca__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  object-fit: contain; /* Ensure image is fully visible */
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive font size for H1 */
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color */
  line-height: 1.2;
  font-weight: 700;
  max-width: 900px;
}

.page-ban-ca__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 900px;
  line-height: 1.5;
  color: #ffffff;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for responsiveness */
  max-width: 600px; /* Limit overall width */
}

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

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

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

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

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

/* Popular Games Section */
.page-ban-ca__popular-games {
  background-color: #f8f8f8;
}

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

.page-ban-ca__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure cards are same height */
  box-sizing: border-box;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-5px);
}

.page-ban-ca__game-image {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  aspect-ratio: 1 / 1;
}

.page-ban-ca__game-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-ban-ca__game-desc {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-ban-ca__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-small:hover {
  background-color: #005a2e;
}

/* Guide Section */
.page-ban-ca__guide-section {
  background-color: #ffffff;
}

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

.page-ban-ca__guide-item {
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  box-sizing: border-box;
}

.page-ban-ca__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-ban-ca__guide-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding-bottom: 80px;
}

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

.page-ban-ca__tip-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  box-sizing: border-box;
}

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

.page-ban-ca__tip-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-ban-ca__tip-item p {
  color: #f0f0f0;
}

/* Promotions Section */
.page-ban-ca__promo-section {
  background-color: #f8f8f8;
}

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

.page-ban-ca__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-ban-ca__promo-card:hover {
  transform: translateY(-5px);
}

.page-ban-ca__promo-image {
  max-width: 100%;
  height: auto;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-ban-ca__promo-title {
  font-size: 1.5em;
  color: #017439;
  margin: 0 20px 10px;
}

.page-ban-ca__promo-card p {
  font-size: 0.95em;
  color: #555555;
  margin: 0 20px 20px;
  flex-grow: 1;
}

/* Why Choose Us Section */
.page-ban-ca__why-choose-us {
  background-color: #ffffff;
  padding-bottom: 80px;
}

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

.page-ban-ca__feature-item {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  box-sizing: border-box;
}

.page-ban-ca__feature-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-ban-ca__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-ban-ca__feature-item p {
  color: #555555;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: #f8f8f8;
}

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

.page-ban-ca__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #e0e0e0;
  border-bottom: 1px solid #cccccc;
  list-style: none; /* For details/summary */
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  background-color: #d0d0d0;
  border-bottom: none;
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

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

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

/* Hide default marker for details/summary */
.page-ban-ca__faq-item summary::-webkit-details-marker {
  display: none;
}

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


/* Conclusion Section */
.page-ban-ca__conclusion-section {
  padding-top: 80px;
}

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


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

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

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

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

  .page-ban-ca__section-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Hero Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible, no cropping */
    height: auto !important;
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    max-height: none !important; /* Remove max-height */
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em); /* Adjust H1 for mobile */
    margin-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-ban-ca__description {
    font-size: 1em;
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Popular Games Section */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-ban-ca__game-card {
    padding: 15px;
  }

  .page-ban-ca__game-image {
    width: 100% !important; /* Full width for mobile card images */
    height: auto !important;
    aspect-ratio: 1 / 1 !important; /* Maintain square aspect ratio */
    object-fit: cover !important;
  }

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

  .page-ban-ca__game-desc {
    font-size: 0.9em;
  }

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .page-ban-ca__guide-image {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .page-ban-ca__guide-title {
    font-size: 1.5em;
  }

  /* Tips Section */
  .page-ban-ca__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-ban-ca__tip-image {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .page-ban-ca__tip-title {
    font-size: 1.4em;
  }

  /* Promotions Section */
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__promo-card {
    padding-bottom: 15px;
  }

  .page-ban-ca__promo-image {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .page-ban-ca__promo-title {
    font-size: 1.3em;
  }

  .page-ban-ca__promo-card p {
    font-size: 0.9em;
  }

  /* Why Choose Us Section */
  .page-ban-ca__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-ban-ca__feature-icon {
    width: 50px;
    height: 50px;
  }

  .page-ban-ca__feature-title {
    font-size: 1.4em;
  }

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

  .page-ban-ca__faq-qtext {
    font-size: 1em;
  }

  .page-ban-ca__faq-toggle {
    font-size: 1.3em;
  }

  .page-ban-ca__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  /* Ensure all images are responsive and don't cause overflow */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__game-card,
  .page-ban-ca__guide-item,
  .page-ban-ca__tip-item,
  .page-ban-ca__promo-card,
  .page-ban-ca__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}