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

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

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

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

.page-ban-ca__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-ban-ca__text-block--center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-ban-ca__center-text {
  text-align: center;
}

/* HERO Section */
.page-ban-ca__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
  background-color: var(--deep-green);
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area */
  max-width: 1920px;
  margin: 0 auto;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__hero-description {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  word-wrap: normal;
  box-sizing: border-box;
}

.page-ban-ca__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-ban-ca__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: var(--gold-color);
  color: var(--card-bg);
}

.page-ban-ca__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Introduction Section */
.page-ban-ca__introduction-section {
  background-color: var(--page-bg);
}

/* Features Section */
.page-ban-ca__features-section {
  background-color: var(--deep-green);
}

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

.page-ban-ca__feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main);
}

.page-ban-ca__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-ban-ca__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-ban-ca__card-text {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Gameplay Guide Section */
.page-ban-ca__gameplay-guide {
  background-color: var(--page-bg);
}

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

.page-ban-ca__step-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-ban-ca__step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-ban-ca__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-ban-ca__step-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.page-ban-ca__center-cta {
  text-align: center;
  margin-top: 40px;
}

/* Tips Section */
.page-ban-ca__tips-section {
  background-color: var(--deep-green);
}

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

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

.page-ban-ca__tip-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: var(--page-bg);
}

.page-ban-ca__faq-list {
  margin-top: 40px;
}

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
  font-weight: bold;
}

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

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question:hover {
  background: var(--deep-green);
}

.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-ban-ca__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-green);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* CTA Bottom Section */
.page-ban-ca__cta-bottom {
  background-color: var(--deep-green);
}

/* Global Image Styles for page-ban-ca scope */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__section-spacing {
    padding: 50px 0;
  }
  .page-ban-ca__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }
  .page-ban-ca__hero-description {
    font-size: 16px;
  }
  .page-ban-ca__btn-primary, .page-ban-ca__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-ban-ca__features-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__tips-grid {
    gap: 25px;
  }
  .page-ban-ca__feature-card, .page-ban-ca__step-item, .page-ban-ca__tip-card {
    padding: 25px;
  }
  .page-ban-ca__card-title {
    font-size: 20px;
  }
  .page-ban-ca__step-title {
    font-size: 22px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 16px;
  }
  .page-ban-ca__faq-toggle {
    font-size: 24px;
  }
}

@media (max-width: 849px) {
  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    max-height: 400px; /* Adjust max height for medium screens */
  }
}

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

  /* HERO Section Mobile */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-bottom: 40px !important;
  }
  .page-ban-ca__hero-image-wrapper {
    margin-bottom: 20px !important;
    max-height: 300px !important;
  }
  .page-ban-ca__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__main-title {
    font-size: clamp(28px, 8vw, 36px) !important;
    margin-bottom: 15px !important;
  }
  .page-ban-ca__hero-description {
    font-size: 15px !important;
    margin-bottom: 25px !important;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-ban-ca__btn-primary, .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__btn-large {
    padding: 15px 30px !important;
    font-size: 18px !important;
  }

  /* Section Titles & Text Mobile */
  .page-ban-ca__section-title {
    font-size: clamp(24px, 7vw, 30px) !important;
    margin-bottom: 30px !important;
  }
  .page-ban-ca__text-block {
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 15px !important;
  }

  /* Features Grid Mobile */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
  }
  .page-ban-ca__feature-card {
    padding: 20px !important;
  }
  .page-ban-ca__feature-icon {
    max-width: 200px !important;
    height: auto !important;
  }
  .page-ban-ca__card-title {
    font-size: 20px !important;
  }

  /* Gameplay Guide Mobile */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-ban-ca__step-item {
    padding: 20px !important;
  }
  .page-ban-ca__step-number {
    font-size: 40px !important;
  }
  .page-ban-ca__step-title {
    font-size: 20px !important;
  }

  /* Tips Section Mobile */
  .page-ban-ca__tips-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-ban-ca__tip-card {
    padding: 20px !important;
  }
  .page-ban-ca__tip-image {
    max-width: 250px !important;
    height: auto !important;
  }

  /* FAQ Section Mobile */
  details.page-ban-ca__faq-item {
    margin-bottom: 10px !important;
  }
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px 20px !important;
  }
  .page-ban-ca__faq-qtext {
    font-size: 15px !important;
  }
  .page-ban-ca__faq-toggle {
    font-size: 22px !important;
    width: 25px !important;
  }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 20px 20px !important;
  }

  /* Generic Image & Container Mobile */
  .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-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure no horizontal scroll */
  body {
    overflow-x: hidden;
  }
  .page-ban-ca {
    overflow-x: hidden;
  }
}