/* style/ban-ca.css */

:root {
  --page-ban-ca-primary-color: #017439;
  --page-ban-ca-secondary-color: #FFFFFF;
  --page-ban-ca-text-dark: #333333;
  --page-ban-ca-text-light: #ffffff;
  --page-ban-ca-register-btn: #C30808;
  --page-ban-ca-login-btn: #C30808;
  --page-ban-ca-btn-text-color: #FFFF00;
}

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

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

.page-ban-ca__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  padding: 0 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-ban-ca__subtitle {
  font-size: 1.2em;
  color: var(--page-ban-ca-text-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__hero-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: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-ban-ca__section {
  padding: 60px 0;
}

.page-ban-ca__intro-section,
.page-ban-ca__game-types-section,
.page-ban-ca__benefits-section,
.page-ban-ca__conclusion-section {
  background-color: var(--page-ban-ca-secondary-color);
  color: var(--page-ban-ca-text-dark);
}

.page-ban-ca__how-to-play-section,
.page-ban-ca__features-section,
.page-ban-ca__faq-section {
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-ban-ca__intro-section .page-ban-ca__section-title,
.page-ban-ca__game-types-section .page-ban-ca__section-title,
.page-ban-ca__benefits-section .page-ban-ca__section-title,
.page-ban-ca__conclusion-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-primary-color);
}

.page-ban-ca__how-to-play-section .page-ban-ca__section-title,
.page-ban-ca__features-section .page-ban-ca__section-title,
.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-ban-ca-register-btn);
  border-radius: 2px;
}

.page-ban-ca__content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}

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

.page-ban-ca__ordered-list,
.page-ban-ca__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-ban-ca__ordered-list li,
.page-ban-ca__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-ban-ca__how-to-play-section .page-ban-ca__ordered-list li,
.page-ban-ca__features-section .page-ban-ca__unordered-list li,
.page-ban-ca__faq-section .page-ban-ca__faq-answer p {
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
}

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

.page-ban-ca__figcaption {
  font-style: italic;
  font-size: 0.95em;
  color: #666;
  margin-top: 10px;
}

.page-ban-ca__how-to-play-section .page-ban-ca__figcaption,
.page-ban-ca__features-section .page-ban-ca__figcaption,
.page-ban-ca__faq-section .page-ban-ca__figcaption {
  color: rgba(255, 255, 255, 0.8);
}

.page-ban-ca__cta-box {
  background-color: var(--page-ban-ca-primary-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
}

.page-ban-ca__cta-text {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--page-ban-ca-text-light);
  margin-bottom: 25px;
}

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

/* FAQ Section */
.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-ban-ca__faq-item[open] > .page-ban-ca__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-ban-ca__faq-qtext {
  flex-grow: 1;
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--page-ban-ca-btn-text-color);
}

.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: 1.05em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

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

  /* 1. Top section title + CTA */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-ban-ca__main-title {
    font-size: 2.2em;
    margin-bottom: 10px;
  }

  .page-ban-ca__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-ban-ca__hero-cta-buttons,
  .page-ban-ca__final-cta-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* 4. Buttons and button containers */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 2. Single column content container */
  .page-ban-ca__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__content-area {
    padding: 0;
  }

  .page-ban-ca__section {
    padding: 40px 0;
  }

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

  .page-ban-ca p,
  .page-ban-ca__ordered-list li,
  .page-ban-ca__unordered-list li {
    font-size: 1em;
    margin-bottom: 15px;
  }

  .page-ban-ca__cta-box {
    padding: 25px;
  }

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

  /* 3. General images and figure */
  .page-ban-ca__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__figure {
    margin: 20px auto;
  }

  .page-ban-ca__figcaption {
    font-size: 0.9em;
  }

  /* 5. FAQ Block */
  .page-ban-ca__faq-item {
    margin-bottom: 10px;
  }

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

  .page-ban-ca__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }
}