.page-ban-ca {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color for dark background */
  background-color: var(--site-bg, #0A0A0A); /* Default background color */
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 50px;
  overflow: hidden;
  background: linear-gradient(180deg, #111111 0%, #0A0A0A 100%);
}

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

.page-ban-ca__main-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  max-width: 900px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #FFD36B;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

.page-ban-ca__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.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: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
  filter: brightness(1.1);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: #FFD36B;
  border: 2px solid #FFD36B;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.2);
}

.page-ban-ca__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.4);
}

/* General Section Styles */
.page-ban-ca__introduction-section,
.page-ban-ca__guide-section,
.page-ban-ca__benefits-section,
.page-ban-ca__faq-section {
  padding: 60px 0;
}

.page-ban-ca__game-types-section,
.page-ban-ca__strategy-section,
.page-ban-ca__cta-final-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-ban-ca__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-ban-ca__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  color: #F2C14E; /* Default for dark sections, overridden by .page-ban-ca__light-bg */
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-ban-ca__section-title--light {
  color: #F2C14E;
  text-shadow: none;
}

.page-ban-ca__section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 50px;
  color: #FFF6D6;
}

/* Introduction Section */
.page-ban-ca__introduction-section .page-ban-ca__section-title {
  color: #333333;
  text-shadow: none;
}

.page-ban-ca__introduction-section p {
  color: #333333;
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-ban-ca__introduction-section a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-ban-ca__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-ban-ca__content-wrapper p {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-ban-ca__content-image {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Game Types Section */
.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: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.4);
}

.page-ban-ca__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-ban-ca__game-card-title {
  font-size: 1.5rem;
  color: #FFD36B;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__game-card-description {
  font-size: 0.95rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-ban-ca__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.page-ban-ca__btn-small:hover {
  filter: brightness(1.1);
}

/* Guide & Strategy Sections */
.page-ban-ca__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

.page-ban-ca__guide-section .page-ban-ca__article-body,
.page-ban-ca__guide-section p,
.page-ban-ca__guide-section li {
  color: #333333;
}

.page-ban-ca__guide-section .page-ban-ca__section-title {
  color: #333333;
  text-shadow: none;
}

.page-ban-ca__strategy-section .page-ban-ca__article-body,
.page-ban-ca__strategy-section p,
.page-ban-ca__strategy-section li {
  color: #FFF6D6;
}

.page-ban-ca__article-subtitle {
  font-size: 1.35rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2C14E;
  font-weight: 600;
}

.page-ban-ca__article-body ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-ban-ca__article-body li {
  margin-bottom: 10px;
}

.page-ban-ca__article-body a {
  color: #F2C14E;
  text-decoration: underline;
}

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

/* Benefits Section */
.page-ban-ca__benefits-section .page-ban-ca__section-title {
  color: #333333;
  text-shadow: none;
}

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

.page-ban-ca__benefit-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-ban-ca__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-ban-ca__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-ban-ca__benefit-title {
  font-size: 1.4rem;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-ban-ca__benefit-description {
  font-size: 0.95rem;
  color: #555555;
}

/* FAQ Section */
.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: #333333;
  text-shadow: none;
}

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

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333;
  font-weight: 600;
}

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

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question:hover {
  background: #f5f5f5;
}

.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure text color for FAQ question */
}

.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.page-ban-ca__faq-answer p {
  color: #555555; /* Ensure text color for FAQ answer */
}

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

.page-ban-ca__cta-final-section .page-ban-ca__description--light {
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 40px;
}


/* --- 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.5rem, 3.5vw, 2rem);
  }

  .page-ban-ca__game-grid,
  .page-ban-ca__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .page-ban-ca__introduction-section .page-ban-ca__content-wrapper p,
  .page-ban-ca__introduction-section .page-ban-ca__content-image {
    flex: 1 1 100%;
  }
  .page-ban-ca__introduction-section .page-ban-ca__content-image {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 0 15px;
  }

  /* HERO Section */
  .page-ban-ca__hero-section {
    padding: 10px 0 30px;
  }

  .page-ban-ca__main-hero-img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* HERO: object-fit:contain */
    aspect-ratio: unset !important;
  }

  .page-ban-ca__hero-content {
    padding: 20px 15px;
  }

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

  .page-ban-ca__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Buttons: mobile vertical stack */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  /* Section Titles */
  .page-ban-ca__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-ban-ca__section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* Introduction Section */
  .page-ban-ca__introduction-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__strategy-section,
  .page-ban-ca__benefits-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section {
    padding: 40px 0;
  }

  .page-ban-ca__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

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

  /* Game Types (Products) Section */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr 1fr; /* Products: 2 columns */
    gap: 15px;
    padding: 0 15px;
    overflow-x: hidden; /* Products: prevent horizontal scroll */
  }

  .page-ban-ca__game-card-image {
    height: 160px;
  }

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

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

  /* Article Body (SEO Text Area) */
  .page-ban-ca__article-body {
    padding: 0 15px;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .page-ban-ca__article-subtitle {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-ban-ca__article-body ul {
    margin-left: 20px;
  }
  
  .page-ban-ca__center-button-group {
    margin-top: 30px;
    padding: 0 15px;
  }

  /* Benefits Section */
  .page-ban-ca__benefits-grid {
    grid-template-columns: 1fr; /* Benefits: 1 column */
    gap: 20px;
    padding: 0 15px;
  }

  /* FAQ Section */
  details.page-ban-ca__faq-item {
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 8px;
  }
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question { padding: 15px; }
  .page-ban-ca__faq-qtext { font-size: 15px; }
  .page-ban-ca__faq-answer { padding: 0 15px 15px; }

  /* General Image and Container Rules for Mobile */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__content-wrapper,
  .page-ban-ca__game-grid,
  .page-ban-ca__benefits-grid,
  .page-ban-ca__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}