/* Base styles for the page-ban-ca */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color from custom palette */
  background-color: #0A0A0A; /* Background color from custom palette */
}

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Main color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-ban-ca__card {
  background: #111111; /* Card BG from custom palette */
  color: #FFF6D6;
  border: 1px solid #3A2A12; /* Border from custom palette */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-ban-ca__text-block p {
  margin-bottom: 15px;
}

/* Buttons styles */
.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;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text for light gradient */
  border: none;
}

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

.page-ban-ca__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main color for secondary text */
  border: 2px solid #F2C14E; /* Main color for secondary border */
}

.page-ban-ca__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A;
}

.page-ban-ca__btn-outline {
  background: transparent;
  color: #FFF6D6; /* Text Main color */
  border: 1px solid #3A2A12; /* Border from custom palette */
}

.page-ban-ca__btn-outline:hover {
  background: #3A2A12;
}

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

.page-ban-ca__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Image styles */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.page-ban-ca__hero-content-wrapper {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #F2C14E;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

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

/* Intro Section */
.page-ban-ca__intro-section {
  padding: 60px 0;
}

.page-ban-ca__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  padding: 60px 0;
}

.page-ban-ca__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-ban-ca__feature-title {
  font-size: 1.3em;
  color: #FFD36B; /* Glow color for feature titles */
  margin-bottom: 15px;
}

.page-ban-ca__feature-item .page-ban-ca__btn-outline {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start;
}

.page-ban-ca__image--centered {
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
}

/* Popular Games Section */
.page-ban-ca__popular-games-section {
  padding: 60px 0;
}

.page-ban-ca__games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-ban-ca__game-card {
  text-align: center;
}

.page-ban-ca__game-image {
  margin-bottom: 20px;
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.page-ban-ca__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-ban-ca__game-title a {
  color: #FFD36B; /* Glow color for game titles */
  text-decoration: none;
}

.page-ban-ca__game-title a:hover {
  text-decoration: underline;
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 20px;
}

/* How to Play Section */
.page-ban-ca__how-to-play-section {
  padding: 60px 0;
}

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

.page-ban-ca__step-item {
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-ban-ca__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #3A2A12;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-ban-ca__step-title {
  font-size: 1.3em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-ban-ca__step-item .page-ban-ca__btn-outline,
.page-ban-ca__step-item .page-ban-ca__btn-primary {
  margin-top: auto;
  align-self: center;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 60px 0;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
}

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

.page-ban-ca__faq-item {
  margin-bottom: 20px;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  overflow: hidden;
  background: #111111;
  color: #FFF6D6;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2C14E;
  cursor: pointer;
  list-style: none;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid #3A2A12;
}

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

.page-ban-ca__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.page-ban-ca__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #FFF6D6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__conclusion-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #FFF6D6;
}

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

/* Global image sizing for content area */
.page-ban-ca__image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 15px;
  }

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

  .page-ban-ca__hero-content-wrapper {
    max-width: 700px;
  }

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

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

  .page-ban-ca__features-grid,
  .page-ban-ca__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-ban-ca__intro-section .page-ban-ca__content-grid {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__image-block {
    order: -1;
    margin-bottom: 30px;
  }

  .page-ban-ca__game-image {
    height: 200px;
  }

  .page-ban-ca__step-item {
    padding-top: 50px;
  }

  .page-ban-ca__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6em;
  }
}

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

  .page-ban-ca__container,
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__content-grid,
  .page-ban-ca__features-grid,
  .page-ban-ca__games-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-image-wrapper {
    max-height: 400px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em) !important;
    margin-bottom: 15px;
  }

  .page-ban-ca__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .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,
  .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 !important;
    padding-right: 15px !important;
  }

  /* Long text / gold frame area (Not explicitly present for non-homepage, but including for completeness based on general requirements) */
  .page-ban-ca__home-content { /* Placeholder if this section was present */
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px !important;
  }

  .page-ban-ca__home-content h2 { /* Placeholder for h2 inside home-content */
    font-size: 1.8em !important;
  }

  /* Game carousel (Not explicitly present for non-homepage, but including placeholder for mobile checklist) */
  .page-ban-ca__slider-track { /* Placeholder if this section was present */
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-ban-ca__game-slide { /* Placeholder for game slides */
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: start;
  }

  /* Partner grid (Not explicitly present for non-homepage, but including placeholder for mobile checklist) */
  .page-ban-ca__banners-top-wrapper { /* Placeholder if this section was present */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
  .page-ban-ca__banner-item img { /* Placeholder for banner images */
    
    
  }

  /* Blog card area (Not explicitly present for non-homepage, but including placeholder for mobile checklist) */
  .page-ban-ca__blog-masonry { /* Placeholder if this section was present */
    grid-template-columns: 1fr !important;
  }
  .page-ban-ca__blog-slider-track { /* Placeholder if this section was present */
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-ban-ca__blog-slide { /* Placeholder for blog slides */
    flex: 0 0 90% !important;
    max-width: 90% !important;
    scroll-snap-align: start;
  }

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

  .page-ban-ca__content-grid {
    grid-template-columns: 1fr !important;
  }

  .page-ban-ca__image-block {
    order: -1;
    margin-bottom: 20px;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__games-grid,
  .page-ban-ca__steps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-ban-ca__game-image {
    height: auto !important;
  }

  .page-ban-ca__step-item {
    padding-top: 40px;
  }

  .page-ban-ca__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }

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

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

  .page-ban-ca__conclusion-text {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-ban-ca__section-title {
    font-size: 1.8em;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.4em, 8vw, 2em) !important;
  }

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