.page-ban-ca {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* General background for the page */
  line-height: 1.6;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient background */
  color: #ffffff; /* White text for dark background */
}

.page-ban-ca__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
}

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

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

.page-ban-ca__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-ban-ca__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-ban-ca__hero-image {
  flex: 1 1 40%;
  text-align: center;
  min-width: 300px;
}

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

/* General Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__guide-link,
.page-ban-ca__faq-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  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: #E53935;
  border: 2px solid #E53935;
}

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

.page-ban-ca__guide-link,
.page-ban-ca__faq-link {
  color: #E53935;
  text-decoration: underline;
  font-weight: 600;
  display: block;
  margin-top: 10px;
}

.page-ban-ca__guide-link:hover,
.page-ban-ca__faq-link:hover {
  color: #FF5A4F;
}

/* Container & Section Titles */
.page-ban-ca__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-ban-ca__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935;
}

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

/* Intro Section */
.page-ban-ca__intro-section {
  background-color: #ffffff;
  padding: 60px 0;
}

/* Features Section */
.page-ban-ca__features-section {
  background-color: #F5F7FA;
  padding: 60px 0;
}

.page-ban-ca__feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-ban-ca__feature-card {
  flex: 1 1 300px;
  max-width: 380px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
  width: 200px; /* Must be >= 200px for desktop */
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FF5A4F;
  box-shadow: 0 0 0 8px rgba(255, 90, 79, 0.3);
}

.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.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935;
}

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

/* Game Types Section */
.page-ban-ca__game-types-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-ban-ca__game-type-card {
  background-color: #F5F7FA;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__game-type-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-type-card h3,
.page-ban-ca__game-type-card p {
  padding: 0 20px;
}

.page-ban-ca__game-type-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #E53935;
}

.page-ban-ca__game-type-description {
  font-size: 0.95rem;
  color: #333333;
  margin-bottom: 20px;
}

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

/* Guide Section */
.page-ban-ca__guide-section {
  background-color: #F5F7FA;
  padding: 60px 0;
}

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

.page-ban-ca__guide-step {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-ban-ca__guide-step:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.page-ban-ca__guide-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-ban-ca__guide-step-title::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FF5A4F;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.page-ban-ca__guide-step-description {
  font-size: 1rem;
  color: #333333;
}

.page-ban-ca__guide-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Promo Section */
.page-ban-ca__promo-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-ban-ca__promo-card {
  max-width: 800px;
  margin: 40px auto 0;
  background-color: #F5F7FA;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

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

.page-ban-ca__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #E53935;
  padding: 0 20px;
}

.page-ban-ca__promo-description {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 25px;
  padding: 0 20px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: #F5F7FA;
  padding: 60px 0;
}

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

.page-ban-ca__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  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;
  border-bottom: 1px solid #E0E0E0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  color: #E53935;
  border-bottom-color: transparent;
}

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

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

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 15px;
}

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

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  background-color: #E53935;
  padding: 60px 0;
  color: #ffffff;
  text-align: center;
}

.page-ban-ca__conclusion-section .page-ban-ca__section-title {
  color: #ffffff;
}

.page-ban-ca__conclusion-section .page-ban-ca__text-block {
  color: #ffffff;
  margin-bottom: 40px;
}

/* General Image Styles (for all content images) */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 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%;
    min-width: unset;
  }
  .page-ban-ca__hero-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* HERO section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px !important;
  }
  .page-ban-ca__hero-container {
    padding: 30px 15px !important;
    gap: 30px !important;
  }
  .page-ban-ca__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
    margin-bottom: 15px !important;
  }
  .page-ban-ca__hero-description {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
  }
  .page-ban-ca__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
  }

  /* Buttons */
  .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 !important;
    padding-right: 15px !important;
  }
  .page-ban-ca__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !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 {
    max-width: 300px !important; /* Allow some max-width for single buttons in center */
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Module 1 (Features Section) - three round images */
  .page-ban-ca__feature-grid {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .page-ban-ca__feature-card {
    max-width: 100% !important;
  }
  .page-ban-ca__icon-box-media {
    width: 120px !important; /* Smaller but still square for mobile */
    height: 120px !important;
    border: 3px solid #FF5A4F !important;
    box-shadow: 0 0 0 6px rgba(255, 90, 79, 0.2) !important;
  }

  /* Game Types Section */
  .page-ban-ca__game-type-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
  }
  .page-ban-ca__game-type-image {
    height: 180px !important; /* Adjust height for mobile */
  }

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
  }
  .page-ban-ca__guide-step-title {
    font-size: 1.1rem !important;
  }
  .page-ban-ca__guide-image {
    margin-top: 30px !important;
  }

  /* Promo Section */
  .page-ban-ca__promo-card {
    margin-top: 30px !important;
  }
  .page-ban-ca__promo-image {
    height: 200px !important;
  }
  .page-ban-ca__promo-title {
    font-size: 1.3rem !important;
  }
  .page-ban-ca__promo-description {
    font-size: 0.95rem !important;
  }

  /* FAQ Section */
  .page-ban-ca__faq-list {
    margin-top: 30px !important;
  }
  .page-ban-ca__faq-question {
    padding: 15px 20px !important;
    font-size: 1rem !important;
  }
  .page-ban-ca__faq-toggle {
    font-size: 1.2rem !important;
  }
  .page-ban-ca__faq-answer {
    padding: 0 20px 15px !important;
    font-size: 0.95rem !important;
  }
  .page-ban-ca__faq-item[open] .page-ban-ca__faq-answer {
    padding-top: 10px !important;
  }

  /* Common sections padding/margins */
  .page-ban-ca__container {
    padding: 30px 15px !important;
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-bottom: 30px !important;
  }
  .page-ban-ca__text-block {
    font-size: 0.95rem !important;
  }

  /* Universal image responsive rule for content images */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Containers for images to prevent overflow */
  .page-ban-ca__hero-section,
  .page-ban-ca__intro-section,
  .page-ban-ca__features-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__conclusion-section,
  .page-ban-ca__container,
  .page-ban-ca__feature-card,
  .page-ban-ca__game-type-card,
  .page-ban-ca__guide-step,
  .page-ban-ca__promo-card,
  .page-ban-ca__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-ban-ca__container for content,
       and for buttons directly on button styles if needed.
       Individual components like cards may need specific padding.
    */
  }
  /* Ensure main content area does not overflow */
  .page-content.page-ban-ca {
    overflow-x: hidden !important;
  }
}