.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
  background-color: var(--page-ban-ca-background-color, #0A0A0A);
  padding-bottom: 40px;
}

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
  line-height: 1.2;
}

.page-ban-ca__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

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

.page-ban-ca__dark-bg {
  background-color: var(--page-ban-ca-background-color, #0A0A0A);
  padding: 60px 0;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

.page-ban-ca__light-bg {
  background-color: var(--page-ban-ca-card-bg-color, #111111);
  padding: 60px 0;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

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

.page-ban-ca__btn-primary {
  background: var(--page-ban-ca-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

.page-ban-ca__btn-secondary {
  background: transparent;
  color: var(--page-ban-ca-main-color, #F2C14E);
  border: 2px solid var(--page-ban-ca-main-color, #F2C14E);
  box-shadow: none;
}

.page-ban-ca__btn-secondary:hover {
  background: var(--page-ban-ca-main-color, #F2C14E);
  color: #ffffff;
}

.page-ban-ca__btn-center {
  display: block;
  margin: 30px auto 0 auto;
  width: fit-content;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--page-ban-ca-background-color, #0A0A0A);
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Max height for desktop hero image */
  overflow: hidden;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop to fill width */
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px 60px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-ban-ca__main-title {
  font-size: 3.2em;
  font-weight: 900;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
  max-width: 100%;
}

.page-ban-ca__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 100%;
}

/* Introduction Section */
.page-ban-ca__introduction-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

/* How to Play Section */
.page-ban-ca__how-to-play-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

.page-ban-ca__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.page-ban-ca__list-item {
  background-color: var(--page-ban-ca-background-color, #0A0A0A);
  border-left: 5px solid var(--page-ban-ca-main-color, #F2C14E);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

.page-ban-ca__list-item strong {
  color: var(--page-ban-ca-aux-color, #FFD36B);
  font-size: 1.1em;
}

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

.page-ban-ca__game-card {
  background-color: var(--page-ban-ca-card-bg-color, #111111);
  border: 1px solid var(--page-ban-ca-border-color, #3A2A12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

.page-ban-ca__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__game-thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--page-ban-ca-border-color, #3A2A12);
}

.page-ban-ca__game-title {
  font-size: 1.5em;
  margin: 20px 10px 10px;
  color: var(--page-ban-ca-aux-color, #FFD36B);
}

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

.page-ban-ca__btn-play {
  background: var(--page-ban-ca-button-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-ban-ca__btn-play:hover {
  opacity: 0.9;
}

/* Advantages Section */
.page-ban-ca__advantages-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

.page-ban-ca__features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__features-list .page-ban-ca__list-item {
  background-color: var(--page-ban-ca-background-color, #0A0A0A);
  border: 1px solid var(--page-ban-ca-border-color, #3A2A12);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

.page-ban-ca__features-list .page-ban-ca__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-ban-ca__feature-title {
  font-size: 1.4em;
  color: var(--page-ban-ca-aux-color, #FFD36B);
  margin-bottom: 10px;
}

.page-ban-ca__feature-description {
  font-size: 0.95em;
  color: #cccccc;
}

/* Promotions Section */
.page-ban-ca__promotions-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

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

.page-ban-ca__promotion-card {
  background-color: var(--page-ban-ca-card-bg-color, #111111);
  border: 1px solid var(--page-ban-ca-border-color, #3A2A12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

.page-ban-ca__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__promotion-thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--page-ban-ca-border-color, #3A2A12);
}

.page-ban-ca__promotion-title {
  font-size: 1.5em;
  margin: 20px 10px 10px;
  color: var(--page-ban-ca-aux-color, #FFD36B);
}

.page-ban-ca__promotion-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* Register & Download Section */
.page-ban-ca__register-download-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

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

.page-ban-ca__register-card, .page-ban-ca__download-card {
  background-color: var(--page-ban-ca-background-color, #0A0A0A);
  border: 1px solid var(--page-ban-ca-border-color, #3A2A12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

.page-ban-ca__register-image, .page-ban-ca__download-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-ban-ca__card-title {
  font-size: 1.8em;
  color: var(--page-ban-ca-aux-color, #FFD36B);
  margin-bottom: 15px;
}

.page-ban-ca__card-description {
  font-size: 1em;
  color: #cccccc;
  padding: 0 20px;
  margin-bottom: 30px;
}

/* FAQ Section */
.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

.page-ban-ca__faq-list {
  margin-top: 40px;
}

.page-ban-ca__faq-item {
  background-color: var(--page-ban-ca-card-bg-color, #111111);
  border: 1px solid var(--page-ban-ca-border-color, #3A2A12);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-ban-ca-aux-color, #FFD36B);
  background-color: var(--page-ban-ca-background-color, #0A0A0A);
  border-bottom: 1px solid var(--page-ban-ca-border-color, #3A2A12);
}

.page-ban-ca__faq-question:hover {
  background-color: #1a1a1a;
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  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;
  font-size: 1em;
  color: #cccccc;
}

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

/* Final CTA Section */
.page-ban-ca__final-cta-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-text-main-color, #FFF6D6);
}

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

/* Variables for color scheme */
:root {
  --page-ban-ca-main-color: #F2C14E;
  --page-ban-ca-aux-color: #FFD36B;
  --page-ban-ca-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --page-ban-ca-card-bg-color: #111111;
  --page-ban-ca-background-color: #0A0A0A;
  --page-ban-ca-text-main-color: #FFF6D6;
  --page-ban-ca-border-color: #3A2A12;
  --page-ban-ca-glow-color: #FFD36B;
}

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

  .page-ban-ca__main-title {
    font-size: 2.8em;
  }

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

  .page-ban-ca__section-title {
    font-size: 2em;
  }

  .page-ban-ca__game-grid,
  .page-ban-ca__features-list,
  .page-ban-ca__promotion-grid,
  .page-ban-ca__register-download-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-ban-ca__cta-buttons {
    gap: 15px;
  }
}

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

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

  /* Hero Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-ban-ca__hero-image-wrapper {
    max-height: none;
    aspect-ratio: unset;
  }

  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Mobile hero image should contain, not cover */
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2em, 7vw, 2.5em);
    margin-top: 20px; /* Add some space between image and title */
  }

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

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

  /* Buttons */
  .page-ban-ca__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    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;
  }

  /* Game Grid */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .page-ban-ca__game-thumbnail {
    height: auto;
    aspect-ratio: 1/1; /* Ensure square aspect ratio on mobile */
  }

  /* 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;
  }

  /* Features List */
  .page-ban-ca__features-list {
    grid-template-columns: 1fr;
  }

  /* Promotions Grid */
  .page-ban-ca__promotion-grid {
    grid-template-columns: 1fr;
  }

  /* Register Download Grid */
  .page-ban-ca__register-download-grid {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__register-image, .page-ban-ca__download-image {
    height: 200px;
  }

  /* FAQ Section */
  .page-ban-ca__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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