/* style/ban-ca.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --login-button-color: #EA7C07;
  --background-color-light: #f5f5f5; /* As per body background from shared.css */
}

.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-color-light);
}

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-ban-ca__section-title--white {
  color: var(--text-color-light);
}

/* Hero Section */
.page-ban-ca__hero-section {
  background-color: var(--secondary-color);
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
}

.page-ban-ca__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-ban-ca__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
  color: var(--text-color-dark);
}

.page-ban-ca__hero-title {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  /* No fixed large font-size, rely on clamp for responsiveness if needed */
  font-size: clamp(2em, 4vw, 3em);
}

.page-ban-ca__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-color-dark);
}

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

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

.page-ban-ca__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.page-ban-ca__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

.page-ban-ca__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-ban-ca__btn-primary--large {
  padding: 15px 30px;
  font-size: 1.2em;
}

.page-ban-ca__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-ban-ca__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-ban-ca__btn-play {
  background-color: var(--login-button-color);
  color: var(--text-color-light);
  border: 2px solid var(--login-button-color);
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-ban-ca__btn-play:hover {
  background-color: darken(var(--login-button-color), 10%);
  border-color: darken(var(--login-button-color), 10%);
}

/* Intro Section */
.page-ban-ca__intro-section {
  background-color: var(--secondary-color);
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-ban-ca__feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: var(--text-color-dark);
}

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

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
}

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

.page-ban-ca__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-ban-ca__feature-description {
  font-size: 1em;
  color: #555;
}

/* Game Overview Section */
.page-ban-ca__game-overview-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-ban-ca__game-overview-section .page-ban-ca__section-title {
  color: var(--text-color-light);
}

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

.page-ban-ca__content-wrapper--reversed {
  flex-direction: row-reverse;
}

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

.page-ban-ca__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

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

.page-ban-ca__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Popular Games Section */
.page-ban-ca__popular-games-section {
  background-color: var(--background-color-light);
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-ban-ca__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  color: var(--text-color-dark);
}

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

.page-ban-ca__card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__card-description {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* How to Play Section */
.page-ban-ca__how-to-play-section {
  background-color: var(--secondary-color);
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-ban-ca__step-list {
  list-style: none;
  padding: 0;
}

.page-ban-ca__step-list li {
  background-color: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__step-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-ban-ca__step-list p {
  color: #555;
}

/* Benefits Section */
.page-ban-ca__benefits-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-ban-ca__benefits-section .page-ban-ca__section-title {
  color: var(--text-color-light);
}

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

.page-ban-ca__benefits-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-ban-ca__list-icon {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin-right: 5px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: var(--background-color-light);
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-ban-ca__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-color-dark);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f0f8ff;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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: 15px 25px 20px;
  font-size: 1em;
  color: #555;
  background-color: #fdfdfd;
}

/* CTA Section */
.page-ban-ca__cta-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-ban-ca__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.page-ban-ca__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.5;
}

/* General image styling */
.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 {
    text-align: center;
  }

  .page-ban-ca__hero-cta-buttons {
    justify-content: center;
  }

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

  .page-ban-ca__content-wrapper--reversed {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-ban-ca__container,
  .page-ban-ca__hero-container {
    padding: 20px 15px;
  }

  .page-ban-ca__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

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

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

  .page-ban-ca__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-play {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ban-ca__btn-primary--large {
    font-size: 1.1em;
    padding: 12px 25px;
  }

  /* Intro Section */
  .page-ban-ca__intro-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

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

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

  /* Game Overview Section & How to Play Section */
  .page-ban-ca__game-overview-section,
  .page-ban-ca__how-to-play-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-ban-ca__text-block,
  .page-ban-ca__image-block {
    min-width: unset;
    width: 100%;
  }

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

  /* Popular Games Section */
  .page-ban-ca__popular-games-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-ban-ca__game-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__card-image {
    height: 200px;
  }

  /* Benefits Section */
  .page-ban-ca__benefits-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-ban-ca__benefits-list {
    grid-template-columns: 1fr;
  }

  /* FAQ Section */
  .page-ban-ca__faq-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

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

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

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

  .page-ban-ca__cta-text {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

  /* Ensure all images are responsive */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__cta-buttons,
  .page-ban-ca__button-group,
  .page-ban-ca__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-ban-ca__hero-cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}