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

.page-ban-ca__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding */
  background-color: #1a8ccb; /* A slightly darker blue for hero background */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3); /* Slightly transparent overlay for readability */
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image slightly for visual effect */
}

.page-ban-ca__main-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-ban-ca__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, 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: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-ban-ca__btn--play {
  background-color: #EA7C07; /* Login color for play button */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-ban-ca__btn--play:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

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

.page-ban-ca__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

.page-ban-ca__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-ban-ca__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-ban-ca__inline-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-ban-ca__inline-link:hover {
  color: #1a8ccb;
}

.page-ban-ca__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-ban-ca__dark-section .page-ban-ca__section-title,
.page-ban-ca__dark-section .page-ban-ca__highlight {
  color: #ffffff;
}

.page-ban-ca__dark-section .page-ban-ca__inline-link {
  color: #ffffff;
}

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

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

.page-ban-ca__feature-card,
.page-ban-ca__game-card,
.page-ban-ca__tip-card,
.page-ban-ca__benefit-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  color: #333333;
}

.page-ban-ca__dark-section .page-ban-ca__feature-card,
.page-ban-ca__dark-section .page-ban-ca__tip-card,
.page-ban-ca__dark-section .page-ban-ca__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-ban-ca__dark-section .page-ban-ca__card-title {
  color: #ffffff;
}

.page-ban-ca__card-description {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

.page-ban-ca__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.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: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  color: #333333;
  min-height: 280px;
}

.page-ban-ca__guide-step-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-ban-ca__step-description {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-ban-ca__guide-step .page-ban-ca__btn {
  margin-top: auto;
  align-self: flex-start;
}

.page-ban-ca__promo-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-ban-ca__promo-item {
  margin-bottom: 10px;
}

.page-ban-ca__promo-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-ban-ca__note {
  font-size: 0.9em;
  color: #555555;
  text-align: center;
  margin-top: 30px;
}

.page-ban-ca__dark-section .page-ban-ca__note {
  color: #f0f0f0;
}

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

.page-ban-ca__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-ban-ca__faq-question {
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: #f0f8ff;
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-ban-ca__faq-item.active .page-ban-ca__faq-answer {
  max-height: 500px; /* Adjust as needed */
  transition: max-height 0.5s ease-in;
}

.page-ban-ca__faq-answer .page-ban-ca__text-block {
  margin-top: 15px;
  margin-bottom: 0;
}

.page-ban-ca__faq-more {
  text-align: center;
  margin-top: 40px;
}

.page-ban-ca__cta-final-section {
  text-align: center;
  padding: 80px 0;
}

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

.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  /* 1. Top section title + double CTA */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
  }

  .page-ban-ca__hero-content {
    padding: 30px 15px;
    margin-top: -60px; /* Adjust overlap for mobile */
  }

  .page-ban-ca__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-ban-ca__hero-cta {
    flex-direction: column !important;
    gap: 10px;
    padding: 0 15px;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  /* 2. Single column article container */
  .page-ban-ca__container,
  .page-ban-ca__section,
  .page-ban-ca__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-ban-ca__image-wrapper,
  .page-ban-ca__game-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 4. Buttons and button containers */
  .page-ban-ca__promo-cta,
  .page-ban-ca__final-cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    padding: 0 15px;
  }

  /* Ensure all buttons are covered by general .page-ban-ca__btn rule */

  /* 5. Registration tutorial and FAQ blocks */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__guide-step {
    padding: 20px;
    min-height: auto;
  }

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

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

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

  .page-ban-ca__promo-list {
    margin-left: 20px;
    font-size: 1em;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__game-list,
  .page-ban-ca__tips-grid,
  .page-ban-ca__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__feature-card,
  .page-ban-ca__game-card,
  .page-ban-ca__tip-card,
  .page-ban-ca__benefit-item {
    padding: 25px;
    min-height: auto;
  }

  .page-ban-ca__card-title {
    font-size: 1.2em;
  }

  .page-ban-ca__game-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-ban-ca__section {
    padding: 40px 0;
  }
}