/* style/ban-ca.css */
:root {
  --page-ban-ca-primary-color: #C91F17;
  --page-ban-ca-secondary-color: #E53935;
  --page-ban-ca-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --page-ban-ca-card-bg: #D32F2F;
  --page-ban-ca-bg: #B71C1C;
  --page-ban-ca-text-main: #FFF5E1;
  --page-ban-ca-border-color: #F2B544;
  --page-ban-ca-glow-color: #FFCC66;
  --page-ban-ca-gold-color: #F4D34D;
  --page-ban-ca-deep-red: #7A0E0E;
}

.page-ban-ca {
  color: var(--page-ban-ca-text-main); /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-ban-ca__dark-bg {
  background: var(--page-ban-ca-bg);
  color: var(--page-ban-ca-text-main);
}

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

.page-ban-ca__card-bg {
  background: var(--page-ban-ca-card-bg);
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__text-main {
  color: var(--page-ban-ca-text-main);
}

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

.page-ban-ca__light-bg .page-ban-ca__section-title {
  color: var(--page-ban-ca-primary-color);
}

.page-ban-ca__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.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;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background: var(--page-ban-ca-button-gradient);
  color: #333333;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-ban-ca__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-ban-ca__btn-secondary:hover {
  background: var(--page-ban-ca-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small padding, relying on body padding-top */
  padding-bottom: 60px;
}

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

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

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

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

.page-ban-ca__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-ban-ca-text-main);
}

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

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

/* Intro Section */
.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 {
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--page-ban-ca-primary-color);
  box-shadow: 0 0 0 6px rgba(201, 31, 23, 0.3);
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%; /* Ensure image inside is also circular */
}

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

.page-ban-ca__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Game Tabs Section */
.page-ban-ca__game-tabs-section {
  padding: 60px 0;
}

.page-ban-ca__game-tabs {
  margin-top: 40px;
}

.page-ban-ca__tab-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-ban-ca__tab-button {
  background: var(--page-ban-ca-deep-red);
  color: var(--page-ban-ca-text-main);
  padding: 12px 25px;
  border: 1px solid var(--page-ban-ca-border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__tab-button:hover,
.page-ban-ca__tab-button.is-active {
  background: var(--page-ban-ca-button-gradient);
  color: #333333;
  border-color: var(--page-ban-ca-gold-color);
  box-shadow: 0 0 15px var(--page-ban-ca-glow-color);
}

.page-ban-ca__game-panel {
  display: none;
}

.page-ban-ca__game-panel.is-active {
  display: block;
}

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

.page-ban-ca__game-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

.page-ban-ca__game-card-title a {
  text-decoration: none;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__game-card-title a:hover {
  color: var(--page-ban-ca-gold-color);
}

.page-ban-ca__game-card-text {
  font-size: 0.95em;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
  margin: 0 15px 15px;
  width: calc(100% - 30px);
}

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

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

.page-ban-ca__guide-step-item {
  text-align: center;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-ban-ca__guide-step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-ban-ca__guide-step-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 10px;
}

.page-ban-ca__guide-step-text {
  font-size: 1em;
  color: #555555;
}

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

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

.page-ban-ca__promo-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-ban-ca__promo-card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 15px 15px 10px;
}

.page-ban-ca__promo-card-title a {
  text-decoration: none;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__promo-card-title a:hover {
  color: var(--page-ban-ca-gold-color);
}

.page-ban-ca__promo-card-text {
  font-size: 0.95em;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-ban-ca__promo-card .page-ban-ca__btn-primary {
  margin: 0 15px 15px;
  width: calc(100% - 30px);
}

.page-ban-ca__promo-cta {
  text-align: center;
}

/* Trust Section */
.page-ban-ca__trust-section {
  padding: 60px 0;
}

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

.page-ban-ca__trust-item {
  text-align: center;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-ban-ca__trust-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-ban-ca__trust-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 10px;
}

.page-ban-ca__trust-text {
  font-size: 1em;
  color: #555555;
}

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

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

.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.page-ban-ca__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: var(--page-ban-ca-text-main);
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  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: 0 20px 20px;
  font-size: 1em;
  line-height: 1.8;
  color: var(--page-ban-ca-text-main);
}

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

.page-ban-ca__cta-final .page-ban-ca__btn-large {
  margin-top: 30px;
}

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

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-ban-ca__content-area,
  .page-ban-ca__hero-content-wrapper {
    padding: 20px 15px !important;
  }

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

  .page-ban-ca__hero-text-block,
  .page-ban-ca__hero-image-block {
    flex: 1 1 100% !important;
  }

  .page-ban-ca__hero-title {
    font-size: clamp(1.8em, 8vw, 2.5em) !important;
    text-align: center;
  }

  .page-ban-ca__hero-description {
    font-size: 1em !important;
    text-align: center;
  }

  .page-ban-ca__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center;
    width: 100%;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: calc(100% - 30px) !important; /* Account for padding in parent */
    padding: 12px 15px !important;
    font-size: 1em !important;
    margin: 0 auto;
  }

  .page-ban-ca__section-title {
    font-size: 2em !important;
  }

  .page-ban-ca__section-description {
    font-size: 0.95em !important;
  }

  /* Module 1: Intro Section (3-column circles) */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr !important;
  }

  .page-ban-ca__icon-box-media {
    width: 150px !important;
    height: 150px !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 4px rgba(201, 31, 23, 0.2) !important;
  }

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

  /* Game Tabs Section */
  .page-ban-ca__tab-nav {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-ban-ca__tab-button {
    font-size: 1em !important;
    padding: 10px 15px !important;
    width: 100% !important;
  }

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

  .page-ban-ca__game-card-image {
    height: 180px !important;
  }

  .page-ban-ca__game-card-title {
    font-size: 1.2em !important;
  }

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr !important;
  }

  .page-ban-ca__guide-step-title {
    font-size: 1.4em !important;
  }

  /* Promo Section */
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr !important;
  }

  .page-ban-ca__promo-card-image {
    height: 180px !important;
  }

  .page-ban-ca__promo-card-title {
    font-size: 1.2em !important;
  }

  .page-ban-ca__promo-cta .page-ban-ca__btn-primary {
    width: calc(100% - 30px) !important;
    margin: 0 auto;
  }

  /* Trust Section */
  .page-ban-ca__trust-features {
    grid-template-columns: 1fr !important;
  }

  .page-ban-ca__trust-title {
    font-size: 1.4em !important;
  }

  /* FAQ Section */
  .page-ban-ca__faq-item summary {
    font-size: 1em !important;
    padding: 15px !important;
  }

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

  /* Final CTA Section */
  .page-ban-ca__cta-final .page-ban-ca__btn-large {
    width: calc(100% - 30px) !important;
    margin: 30px auto 0;
    font-size: 1.1em !important;
  }

  /* General image and container responsiveness */
  .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__hero-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__cta-button,
  .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__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}