.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--secondary-color, #ffffff); /* Fallback to white if --secondary-color is not defined */
}

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

.page-ban-ca__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-ban-ca__section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-ban-ca__section-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

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

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

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

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

.page-ban-ca__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb2;
  border-color: #1a7fb2;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body has padding-top */
  margin-bottom: 40px;
}

.page-ban-ca__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-ban-ca__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

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

.page-ban-ca__hero-title {
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
}

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

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

.page-ban-ca__hero-cta-buttons .page-ban-ca__btn-primary,
.page-ban-ca__hero-cta-buttons .page-ban-ca__btn-secondary {
  min-width: 180px;
}

/* Intro Section & Dark Sections */
.page-ban-ca__intro-section,
.page-ban-ca__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
  margin-bottom: 40px;
}

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

/* Guide Steps Section */
.page-ban-ca__guide-steps-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  margin-bottom: 40px;
}

.page-ban-ca__guide-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}

.page-ban-ca__guide-card {
  flex: 0 0 calc(20% - 12px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 12px);
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__guide-card--pos-1,
.page-ban-ca__guide-card--pos-5 {
  padding-top: 50px;
}

.page-ban-ca__guide-card--pos-2,
.page-ban-ca__guide-card--pos-4 {
  padding-top: 25px;
}

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

/* Features Section */
.page-ban-ca__features-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-ban-ca__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__feature-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Strategy Section */
.page-ban-ca__strategy-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
  margin-bottom: 40px;
}

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

.page-ban-ca__strategy-text {
  flex: 1;
  min-width: 400px;
}

.page-ban-ca__strategy-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-ban-ca__strategy-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-ban-ca__strategy-heading {
  font-size: 1.5rem;
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__strategy-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #f0f0f0;
}

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

/* Popular Games Section */
.page-ban-ca__popular-games-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  margin-bottom: 40px;
}

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

.page-ban-ca__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__game-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-ban-ca__game-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
  margin-bottom: 20px;
}

/* Promo Section */
.page-ban-ca__promo-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-ban-ca__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__promo-list li {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: #ffffff;
}

.page-ban-ca__promo-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #ffffff;
}

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

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

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

.page-ban-ca__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px 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.2rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

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

/* Blog Section */
.page-ban-ca__blog-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-ban-ca__blog-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-ban-ca__blog-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin: 15px;
  font-weight: bold;
  line-height: 1.4;
}

.page-ban-ca__blog-date {
  font-size: 0.9rem;
  color: #888888;
  margin: 0 15px 10px;
}

.page-ban-ca__blog-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  padding: 0 15px 20px;
}

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

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

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

/* Universal image and button responsiveness */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles for tablet and mobile */
@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 15px;
  }

  .page-ban-ca__section-title {
    font-size: 2rem;
  }

  .page-ban-ca__hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }

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

  .page-ban-ca__guide-card {
    flex: 0 0 calc(33.333% - 10px); /* 3 cards per row */
    max-width: calc(33.333% - 10px);
  }

  .page-ban-ca__strategy-content {
    flex-direction: column;
  }

  .page-ban-ca__strategy-text,
  .page-ban-ca__strategy-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Universal image and button responsiveness (forced) */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__hero-cta-buttons,
  .page-ban-ca__promo-cta,
  .page-ban-ca__conclusion-cta {
    flex-direction: column;
    gap: 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__hero-cta-buttons .page-ban-ca__btn-primary,
  .page-ban-ca__hero-cta-buttons .page-ban-ca__btn-secondary {
    min-width: unset;
  }

  .page-ban-ca__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

  .page-ban-ca__hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

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

  .page-ban-ca__section-title {
    font-size: 1.8rem;
  }

  .page-ban-ca__section-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-ban-ca__section-text {
    font-size: 1rem;
  }

  /* Guide Steps Section Mobile */
  .page-ban-ca__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .page-ban-ca__guide-card {
    padding-top: 0 !important; /* Reset padding-top for mobile */
    flex: unset;
    max-width: unset;
  }
  
  .page-ban-ca__guide-card--pos-1,
  .page-ban-ca__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-ban-ca__guide-card--pos-3,
  .page-ban-ca__guide-card--pos-4,
  .page-ban-ca__guide-card--pos-5 {
    grid-column: span 2;
  }

  /* Features Section Mobile */
  .page-ban-ca__feature-grid {
    grid-template-columns: 1fr;
  }

  /* Popular Games Section Mobile */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
  }

  /* Blog Section Mobile */
  .page-ban-ca__blog-grid {
    grid-template-columns: 1fr;
  }

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

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

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