/* Base styles for the Bắn Cá page */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Body background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has --header-offset */
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

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

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

.page-ban-ca__hero-content {
  max-width: 800px;
  padding: 0 20px;
  text-align: center;
  margin-top: 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-outline {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: 2px solid transparent;
}

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

.page-ban-ca__btn-secondary {
  background: #111111;
  color: #F2C14E; /* Brand color for text */
  border: 2px solid #F2C14E; /* Border color */
}

.page-ban-ca__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
}

.page-ban-ca__btn-outline {
  background: transparent;
  color: #F2C14E;
  border: 1px solid #F2C14E;
  padding: 8px 20px;
  font-size: 0.9em;
}

.page-ban-ca__btn-outline:hover {
  background: #F2C14E;
  color: #111111;
}

/* General Section Styles */
.page-ban-ca__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-ban-ca__text-block {
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #FFF6D6;
}

.page-ban-ca__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
  padding: 60px 0;
}

.page-ban-ca__light-bg {
  background-color: #111111; /* Card BG for light sections */
  color: #FFF6D6;
  padding: 60px 0;
}

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

.page-ban-ca__image-row {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

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

.page-ban-ca__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-ban-ca__card-title {
  font-size: 1.4rem;
  color: #FFD36B; /* Glow color for card titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__card-description {
  font-size: 0.95rem;
  color: #FFF6D6;
  flex-grow: 1;
}

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

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

.page-ban-ca__step-card .page-ban-ca__card-title {
  color: #F2C14E;
}

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

.page-ban-ca__game-card {
  text-align: center;
}

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

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

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

/* Advantages Section */
.page-ban-ca__advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
  text-align: center;
}

.page-ban-ca__advantage-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__advantage-title {
  font-size: 1.3rem;
  color: #FFD36B;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ban-ca__advantage-description {
  font-size: 0.95rem;
  color: #FFF6D6;
}

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

.page-ban-ca__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  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.15rem;
  font-weight: 600;
  color: #F2C14E;
  cursor: pointer;
  background-color: #111111;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-ban-ca__faq-question:hover {
  background-color: #1A1A1A;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #FFF6D6;
  line-height: 1.5;
  transition: max-height 0.3s ease-out;
}

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

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  padding-bottom: 80px;
}

.page-ban-ca__cta-final-section .page-ban-ca__section-title {
  color: #F2C14E;
}

.page-ban-ca__cta-final-section .page-ban-ca__text-block {
  color: #FFF6D6;
}

/* Links within content */
.page-ban-ca a {
  color: #FFD36B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ban-ca a:hover {
  color: #F2C14E;
  text-decoration: underline;
}

/* Universal image and container responsive styles */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-ban-ca__section,
.page-ban-ca__card,
.page-ban-ca__container,
.page-ban-ca__hero-section,
.page-ban-ca__intro-section,
.page-ban-ca__features-section,
.page-ban-ca__how-to-play-section,
.page-ban-ca__games-showcase,
.page-ban-ca__promotions-section,
.page-ban-ca__advantages-section,
.page-ban-ca__faq-section,
.page-ban-ca__cta-final-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 20px 30px;
  }

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

  .page-ban-ca__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__game-list,
  .page-ban-ca__promotion-cards,
  .page-ban-ca__advantages-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

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

  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Ensure small top padding */
    min-height: auto;
  }

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

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

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

  /* Buttons and Button Containers */
  .page-ban-ca__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-outline,
  .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 !important;
    padding-right: 15px !important;
  }

  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* General Section Titles and Text Blocks */
  .page-ban-ca__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px;
    padding-top: 40px;
  }

  .page-ban-ca__text-block {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* Card Layouts */
  .page-ban-ca__features-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__game-list,
  .page-ban-ca__promotion-cards,
  .page-ban-ca__advantages-list {
    grid-template-columns: 1fr !important; /* Single column for all grids */
    gap: 20px;
  }

  .page-ban-ca__card {
    padding: 20px;
  }

  .page-ban-ca__card-title {
    font-size: 1.2rem;
  }

  .page-ban-ca__game-image,
  .page-ban-ca__promotion-image {
    height: 180px; /* Adjust height for mobile */
  }

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

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

  /* Universal Image and Container Adaptations */
  .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__intro-section,
  .page-ban-ca__features-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__games-showcase,
  .page-ban-ca__promotions-section,
  .page-ban-ca__advantages-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  /* No game or gameshow carousels on non-homepage, so these are not needed. */
  /* The following rules are part of the 'mobile checklist' but are for homepage only. */
  /* .page-ban-ca__row-games, .page-ban-ca__slider-track, .page-ban-ca__banners-top-wrapper, .page-ban-ca__blog-masonry, .page-ban-ca__blog-slider-track are not present here */
}

/* Contrast Fixes (as per requirements) */
.page-ban-ca__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-ban-ca__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Ensure `p` and `li` have correct color for dark body */
.page-ban-ca p,
.page-ban-ca li {
  color: #FFF6D6;
}

/* Specific card text color to ensure contrast on card background */
.page-ban-ca__feature-card .page-ban-ca__card-description,
.page-ban-ca__step-card .page-ban-ca__card-description,
.page-ban-ca__game-card .page-ban-ca__card-description,
.page-ban-ca__promotion-card .page-ban-ca__card-description {
  color: #FFF6D6;
}