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

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

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Brand main color for titles */
  position: relative;
  padding-bottom: 15px;
}

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

.page-ban-ca__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #FFF6D6;
}

.page-ban-ca__card {
  background-color: #111111; /* Card background from custom colors */
  border: 1px solid #3A2A12; /* Border from custom colors */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-ban-ca__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 15px;
  color: #FFD36B; /* Auxiliary color for card titles */
  text-align: center;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play,
.page-ban-ca__step-btn,
.page-ban-ca__btn-promo {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient from custom colors */
  color: #111111; /* Dark text for contrast on bright button */
  border: none;
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #FFE87A 0%, #EAA12D 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Auxiliary color for text */
  border: 2px solid #FFD36B;
}

.page-ban-ca__btn-secondary:hover {
  background: #FFD36B;
  color: #111111; /* Dark text on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

.page-ban-ca__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-ban-ca__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 15px;
  color: #FFF6D6;
  margin-top: -30%; /* Pull content up over the image */
}

.page-ban-ca__main-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #F2C14E; /* Brand main color */
  line-height: 1.2;
}

.page-ban-ca__description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

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

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

.page-ban-ca__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Game Showcase Section */
.page-ban-ca__game-showcase {
  padding: 60px 0;
}

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

.page-ban-ca__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__game-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-ban-ca__btn-play {
  margin-top: auto; /* Push button to bottom */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
}

.page-ban-ca__btn-play:hover {
  background: linear-gradient(180deg, #FFE87A 0%, #EAA12D 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

/* How To Play Section */
.page-ban-ca__how-to-play {
  padding: 60px 0;
}

.page-ban-ca__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-ban-ca__step-item {
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for step number */
  display: flex;
  flex-direction: column;
}

.page-ban-ca__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #F2C14E; /* Main brand color */
  color: #111111;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border: 3px solid #3A2A12;
  box-shadow: 0 0 0 5px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__step-btn {
  margin-top: auto;
  background: #FFD36B; /* Auxiliary color */
  color: #111111;
  border: none;
}

.page-ban-ca__step-btn:hover {
  background: #FFE082;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

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

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

.page-ban-ca__promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-ban-ca__btn-promo {
  margin-top: auto;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
}

.page-ban-ca__btn-promo:hover {
  background: linear-gradient(180deg, #FFE87A 0%, #EAA12D 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-ban-ca__all-promotions-cta {
  text-align: center;
  margin-top: 30px;
}

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

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

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

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

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

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border from custom colors */
  overflow: hidden;
  background: #111111; /* Card background from custom colors */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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;
  color: #FFD36B; /* Auxiliary color for question text */
  font-weight: bold;
}

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: rgba(255, 211, 107, 0.1);
}

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

.page-ban-ca__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main brand color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 25px 25px;
  background: #0A0A0A; /* Main background for answer area */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}

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

/* Final CTA Section */
.page-ban-ca__final-cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #0A0A0A, rgba(242, 193, 78, 0.1), #0A0A0A);
  margin-top: 60px;
  border-radius: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: 44px;
  }
  .page-ban-ca__description {
    font-size: 18px;
  }
  .page-ban-ca__section-title {
    font-size: 32px;
  }
  .page-ban-ca__section-subtitle {
    font-size: 16px;
  }
  .page-ban-ca__features-grid,
  .page-ban-ca__game-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__tips-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-ban-ca__hero-content {
    padding: 60px 15px;
    margin-top: -25%;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Specific for mobile, ensure small top padding */
  }
  .page-ban-ca__hero-content {
    padding: 40px 15px;
    margin-top: -15%; /* Adjust overlap for mobile */
  }
  .page-ban-ca__main-title {
    font-size: 32px; /* Smaller font size for mobile H1 */
    line-height: 1.3;
  }
  .page-ban-ca__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-play,
  .page-ban-ca__step-btn,
  .page-ban-ca__btn-promo {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  /* Ensure all images are responsive */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  /* Generic container responsive padding */
  .page-ban-ca__container,
  .page-ban-ca__hero-content,
  .page-ban-ca__why-choose-us,
  .page-ban-ca__game-showcase,
  .page-ban-ca__how-to-play,
  .page-ban-ca__promotions,
  .page-ban-ca__tips-tricks,
  .page-ban-ca__faq-section,
  .page-ban-ca__final-cta {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-ban-ca__section-subtitle {
    font-size: 15px;
    margin-bottom: 40px;
  }
  .page-ban-ca__card-title {
    font-size: 19px;
  }
  .page-ban-ca__features-grid,
  .page-ban-ca__game-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__tips-list {
    grid-template-columns: 1fr; /* Single column layout for all grids */
  }
  .page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px 20px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 16px;
  }
  .page-ban-ca__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  .page-ban-ca__faq-answer {
    padding: 0 20px 20px;
  }
  .page-ban-ca__final-cta {
    padding: 50px 15px;
  }
}