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

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

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

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

.page-ban-ca__text-white {
  color: #ffffff;
}

.page-ban-ca__section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #017439;
  line-height: 1.2;
}

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

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

.page-ban-ca__text-block a {
  color: #017439;
  text-decoration: underline;
}

.page-ban-ca__dark-bg .page-ban-ca__text-block a {
  color: #FFFF00;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 60px;
  color: #ffffff;
}

.page-ban-ca__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-ban-ca__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-ban-ca__main-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-ban-ca__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.5;
  text-align: left;
}

.page-ban-ca__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-ban-ca__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.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;
  color: #ffffff;
}

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

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

.page-ban-ca__cta-buttons--center {
  justify-content: center;
  margin-top: 30px;
}

/* Intro Section */
.page-ban-ca__intro-section {
  padding: 60px 0;
}

/* Game Features Section */
.page-ban-ca__game-features-section {
  padding: 60px 0;
}

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

.page-ban-ca__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-ban-ca__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__feature-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-ban-ca__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #017439;
}

.page-ban-ca__feature-description {
  font-size: 16px;
  line-height: 1.6;
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 60px 0;
}

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

.page-ban-ca__guide-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-item:last-child {
  margin-bottom: 0;
}

.page-ban-ca__guide-step-title {
  font-size: 20px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-ban-ca__guide-item p {
  margin-bottom: 0;
}

/* Promo Section */
.page-ban-ca__promo-section {
  padding: 60px 0;
}

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

.page-ban-ca__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-ban-ca__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__promo-card .page-ban-ca__promo-title,
.page-ban-ca__promo-card .page-ban-ca__promo-description {
  padding: 0 20px;
}

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

.page-ban-ca__promo-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Why vh88 Section */
.page-ban-ca__why-vh88-section {
  padding: 60px 0;
}

.page-ban-ca__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-ban-ca__benefits-item {
  background-color: #f0fdf4; /* Light green background */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  color: #333333;
}

.page-ban-ca__benefits-item strong {
  color: #017439;
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
}

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

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

.page-ban-ca__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 700;
  color: #017439;
  cursor: pointer;
  list-style: none;
  outline: none;
}

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-ban-ca__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
  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: 0 25px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__cta-final-content {
  background-color: #f0fdf4;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__cta-final-content .page-ban-ca__section-title {
  margin-bottom: 20px;
}

.page-ban-ca__cta-final-content .page-ban-ca__text-block {
  margin-bottom: 30px;
  font-size: 18px;
  text-align: center;
}

/* Global image styles for content area */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-ban-ca__hero-content {
    text-align: center;
  }
  .page-ban-ca__hero-cta-buttons {
    justify-content: center;
  }
  .page-ban-ca__features-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-ban-ca__benefits-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px !important;
  }
  .page-ban-ca__hero-container {
    padding: 30px 15px !important;
    gap: 30px !important;
  }
  .page-ban-ca__main-title {
    font-size: 32px !important;
  }
  .page-ban-ca__hero-description {
    font-size: 16px !important;
  }
  .page-ban-ca__hero-cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ban-ca__section-title {
    font-size: 28px !important;
    margin-bottom: 20px !important;
  }

  .page-ban-ca__text-block {
    font-size: 15px !important;
  }

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

  /* General content section padding */
  .page-ban-ca__intro-section,
  .page-ban-ca__game-features-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__why-vh88-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section {
    padding: 40px 0 !important;
  }

  /* Feature/Promo grids */
  .page-ban-ca__features-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-ban-ca__feature-card,
  .page-ban-ca__promo-card {
    padding: 20px !important;
  }

  .page-ban-ca__feature-title,
  .page-ban-ca__promo-title {
    font-size: 20px !important;
  }

  .page-ban-ca__promo-image {
    height: 180px !important;
  }

  /* Guide list */
  .page-ban-ca__guide-item {
    padding: 15px 20px !important;
  }
  .page-ban-ca__guide-step-title {
    font-size: 18px !important;
  }

  /* Benefits list */
  .page-ban-ca__benefits-list {
    gap: 15px !important;
  }
  .page-ban-ca__benefits-item {
    font-size: 15px !important;
  }
  .page-ban-ca__benefits-item strong {
    font-size: 16px !important;
  }

  /* FAQ section */
  .page-ban-ca__faq-item summary {
    padding: 15px 20px !important;
    font-size: 16px !important;
  }
  .page-ban-ca__faq-answer {
    padding: 0 20px 15px !important;
    font-size: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all containers containing images or buttons are constrained */
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }
}