/* Base styles for the Bắn cá page */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #F5F7FA;
  line-height: 1.6;
}

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

.page-ban-ca__section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__section-title {
  font-size: 36px;
  color: #E53935;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-ban-ca__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 800px;
  margin-top: -80px; /* Overlap with image slightly for visual effect */
  z-index: 10;
  position: relative;
}

.page-ban-ca__main-title {
  font-size: 48px;
  color: #E53935;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  max-width: 100%;
}

.page-ban-ca__hero-description {
  font-size: 20px;
  color: #333333;
  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;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

/* Intro Section */
.page-ban-ca__intro-section {
  background-color: #F5F7FA;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  background-color: #E53935;
  color: #ffffff;
}

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

.page-ban-ca__why-choose-section .page-ban-ca__text-block {
  color: #f0f0f0;
}

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

.page-ban-ca__feature-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-ban-ca__feature-card:hover {
  transform: translateY(-5px);
}

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

.page-ban-ca__feature-title {
  font-size: 24px;
  color: #E53935;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__feature-description {
  font-size: 16px;
  line-height: 1.6;
}

/* Popular Games Section */
.page-ban-ca__popular-games-section {
  background-color: #F5F7FA;
}

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

.page-ban-ca__game-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-5px);
}

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

.page-ban-ca__game-title {
  font-size: 22px;
  color: #E53935;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__game-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-ban-ca__btn-play {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: opacity 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-play:hover {
  opacity: 0.9;
}

/* How to Play Section */
.page-ban-ca__how-to-play-section {
  background-color: #F5F7FA;
}

.page-ban-ca__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left;
}

.page-ban-ca__step-item {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  counter-increment: step-counter;
  padding-left: 80px;
}

.page-ban-ca__step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 30px;
  background: #E53935;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
}

.page-ban-ca__step-title {
  font-size: 24px;
  color: #333333;
  margin-bottom: 10px;
}

.page-ban-ca__step-item p {
  font-size: 16px;
  color: #555555;
}

.page-ban-ca__btn-small {
  display: inline-block;
  padding: 8px 18px;
  background: #FF5A4F;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 15px;
  transition: opacity 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-small:hover {
  opacity: 0.8;
}

/* Tips Section */
.page-ban-ca__tips-section {
  background-color: #E53935;
  color: #ffffff;
}

.page-ban-ca__tips-section .page-ban-ca__section-title {
  color: #ffffff;
}

.page-ban-ca__tips-section .page-ban-ca__text-block {
  color: #f0f0f0;
}

.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__tip-item {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FF5A4F;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.6;
}

.page-ban-ca__tip-item strong {
  color: #ffffff;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: #F5F7FA;
}

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

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Final CTA Section */
.page-ban-ca__final-cta-section {
  background-color: #F5F7FA;
  padding-bottom: 80px;
}

.page-ban-ca__btn-large {
  padding: 18px 40px;
  font-size: 20px;
  margin-top: 30px;
}

/* Responsive Styles */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 15px;
  }

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

  .page-ban-ca__section-title {
    font-size: 32px;
  }

  .page-ban-ca__main-title {
    font-size: 40px;
  }

  .page-ban-ca__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

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

  .page-ban-ca__feature-image,
  .page-ban-ca__game-image {
    height: 180px;
  }

  .page-ban-ca__feature-title,
  .page-ban-ca__game-title {
    font-size: 20px;
  }

  .page-ban-ca__step-item {
    padding: 25px 20px 25px 70px;
  }

  .page-ban-ca__step-item::before {
    left: 15px;
    top: 25px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .page-ban-ca__step-title {
    font-size: 20px;
  }
}

/* Mobile (max-width: 768px) - Full compliance with checklist */
@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-ban-ca__section-title {
    font-size: clamp(24px, 7vw, 28px) !important; /* Clamp for H2 */
    margin-bottom: 20px !important;
  }

  .page-ban-ca__text-block {
    font-size: 16px !important;
    max-width: 100% !important;
  }

  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
  }

  .page-ban-ca__hero-image-wrapper {
    max-height: 50vh !important;
  }

  .page-ban-ca__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__hero-content {
    margin-top: -40px !important;
    padding: 25px 15px !important;
    max-width: calc(100% - 30px) !important;
  }

  .page-ban-ca__main-title {
    font-size: clamp(32px, 9vw, 38px) !important; /* Clamp for H1 */
    margin-bottom: 15px !important;
  }

  .page-ban-ca__hero-description {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }

  /* 按钮与按钮容器 */
  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-play,
  .page-ban-ca__btn-small,
  .page-ban-ca__btn-large {
    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;
  }

  /* 产品展示图区域 & 通用图片与容器 */
  .page-ban-ca__features-grid,
  .page-ban-ca__games-grid {
    grid-template-columns: 1fr !important; /* Single column for features/games */
    gap: 20px !important;
    margin-top: 30px !important;
    overflow-x: hidden !important;
  }

  .page-ban-ca__feature-card,
  .page-ban-ca__game-card {
    padding: 20px !important;
  }

  .page-ban-ca__feature-image,
  .page-ban-ca__game-image,
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-ban-ca__how-to-play-section .page-ban-ca__steps-list {
    margin-top: 30px !important;
    text-align: left !important;
  }

  .page-ban-ca__step-item {
    padding: 20px 15px 20px 60px !important;
  }

  .page-ban-ca__step-item::before {
    left: 10px !important;
    top: 20px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 16px !important;
  }

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

  .page-ban-ca__tip-item {
    font-size: 15px !important;
    padding: 15px !important;
  }

  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question { padding: 15px !important; }
  .page-ban-ca__faq-qtext { font-size: 15px !important; }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer { padding: 0 15px 15px !important; }

  .page-ban-ca__dark-section,
  .page-ban-ca__intro-section,
  .page-ban-ca__popular-games-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}