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

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

.page-ban-ca__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-ban-ca__dark-section {
  background-color: #111111; /* Card BG */
}

.page-ban-ca__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ban-ca__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover for desktop */
  max-height: 675px;
}

.page-ban-ca__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
}

.page-ban-ca__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #F2C14E;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-ban-ca__description {
  font-size: 19px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

.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-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  min-width: 200px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #FFF6D6; /* Text Main */
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E; /* Main color */
}

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

.page-ban-ca__center-cta {
  text-align: center;
  margin-top: 40px;
}

/* Features Section */
.page-ban-ca__features-grid,
.page-ban-ca__tips-grid,
.page-ban-ca__promo-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 */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px 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(242, 193, 78, 0.2);
}

.page-ban-ca__feature-icon,
.page-ban-ca__tip-image,
.page-ban-ca__promo-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__feature-title,
.page-ban-ca__tip-title,
.page-ban-ca__promo-title {
  font-size: 22px;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__feature-description,
.page-ban-ca__tip-description,
.page-ban-ca__promo-description {
  font-size: 16px;
  color: #FFF6D6;
}

/* How to Play Section */
.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;
  text-align: left;
}

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

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

.page-ban-ca__step-description {
  font-size: 16px;
  color: #FFF6D6;
}

/* Popular Games Section */
.page-ban-ca__products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
  gap: 30px;
  margin-top: 40px;
}

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

.page-ban-ca__product-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
  display: block;
}

.page-ban-ca__product-title {
  font-size: 20px;
  color: #F2C14E;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ban-ca__product-title a {
  color: #F2C14E;
}

.page-ban-ca__product-title a:hover {
  color: #FFD36B;
}

.page-ban-ca__product-description {
  font-size: 15px;
  color: #FFF6D6;
}

/* Download Section */
.page-ban-ca__download-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__qr-code {
  width: 100%;
  max-width: 250px;
  height: auto;
  border: 5px solid #F2C14E;
  border-radius: 10px;
}

.page-ban-ca__download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
}

.page-ban-ca__btn-download {
  font-size: 18px;
  padding: 12px 25px;
}

.page-ban-ca__btn-download i {
  margin-right: 10px;
  font-size: 20px;
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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; /* Glow */
  font-weight: 600;
}

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(242, 193, 78, 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;
  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 20px;
  background: #111111;
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
  font-size: 16px;
}

/* General image responsiveness for all images within .page-ban-ca */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-ban-ca__main-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }

  .page-ban-ca__description {
    font-size: 17px;
  }

  .page-ban-ca__btn-primary, .page-ban-ca__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    min-width: 180px;
  }

  .page-ban-ca__products-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
  }
}

@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 0 15px !important; /* Specific padding for mobile */
  }

  .page-ban-ca__section {
    padding: 30px 0 !important;
  }

  .page-ban-ca__hero-section {
    padding-top: 10px !important;
  }

  .page-ban-ca__hero-image {
    object-fit: contain !important; /* HERO mobile: contain, not cover */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    max-height: 400px !important;
  }

  .page-ban-ca__main-title {
    font-size: clamp(28px, 8vw, 36px) !important;
    margin-bottom: 15px !important;
  }

  .page-ban-ca__description {
    font-size: 15px !important;
    margin-bottom: 25px !important;
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .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;
    min-width: unset !important;
  }

  .page-ban-ca__section-title {
    font-size: clamp(24px, 7vw, 32px) !important;
    margin-bottom: 30px !important;
  }

  .page-ban-ca__text-block {
    font-size: 15px !important;
    text-align: left !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__tips-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__steps-grid {
    grid-template-columns: 1fr !important; /* Single column for mobile */
    gap: 20px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__card {
    padding: 20px !important;
    margin: 0 !important;
  }

  .page-ban-ca__feature-icon,
  .page-ban-ca__tip-image,
  .page-ban-ca__promo-image {
    max-width: 150px !important;
    margin-bottom: 15px !important;
  }

  .page-ban-ca__feature-title,
  .page-ban-ca__tip-title,
  .page-ban-ca__promo-title {
    font-size: 20px !important;
  }

  .page-ban-ca__products-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for product grid on mobile */
    gap: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__product-card {
    padding: 15px !important;
  }

  .page-ban-ca__product-title {
    font-size: 18px !important;
  }

  .page-ban-ca__product-description {
    font-size: 14px !important;
  }

  .page-ban-ca__download-options {
    flex-direction: column !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__qr-code {
    max-width: 200px !important;
  }

  .page-ban-ca__download-buttons {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .page-ban-ca__btn-download {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }

  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px !important;
  }

  .page-ban-ca__faq-qtext {
    font-size: 16px !important;
  }

  .page-ban-ca__faq-toggle {
    font-size: 24px !important;
    width: 24px !important;
  }

  details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 15px 15px !important;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}