.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: var(--background-color, #ffffff); /* Fallback to white if var not defined */
}

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

.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for main offset */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  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;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

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

.page-ban-ca__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
}

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

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-ban-ca__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-ban-ca__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

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

.page-ban-ca__section-title {
  font-size: 2.2rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title,
.page-ban-ca__dark-bg .page-ban-ca__text-block,
.page-ban-ca__dark-bg .page-ban-ca__card-title,
.page-ban-ca__dark-bg .page-ban-ca__card-description,
.page-ban-ca__dark-bg .page-ban-ca__guide-title,
.page-ban-ca__dark-bg .page-ban-ca__guide-description,
.page-ban-ca__dark-bg .page-ban-ca__faq-qtext,
.page-ban-ca__dark-bg .page-ban-ca__faq-answer p {
  color: #ffffff;
}

.page-ban-ca__light-bg .page-ban-ca__section-title,
.page-ban-ca__light-bg .page-ban-ca__text-block,
.page-ban-ca__light-bg .page-ban-ca__card-title,
.page-ban-ca__light-bg .page-ban-ca__card-description,
.page-ban-ca__light-bg .page-ban-ca__guide-title,
.page-ban-ca__light-bg .page-ban-ca__guide-description,
.page-ban-ca__light-bg .page-ban-ca__faq-qtext,
.page-ban-ca__light-bg .page-ban-ca__faq-answer p {
  color: #333333;
}

.page-ban-ca__intro-section,
.page-ban-ca__game-types-section,
.page-ban-ca__why-choose-us-section,
.page-ban-ca__cta-final-section {
  padding: 60px 0;
}

.page-ban-ca__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-ban-ca__benefits-section {
  padding: 80px 0;
  background-color: #26A9E0;
  text-align: center;
}

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

.page-ban-ca__benefit-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-ban-ca__benefit-card .page-ban-ca__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-ban-ca__benefit-card .page-ban-ca__card-description {
  font-size: 1rem;
  color: #f0f0f0;
}

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

.page-ban-ca__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-ban-ca__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-ban-ca__game-card .page-ban-ca__card-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-ban-ca__game-card .page-ban-ca__card-description {
  font-size: 1rem;
  color: #555555;
  padding: 0 20px 15px;
}

.page-ban-ca__guide-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background for this section */
  text-align: center;
}

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

.page-ban-ca__guide-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-ban-ca__guide-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-ban-ca__guide-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-ban-ca__guide-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-ban-ca__why-choose-us-section {
  padding: 60px 0;
}

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

.page-ban-ca__feature-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid #e0e0e0;
}

.page-ban-ca__feature-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-ban-ca__feature-card .page-ban-ca__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-ban-ca__feature-card .page-ban-ca__card-description {
  font-size: 1rem;
  color: #555555;
}

.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: #26A9E0;
}

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

.page-ban-ca__faq-item {
  background: rgba(255, 255, 255, 0.1);
  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.2rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
  background-color: rgba(0, 0, 0, 0.1);
}

.page-ban-ca__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

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

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-content {
    padding: 30px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

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

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

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

@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 15px;
  }

  .page-ban-ca__hero-section {
    min-height: 400px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-ban-ca__hero-content {
    padding: 20px;
    max-width: 95%;
  }

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

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

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .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__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-ban-ca__intro-section,
  .page-ban-ca__benefits-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__why-choose-us-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section {
    padding: 40px 0;
  }

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

  .page-ban-ca__game-image,
  .page-ban-ca__guide-image,
  .page-ban-ca__feature-image {
    height: 200px; /* Maintain minimum image height */
  }

  .page-ban-ca__game-card .page-ban-ca__card-title,
  .page-ban-ca__benefit-card .page-ban-ca__card-title,
  .page-ban-ca__guide-title,
  .page-ban-ca__feature-card .page-ban-ca__card-title {
    font-size: 1.3rem;
  }

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

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

  /* General image responsiveness */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
    object-fit: cover;
  }

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