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

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

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

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

/* Hero Section */
.page-ban-ca__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-ban-ca__hero-image-container {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-ban-ca__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-ban-ca__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  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%;
  width: auto; /* Default for desktop */
}

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

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

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

.page-ban-ca__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

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

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

/* General Section Styles */
.page-ban-ca__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: inherit;
}

.page-ban-ca__section-text {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-ban-ca__content-image {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Introduction Section */
.page-ban-ca__introduction-section,
.page-ban-ca__how-to-play-section,
.page-ban-ca__strategy-section,
.page-ban-ca__faq-section {
  padding: 60px 0;
}

/* Features Section */
.page-ban-ca__features-section,
.page-ban-ca__game-types-section,
.page-ban-ca__promotions-section,
.page-ban-ca__cta-final-section {
  padding: 60px 0;
}

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

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

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

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

/* How to Play Section */
.page-ban-ca__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 40px auto;
}

.page-ban-ca__step-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
  padding-left: 60px;
}

.page-ban-ca__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: #26A9E0;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

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

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

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

.page-ban-ca__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  color: #ffffff;
}

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

.page-ban-ca__game-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 15px 0 10px;
}

.page-ban-ca__game-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-ban-ca__game-title a:hover {
  color: #f0f0f0;
  text-decoration: underline;
}

.page-ban-ca__game-description {
  font-size: 0.95rem;
  color: #f0f0f0;
  padding: 0 15px;
}

/* Strategy Section */
.page-ban-ca__strategy-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-ban-ca__strategy-item {
  background-color: #f9f9f9;
  border-left: 5px solid #EA7C07;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-ban-ca__strategy-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #EA7C07;
}

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

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

.page-ban-ca__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

.page-ban-ca__promotion-description {
  font-size: 1rem;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-ban-ca__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-question:hover {
  background-color: #f0f0f0;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #26A9E0;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  content: '-';
}

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

.page-ban-ca__faq-answer p {
  margin-bottom: 15px;
  text-align: left;
}

.page-ban-ca__faq-answer .page-ban-ca__btn-small {
  margin-top: 10px;
  background-color: #26A9E0;
  color: #ffffff;
  border-color: #26A9E0;
}

.page-ban-ca__faq-answer .page-ban-ca__btn-small:hover {
  background-color: #1e87b8;
  border-color: #1e87b8;
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

/* Universal image and button responsive styles */
.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;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 15px;
  }

  .page-ban-ca__feature-grid,
  .page-ban-ca__game-card-grid,
  .page-ban-ca__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

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

  .page-ban-ca__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    background-color: rgba(0, 0, 0, 0.5); /* Add background for text readability on mobile */
  }

  .page-ban-ca__hero-image {
    filter: brightness(0.6) !important; /* Slightly darker image for mobile text */
  }

  .page-ban-ca__main-title {
    font-size: 2rem !important;
  }

  .page-ban-ca__hero-description {
    font-size: 1rem !important;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 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;
  }

  /* General Section Titles and Text */
  .page-ban-ca__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 20px;
  }

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

  /* Long Text (No specific long text gold frame for this page, general content sections) */
  .page-ban-ca__introduction-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__strategy-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__features-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__cta-final-section {
    padding: 40px 0 !important;
  }

  .page-ban-ca__content-image {
    margin: 20px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Features Grid */
  .page-ban-ca__feature-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

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

  /* How to Play Steps */
  .page-ban-ca__step-item {
    padding-left: 50px !important;
  }

  .page-ban-ca__step-item::before {
    left: 15px !important;
    width: 25px !important;
    height: 25px !important;
    font-size: 1rem !important;
  }

  .page-ban-ca__step-title {
    font-size: 1.2rem !important;
  }

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

  /* Strategy List */
  .page-ban-ca__strategy-item {
    padding: 15px !important;
  }

  .page-ban-ca__strategy-title {
    font-size: 1.2rem !important;
  }

  /* Promotions Grid */
  .page-ban-ca__promotion-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

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

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

  /* All images */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All containers for images/buttons */
  .page-ban-ca__container,
  .page-ban-ca__feature-grid,
  .page-ban-ca__game-card-grid,
  .page-ban-ca__promotion-grid,
  .page-ban-ca__faq-list,
  .page-ban-ca__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* No game carousel or gameshow grid on this non-homepage */
  /* No specific blog masonry or blog slider track on this non-homepage, general blog images handled by .page-ban-ca img */
}