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

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

.page-ban-ca__dark-bg {
  background-color: #017439;
  color: #ffffff; /* White text for dark green background */
}

.page-ban-ca__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for white background */
}

.page-ban-ca__text-center {
  text-align: center;
}

.page-ban-ca__mt-2 {
  margin-top: 10px;
}

.page-ban-ca__mt-4 {
  margin-top: 20px;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.page-ban-ca__hero-image-container {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 15px;
  max-width: 900px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-ban-ca__lead-text {
  font-size: 1.2em;
  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, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background-color: #C30808; /* Đăng Ký/Đăng Nhập */
  color: #FFFF00; /* Đăng Ký/Đăng Nhập */
  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 #017439;
}

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

.page-ban-ca__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Section Titles */
.page-ban-ca__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

.page-ban-ca__intro-section .page-ban-ca__section-title,
.page-ban-ca__game-showcase-section .page-ban-ca__section-title,
.page-ban-ca__strategy-section .page-ban-ca__section-title,
.page-ban-ca__cta-final-section .page-ban-ca__section-title {
  color: #017439;
}

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

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

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

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

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

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

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

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

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

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

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

.page-ban-ca__game-info {
  padding: 20px;
  text-align: center;
}

.page-ban-ca__game-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-ban-ca__game-btn {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
  padding: 10px 20px;
  font-size: 1em;
}

.page-ban-ca__game-btn:hover {
  background-color: #e02020;
  border-color: #e02020;
}

/* Guide Section */
.page-ban-ca__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-ban-ca__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-ban-ca__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-ban-ca__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

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

.page-ban-ca__strategy-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

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

.page-ban-ca__strategy-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-ban-ca__strategy-description {
  font-size: 1em;
  color: #555555;
}

/* Promo Section */
.page-ban-ca__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ban-ca__promo-item {
  background-color: #ffffff;
  color: #333333;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 1.1em;
}

.page-ban-ca__promo-item strong {
  color: #017439;
}

/* FAQ Section */
.page-ban-ca__faq-list {
  margin-top: 40px;
}

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.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: 1em;
  color: #555555;
  text-align: justify;
}

/* General Image and Button Responsiveness */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-ban-ca__cta-buttons,
.page-ban-ca__button-group,
.page-ban-ca__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

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

  .page-ban-ca__hero-image-container {
    max-height: 300px;
  }

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

  .page-ban-ca__main-title {
    font-size: 2.2em;
  }

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

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

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ban-ca__btn-large {
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Section Titles */
  .page-ban-ca__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

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

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

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

  .page-ban-ca__feature-image {
    height: 180px;
  }

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

  /* Game Showcase Section */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__game-card {
    padding-bottom: 0;
  }

  .page-ban-ca__game-image {
    height: 180px;
  }

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

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

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

  .page-ban-ca__step-card {
    padding: 20px;
  }

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

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

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

  .page-ban-ca__strategy-image {
    height: 160px;
  }

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

  /* Promo Section */
  .page-ban-ca__promo-item {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
  }

  /* Universal image responsiveness for mobile */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .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;
  }

  /* Button container mobile adaptation */
  .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__cta-buttons {
    flex-direction: column;
  }
}