/* Base Styles */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: #F5F7FA; /* Default background */
}

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

.page-ban-ca__section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #E53935;
}

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

.page-ban-ca__text-block {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

/* Buttons */
.page-ban-ca__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.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: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  margin-left: 15px;
}

.page-ban-ca__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-ban-ca__cta-button--large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-ban-ca__button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  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 */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-ban-ca__hero-image-wrap {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 12px;
  margin-top: 100px; /* Push content down to avoid header overlap */
}

.page-ban-ca__main-title {
  font-size: 48px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-ban-ca__lead-text {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-ban-ca__feature-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-ban-ca__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-ban-ca__feature-description {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}

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

.page-ban-ca__step-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #E0E0E0;
}

.page-ban-ca__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #E53935;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.page-ban-ca__step-description {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

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

.page-ban-ca__game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 20px;
}

.page-ban-ca__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-ban-ca__game-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FF5A4F;
  padding: 0 15px;
}

.page-ban-ca__game-description {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-ban-ca__game-button {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 6px;
}

/* Promotions Section */
.page-ban-ca__promo-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-ban-ca__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-ban-ca__promo-list li {
  background: #ffffff;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 17px;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__list-icon {
  font-size: 24px;
  margin-right: 15px;
  color: #E53935;
  flex-shrink: 0;
}

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

.page-ban-ca__tip-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-ban-ca__tip-description {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Why Choose Section */
.page-ban-ca__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-ban-ca__why-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #E0E0E0;
}

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

.page-ban-ca__why-description {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #333333;
}
.page-ban-ca__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #E53935;
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 12px 12px;
  text-align: left;
  color: #555555;
}
.page-ban-ca__faq-answer p {
  margin: 0;
  font-size: 16px;
}

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

/* Media Queries for Responsiveness */

/* Tablet/Small Desktop (up to 1024px) */
@media (max-width: 1024px) {
  .page-ban-ca__section-title {
    font-size: 32px;
  }
  .page-ban-ca__main-title {
    font-size: 42px;
  }
  .page-ban-ca__lead-text {
    font-size: 18px;
  }
  .page-ban-ca__hero-content {
    margin-top: 80px;
    padding: 30px 20px;
  }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-ban-ca__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__section {
    padding: 40px 0;
  }
  .page-ban-ca__section-title {
    font-size: 28px;
    margin-bottom: 25px;
    line-height: 1.3;
  }
  .page-ban-ca__text-block {
    font-size: 15px;
    text-align: left;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px;
    min-height: 400px;
  }
  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    height: auto !important;
    position: relative;
  }
  .page-ban-ca__hero-image-wrap {
    position: relative;
    height: auto;
    margin-bottom: 20px;
  }
  .page-ban-ca__hero-content {
    margin-top: 0;
    padding: 25px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
  }
  .page-ban-ca__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-ban-ca__lead-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Buttons */
  .page-ban-ca__cta-button {
    font-size: 16px;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-ban-ca__btn-secondary {
    margin-left: 0;
  }
  .page-ban-ca__button-group {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Features Section */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__feature-card {
    padding: 20px;
  }
  .page-ban-ca__feature-title {
    font-size: 20px;
  }

  /* How To Play Section */
  .page-ban-ca__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__step-item {
    padding: 20px;
  }
  .page-ban-ca__step-title {
    font-size: 20px;
  }

  /* Popular Games Section */
  .page-ban-ca__game-cards-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 15px;
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }
  .page-ban-ca__game-image {
    height: 150px;
  }
  .page-ban-ca__game-title {
    font-size: 18px;
  }
  .page-ban-ca__game-description {
    font-size: 14px;
  }
  .page-ban-ca__game-card {
    padding-bottom: 15px;
  }

  /* Promotions Section */
  .page-ban-ca__promo-list li {
    padding: 12px 15px;
    font-size: 15px;
  }
  .page-ban-ca__list-icon {
    font-size: 20px;
    margin-right: 10px;
  }

  /* Tips Section */
  .page-ban-ca__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__tip-card {
    padding: 20px;
  }
  .page-ban-ca__tip-title {
    font-size: 20px;
  }

  /* Why Choose Section */
  .page-ban-ca__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__why-card {
    padding: 20px;
  }
  .page-ban-ca__why-title {
    font-size: 20px;
  }

  /* FAQ Section */
  details.page-ban-ca__faq-item {
    border-radius: 8px;
    margin-bottom: 10px;
  }
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px 18px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 16px;
  }
  .page-ban-ca__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 18px 18px;
  }
  .page-ban-ca__faq-answer p {
    font-size: 15px;
  }

  /* General Image and Container Responsiveness */
  .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,
  .page-ban-ca__hero-section,
  .page-ban-ca__features-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__popular-games-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__why-choose-section,
  .page-ban-ca__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__hero-section { padding-left: 0; padding-right: 0; }
  .page-ban-ca__hero-image-wrap { padding-left: 0; padding-right: 0; }
  .page-ban-ca__hero-content { padding-left: 15px; padding-right: 15px; }
}

/* Ensure no horizontal scroll for content areas */
.page-ban-ca__content-area, .page-ban-ca__text-block, .page-ban-ca__container {
  overflow-x: hidden;
}