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

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

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

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
}

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

.page-ban-ca__hero-content {
  flex: 1 1 500px;
  text-align: left;
  padding-right: 20px;
}

.page-ban-ca__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* For dark-bg hero */
}

.page-ban-ca__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #ffffff; /* For dark-bg hero */
}

.page-ban-ca__hero-image {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

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

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

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

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

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

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

.page-ban-ca__section-description {
  font-size: 1.05rem;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.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-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-ban-ca__icon-box-media {
  width: 240px;
  height: 240px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%; /* Ensure image inside is also circular */
}

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

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

.page-ban-ca__gameplay-section .page-ban-ca__section-title,
.page-ban-ca__gameplay-section .page-ban-ca__section-description {
  color: #ffffff;
}

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

.page-ban-ca__feature-list-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #ffffff;
}

.page-ban-ca__feature-list-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00; /* Yellow for titles in dark section */
}

.page-ban-ca__feature-list-text {
  font-size: 1rem;
  line-height: 1.5;
}

.page-ban-ca__how-to-play-section .page-ban-ca__section-title,
.page-ban-ca__how-to-play-section .page-ban-ca__section-description {
  color: #333333;
}

.page-ban-ca__how-to-play-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-ban-ca__step-list {
  flex: 1 1 500px;
  list-style: none;
  padding: 0;
}

.page-ban-ca__step-list li {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  counter-increment: step-counter;
  position: relative;
  padding-left: 50px;
}

.page-ban-ca__step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.page-ban-ca__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #017439;
}

.page-ban-ca__step-text {
  font-size: 1rem;
  color: #555555;
}

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

.page-ban-ca__how-to-play-image {
  flex: 1 1 400px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__tips-section .page-ban-ca__section-title,
.page-ban-ca__tips-section .page-ban-ca__section-description {
  color: #ffffff;
}

.page-ban-ca__tips-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-ban-ca__tip-list {
  flex: 1 1 500px;
  list-style: none;
  padding: 0;
}

.page-ban-ca__tip-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 20px;
  color: #ffffff;
}

.page-ban-ca__tip-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 20px;
  color: #FFFF00; /* Yellow checkmark */
  font-weight: 700;
}

.page-ban-ca__tip-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #FFFF00; /* Yellow for titles in dark section */
}

.page-ban-ca__tip-text {
  font-size: 1rem;
  line-height: 1.5;
}

.page-ban-ca__tips-image {
  flex: 1 1 400px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__promotions-section .page-ban-ca__section-title,
.page-ban-ca__promotions-section .page-ban-ca__section-description {
  color: #333333;
}

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

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

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

.page-ban-ca__promo-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-ban-ca__promo-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-ban-ca__promo-card-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #555555;
}

.page-ban-ca__promo-card-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-ban-ca__promo-card-btn:hover {
  background-color: #005a2d;
}

.page-ban-ca__faq-section .page-ban-ca__section-title,
.page-ban-ca__faq-section .page-ban-ca__section-description {
  color: #ffffff;
}

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

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: #FFFF00; /* Yellow for FAQ questions in dark section */
}

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

.page-ban-ca__faq-question .page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
}

.page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

.page-ban-ca__cta-bottom-section .page-ban-ca__section-title,
.page-ban-ca__cta-bottom-section .page-ban-ca__section-description {
  color: #333333;
}

.page-ban-ca__cta-bottom-section .page-ban-ca__cta-buttons {
  justify-content: center;
}

/* General image responsiveness */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

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

  .page-ban-ca__hero-content {
    padding-right: 0;
    text-align: center;
  }

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

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

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

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

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

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

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

  /* Module 1: Three-column feature section */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-ban-ca__icon-box-media {
    width: 200px !important;
    height: 200px !important;
    margin-bottom: 20px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(1, 116, 57, 0.2);
  }

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

  .page-ban-ca__feature-text {
    font-size: 0.9rem;
  }

  /* Gameplay features list */
  .page-ban-ca__game-features-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__feature-list-item {
    padding: 25px;
  }

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

  /* How-to-play section */
  .page-ban-ca__how-to-play-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-ban-ca__step-list li {
    padding: 15px;
    padding-left: 45px;
    margin-bottom: 10px;
  }

  .page-ban-ca__step-list li::before {
    width: 26px;
    height: 26px;
    font-size: 1rem;
    left: 10px;
  }

  .page-ban-ca__step-title {
    font-size: 1.15rem;
  }

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

  /* Tips section */
  .page-ban-ca__tips-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-ban-ca__tip-list li {
    padding: 15px;
    padding-left: 20px;
    margin-bottom: 10px;
  }

  .page-ban-ca__tip-list li::before {
    top: 15px;
  }

  .page-ban-ca__tip-title {
    font-size: 1.15rem;
  }

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

  /* Promotions section */
  .page-ban-ca__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-ban-ca__promo-card-title {
    font-size: 1.25rem;
  }

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

  .page-ban-ca__promo-card-btn {
    padding: 8px 15px;
    font-size: 0.95rem;
  }

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

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

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

  /* General image responsiveness for all content images */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure all containers with images also adapt */
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__hero-section,
  .page-ban-ca__intro-section,
  .page-ban-ca__gameplay-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-bottom-section,
  .page-ban-ca__feature-item,
  .page-ban-ca__feature-list-item,
  .page-ban-ca__promo-card,
  .page-ban-ca__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }
}