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

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

.page-ban-ca__section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-ban-ca__text-block {
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main, #1F2D3D);
}

.page-ban-ca__card {
  background: var(--card-bg, #FFFFFF);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #D6E2FF);
  color: var(--text-main, #1F2D3D);
}

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

.page-ban-ca__card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main, #1F2D3D);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-ban-ca__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main, #1F2D3D);
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background: #FFFFFF;
  color: var(--primary-color, #2F6BFF);
  border: 2px solid var(--primary-color, #2F6BFF);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--primary-color, #2F6BFF);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-bg, #F4F7FB);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-ban-ca__main-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.page-ban-ca__intro-text {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: var(--text-main, #1F2D3D);
}

.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

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

/* Intro Section */
.page-ban-ca__intro-section .page-ban-ca__text-block {
  margin-bottom: 40px;
}

.page-ban-ca__image-row {
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__content-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  background-color: var(--secondary-color, #6FA3FF);
  color: #FFFFFF;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-ban-ca__why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 L 0 20" fill="none" stroke="%23ffffff" stroke-width="0.3" opacity="0.1"/></pattern><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
    z-index: 0;
}

.page-ban-ca__why-choose-section .page-ban-ca__container {
    position: relative;
    z-index: 1;
}

.page-ban-ca__why-choose-section .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__why-choose-section .page-ban-ca__text-block {
    color: #f0f0f0;
}

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

.page-ban-ca__feature-card {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__feature-card .page-ban-ca__card-title {
  color: #FFFFFF;
}

.page-ban-ca__feature-card .page-ban-ca__card-text {
  color: #f0f0f0;
}

/* Game Types Section */
.page-ban-ca__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.page-ban-ca__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__game-card .page-ban-ca__card-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.page-ban-ca__game-card .page-ban-ca__card-text {
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-ban-ca__game-button {
  margin-top: auto;
  width: auto; /* Allow button to size based on content */
  padding: 10px 20px;
  font-size: 16px;
}

/* How to Play Section */
.page-ban-ca__how-to-play-section {
  background-color: var(--primary-color, #2F6BFF);
  color: #FFFFFF;
  padding: 80px 0;
}

.page-ban-ca__how-to-play-section .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__how-to-play-section .page-ban-ca__text-block {
  color: #f0f0f0;
}

.page-ban-ca__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__step-list .page-ban-ca__list-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__step-list .page-ban-ca__list-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__step-list .page-ban-ca__list-item p {
  font-size: 17px;
  color: #f0f0f0;
}

/* Strategy Section */
.page-ban-ca__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__strategy-list .page-ban-ca__list-item {
  background: var(--card-bg, #FFFFFF);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid var(--border-color, #D6E2FF);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__strategy-list .page-ban-ca__list-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main, #1F2D3D);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__strategy-list .page-ban-ca__list-item p {
  font-size: 17px;
  color: var(--text-main, #1F2D3D);
}

/* Promo Section */
.page-ban-ca__promo-section {
  background: linear-gradient(135deg, var(--primary-color, #2F6BFF) 0%, var(--secondary-color, #6FA3FF) 100%);
  color: #FFFFFF;
  padding: 80px 0;
}

.page-ban-ca__promo-section .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__promo-section .page-ban-ca__text-block {
  color: #f0f0f0;
}

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

.page-ban-ca__promo-card {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-ban-ca__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__promo-card .page-ban-ca__card-title {
  color: #FFFFFF;
  font-size: 22px;
  margin-bottom: 10px;
}

.page-ban-ca__promo-card .page-ban-ca__card-text {
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-ban-ca__promo-button {
  margin-top: auto;
  padding: 10px 20px;
  font-size: 16px;
  width: auto;
}

/* FAQ Section */
.page-ban-ca__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #D6E2FF);
  overflow: hidden;
  background: var(--card-bg, #fff);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
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;
}
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(--background-color, #f5f5f5);
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main, #1F2D3D);
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main, #1F2D3D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  background: var(--background-color, #f9f9f9);
  border-radius: 0 0 10px 10px;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer p {
    font-size: 16px;
    color: var(--text-main, #1F2D3D);
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  background-color: var(--primary-color, #2F6BFF);
  color: #FFFFFF;
  padding: 80px 0;
}

.page-ban-ca__conclusion-section .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__conclusion-section .page-ban-ca__text-block {
  color: #f0f0f0;
}

.page-ban-ca__conclusion-section .page-ban-ca__cta-buttons {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__section-title {
    font-size: 32px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(30px, 4vw, 48px);
  }
  .page-ban-ca__intro-text {
    font-size: 18px;
  }
  .page-ban-ca__btn-primary, .page-ban-ca__btn-secondary {
    padding: 12px 24px;
    font-size: 16px;
  }
  .page-ban-ca__hero-image-wrapper {
    max-width: 900px;
  }
  .page-ban-ca__feature-grid, .page-ban-ca__game-list, .page-ban-ca__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .page-ban-ca__game-image, .page-ban-ca__promo-image {
    height: 180px;
  }
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 16px 20px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-ban-ca__section {
    padding: 40px 0;
  }
  .page-ban-ca__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 15px;
  }
  .page-ban-ca__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-ban-ca__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-ban-ca__container {
    padding: 0 15px;
  }
  .page-ban-ca__feature-grid, .page-ban-ca__game-list, .page-ban-ca__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__game-image, .page-ban-ca__promo-image {
    height: 200px;
  }
  .page-ban-ca__feature-card, .page-ban-ca__game-card, .page-ban-ca__promo-card {
    padding: 25px;
  }
  .page-ban-ca__card-title {
    font-size: 20px;
  }
  .page-ban-ca__card-text {
    font-size: 15px;
  }
  .page-ban-ca__image-row {
    margin: 30px auto;
  }
  .page-ban-ca__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__step-list, .page-ban-ca__strategy-list, .page-ban-ca__faq-list {
    margin-top: 30px;
  }
  .page-ban-ca__step-list .page-ban-ca__list-item, .page-ban-ca__strategy-list .page-ban-ca__list-item {
    padding: 20px;
  }
  .page-ban-ca__step-list .page-ban-ca__list-title, .page-ban-ca__strategy-list .page-ban-ca__list-title {
    font-size: 20px;
  }
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 16px;
  }
  .page-ban-ca__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 15px 15px;
  }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer p {
    font-size: 15px;
  }
  .page-ban-ca__why-choose-section, .page-ban-ca__how-to-play-section, .page-ban-ca__promo-section, .page-ban-ca__conclusion-section {
    padding: 50px 0;
  }
}