.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F3F8FF); /* Default text color for dark body bg */
  background-color: var(--card-bg, #10233F); /* Body background from shared */
}

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

.page-ban-ca__dark-bg {
  background-color: var(--deep-navy, #08162B);
  color: var(--text-main, #F3F8FF);
}

.page-ban-ca__card {
  background: var(--card-bg, #10233F);
  color: var(--text-main, #F3F8FF);
  border: 1px solid var(--border, #244D84);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__main-title {
  font-size: 3.2em;
  color: var(--gold, #F2C14E);
  text-align: center;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-secondary, #AFC4E8);
}

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

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-ban-ca__hero-content-wrapper {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-ban-ca__hero-description {
  font-size: 1.3em;
  line-height: 1.6;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 30px;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca a[class*="button"],
.page-ban-ca a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(17, 59, 122, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 8px 20px rgba(17, 59, 122, 0.6);
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: var(--primary-color, #1D5FD1);
  border: 2px solid var(--primary-color, #1D5FD1);
  box-shadow: 0 5px 15px rgba(29, 95, 209, 0.2);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--primary-color, #1D5FD1);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(29, 95, 209, 0.4);
  transform: translateY(-2px);
}

.page-ban-ca__intro-section,
.page-ban-ca__why-choose-us,
.page-ban-ca__how-to-play,
.page-ban-ca__tips-strategies,
.page-ban-ca__game-list-section,
.page-ban-ca__promotions-section,
.page-ban-ca__faq-section,
.page-ban-ca__cta-final-section {
  padding: 60px 0;
  margin-bottom: 20px; /* Spacing between sections */
  border-bottom: 1px solid var(--divider, #1B3357);
}

.page-ban-ca__intro-section:last-of-type,
.page-ban-ca__cta-final-section:last-of-type {
    border-bottom: none;
}

.page-ban-ca__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 800px; /* Ensure images don't stretch too wide */
}

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

.page-ban-ca__feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-ban-ca__card-title {
  font-size: 1.6em;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary, #AFC4E8);
  flex-grow: 1; /* Allows descriptions to take full height */
}

.page-ban-ca__steps-list,
.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-ban-ca__step-item,
.page-ban-ca__tip-item {
  background: var(--card-bg, #10233F);
  border: 1px solid var(--border, #244D84);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__step-title,
.page-ban-ca__tip-title {
  font-size: 1.4em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__step-description,
.page-ban-ca__tip-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary, #AFC4E8);
}

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

.page-ban-ca__game-card,
.page-ban-ca__promotion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-ban-ca__game-trial-frame {
  width: 100%;
  border: 1px solid var(--border, #244D84);
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: #08162B; /* Fallback for iframe background */
}

.page-ban-ca__btn-play {
  margin-top: auto; /* Push play button to bottom of card */
}

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

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

.page-ban-ca__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
  cursor: pointer;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main, #F3F8FF);
  background: var(--deep-navy, #08162B);
  border-bottom: 1px solid var(--border, #1B3357);
  cursor: pointer;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--gold, #F2C14E);
}

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

.page-ban-ca__faq-answer {
  padding: 15px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary, #AFC4E8);
  background: var(--card-bg, #10233F);
  border-top: 1px solid var(--divider, #1B3357);
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 15px;
  }

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

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

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

  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-ban-ca__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca a[class*="button"],
  .page-ban-ca a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__intro-section,
  .page-ban-ca__why-choose-us,
  .page-ban-ca__how-to-play,
  .page-ban-ca__tips-strategies,
  .page-ban-ca__game-list-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section {
    padding: 40px 0;
  }

  .page-ban-ca__content-image {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__feature-grid,
  .page-ban-ca__game-grid,
  .page-ban-ca__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

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

  .page-ban-ca__card-description {
    font-size: 0.95em;
  }

  .page-ban-ca__step-item,
  .page-ban-ca__tip-item {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-ban-ca__step-title,
  .page-ban-ca__tip-title {
    font-size: 1.2em;
  }

  .page-ban-ca__step-description,
  .page-ban-ca__tip-description {
    font-size: 0.9em;
  }

  .page-ban-ca__game-trial-frame {
    height: 250px;
  }

  .page-ban-ca__promotion-image {
    max-height: 200px;
  }

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

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

  /* General image and container responsiveness */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__hero-image-wrapper,
  .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;
    overflow-x: hidden;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}