.page-ban-ca {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --bg-color: #F5F7FA;
  --border-color: #E0E0E0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for light backgrounds */
}

.page-ban-ca__dark-bg {
  background: var(--primary-color);
  color: #ffffff;
}

.page-ban-ca__light-bg {
  background: var(--bg-color);
  color: var(--text-main-color);
}

.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: 20px;
  color: inherit;
}

.page-ban-ca__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

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

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

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  width: 100%;
  max-width: 800px;
  margin-top: -100px; /* Pull content up slightly over image for visual flow */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  color: #ffffff;
}

.page-ban-ca__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.05em;
  max-width: 100%;
  color: #ffffff;
  margin-bottom: 15px;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-ban-ca__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

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

.page-ban-ca__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-ban-ca__btn-play {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 0.9em;
  padding: 8px 15px;
  width: 100%;
  text-align: center;
}

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

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

.page-ban-ca__cta-buttons--center {
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.page-ban-ca__about-section {
  padding: 60px 0;
}

.page-ban-ca__about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-ban-ca__about-content p {
  font-size: 1.05em;
  text-align: justify;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__about-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block;
}

/* Games Section */
.page-ban-ca__games-section {
  padding: 60px 0;
}

.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: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 20px;
  height: 100%; /* Ensure cards are same height */
}

.page-ban-ca__game-image {
  width: 100%;
  height: 200px; /* Fixed height for image consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-ban-ca__game-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  padding: 0 15px;
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
  padding: 0 15px;
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 60px 0;
}

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

.page-ban-ca__guide-item {
  background: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 25px;
  text-align: center;
}

.page-ban-ca__guide-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__guide-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-ban-ca__guide-description {
  font-size: 0.95em;
  color: #555555;
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 60px 0;
}

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

.page-ban-ca__tip-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-ban-ca__tip-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-ban-ca__tip-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-ban-ca__tips-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: block;
  margin: 40px auto 0 auto;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 60px 0;
}

.page-ban-ca__promotion-card {
  background: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-bottom: 30px;
  text-align: center;
  padding-bottom: 20px;
}

.page-ban-ca__promotion-image {
  width: 100%;
  height: 250px; /* Fixed height for promo banner */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-ban-ca__promotion-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  padding: 0 20px;
}

.page-ban-ca__promotion-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
  padding: 0 20px;
}

/* Game Trial Section */
.page-ban-ca__trial-section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__trial-wrapper {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  margin-top: 40px;
}

.page-ban-ca__game-trial-frame {
  border: none;
  border-radius: 8px;
  width: 100%;
  height: 600px;
  display: block;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
}

.page-ban-ca__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__faq-item {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-main-color);
  cursor: pointer;
  background: #fdfdfd;
  transition: background 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-ban-ca__faq-question:hover {
  background: #f5f5f5;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  background: #f5f5f5;
}

.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.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

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

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

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  padding: 60px 0;
}

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

.page-ban-ca__why-choose-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-ban-ca__why-choose-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-ban-ca__why-choose-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-ban-ca__why-choose-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: block;
  margin: 40px auto 0 auto;
}

/* General Image styles */
.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__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

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

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

  .page-ban-ca__game-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__tips-grid,
  .page-ban-ca__why-choose-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-ban-ca__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    min-height: unset;
  }

  .page-ban-ca__hero-image-wrapper {
    max-height: 400px;
  }

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

  .page-ban-ca__hero-content {
    margin-top: -50px; /* Adjust overlap */
    padding: 25px 15px;
  }

  .page-ban-ca__hero-title {
    font-size: 2.2em; /* Smaller H1 for mobile */
    margin-bottom: 10px;
  }

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

  .page-ban-ca__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-play {
    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__cta-buttons,
  .page-ban-ca__button-group,
  .page-ban-ca__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  /* General Image styles */
  .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;
  }

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

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

  /* Games Section */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns for game grid */
    gap: 15px;
    overflow-x: hidden;
  }

  .page-ban-ca__game-image {
    height: 150px; /* Adjust image height for mobile cards */
  }

  .page-ban-ca__game-title {
    font-size: 1.1em;
  }

  .page-ban-ca__game-description {
    font-size: 0.85em;
  }

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__guide-item {
    padding: 20px;
  }

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

  /* Tips Section */
  .page-ban-ca__tips-grid {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__tip-card {
    padding: 20px;
  }

  /* Promotions Section */
  .page-ban-ca__promotion-image {
    height: 180px; /* Adjust promo banner height */
  }

  .page-ban-ca__promotion-title {
    font-size: 1.2em;
  }

  .page-ban-ca__promotion-description {
    font-size: 0.9em;
  }

  /* Game Trial Section */
  .page-ban-ca__game-trial-frame {
    height: 400px;
  }

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

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

  /* Why Choose Section */
  .page-ban-ca__why-choose-grid {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__why-choose-item {
    padding: 20px;
  }
}