/* 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: #F4F7FB; /* Background color from custom配色 */
}

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1F2D3D; /* Text Main color */
}

.page-ban-ca__dark-bg {
  background-color: #2F6BFF;
  color: #ffffff; /* White text for dark background */
}

.page-ban-ca__dark-bg .page-ban-ca__section-title,
.page-ban-ca__dark-bg .page-ban-ca__text-block,
.page-ban-ca__dark-bg .page-ban-ca__card-description,
.page-ban-ca__dark-bg .page-ban-ca__card-title,
.page-ban-ca__dark-bg .page-ban-ca__guide-step-title,
.page-ban-ca__dark-bg .page-ban-ca__guide-item p,
.page-ban-ca__dark-bg .page-ban-ca__faq-qtext,
.page-ban-ca__dark-bg .page-ban-ca__faq-answer p {
  color: #ffffff;
}

.page-ban-ca__light-bg {
  background-color: #F4F7FB;
  color: #1F2D3D; /* Text Main color */
}

.page-ban-ca__card {
  background-color: #FFFFFF; /* Card BG color */
  color: #1F2D3D; /* Text Main color */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-ban-ca__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000000; /* Custom Color_1776249996415 */
}

.page-ban-ca__card-description {
  font-size: 1em;
  color: #1F2D3D;
}

.page-ban-ca__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-outline {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits container */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__btn-secondary {
  background-color: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__btn-secondary:hover {
  background-color: #F4F7FB;
  color: #1a5bff;
  border-color: #1a5bff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__btn-outline {
  background: none;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: auto; /* For cards */
}

.page-ban-ca__btn-outline:hover {
  background-color: #2F6BFF;
  color: #ffffff;
}

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

.page-ban-ca__cta-buttons--center {
  justify-content: center;
}

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

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-ban-ca__main-title {
  font-size: 3.2em;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ban-ca__feature-card .page-ban-ca__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.page-ban-ca__game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__game-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-ban-ca__game-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000000; /* Custom Color_1776249996415 */
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-ban-ca__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ban-ca__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-ban-ca__guide-item p {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

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

.page-ban-ca__promo-card .page-ban-ca__card-title {
  color: #000000;
}

.page-ban-ca__promo-card .page-ban-ca__card-description {
  color: #1F2D3D;
}

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

.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  list-style: none;
}

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

.page-ban-ca__faq-question .page-ban-ca__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

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

.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: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  border-bottom: none;
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__cta-content {
  max-width: 800px;
}

.page-ban-ca__cta-final-section .page-ban-ca__section-title {
  font-size: 2.8em;
  color: #1F2D3D;
}

.page-ban-ca__cta-final-section .page-ban-ca__text-block {
  color: #1F2D3D;
  font-size: 1.2em;
}

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

/* Global button responsiveness */
.page-ban-ca__cta-button,
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__cta-buttons,
.page-ban-ca__button-group,
.page-ban-ca__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-content {
    padding: 15px;
  }

  .page-ban-ca__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-ban-ca__container {
    padding: 20px 15px;
  }

  /* HERO 主图区域 */
  .page-ban-ca__hero-image {
    max-height: 400px;
  }

  /* 通用图片与容器 */
  .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__game-item,
  .page-ban-ca__feature-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-ban-ca__cta-button,
  .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;
    padding-right: 15px;
  }
  
  .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: 0px;
    padding-right: 0px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__game-list,
  .page-ban-ca__guide-list,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__feature-card,
  .page-ban-ca__game-item,
  .page-ban-ca__promo-card,
  .page-ban-ca__guide-item,
  .page-ban-ca__faq-item {
    padding: 20px;
  }

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

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

  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
  }

  /* 长文金框区 - This page does not have a '金框区' as per the outline, but including for completeness if it were present */
  /* .page-ban-ca__home-content { height: auto; overflow-y: visible; } */

  /* 游戏轮播 - This page does not have a game slider, but including for completeness if it were present */
  /* .page-ban-ca__slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } */
  /* .page-ban-ca__game-slide { flex: 0 0 80%; max-width: 80%; } */

  /* 合作品牌六宫格 - This page does not have a 6-grid partners section, but including for completeness if it were present */
  /* .page-ban-ca__banners-top-wrapper { grid-template-columns: repeat(3, 1fr); gap: 10px; } */
  /* .page-ban-ca__banner-item img {   } */

  /* 博客卡片区 - This page does not have a blog masonry/slider, but including for completeness if it were present */
  /* .page-ban-ca__blog-masonry { grid-template-columns: 1fr; } */
  /* .page-ban-ca__blog-slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } */
  /* .page-ban-ca__blog-slide { flex: 0 0 90%; max-width: 90%; } */

  .page-ban-ca p,
  .page-ban-ca li {
    font-size: 16px;
    line-height: 1.6;
  }
}