/* Base styles for the page-ban-ca */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-ban-ca__section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
  border-radius: 2px;
}

.page-ban-ca__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #333333;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  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 15px rgba(229, 57, 53, 0.4);
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

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

.page-ban-ca__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.3);
}

.page-ban-ca__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  overflow: hidden;
  background-color: #0d0d0d; /* Dark background for hero */
}

.page-ban-ca__hero-image {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
}

.page-ban-ca__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Introduction Section */
.page-ban-ca__introduction-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  padding: 80px 0;
  background-color: #E53935; /* Dark background from brand color */
  color: #ffffff;
}

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

.page-ban-ca__why-choose-section .page-ban-ca__section-title::after {
  background: #FF5A4F;
}

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

.page-ban-ca__feature-card {
  background: #ffffff; /* Card BG */
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-ban-ca__feature-card .page-ban-ca__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-ban-ca__feature-card p {
  font-size: 16px;
}

/* Games Section */
.page-ban-ca__games-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333;
}

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

.page-ban-ca__game-card {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-ban-ca__game-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: #E53935;
}

.page-ban-ca__game-description {
  font-size: 15px;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-ban-ca__game-btn {
  margin: 0 15px 20px;
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333;
}

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

.page-ban-ca__guide-step {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__guide-step .page-ban-ca__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-ban-ca__guide-step p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__step-btn {
  margin-top: auto;
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 80px 0;
  background-color: #E53935; /* Dark background from brand color */
  color: #ffffff;
}

.page-ban-ca__tips-section .page-ban-ca__section-title {
  color: #ffffff;
}

.page-ban-ca__tips-section .page-ban-ca__section-title::after {
  background: #FF5A4F;
}

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

.page-ban-ca__tip-item {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-ban-ca__tip-item .page-ban-ca__tip-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-ban-ca__tip-item p {
  font-size: 16px;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333;
}

.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: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__promo-card .page-ban-ca__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

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

.page-ban-ca__promo-btn {
  margin-top: auto;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333;
}

.page-ban-ca__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333;
}

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: #f5f5f5;
}

.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #E53935;
}

.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

.page-ban-ca__faq-btn {
  margin-top: 10px;
  display: inline-flex;
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  padding: 80px 0;
  background-color: #E53935; /* Dark background from brand color */
  color: #ffffff;
  text-align: center;
}

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

.page-ban-ca__conclusion-section .page-ban-ca__section-title::after {
  background: #FF5A4F;
}

.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__container {
    padding: 20px 30px;
  }

  .page-ban-ca__section-title {
    font-size: 32px;
  }

  .page-ban-ca__text-block {
    font-size: 17px;
  }

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

  .page-ban-ca__description {
    font-size: 18px;
  }

  .page-ban-ca__btn-primary, .page-ban-ca__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__game-list,
  .page-ban-ca__guide-steps,
  .page-ban-ca__tips-list,
  .page-ban-ca__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

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

  .page-ban-ca__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
  }

  .page-ban-ca__text-block {
    font-size: 15px;
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
  }

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

  .page-ban-ca__hero-image img {
    object-fit: contain !important; /* Ensure image is not cropped */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

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

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-ban-ca__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  /* Content Images */
  .page-ban-ca__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

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

  .page-ban-ca__feature-card {
    padding: 25px;
  }

  .page-ban-ca__feature-card .page-ban-ca__card-title {
    font-size: 20px;
  }

  /* Game List (Product Grid) */
  .page-ban-ca__game-list {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    gap: 15px;
    overflow-x: hidden;
  }

  .page-ban-ca__game-card h3 {
    font-size: 18px;
    margin: 15px 10px 8px;
  }

  .page-ban-ca__game-description {
    font-size: 14px;
    padding: 0 10px 15px;
  }

  .page-ban-ca__game-image {
    height: 150px;
  }

  .page-ban-ca__game-btn {
    margin: 0 10px 15px;
    font-size: 15px;
    padding: 10px 15px;
  }

  /* Guide Steps */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__guide-step {
    padding: 25px;
  }

  .page-ban-ca__guide-step .page-ban-ca__step-title {
    font-size: 20px;
  }

  /* Tips List */
  .page-ban-ca__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__tip-item {
    padding: 25px;
  }

  .page-ban-ca__tip-item .page-ban-ca__tip-title {
    font-size: 20px;
  }

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

  .page-ban-ca__promo-card {
    padding: 25px;
  }

  .page-ban-ca__promo-card .page-ban-ca__card-title {
    font-size: 20px;
  }

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

  .page-ban-ca__faq-answer p {
    font-size: 15px;
  }

  .page-ban-ca__faq-btn {
    font-size: 14px;
    padding: 8px 12px;
  }

  /* Sections padding */
  .page-ban-ca__introduction-section,
  .page-ban-ca__why-choose-section,
  .page-ban-ca__games-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__conclusion-section {
    padding: 40px 0;
  }
}