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

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

.page-ban-ca__hero-section {
  display: flex;
  flex-direction: column; /* Enforce image on top, content below */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: #E53935;
  color: #ffffff;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-ban-ca__subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__introduction-section,
.page-ban-ca__game-list-section,
.page-ban-ca__guide-section,
.page-ban-ca__tips-section,
.page-ban-ca__promotion-section,
.page-ban-ca__app-download-section,
.page-ban-ca__faq-section,
.page-ban-ca__conclusion-section {
  padding: 60px 0;
}

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

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

.page-ban-ca__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-ban-ca__introduction-section .page-ban-ca__section-title,
.page-ban-ca__guide-section .page-ban-ca__section-title,
.page-ban-ca__app-download-section .page-ban-ca__section-title,
.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: #333333;
}

.page-ban-ca__promotion-section .page-ban-ca__section-title,
.page-ban-ca__conclusion-section .page-ban-ca__section-title {
  color: #ffffff;
}

.page-ban-ca__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-ban-ca__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
  height: 380px; /* Fixed height for consistency */
  box-sizing: border-box;
}

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

.page-ban-ca__game-thumbnail {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-ban-ca__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
}

.page-ban-ca__game-description {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-ban-ca__btn-play {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.page-ban-ca__btn-play:hover {
  background: #E53935;
}

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

.page-ban-ca__step-card {
  background: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-ban-ca__step-card:hover {
  transform: translateY(-5px);
}

.page-ban-ca__step-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-ban-ca__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-ban-ca__step-description {
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-ban-ca__btn-small {
  display: inline-block;
  background: #FF5A4F;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.page-ban-ca__btn-small:hover {
  background: #E53935;
}

.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ban-ca__tip-item {
  background: #ffffff;
  border-left: 5px solid #E53935;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333333;
}

.page-ban-ca__tip-item strong {
  color: #E53935;
}

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

.page-ban-ca__promo-grid {
  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);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-ban-ca__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-ban-ca__promo-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-ban-ca__promo-description {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.7;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-ban-ca__btn-promo {
  display: inline-block;
  background: #ffffff;
  color: #E53935;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-ban-ca__btn-promo:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.page-ban-ca__text-promo-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
  color: #f0f0f0;
}

.page-ban-ca__text-promo-note a {
  color: #ffffff;
  text-decoration: underline;
}

.page-ban-ca__app-flex-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-ban-ca__app-content {
  flex: 1;
}

.page-ban-ca__app-image-wrapper {
  flex-shrink: 0;
  width: 400px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-ban-ca__app-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-ban-ca__app-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555555;
}

.page-ban-ca__app-features li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #E53935;
  font-weight: 700;
}

.page-ban-ca__app-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-ban-ca__faq-item {
  background: #fdfdfd;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-ban-ca__faq-item[open] {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-left: 15px;
  color: #E53935;
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555555;
}

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

.page-ban-ca__faq-answer a {
  color: #E53935;
  text-decoration: underline;
}

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

  .page-ban-ca__hero-section {
    padding-bottom: 30px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-ban-ca__subtitle {
    font-size: 1.1rem;
  }

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

  .page-ban-ca__app-flex-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-ban-ca__app-image-wrapper {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .page-ban-ca__app-image {
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }

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

  .page-ban-ca__main-title {
    font-size: 2rem !important;
    margin-bottom: 10px;
  }

  .page-ban-ca__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  /* Buttons - Mobile specific */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-small,
  .page-ban-ca__btn-play,
  .page-ban-ca__btn-promo,
  .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;
  }

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

  /* Sections */
  .page-ban-ca__introduction-section,
  .page-ban-ca__game-list-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promotion-section,
  .page-ban-ca__app-download-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__conclusion-section {
    padding: 30px 0;
  }

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

  .page-ban-ca__text-block {
    font-size: 1rem;
    text-align: left;
  }

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

  .page-ban-ca__game-card {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    padding: 15px;
  }

  .page-ban-ca__game-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
    object-fit: cover;
  }

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

  .page-ban-ca__step-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 150px;
  }

  /* Tips List */
  .page-ban-ca__tip-item {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-ban-ca__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    object-fit: cover;
  }

  .page-ban-ca__promo-title {
    font-size: 1.4rem;
  }

  .page-ban-ca__promo-description {
    font-size: 0.9rem;
  }

  /* App Download */
  .page-ban-ca__app-flex-container {
    flex-direction: column;
  }

  .page-ban-ca__app-image-wrapper {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .page-ban-ca__app-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 400px;
  }

  /* FAQ */
  .page-ban-ca__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-ban-ca__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px 15px;
  }
}