/* Base styles for the page-ban-ca */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: transparent; /* Body background is from shared.css */
}

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

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1; /* Text Main */
  position: relative;
  padding-bottom: 10px;
}

.page-ban-ca__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFCC66, #F4D34D, #FFCC66); /* Glow, Gold */
  border-radius: 2px;
}

.page-ban-ca__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: #B71C1C; /* Background */
}

.page-ban-ca__hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  color: #FFF5E1; /* Text Main */
  background-color: rgba(122, 14, 14, 0.7); /* Deep Red with opacity */
  width: 100%;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, not text on image */
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #F2B544; /* Border */
}

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD86A; /* Gold-like for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__hero-content .page-ban-ca__description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #FFF5E1;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F4D34D; /* Gold */
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn-secondary {
  background: #7A0E0E; /* Deep Red */
  color: #FFD86A; /* Gold */
  border: 2px solid #F4D34D; /* Gold */
}

.page-ban-ca__btn-secondary:hover {
  background: #C91F17; /* Main Color */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Light Background Sections */
.page-ban-ca__light-bg {
  background-color: #FFF5E1; /* Text Main */
  color: #333333; /* Dark text for contrast */
  padding: 60px 0;
}

.page-ban-ca__light-bg .page-ban-ca__section-title {
  color: #C91F17; /* Main Color */
}

.page-ban-ca__light-bg .page-ban-ca__description,
.page-ban-ca__light-bg p,
.page-ban-ca__light-bg li,
.page-ban-ca__light-bg a {
  color: #333333;
}

.page-ban-ca__light-bg .page-ban-ca__card-title {
  color: #C91F17;
}

.page-ban-ca__light-bg .page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #C91F17 0%, #E53935 100%); /* Main Color, Auxiliary Color */
  color: #FFF5E1;
  border: 2px solid #E53935;
}

.page-ban-ca__light-bg .page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #C91F17 100%);
}

.page-ban-ca__light-bg .page-ban-ca__btn-link {
  color: #C91F17;
  text-decoration: underline;
}

.page-ban-ca__light-bg .page-ban-ca__btn-link:hover {
  color: #E53935;
}

/* Dark Background Sections */
.page-ban-ca__dark-bg {
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  padding: 60px 0;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title {
  color: #FFD86A; /* Gold-like */
}

.page-ban-ca__dark-bg .page-ban-ca__description,
.page-ban-ca__dark-bg p,
.page-ban-ca__dark-bg li,
.page-ban-ca__dark-bg a {
  color: #FFF5E1;
}

.page-ban-ca__dark-bg .page-ban-ca__card-title {
  color: #FFD86A;
}

/* Card Styles */
.page-ban-ca__card {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-height: 200px;
  object-fit: cover;
}

.page-ban-ca__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #FFD86A; /* Gold for titles on dark cards */
}

.page-ban-ca__card p {
  font-size: 16px;
  color: #FFF5E1;
}

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

/* How-to-Play Steps */
.page-ban-ca__step-card {
  position: relative;
  padding-top: 60px;
}

.page-ban-ca__step-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  border: 3px solid #F4D34D; /* Gold */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__step-card .page-ban-ca__card-title {
  margin-top: 20px;
}

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

.page-ban-ca__btn-link {
  display: inline-block;
  margin-top: 15px;
  color: #FFD86A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-ban-ca__btn-link:hover {
  color: #F4D34D;
  text-decoration: underline;
}

/* Strategy List */
.page-ban-ca__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ban-ca__strategy-list li {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.page-ban-ca__strategy-list li:hover {
  transform: translateX(5px);
}

.page-ban-ca__list-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFD86A; /* Gold */
}

.page-ban-ca__strategy-list li p {
  font-size: 16px;
  color: #FFF5E1;
}

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

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  background-color: #FFF5E1;
  color: #333333;
  border-radius: 5px;
}
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: #f5f5f5;
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #7A0E0E; /* Deep Red */
}

.page-ban-ca__cta-final-section .page-ban-ca__main-title,
.page-ban-ca__cta-final-section .page-ban-ca__section-title {
  color: #FFD86A;
}

.page-ban-ca__cta-final-section .page-ban-ca__description {
  font-size: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Global image responsiveness */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-ban-ca__hero-content {
    max-width: 700px;
    margin-top: -80px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
  }
  .page-ban-ca__section-title {
    font-size: 32px;
  }
  .page-ban-ca__description {
    font-size: 17px;
  }
}

@media (max-width: 849px) {
  .page-ban-ca__hero-image img {
    object-fit: contain !important; /* Mobile HERO image: contain */
    aspect-ratio: unset !important;
  }
}

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

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

  .page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    min-height: auto;
  }

  .page-ban-ca__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-ban-ca__hero-content .page-ban-ca__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Buttons stack vertically on mobile */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  .page-ban-ca__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__game-list-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-ban-ca__card {
    padding: 20px;
  }

  .page-ban-ca__card img {
    min-
  }

  .page-ban-ca__card-title {
    font-size: 20px;
  }

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

  .page-ban-ca__step-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .page-ban-ca__strategy-list li {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-ban-ca__list-title {
    font-size: 18px;
  }

  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 15px;
  }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 15px 15px;
  }

  .page-ban-ca__cta-final-section {
    padding: 60px 0;
  }

  /* Ensure all images are responsive */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Content area containers for mobile */
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__hero-image,
  .page-ban-ca__hero-content,
  .page-ban-ca__cta-buttons,
  .page-ban-ca__features-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__game-list-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__strategy-list,
  .page-ban-ca__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-ban-ca__container or specific elements */
  }
}