.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #F5F7FA;
}

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-ban-ca__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
}

.page-ban-ca__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-ban-ca__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-ban-ca__dark-bg {
  background-color: #E53935;
  color: #ffffff;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title,
.page-ban-ca__dark-bg .page-ban-ca__section-description,
.page-ban-ca__dark-bg .page-ban-ca__text-block,
.page-ban-ca__dark-bg .page-ban-ca__tips-subtitle {
  color: #ffffff;
}

.page-ban-ca__light-bg {
  background-color: #F5F7FA;
  color: #333333;
}

.page-ban-ca__background-color {
  background-color: #F5F7FA;
  color: #333333;
}

/* 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;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

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

.page-ban-ca__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-ban-ca__small-button {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-ban-ca__large-button {
  padding: 15px 35px;
  font-size: 1.2em;
}

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

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-ban-ca__main-title {
  font-size: clamp(2.5em, 5vw, 3.2em);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-ban-ca__hero-description {
  font-size: clamp(1.1em, 2vw, 1.3em);
  margin-bottom: 30px;
  color: #ffffff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-ban-ca__intro-section,
.page-ban-ca__guide-section,
.page-ban-ca__promo-section,
.page-ban-ca__why-choose-section,
.page-ban-ca__faq-section,
.page-ban-ca__conclusion-section {
  padding: 60px 0;
}

/* Games Section */
.page-ban-ca__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-ban-ca__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-ban-ca__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  aspect-ratio: 4/3; /* Maintain aspect ratio for game images */
}

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

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

.page-ban-ca__game-button {
  width: 100%;
  max-width: 180px;
}

/* Guide Section */
.page-ban-ca__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-ban-ca__guide-list li {
  background-color: #ffffff;
  border-left: 5px solid #E53935;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-subtitle {
  font-size: 1.3em;
  color: #E53935;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  display: block;
  object-fit: cover;
}

/* Tips Section */
.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-ban-ca__tips-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__tips-subtitle {
  font-size: 1.3em;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Promo Section */
.page-ban-ca__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-ban-ca__promo-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-ban-ca__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.page-ban-ca__promo-title {
  font-size: 1.4em;
  color: #E53935;
  margin-bottom: 10px;
}

.page-ban-ca__promo-item p {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-ban-ca__advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-ban-ca__advantage-list li {
  text-align: center;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__advantage-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-ban-ca__advantage-title {
  font-size: 1.3em;
  color: #E53935;
  margin-bottom: 10px;
}

.page-ban-ca__advantage-list p {
  font-size: 0.95em;
  color: #555555;
}

/* FAQ Section */
.page-ban-ca__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-ban-ca__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  color: #E53935;
  background-color: #F5F7FA;
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  color: #E53935;
}

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

.page-ban-ca__faq-answer {
  padding: 15px 20px;
  border-top: 1px solid #E0E0E0;
  background-color: #FFFFFF;
  font-size: 0.95em;
  color: #555555;
}

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

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

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

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

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

  .page-ban-ca__hero-content {
    padding: 30px 20px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2em, 4vw, 2.8em);
  }

  .page-ban-ca__hero-description {
    font-size: clamp(1em, 1.8vw, 1.2em);
  }

  .page-ban-ca__game-grid,
  .page-ban-ca__promo-list,
  .page-ban-ca__advantage-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 15px;
  }

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

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

  .page-ban-ca__text-block {
    font-size: 0.95em;
  }

  /* Hero Section Mobile */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
  }

  .page-ban-ca__hero-image-wrapper {
    max-height: 300px; /* Adjust max height for mobile */
  }

  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__hero-content {
    padding: 25px 15px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    line-height: 1.3;
  }

  .page-ban-ca__hero-description {
    font-size: clamp(0.95em, 3.5vw, 1.1em);
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* Buttons Mobile */
  .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 Mobile */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr 1fr; /* Two columns for mobile */
    gap: 15px;
  }

  .page-ban-ca__game-image {
    aspect-ratio: 1/1 !important; /* Square aspect ratio for mobile game cards */
  }

  /* Promo List Mobile */
  .page-ban-ca__promo-list {
    grid-template-columns: 1fr; /* Single column for mobile promos */
    gap: 15px;
  }

  /* Advantage List Mobile */
  .page-ban-ca__advantage-list {
    grid-template-columns: 1fr; /* Single column for mobile advantages */
    gap: 15px;
  }

  /* Guide List Mobile */
  .page-ban-ca__guide-list li {
    padding: 15px;
  }

  .page-ban-ca__guide-subtitle {
    font-size: 1.2em;
  }

  /* Tips List Mobile */
  .page-ban-ca__tips-list li {
    padding: 20px;
  }

  .page-ban-ca__tips-subtitle {
    font-size: 1.2em;
  }

  /* FAQ Mobile */
  .page-ban-ca__faq-item summary {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-ban-ca__faq-answer {
    padding: 12px 15px;
    font-size: 0.9em;
  }

  /* General Image & Container Mobile */
  .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;
  }
}