.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Default text color for light backgrounds */
}

.page-ban-ca__light-bg {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-ban-ca__dark-bg {
  background-color: #2F6BFF;
  color: #FFFFFF;
}

.page-ban-ca__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

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

.page-ban-ca__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-ban-ca__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-ban-ca__hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-ban-ca__hero-description {
  font-size: 1.125rem;
  margin-bottom: 30px;
  color: #1F2D3D;
}

.page-ban-ca__hero-image {
  flex: 1 1 45%;
  text-align: center;
}

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

/* CTA Buttons */
.page-ban-ca__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-ban-ca__btn-secondary:hover {
  background: #2F6BFF;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

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

.page-ban-ca__cta-center .page-ban-ca__btn-primary,
.page-ban-ca__cta-center .page-ban-ca__btn-secondary {
  min-width: 200px;
}

/* General Section Styles */
.page-ban-ca__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__section-description {
  font-size: 1.1rem;
  color: #1F2D3D;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-ban-ca__dark-bg .page-ban-ca__section-description {
  color: #FFFFFF;
}

/* Intro Section (Features Grid) */
.page-ban-ca__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-ban-ca__feature-item {
  text-align: center;
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF;
}

.page-ban-ca__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #A5C4FF; /* Glow effect */
  box-shadow: 0 0 15px rgba(165, 196, 255, 0.6);
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

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

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

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

.page-ban-ca__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid rgba(214, 226, 255, 0.3);
}

.page-ban-ca__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-ban-ca__game-card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.page-ban-ca__game-card-title a:hover {
  text-decoration: underline;
}

.page-ban-ca__game-card-text {
  font-size: 1rem;
  color: #FFFFFF;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-ban-ca__game-card-button {
  margin-top: 15px;
  min-width: 150px;
}

.page-ban-ca__view-all-games {
  text-align: center;
  margin-top: 50px;
}

.page-ban-ca__view-all-games .page-ban-ca__btn-secondary {
  min-width: 250px;
}

/* Guide Section */
.page-ban-ca__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 50px;
}

.page-ban-ca__guide-step-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-ban-ca__guide-step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-ban-ca__guide-step-image {
  flex: 1 1 45%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__guide-step-content {
  flex: 1 1 50%;
}

.page-ban-ca__guide-step-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-ban-ca__guide-step-text {
  font-size: 1.05rem;
  color: #1F2D3D;
}

.page-ban-ca__guide-step-text a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
}

.page-ban-ca__guide-step-text a:hover {
  text-decoration: underline;
}

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

.page-ban-ca__tip-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid rgba(214, 226, 255, 0.3);
}

.page-ban-ca__tip-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-ban-ca__tip-card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__tip-card-text {
  font-size: 1rem;
  color: #FFFFFF;
  padding: 0 15px;
}

/* Promo Section */
.page-ban-ca__promo-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__promo-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #D6E2FF;
}

.page-ban-ca__promo-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
}

.page-ban-ca__promo-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-ban-ca__promo-text {
  font-size: 1rem;
  color: #1F2D3D;
}

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

.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(214, 226, 255, 0.3);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  list-style: none; /* For <details> summary */
}

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

.page-ban-ca__faq-qtext {
  flex-grow: 1;
}

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

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

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

.page-ban-ca__cta-final-content {
  max-width: 800px;
}

.page-ban-ca__cta-final-section .page-ban-ca__section-title {
  color: #2F6BFF;
}

.page-ban-ca__cta-final-section .page-ban-ca__section-description {
  color: #1F2D3D;
  margin-bottom: 40px;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%;
  }

  .page-ban-ca__hero-section h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

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

  .page-ban-ca__guide-step-item {
    flex-direction: column !important;
    text-align: center;
  }

  .page-ban-ca__guide-step-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px !important;
  }

  .page-ban-ca__hero-section h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-ban-ca__hero-side-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* CTA Buttons */
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 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;
  }
  
  .page-ban-ca__cta-center .page-ban-ca__btn-primary,
  .page-ban-ca__cta-center .page-ban-ca__btn-secondary {
    min-width: unset;
  }

  /* General Section Titles and Descriptions */
  .page-ban-ca__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

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

  /* Intro Section (Features Grid) */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__icon-box-media {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
  }

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

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

  /* Game Types Section (Game Grid) */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-ban-ca__game-card-title {
    font-size: 1.2rem;
  }

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

  .page-ban-ca__view-all-games .page-ban-ca__btn-secondary {
    min-width: unset;
    width: 100% !important;
  }

  /* Guide Section */
  .page-ban-ca__guide-steps {
    gap: 30px;
  }

  .page-ban-ca__guide-step-item {
    gap: 20px;
  }

  .page-ban-ca__guide-step-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .page-ban-ca__guide-step-title {
    font-size: 1.5rem;
  }

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

  /* Tips Section */
  .page-ban-ca__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__tip-card-image {
    height: 180px;
  }

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

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

  /* Promo Section */
  .page-ban-ca__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__promo-icon {
    font-size: 2.5rem;
  }

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

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

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

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

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

  /* Final CTA Section */
  .page-ban-ca__cta-final-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .page-ban-ca__cta-final-section .page-ban-ca__cta-buttons {
    flex-direction: column;
  }

  /* Universal image responsiveness for content area */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Exception for icon-box-media images to maintain square aspect */
  .page-ban-ca__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Ensure all containers handle overflow */
  .page-ban-ca__hero-container,
  .page-ban-ca__intro-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section,
  .page-ban-ca__features-grid,
  .page-ban-ca__game-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__tips-grid,
  .page-ban-ca__promo-list,
  .page-ban-ca__faq-list,
  .page-ban-ca__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}