/* Base styles for the Bắn Cá page */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--Text-Main, #F2FFF6); /* Default text color for the page */
  background: var(--Background, #08160F); /* Default background color for the page */
}

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--Text-Main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-ban-ca__section-description {
  font-size: 18px;
  color: var(--Text-Secondary, #A7D9B8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: var(--Text-Main, #F2FFF6);
  border: 2px solid var(--Border, #2E7A4E);
}

.page-ban-ca__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.2);
  color: #57E38D;
  border-color: #57E38D;
  transform: translateY(-2px);
}

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

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  height: 600px;
  position: relative;
  z-index: 0;
  margin-bottom: 40px;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  margin-top: -300px; /* Overlap with image for visual effect, but text is below */
  background: rgba(8, 22, 15, 0.85); /* Semi-transparent background for readability */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Responsive font size */
  font-weight: 900;
  color: var(--Text-Main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(87, 227, 141, 0.6);
}

.page-ban-ca__hero-description {
  font-size: 20px;
  color: var(--Text-Secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Features Section */
.page-ban-ca__features-section {
  padding: 80px 20px;
  background: var(--Background, #08160F);
  text-align: center;
}

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

.page-ban-ca__feature-card {
  background: var(--Card-B-G, #11271B);
  border: 1px solid var(--Border, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-ban-ca__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(17, 168, 78, 0.3);
}

.page-ban-ca__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-ban-ca__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--Text-Main, #F2FFF6);
  margin-bottom: 15px;
}

.page-ban-ca__card-text {
  font-size: 16px;
  color: var(--Text-Secondary, #A7D9B8);
  flex-grow: 1;
}

/* Games Section */
.page-ban-ca__games-section {
  padding: 80px 20px;
  background: var(--Background, #08160F);
}

.page-ban-ca__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-ban-ca__game-card {
  background: var(--Card-B-G, #11271B);
  border: 1px solid var(--Border, #2E7A4E);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(17, 168, 78, 0.3);
}

.page-ban-ca__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-card .page-ban-ca__card-title {
  margin: 20px 20px 10px;
  text-align: left;
}

.page-ban-ca__game-card .page-ban-ca__card-text {
  margin: 0 20px 20px;
  text-align: left;
  flex-grow: 1;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 80px 20px;
  background: var(--Deep-Green, #0A4B2C);
}

.page-ban-ca__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-ban-ca__guide-step {
  background: var(--Card-B-G, #11271B);
  border: 1px solid var(--Border, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-ban-ca__step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-ban-ca__step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--Text-Main, #F2FFF6);
  margin-bottom: 15px;
}

.page-ban-ca__step-text {
  font-size: 16px;
  color: var(--Text-Secondary, #A7D9B8);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-ban-ca__guide-step .page-ban-ca__btn-secondary {
  width: 100%;
}

/* Promotion Section */
.page-ban-ca__promo-section {
  padding: 80px 20px;
  background: var(--Background, #08160F);
}

.page-ban-ca__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.page-ban-ca__promo-card {
  background: var(--Card-B-G, #11271B);
  border: 1px solid var(--Border, #2E7A4E);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-ban-ca__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(17, 168, 78, 0.3);
}

.page-ban-ca__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__promo-card .page-ban-ca__card-title {
  margin: 20px 20px 10px;
  text-align: left;
}

.page-ban-ca__promo-card .page-ban-ca__card-text {
  margin: 0 20px 20px;
  text-align: left;
  flex-grow: 1;
}

.page-ban-ca__promo-card .page-ban-ca__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-ban-ca__all-promo-cta {
  text-align: center;
}

/* Download Section */
.page-ban-ca__download-section {
  padding: 80px 20px;
  background: var(--Deep-Green, #0A4B2C);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  flex-wrap: wrap;
}

.page-ban-ca__download-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-ban-ca__download-content .page-ban-ca__section-title,
.page-ban-ca__download-content .page-ban-ca__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-ban-ca__download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-ban-ca__download-image-wrapper {
  flex-shrink: 0;
  width: 400px;
  height: 400px;
}

.page-ban-ca__download-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 80px 20px;
  background: var(--Background, #08160F);
}

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

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--Border, #2E7A4E);
  overflow: hidden;
  background: var(--Card-B-G, #11271B);
}

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: rgba(17, 168, 78, 0.2);
}

.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main, #F2FFF6);
}

.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--Glow, #57E38D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 168, 78, 0.1);
  border-radius: 0 0 5px 5px;
  color: var(--Text-Secondary, #A7D9B8);
  font-size: 16px;
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  padding: 80px 20px;
  background: var(--Deep-Green, #0A4B2C);
  text-align: center;
}

.page-ban-ca__conclusion-section .page-ban-ca__btn-primary {
  margin-top: 30px;
}

/* Global image styles for content area */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-image-wrapper {
    height: 500px;
  }
  .page-ban-ca__hero-content {
    margin-top: -250px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(30px, 4vw, 48px);
  }
  .page-ban-ca__section-title {
    font-size: 30px;
  }
  .page-ban-ca__section-description {
    font-size: 16px;
  }
  .page-ban-ca__download-section {
    flex-direction: column;
    text-align: center;
  }
  .page-ban-ca__download-content .page-ban-ca__section-title,
  .page-ban-ca__download-content .page-ban-ca__section-description {
    text-align: center;
  }
  .page-ban-ca__download-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-ban-ca__hero-image-wrapper {
    height: 300px;
  }
  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Mobile: ensure image is not cropped */
    aspect-ratio: unset !important; /* Reset aspect ratio for contain */
  }
  .page-ban-ca__hero-content {
    margin-top: -150px;
    padding: 20px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  .page-ban-ca__hero-description {
    font-size: 16px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section Titles & Descriptions */
  .page-ban-ca__section-title {
    font-size: 28px;
  }
  .page-ban-ca__section-description {
    font-size: 15px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* Features Grid */
  .page-ban-ca__features-section,
  .page-ban-ca__games-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__download-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__conclusion-section {
    padding: 50px 15px; /* Adjust padding for mobile */
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__games-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr; /* Single column layout for grids */
    gap: 20px;
  }

  .page-ban-ca__feature-icon {
    width: 100px;
    height: 100px;
  }
  .page-ban-ca__card-title {
    font-size: 20px;
  }
  .page-ban-ca__card-text {
    font-size: 15px;
  }

  /* Game Cards */
  .page-ban-ca__game-image,
  .page-ban-ca__promo-image {
    height: 180px;
  }
  .page-ban-ca__game-card .page-ban-ca__btn-primary,
  .page-ban-ca__promo-card .page-ban-ca__btn-primary {
    width: calc(100% - 40px) !important; /* Ensure buttons in cards are full width */
  }

  /* Guide Steps */
  .page-ban-ca__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  .page-ban-ca__step-title {
    font-size: 20px;
  }
  .page-ban-ca__step-text {
    font-size: 15px;
  }

  /* Download Section */
  .page-ban-ca__download-image-wrapper {
    width: 100%;
    height: auto;
  }
  .page-ban-ca__download-image {
    max-height: 300px;
    object-fit: contain;
  }
  .page-ban-ca__download-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-ban-ca__download-buttons .page-ban-ca__btn-primary,
  .page-ban-ca__download-buttons .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }

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

  /* Ensure all images and containers are responsive */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__hero-image-wrapper,
  .page-ban-ca__features-section,
  .page-ban-ca__features-grid,
  .page-ban-ca__feature-card,
  .page-ban-ca__games-section,
  .page-ban-ca__games-grid,
  .page-ban-ca__game-card,
  .page-ban-ca__guide-section,
  .page-ban-ca__guide-steps,
  .page-ban-ca__guide-step,
  .page-ban-ca__promo-section,
  .page-ban-ca__promo-grid,
  .page-ban-ca__promo-card,
  .page-ban-ca__download-section,
  .page-ban-ca__download-content,
  .page-ban-ca__download-image-wrapper,
  .page-ban-ca__faq-section,
  .page-ban-ca__faq-list,
  .page-ban-ca__faq-item,
  .page-ban-ca__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-ban-ca__hero-content,
  .page-ban-ca__section-description,
  .page-ban-ca__download-content,
  .page-ban-ca__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
}