/* style/ban-ca.css */

:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-background-dark: #08160F;
  --color-card-bg: #11271B;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

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

.page-ban-ca__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.page-ban-ca__link-sv288,
.page-ban-ca__link-internal,
.page-ban-ca__link-action {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ban-ca__link-sv288:hover,
.page-ban-ca__link-internal:hover,
.page-ban-ca__link-action:hover {
  color: var(--color-glow);
  text-decoration: underline;
}

.page-ban-ca__highlight {
  color: var(--color-gold);
  font-weight: bold;
}

/* Hero Section */
.page-ban-ca__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-background-dark);
  padding-bottom: 50px;
  padding-top: 10px; /* Small top padding if body already has header offset */
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-ban-ca__hero-content {
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  box-sizing: border-box;
}

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

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

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-ban-ca__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* Forced white text for contrast */
  border: 2px solid var(--color-primary);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--color-glow);
}

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

.page-ban-ca__btn-secondary:hover {
  background-color: var(--color-secondary);
  color: #ffffff; /* Forced white text for contrast */
  box-shadow: 0 0 15px var(--color-glow);
}

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

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-ban-ca__why-choose-section .page-ban-ca__section-title {
  color: var(--color-primary);
}

.page-ban-ca__why-choose-section .page-ban-ca__paragraph {
  color: #555555;
}

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

.page-ban-ca__feature-card,
.page-ban-ca__step-card,
.page-ban-ca__tip-card {
  background-color: var(--color-card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.page-ban-ca__why-choose-section .page-ban-ca__feature-card {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

.page-ban-ca__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-ban-ca__feature-description,
.page-ban-ca__step-description,
.page-ban-ca__tip-description {
  font-size: 1em;
  color: var(--color-text-secondary);
}

/* How To Play Section */
.page-ban-ca__how-to-play-section {
  padding: 60px 0;
  background-color: var(--color-background-dark);
  color: var(--color-text-main);
}

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

.page-ban-ca__step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-ban-ca__tips-section .page-ban-ca__section-title {
  color: var(--color-primary);
}

.page-ban-ca__tips-section .page-ban-ca__paragraph {
  color: #555555;
}

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

/* Promo Section */
.page-ban-ca__promo-section {
  padding: 60px 0;
  background-color: var(--color-background-dark);
  color: var(--color-text-main);
  text-align: center;
}

.page-ban-ca__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: var(--color-primary);
}

.page-ban-ca__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__faq-item {
  background-color: var(--color-card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  color: var(--color-text-main);
}

.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(--color-gold);
  cursor: pointer;
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  list-style: none;
}

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

.page-ban-ca__faq-question:hover {
  background-color: var(--color-primary);
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--color-gold);
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-ban-ca__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--color-text-secondary);
  background-color: var(--color-card-bg);
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  padding: 60px 0;
  background-color: var(--color-background-dark);
  color: var(--color-text-main);
  text-align: center;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 20px 30px;
  }

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

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

  .page-ban-ca__feature-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Hero Section Mobile */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding if body already has header offset */
    padding-bottom: 30px;
  }

  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  /* Buttons Mobile */
  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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: 12px 20px !important;
  }

  /* Generic Images Mobile */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Feature/Game/Steps/Tips Grids Mobile (similar to game grid) */
  .page-ban-ca__feature-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__tips-grid {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 20px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-ban-ca__feature-image,
  .page-ban-ca__step-image {
    height: 200px !important; /* Ensure min height */
    object-fit: cover !important;
  }

  /* Promo Section Mobile */
  .page-ban-ca__promo-image {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section Mobile */
  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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