.page-ban-ca {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main color for dark background */
  background-color: var(--background-color, #0A0A0A); /* Default to Background color if var not set */
  line-height: 1.6;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding for fixed header */
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #0A0A0A; /* Ensure consistent dark background */
}

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

.page-ban-ca__hero-content {
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: #F2C14E; /* Primary color for H1 */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Glow effect */
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Titles */
.page-ban-ca__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2C14E; /* Primary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

/* Text Blocks */
.page-ban-ca__text-block {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  text-align: justify;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #333333; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-ban-ca__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Primary color */
  border: 2px solid #F2C14E; /* Primary color border */
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-ban-ca__btn-secondary:hover {
  background: #F2C14E;
  color: #333333;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-ban-ca__btn-outline {
  background: transparent;
  color: #FFD36B; /* Glow color */
  border: 1px solid #FFD36B; /* Glow color border */
  padding: 8px 15px;
  font-size: 0.95em;
  margin-top: 15px;
}

.page-ban-ca__btn-outline:hover {
  background: rgba(255, 211, 107, 0.1);
  color: #ffffff;
}


.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

/* Section Backgrounds */
.page-ban-ca__dark-bg {
  background-color: #0A0A0A; /* Background color */
  padding: 60px 0;
}

.page-ban-ca__light-bg {
  background-color: #111111; /* Card BG color for contrast */
  padding: 60px 0;
  color: #FFF6D6; /* Text Main for light-ish background */
}

/* Content Images */
.page-ban-ca__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__feature-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%; /* Ensure cards stretch to same height */
}

.page-ban-ca__card-title {
  font-size: 1.4em;
  color: #FFD36B; /* Glow color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__card-description {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
  line-height: 1.5;
}

/* How to Play Steps */
.page-ban-ca__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-ban-ca__step-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-ban-ca__step-title {
  font-size: 1.5em;
  color: #F2C14E; /* Primary color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__step-description {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

/* Tips List */
.page-ban-ca__tips-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-ban-ca__tips-list li {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-ban-ca__tips-list li::before {
  content: '★'; /* Star icon */
  color: #FFD36B; /* Glow color */
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
  top: 0;
}

.page-ban-ca__tips-list li strong {
  color: #F2C14E; /* Primary color for bold text */
}

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

.page-ban-ca__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: #FFD36B; /* Glow color */
  font-weight: bold;
  cursor: pointer;
  background-color: #1A1A1A; /* Slightly darker for question */
  position: relative;
  list-style: none; /* Hide default marker for details */
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg); /* Rotate + to X when open */
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-answer {
  max-height: 500px; /* Sufficient height for expanded content */
  padding-top: 15px;
}

.page-ban-ca__faq-answer p {
  margin-bottom: 10px;
}
.page-ban-ca__faq-answer a {
  color: #F2C14E; /* Primary color for links in FAQ */
  text-decoration: underline;
}
.page-ban-ca__faq-answer a:hover {
  color: #FFD36B;
}

/* CTA Container */
.page-ban-ca__cta-container {
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 20px 30px;
  }
  .page-ban-ca__features-grid,
  .page-ban-ca__step-by-step {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-ban-ca__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding for fixed header */
    padding-bottom: 30px;
  }
  .page-ban-ca__main-title {
    font-size: 2.2em;
  }
  .page-ban-ca__hero-description {
    font-size: 1em;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-outline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Images and Containers */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Section Padding */
  .page-ban-ca__introduction-section,
  .page-ban-ca__features-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-section {
    padding: 30px 0;
  }
  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-ban-ca__text-block {
    font-size: 1em;
  }

  /* Cards and Steps */
  .page-ban-ca__features-grid,
  .page-ban-ca__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__feature-card,
  .page-ban-ca__step-item {
    padding: 20px;
  }
  .page-ban-ca__card-title,
  .page-ban-ca__step-title {
    font-size: 1.2em;
  }
}