.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--auxiliary-color); /* Assumed light background from shared.css */
}

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

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

.page-ban-ca__hero-section {
  position: relative;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-ban-ca__hero-content {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 20px;
  text-align: center;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-ban-ca__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ban-ca__cta-buttons--centered {
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-ban-ca__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  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; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.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__section {
  padding: 60px 0;
}

.page-ban-ca__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-ban-ca__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-ban-ca__text-block:last-of-type {
  margin-bottom: 0;
}

.page-ban-ca__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-ban-ca__feature-description {
  font-size: 1rem;
  color: #f0f0f0;
  text-align: center;
}

.page-ban-ca__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__game-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-ban-ca__game-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

.page-ban-ca__tip-list {
  list-style: disc;
  padding-left: 30px;
  max-width: 900px;
  margin: 20px auto 40px;
  color: #f0f0f0;
}

.page-ban-ca__tip-list li {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-ban-ca__tip-list strong {
  color: #FFFF00;
}

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

.page-ban-ca__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.page-ban-ca__step-image {
  width: 100%;
  height: auto;
  max-width: 450px;
  border-radius: 8px;
  margin-top: 15px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-ban-ca__text-link:hover {
  color: #005a2d;
}

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

.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  padding: 18px 25px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-ban-ca__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item.active .page-ban-ca__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-ban-ca__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 25px;
  color: #f0f0f0;
}

.page-ban-ca__faq-item.active .page-ban-ca__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-bottom: 20px;
}

.page-ban-ca__faq-answer p {
  font-size: 1rem;
  margin-bottom: 0;
}

.page-ban-ca__copyright-section {
  padding: 20px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
  font-size: 0.9rem;
}

.page-ban-ca__copyright-text {
  margin: 0;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-ban-ca__hero-content {
    padding: 0 15px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }

  .page-ban-ca__description {
    font-size: 1.05rem;
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  }

  .page-ban-ca__feature-grid, .page-ban-ca__game-list {
    gap: 20px;
  }

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

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

@media (max-width: 768px) {
  /* 1. Top section (hero) with title and CTA */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
  }

  .page-ban-ca__hero-content {
    padding: 0 15px !important;
  }

  .page-ban-ca__main-title {
    font-size: 2.2rem !important; /* Fixed for smaller screens */
    margin-bottom: 10px !important;
  }

  .page-ban-ca__description {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 15px !important; /* Ensure buttons have padding */
  }

  /* 4. Buttons and button containers */
  .page-ban-ca__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
  }

  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* 2. Single-column long text containers */
  .page-ban-ca__section {
    padding: 40px 0 !important;
  }

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

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

  .page-ban-ca__text-block {
    font-size: 1rem !important;
    text-align: left !important;
  }

  /* 3. General images and figure */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__feature-grid,
  .page-ban-ca__game-list,
  .page-ban-ca__registration-steps {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    margin-top: 30px !important;
  }

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

  .page-ban-ca__feature-image,
  .page-ban-ca__game-image,
  .page-ban-ca__step-image {
    min-width: unset !important;
    min-height: unset !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__tip-list {
    padding-left: 20px !important;
    margin: 20px auto !important;
    font-size: 1rem !important;
  }

  .page-ban-ca__tip-list li {
    margin-bottom: 10px !important;
  }

  /* 5. Registration tutorial and FAQ sections */
  .page-ban-ca__step-title {
    font-size: 1.25rem !important;
  }

  .page-ban-ca__step-description {
    font-size: 0.95rem !important;
  }

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

  .page-ban-ca__faq-question {
    font-size: 1.1rem !important;
    padding: 15px 20px !important;
  }

  .page-ban-ca__faq-question::after {
    right: 20px !important;
  }

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

  .page-ban-ca__faq-answer p {
    font-size: 0.95rem !important;
  }

  .page-ban-ca__copyright-section {
    padding: 15px 15px !important;
  }
  .page-ban-ca__copyright-text {
    font-size: 0.85rem !important;
  }
}