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

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-ban-ca__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
}

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

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

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

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

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

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

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

.page-ban-ca__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

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

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

.page-ban-ca__intro-section,
.page-ban-ca__games-showcase,
.page-ban-ca__guide-section,
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-ban-ca__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

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

.page-ban-ca__feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-ban-ca__feature-item {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-ban-ca__feature-item:hover {
  transform: translateY(-10px);
}

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.page-ban-ca__feature-title {
  font-size: 1.6rem;
  color: #017439;
  margin-bottom: 10px;
}

.page-ban-ca__feature-text {
  font-size: 1rem;
  color: #666666;
}

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

.page-ban-ca__game-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-ban-ca__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-card-title {
  font-size: 1.5rem;
  color: #017439;
  margin: 20px 20px 10px;
}

.page-ban-ca__game-card-link {
  text-decoration: none;
  color: inherit;
}

.page-ban-ca__game-card-link:hover {
  text-decoration: underline;
}

.page-ban-ca__game-card-text {
  font-size: 1rem;
  color: #666666;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-ban-ca__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  margin: 0 20px 20px;
  align-self: flex-start;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-small:hover {
  background-color: #005f2e;
}

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

.page-ban-ca__guide-step {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-icon {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

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

.page-ban-ca__guide-text {
  font-size: 1rem;
  color: #666666;
}

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

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

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none; /* For details tag */
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  background-color: #e6f3e6; /* Lighter green for open state */
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-ban-ca__faq-qtext {
  flex-grow: 1;
}

.page-ban-ca__faq-toggle {
  font-size: 1.8rem;
  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: 1rem;
  color: #555555;
  line-height: 1.6;
}

/* Ensure all images meet minimum size requirements */
.page-ban-ca img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%; /* Default responsive */
  height: auto; /* Default responsive */
  display: block;
}

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

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

  .page-ban-ca__hero-container {
    flex-direction: column;
    padding: 30px 15px;
    gap: 30px;
  }

  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-ban-ca__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    text-align: center;
  }

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

  .page-ban-ca__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .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: 12px 20px;
    font-size: 1rem;
  }

  /* Section Titles & Descriptions */
  .page-ban-ca__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

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

  /* Feature Grid (Module 1 three-column) */
  .page-ban-ca__feature-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-ban-ca__feature-item {
    min-width: unset;
    padding: 25px;
  }

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
  }

  .page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .page-ban-ca__feature-title {
    font-size: 1.4rem;
  }

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

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

  .page-ban-ca__game-card-title {
    font-size: 1.3rem;
    margin: 15px 15px 8px;
  }

  .page-ban-ca__game-card-text {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

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

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

  .page-ban-ca__guide-step {
    padding: 25px;
  }

  .page-ban-ca__guide-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-ban-ca__guide-title {
    font-size: 1.4rem;
  }

  .page-ban-ca__guide-text {
    font-size: 0.95rem;
  }

  .page-ban-ca__guide-cta {
    margin-top: 40px;
  }

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

  .page-ban-ca__faq-toggle {
    font-size: 1.5rem;
  }

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

  /* General Images and Containers */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__content-area,
  .page-ban-ca__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-ban-ca__hero-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: 0 !important; /* Handled by parent .hero-container */
    padding-right: 0 !important; /* Handled by parent .hero-container */
    flex-direction: column;
    gap: 10px;
  }
}

/* Additional mobile styles for smaller screens */
@media (max-width: 480px) {
  .page-ban-ca__hero-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }
  .page-ban-ca__faq-question {
    font-size: 1rem;
  }
  .page-ban-ca__guide-title {
    font-size: 1.3rem;
  }
}