/* style/ban-ca.css */

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

.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-background-color);
}

.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;
  color: var(--page-ban-ca-primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-ban-ca__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--page-ban-ca-text-dark);
}

.page-ban-ca__section-description--light {
  color: var(--page-ban-ca-text-light);
}

/* Hero Section */
.page-ban-ca__hero-section {
  background: linear-gradient(135deg, #017439, #005f2f);
  color: var(--page-ban-ca-text-light);
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
}

.page-ban-ca__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  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;
}

.page-ban-ca__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--page-ban-ca-text-light);
}

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

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

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.page-ban-ca__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-card,
.page-ban-ca__btn-guide,
.page-ban-ca__btn-faq {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

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

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

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

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

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

.page-ban-ca__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--page-ban-ca-primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

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

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

.page-ban-ca__feature-text {
  font-size: 1em;
  color: var(--page-ban-ca-text-dark);
}

/* Game Types Section */
.page-ban-ca__game-types-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-ban-ca__game-card {
  background-color: var(--page-ban-ca-secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-ban-ca__card-text {
  font-size: 0.95em;
  color: var(--page-ban-ca-text-dark);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-ban-ca__btn-card {
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-text-light);
  padding: 10px 20px;
  margin: 0 15px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
}

.page-ban-ca__btn-card:hover {
  background-color: #005f2f;
}

/* Guide Section */
.page-ban-ca__guide-section {
  background-color: var(--page-ban-ca-background-color);
  padding: 60px 0;
}

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

.page-ban-ca__guide-step {
  background-color: var(--page-ban-ca-secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-ban-ca__step-title {
  font-size: 1.4em;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__step-text {
  font-size: 1em;
  color: var(--page-ban-ca-text-dark);
  margin-bottom: 20px;
}

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

.page-ban-ca__btn-guide {
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-text-light);
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  margin-top: auto; /* Push button to bottom */
}

.page-ban-ca__btn-guide:hover {
  background-color: #005f2f;
}

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

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

.page-ban-ca__promo-card {
  background-color: var(--page-ban-ca-secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-ban-ca-primary-color);
  cursor: pointer;
  background-color: #f0fdf4; /* Light green for question background */
  list-style: none; /* For details/summary */
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-ban-ca-primary-color);
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--page-ban-ca-text-dark);
  line-height: 1.6;
}

.page-ban-ca__faq-answer p {
  margin-bottom: 10px;
}

.page-ban-ca__btn-faq {
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-text-light);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  margin-top: 15px;
  display: inline-block;
}

.page-ban-ca__btn-faq:hover {
  background-color: #005f2f;
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  padding: 60px 0;
}

.page-ban-ca__dark-section {
  background: linear-gradient(90deg, #017439, #005f2f);
  color: var(--page-ban-ca-text-light);
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
}

/* 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;
    gap: 30px;
  }

  .page-ban-ca__hero-content {
    order: 2;
  }

  .page-ban-ca__hero-image {
    order: 1;
  }

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

  .page-ban-ca__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

  .page-ban-ca__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

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

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

  /* Hero Section */
  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

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

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-card,
  .page-ban-ca__btn-guide,
  .page-ban-ca__btn-faq {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Module 1: Intro Section - Features Grid */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(1, 116, 57, 0.15);
  }

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

  .page-ban-ca__feature-text {
    font-size: 0.95em;
  }

  /* Game Types Section */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__step-title {
    font-size: 1.2em;
  }

  .page-ban-ca__step-text {
    font-size: 0.95em;
  }

  /* Promo Section */
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ Section */
  .page-ban-ca__faq-list {
    margin-top: 30px;
  }

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

  .page-ban-ca__faq-toggle {
    font-size: 1.3em;
  }

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

  /* Final CTA Section */
  .page-ban-ca__dark-section {
    padding: 40px 20px;
  }

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

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

  /* General image and container responsive styles */
  .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__cta-buttons,
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__guide-step,
  .page-ban-ca__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}