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

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

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

.page-ban-ca__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #E53935; /* Primary color for titles */
  text-align: center;
  margin-bottom: 30px;
}

.page-ban-ca__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 30px;
  overflow: hidden;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}

.page-ban-ca__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px;
  color: #333333;
}

.page-ban-ca__main-title {
  font-size: clamp(28px, 5vw, 48px); /* H1 font size with clamp */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #E53935;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-ban-ca__subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #333333;
}

.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: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
  color: #ffffff;
  border: none;
}

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

.page-ban-ca__btn-secondary {
  background: #ffffff;
  color: #E53935; /* Primary color */
  border: 2px solid #E53935;
}

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

.page-ban-ca__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

/* Game Showcase Section */
.page-ban-ca__games-showcase .page-ban-ca__section-title {
  color: #E53935;
}

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

.page-ban-ca__game-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-ban-ca__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #E53935;
  margin: 10px 15px;
  line-height: 1.3;
}

.page-ban-ca__card-description {
  font-size: 15px;
  color: #333333;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Features Section */
.page-ban-ca__features-section {
  padding: 60px 0;
}

.page-ban-ca__dark-section {
  background: #E53935;
  color: #ffffff;
}

.page-ban-ca__dark-section .page-ban-ca__section-title,
.page-ban-ca__dark-section .page-ban-ca__text-block,
.page-ban-ca__dark-section .page-ban-ca__feature-title {
  color: #ffffff;
}

.page-ban-ca__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-ban-ca__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.page-ban-ca__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-ban-ca__feature-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* How to Play Section */
.page-ban-ca__how-to-play .page-ban-ca__section-title {
  color: #E53935;
}

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

.page-ban-ca__step-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 60px 0;
}

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

.page-ban-ca__light-bg .page-ban-ca__section-title {
  color: #E53935;
}

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

.page-ban-ca__promo-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__promo-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

/* Why Choose Us Section */
.page-ban-ca__why-choose-us {
  padding: 60px 0;
}

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

.page-ban-ca__advantage-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.page-ban-ca__advantage-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

/* FAQ Section */
.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: #E53935;
}

.page-ban-ca__faq-list {
  margin-top: 30px;
}

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #FFFFFF;
}

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: #333333;
}

/* Call to Action Section */
.page-ban-ca__call-to-action {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__call-to-action .page-ban-ca__container {
  background: #E53935; /* Primary color */
  color: #ffffff;
  border-radius: 15px;
  padding: 50px 30px;
  max-width: 900px;
}

.page-ban-ca__call-to-action .page-ban-ca__section-title,
.page-ban-ca__call-to-action .page-ban-ca__text-block {
  color: #ffffff;
}

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

.page-ban-ca__section,
.page-ban-ca__container,
.page-ban-ca__card,
.page-ban-ca__game-card,
.page-ban-ca__promo-card,
.page-ban-ca__hero-section,
.page-ban-ca__hero-image {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media queries for mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 15px;
    line-height: 1.6;
  }

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

  .page-ban-ca__section {
    padding: 30px 0;
    margin-bottom: 15px;
  }

  .page-ban-ca__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Specific small top padding */
    margin-bottom: 20px;
  }

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

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

  .page-ban-ca__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-ban-ca__subtitle {
    font-size: clamp(14px, 3.5vw, 18px);
    margin-bottom: 20px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 产品展示图区域 */
  .page-ban-ca__game-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    gap: 15px;
    padding: 0 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-ban-ca__game-card {
    margin-bottom: 0;
  }
  .page-ban-ca__game-card img {
    
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-ban-ca__introduction-section .page-ban-ca__text-block,
  .page-ban-ca__how-to-play .page-ban-ca__text-block,
  .page-ban-ca__promotions-section .page-ban-ca__text-block,
  .page-ban-ca__why-choose-us .page-ban-ca__text-block,
  .page-ban-ca__call-to-action .page-ban-ca__text-block {
    padding: 0 15px;
    text-align: left; /* Adjust text alignment for readability */
  }

  .page-ban-ca__feature-list,
  .page-ban-ca__step-list,
  .page-ban-ca__promo-grid,
  .page-ban-ca__advantages-list {
    grid-template-columns: 1fr; /* Single column for lists */
    gap: 20px;
    padding: 0 15px;
  }

  .page-ban-ca__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 30px auto 0 auto;
  }

  .page-ban-ca__promo-card img {
    
  }

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

  /* FAQ specific mobile styles */
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question { padding: 15px; }
  .page-ban-ca__faq-qtext { font-size: 15px; }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer { padding: 0 15px 15px; }

  .page-ban-ca__call-to-action .page-ban-ca__container {
    padding: 30px 15px;
  }
}

/* Media query for tablets (max-width: 1024px) - for larger screens than mobile, but smaller than desktop */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-ban-ca__container {
    padding: 20px 30px;
  }

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

  .page-ban-ca__main-title {
    font-size: clamp(36px, 4vw, 42px);
  }

  .page-ban-ca__subtitle {
    font-size: clamp(18px, 2.2vw, 20px);
  }

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

  .page-ban-ca__feature-list,
  .page-ban-ca__step-list,
  .page-ban-ca__promo-grid,
  .page-ban-ca__advantages-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .page-ban-ca__feature-image {
    max-width: 800px;
  }

  .page-ban-ca__call-to-action .page-ban-ca__container {
    padding: 40px;
  }
}