/* Base styles for the Bắn Cá page */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Main text color for dark background */
  background-color: #140C0C; /* Main background color */
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
}

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

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

.page-ban-ca__section-title {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 40px;
  color: #F3C54D; /* Gold color for titles */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-ban-ca__description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #FFF1E8;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  background-color: #140C0C;
  padding-bottom: 40px;
}

.page-ban-ca__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 70vh; /* Limit hero image height */
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content up slightly over image */
  background: linear-gradient(180deg, rgba(20, 12, 12, 0.8) 0%, rgba(20, 12, 12, 1) 50%);
  border-radius: 10px;
  padding-top: 80px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(243, 197, 77, 0.5);
}

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

.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: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-ban-ca__btn-secondary {
  background: #2A1212;
  color: #F3C54D;
  border: 2px solid #6A1E1E;
  box-shadow: 0 4px 15px rgba(106, 30, 30, 0.4);
}

.page-ban-ca__btn-secondary:hover {
  transform: translateY(-3px);
  background: #3a1a1a;
  border-color: #7E0D0D;
  box-shadow: 0 6px 20px rgba(106, 30, 30, 0.6);
}

/* Article Body */
.page-ban-ca__article-body {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.1em;
  color: #FFF1E8;
}

.page-ban-ca__article-body p {
  margin-bottom: 1.5em;
}

/* Feature Cards Grid */
.page-ban-ca__features-grid,
.page-ban-ca__steps-grid,
.page-ban-ca__games-grid,
.page-ban-ca__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__card {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__feature-image,
.page-ban-ca__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-ban-ca__feature-title,
.page-ban-ca__step-title,
.page-ban-ca__game-title,
.page-ban-ca__promo-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 15px;
}

.page-ban-ca__feature-description,
.page-ban-ca__game-description {
  font-size: 1em;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-ban-ca__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E;
  overflow: hidden;
  background: #2A1212;
  color: #FFF1E8;
  text-align: left;
}
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: #3A1A1A;
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #F3C54D;
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  background: #140C0C;
  border-radius: 0 0 10px 10px;
  color: #FFF1E8;
  font-size: 1em;
}

/* Final CTA Section */
.page-ban-ca__cta-final {
  background-color: #140C0C;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__section-title {
    font-size: 2.5em;
  }
  .page-ban-ca__description {
    font-size: 1.1em;
  }
  .page-ban-ca__feature-image, .page-ban-ca__game-image {
    height: 200px;
  }
}

@media (max-width: 849px) {
  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important;
    max-height: 400px; /* Adjust max height for mobile hero */
  }
  .page-ban-ca__hero-content {
    margin-top: -40px;
    padding-top: 60px;
  }
}

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

  .page-ban-ca__section {
    padding: 40px 0;
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 30px;
  }

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

  /* Hero Section */
  .page-ban-ca__hero-section {
    min-height: auto;
  }
  .page-ban-ca__hero-image-wrapper {
    max-height: 300px;
  }
  .page-ban-ca__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: -20px;
    padding-top: 40px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  /* Buttons */
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    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;
    font-size: 1em;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Article Body */
  .page-ban-ca__article-body {
    font-size: 1em;
    padding: 0 15px;
  }

  /* Grids */
  .page-ban-ca__features-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__games-grid,
  .page-ban-ca__promo-list {
    grid-template-columns: 1fr; /* Single column for most grids */
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  /* Specific for popular games if they were 3 columns, now 1 */
  .page-ban-ca__games-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Allow 2 if space, but prefer 1 */
  }

  /* Images in cards/content */
  .page-ban-ca__feature-image,
  .page-ban-ca__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px; /* Ensure images are not too small */
    object-fit: cover !important;
  }

  /* FAQ */
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 1em;
  }
  .page-ban-ca__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 15px 15px;
  }
}