.page-ban-ca {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  padding: 10px 0 60px; /* Adjusted top padding */
  text-align: center;
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Using brand colors for hero background */
  color: #ffffff;
}

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

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

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-ban-ca__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Important for responsiveness */
  box-sizing: border-box; /* Important for responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-ban-ca__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-ban-ca__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-ban-ca__btn--secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-ban-ca__cta-buttons--center {
    margin-top: 40px;
}

/* About Section */
.page-ban-ca__about-section {
  padding: 80px 0;
  text-align: center;
}

.page-ban-ca__dark-bg {
    background-color: #2F6BFF; /* Main color */
    color: #ffffff;
}

.page-ban-ca__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent (.page-ban-ca__dark-bg) */
}

.page-ban-ca__text-block {
  font-size: 1.05rem;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.7;
  color: inherit;
}

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

.page-ban-ca__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

/* How to Play Section */
.page-ban-ca__how-to-play-section {
  padding: 80px 0;
  text-align: center;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

.page-ban-ca__step-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.page-ban-ca__step-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__step-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2F6BFF;
}

.page-ban-ca__step-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
}

/* Game Features Section */
.page-ban-ca__game-features-section {
  padding: 80px 0;
  text-align: center;
}

.page-ban-ca__light-bg {
    background-color: #F4F7FB; /* Background */
    color: #1F2D3D; /* Text Main */
}

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

.page-ban-ca__feature-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-ban-ca__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
  text-align: center;
}

.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-ban-ca__tip-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__tip-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2F6BFF;
}

.page-ban-ca__tip-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
}

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-ban-ca__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
}

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

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

.page-ban-ca__promo-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
  text-align: center;
}

.page-ban-ca__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

.page-ban-ca__faq-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  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: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.page-ban-ca__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-ban-ca__faq-question .page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #2F6BFF;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg); /* Change + to X */
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #495057; /* Slightly darker than Text Main for contrast */
}

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

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

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

/* Global Image Styles for Content Area */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  }
  .page-ban-ca__hero-section,
  .page-ban-ca__about-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__game-features-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__final-cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 40px;
  }
  .page-ban-ca__main-title {
    font-size: 2.2rem !important; /* Specific size for mobile */
    margin-bottom: 15px;
  }
  .page-ban-ca__description {
    font-size: 1rem !important;
    margin-bottom: 25px;
    padding: 0 15px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }
  .page-ban-ca__btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-ban-ca__cta-buttons--center {
    margin-top: 25px;
  }

  /* 2. Single-column long text containers */
  .page-ban-ca__container {
    padding: 0 15px !important; /* Consistent padding */
  }
  .page-ban-ca__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px;
  }
  .page-ban-ca__text-block {
    font-size: 0.95rem !important;
    margin-bottom: 30px;
  }
  .page-ban-ca__about-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__game-features-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__final-cta-section {
    padding: 40px 0 !important; /* Reduced section padding */
  }

  /* 3. General images and figure */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce min size even on mobile */
    min-height: 200px !important; /* Enforce min size even on mobile */
  }
  .page-ban-ca__feature-image,
  .page-ban-ca__card-image {
    margin-bottom: 15px;
  }

  /* Specific containers to ensure overflow hidden */
  .page-ban-ca__features,
  .page-ban-ca__step-list,
  .page-ban-ca__feature-grid,
  .page-ban-ca__tips-list,
  .page-ban-ca__promo-cards {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-ban-ca__feature-item,
  .page-ban-ca__step-item,
  .page-ban-ca__feature-card,
  .page-ban-ca__tip-item,
  .page-ban-ca__promo-card {
    padding: 20px;
    text-align: center; /* Center text in cards on mobile */
  }
  .page-ban-ca__feature-item h3,
  .page-ban-ca__step-item h3,
  .page-ban-ca__feature-card h3,
  .page-ban-ca__tip-item h3,
  .page-ban-ca__promo-card h3 {
      font-size: 1.25rem !important;
      text-align: center;
  }
  .page-ban-ca__feature-item p,
  .page-ban-ca__step-item p,
  .page-ban-ca__feature-card p,
  .page-ban-ca__tip-item p,
  .page-ban-ca__promo-card p {
      font-size: 0.9rem !important;
      text-align: center;
  }

  /* 4. Buttons and button containers (already covered in top section, reinforcing) */
  /* .page-ban-ca__btn and .page-ban-ca__cta-buttons rules are already general enough and reinforced */

  /* 5. FAQ Block */
  .page-ban-ca__faq-list {
    margin-top: 30px;
  }
  .page-ban-ca__faq-question {
    font-size: 1rem !important;
    padding: 15px 20px;
  }
  .page-ban-ca__faq-answer {
    font-size: 0.95rem !important;
    padding: 0 20px 15px;
  }
}