/* style/ban-ca.css */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  background-color: #0D0E12; /* Custom color: Background */
  color: #FFF3E6; /* Custom color: Text Main */
  line-height: 1.6;
}

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

.page-ban-ca__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FF8C1A; /* Main brand color */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-ban-ca__section-description,
.page-ban-ca__paragraph {
  font-size: 1rem;
  color: #FFF3E6; /* Custom color: Text Main */
  text-align: center;
  margin-bottom: 30px;
}

.page-ban-ca__list-title {
  color: #FFA53A; /* Auxiliary brand color */
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
  color: #FFF3E6; /* Custom color: Text Main */
  border: none;
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary brand color */
  border: 2px solid #FFA53A;
}

.page-ban-ca__btn-secondary:hover {
  background: #FFA53A;
  color: #0D0E12; /* Background color for contrast */
  transform: translateY(-2px);
}

.page-ban-ca__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* HERO Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
  padding-bottom: 60px;
  background-color: #0D0E12;
}

.page-ban-ca__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
}

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

.page-ban-ca__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #FFB04D; /* Custom color: Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: left;
}

.page-ban-ca__hero-description {
  font-size: 1.1rem;
  color: #FFF3E6;
  margin-bottom: 30px;
  text-align: left;
}

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

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

.page-ban-ca__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* INTRO Section */
.page-ban-ca__intro-section {
  padding: 80px 0;
  background-color: #17191F; /* Custom color: Card B G */
}

.page-ban-ca__intro-section .page-ban-ca__section-title {
  color: #FF8C1A;
}

.page-ban-ca__intro-section .page-ban-ca__section-description {
  color: #FFF3E6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ban-ca__feature-item {
  text-align: center;
  background-color: #0D0E12;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Custom color: Border */
}

.page-ban-ca__icon-box-media {
  width: 180px;
  height: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FF8C1A;
}

.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.5rem;
  font-weight: 700;
  color: #FFA53A;
  margin-bottom: 15px;
}

.page-ban-ca__feature-text {
  font-size: 1rem;
  color: #FFF3E6;
  text-align: center;
}

/* Content Grid Sections (How to Play, Tips, Why Choose) */
.page-ban-ca__how-to-play-section,
.page-ban-ca__tips-section,
.page-ban-ca__why-choose-section {
  padding: 80px 0;
  background-color: #0D0E12;
}

.page-ban-ca__how-to-play-section .page-ban-ca__section-title,
.page-ban-ca__tips-section .page-ban-ca__section-title,
.page-ban-ca__why-choose-section .page-ban-ca__section-title {
  color: #FF8C1A;
}

.page-ban-ca__how-to-play-section .page-ban-ca__paragraph,
.page-ban-ca__tips-section .page-ban-ca__paragraph,
.page-ban-ca__why-choose-section .page-ban-ca__paragraph {
  color: #FFF3E6;
  text-align: left;
  margin-bottom: 20px;
}

.page-ban-ca__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-ban-ca__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-ban-ca__text-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-ban-ca__image-wrapper {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-ban-ca__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__ordered-list li,
.page-ban-ca__unordered-list li,
.page-ban-ca__feature-list li {
  margin-bottom: 10px;
  color: #FFF3E6;
  font-size: 1rem;
}

.page-ban-ca__ordered-list li::marker {
  color: #FFA53A;
  font-weight: bold;
}

.page-ban-ca__unordered-list li::before {
  content: '• ';
  color: #FFA53A;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 80px 0;
  background-color: #17191F;
}

.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: #FF8C1A;
}

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

.page-ban-ca__faq-item {
  background-color: #0D0E12;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFF3E6;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  color: #FFA53A;
  margin-left: 15px;
  width: 25px;
  text-align: center;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  content: '−';
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #FFF3E6;
}

.page-ban-ca__faq-answer p {
  margin: 0;
  text-align: left;
}

.page-ban-ca__cta-faq {
  text-align: center;
  margin-top: 40px;
}

/* Bottom CTA Section */
.page-ban-ca__cta-bottom-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #D96800 0%, #FF8C1A 100%); /* Using Deep Orange and Main color for a strong CTA */
  text-align: center;
}

.page-ban-ca__cta-bottom-section .page-ban-ca__section-title,
.page-ban-ca__cta-bottom-section .page-ban-ca__paragraph {
  color: #FFF3E6; /* Ensure light text on this gradient background */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-ban-ca__hero-container {
    gap: 30px;
  }

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

  .page-ban-ca__icon-box-media {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
  }

  .page-ban-ca__hero-content {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-ban-ca__main-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .page-ban-ca__hero-description {
    text-align: center;
    font-size: 1rem;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Buttons stack vertically */
    gap: 10px;
    justify-content: center;
    align-items: center;
    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-left: 15px;
    padding-right: 15px;
  }

  .page-ban-ca__hero-image {
    flex: 1 1 100%;
  }

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

  .page-ban-ca__section-description,
  .page-ban-ca__paragraph {
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-ban-ca__intro-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__why-choose-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-bottom-section {
    padding: 50px 0;
  }

  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__icon-box-media {
    width: 150px; /* Keep square */
    height: 150px; /* Keep square */
    border-width: 2px;
  }

  .page-ban-ca__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-ban-ca__content-grid--reverse {
    flex-direction: column;
  }

  .page-ban-ca__text-content,
  .page-ban-ca__image-wrapper {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-ban-ca__ordered-list,
  .page-ban-ca__unordered-list,
  .page-ban-ca__feature-list {
    padding: 0 15px;
    margin-bottom: 25px;
  }

  .page-ban-ca__ordered-list li,
  .page-ban-ca__unordered-list li,
  .page-ban-ca__feature-list li {
    font-size: 0.95rem;
  }

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

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

  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !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;
  }

  .page-ban-ca__cta-buttons.page-ban-ca__cta-bottom-section .page-ban-ca__cta-buttons {
    flex-direction: column;
  }
}