/* Base styles for the Bắn Cá page */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: var(--secondary-color); /* Inherit from shared, assumed light */
}

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

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

.page-ban-ca__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-ban-ca__heading {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Aspect ratio 16:9 for 1200x675 */
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  width: 100%;
  max-width: 900px;
  padding: 30px;
  border-radius: 10px;
  margin-top: -80px; /* Overlap slightly for visual effect */
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.page-ban-ca__description {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #555555;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-ban-ca__btn-primary:hover {
  background-color: #E01010;
  border-color: #E01010;
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

.page-ban-ca__intro-section p {
  text-align: justify;
  margin-bottom: 15px;
  font-size: 1.05em;
}

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

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

.page-ban-ca__feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-ban-ca__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__feature-card p {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

.page-ban-ca__ordered-list,
.page-ban-ca__unordered-list {
  list-style-position: inside;
  text-align: left;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-ban-ca__ordered-list li,
.page-ban-ca__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #333333;
}

.page-ban-ca__unordered-list li strong {
  color: #017439;
}

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

.page-ban-ca__promotions-section a {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-ban-ca__promotions-section a:hover {
  color: #004d2c;
}

.page-ban-ca__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.page-ban-ca__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f5f5f5; /* Lighter background for summary */
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Hide default marker */
}

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

.page-ban-ca__faq-qtext {
  flex-grow: 1;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #017439;
}

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

.page-ban-ca__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0; /* Separator for clarity */
}

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

.page-ban-ca__cta-final .page-ban-ca__heading {
  color: #017439;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-content {
    margin-top: -60px;
    padding: 25px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
  }

  .page-ban-ca__heading {
    font-size: 2em;
  }

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

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

@media (max-width: 768px) {
  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-ban-ca__hero-image-wrapper,
  .page-ban-ca__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 112px !important; /* Approx 16:9 for 200px width */
  }

  .page-ban-ca__hero-content {
    margin-top: -40px;
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }

  .page-ban-ca__description {
    font-size: 0.95em;
  }

  /* General Section & Container */
  .page-ban-ca__section {
    padding: 25px 15px;
  }

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

  .page-ban-ca__heading {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

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

  .page-ban-ca__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-ban-ca__card-title {
    font-size: 1.3em;
  }

  /* Lists */
  .page-ban-ca__ordered-list,
  .page-ban-ca__unordered-list {
    margin-left: 0;
    padding-left: 20px;
  }

  .page-ban-ca__ordered-list li,
  .page-ban-ca__unordered-list li {
    font-size: 0.95em;
  }

  /* Content Images */
  .page-ban-ca__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 112px !important; /* Approx 16:9 for 200px width */
  }

  /* Buttons and Button Containers */
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 10px;
  }

  .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: 1em;
  }

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

  .page-ban-ca__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* Ensure all img elements inside .page-ban-ca are responsive */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}