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

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  position: relative;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand color gradient */
}

.page-ban-ca__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 2;
  text-align: center;
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive H1 font size */
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-ban-ca__subtitle {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.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;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Ensure buttons adapt to container */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

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

.page-ban-ca__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: #f0f0f0;
}

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

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #E53935;
}

.page-ban-ca__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-ban-ca__dark-bg {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title {
  color: #ffffff;
}

.page-ban-ca__dark-bg .page-ban-ca__section-description {
  color: #f0f0f0;
}

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

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

.page-ban-ca__benefit-card,
.page-ban-ca__game-type-card,
.page-ban-ca__promotion-card,
.page-ban-ca__step-card,
.page-ban-ca__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
  border: 1px solid #E0E0E0;
}

.page-ban-ca__benefit-icon,
.page-ban-ca__game-type-image,
.page-ban-ca__promotion-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-ban-ca__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E53935;
}

.page-ban-ca__card-text {
  font-size: 1em;
  color: #333333;
  flex-grow: 1;
}

.page-ban-ca__card-button {
  margin-top: 20px;
}

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

.page-ban-ca__view-all-button,
.page-ban-ca__learn-more-button,
.page-ban-ca__view-promotions-button {
  padding: 15px 40px;
}

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

.page-ban-ca__strategy-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
  color: #333333;
}

.page-ban-ca__strategy-item {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #E53935;
  font-size: 1.1em;
  line-height: 1.5;
}

.page-ban-ca__strategy-item strong {
  color: #E53935;
}

.page-ban-ca__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__faq-item {
  margin-bottom: 15px;
  text-align: left;
  padding: 0;
  overflow: hidden;
  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: 20px 30px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  font-size: 1.1em;
  border-bottom: 1px solid #E0E0E0;
  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;
  color: #E53935;
  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: 20px 30px;
  border-top: 1px solid #E0E0E0;
  color: #555555;
  font-size: 1em;
}

.page-ban-ca__faq-answer p {
    margin-bottom: 0;
}

.page-ban-ca__faq-answer a {
    color: #E53935;
    text-decoration: underline;
}

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

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

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

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

  .page-ban-ca__benefits-grid,
  .page-ban-ca__game-types-grid,
  .page-ban-ca__promotion-grid,
  .page-ban-ca__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    padding: 12px 25px;
    font-size: 0.95em;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-ban-ca__hero-content {
    padding: 20px 10px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.5em, 6vw, 2em) !important; /* Mobile H1 font size */
  }

  .page-ban-ca__subtitle {
    font-size: 0.9em;
    margin-bottom: 20px;
  }

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

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

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

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

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

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

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

  .page-ban-ca__benefit-card,
  .page-ban-ca__game-type-card,
  .page-ban-ca__promotion-card,
  .page-ban-ca__step-card,
  .page-ban-ca__faq-item {
    padding: 20px;
  }

  .page-ban-ca__benefit-icon,
  .page-ban-ca__game-type-image,
  .page-ban-ca__promotion-image,
  .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__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;
  }

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

  .page-ban-ca__card-text {
    font-size: 0.9em;
  }

  .page-ban-ca__strategy-list {
    margin-top: 30px;
  }

  .page-ban-ca__strategy-item {
    font-size: 1em;
    padding: 15px;
  }

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

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