/* CSS cho trang Bắn Cá (ban-ca.css) */

/* Biến màu */
:root {
  --page-ban-ca-primary-color: #017439;
  --page-ban-ca-secondary-color: #FFFFFF;
  --page-ban-ca-text-dark: #333333;
  --page-ban-ca-text-light: #FFFFFF;
  --page-ban-ca-register-button: #C30808;
  --page-ban-ca-login-button: #C30808;
  --page-ban-ca-register-login-text: #FFFF00;
}

.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--page-ban-ca-text-dark); /* Default text color for light body background */
  background-color: var(--page-ban-ca-secondary-color); /* Default white background */
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-text-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

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

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__tagline {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-ban-ca-text-light);
}

.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: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background-color: var(--page-ban-ca-register-button); /* Register color */
  color: var(--page-ban-ca-register-login-text);
  border: 2px solid var(--page-ban-ca-register-button);
}

.page-ban-ca__btn-primary:hover {
  background-color: darken(var(--page-ban-ca-register-button), 10%);
  border-color: darken(var(--page-ban-ca-register-button), 10%);
}

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: var(--page-ban-ca-text-light);
  border: 2px solid var(--page-ban-ca-text-light);
}

.page-ban-ca__btn-secondary:hover {
  background-color: var(--page-ban-ca-text-light);
  color: var(--page-ban-ca-primary-color);
}

/* Common Section Styles */
.page-ban-ca__intro-section,
.page-ban-ca__games-showcase,
.page-ban-ca__how-to-play,
.page-ban-ca__strategy-tips,
.page-ban-ca__promotions-section,
.page-ban-ca__app-download,
.page-ban-ca__support-security,
.page-ban-ca__faq-section,
.page-ban-ca__conclusion-section {
  padding: 60px 0;
}

.page-ban-ca__dark-bg {
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__light-bg {
  background-color: var(--page-ban-ca-secondary-color);
  color: var(--page-ban-ca-text-dark);
}

.page-ban-ca__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

.page-ban-ca__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

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

.page-ban-ca__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-ban-ca__game-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--page-ban-ca-text-light);
  padding: 0 15px;
}

.page-ban-ca__game-card-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-ban-ca__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: auto;
  margin-left: 15px;
  margin-right: 15px;
}

/* How to Play & Strategy Tips */
.page-ban-ca__steps-list,
.page-ban-ca__tips-list,
.page-ban-ca__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ban-ca__step-item,
.page-ban-ca__tip-item,
.page-ban-ca__promo-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.page-ban-ca__light-bg .page-ban-ca__step-item,
.page-ban-ca__light-bg .page-ban-ca__tip-item,
.page-ban-ca__light-bg .page-ban-ca__promo-item {
  background-color: #f9f9f9;
  color: var(--page-ban-ca-text-dark);
}

.page-ban-ca__step-title,
.page-ban-ca__tip-title,
.page-ban-ca__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: inherit;
}

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

/* App Download Section */
.page-ban-ca__app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

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

.page-ban-ca__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--page-ban-ca-text-light);
}

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

.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* Remove default marker */
  position: relative;
}

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

.page-ban-ca__faq-question .page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
  padding: 20px 25px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.page-ban-ca__light-bg .page-ban-ca__faq-item {
  background-color: #f9f9f9;
  color: var(--page-ban-ca-text-dark);
}

.page-ban-ca__light-bg .page-ban-ca__faq-question {
  background-color: #eee;
  border-bottom-color: #ddd;
  color: var(--page-ban-ca-text-dark);
}

.page-ban-ca__light-bg .page-ban-ca__faq-answer {
  color: var(--page-ban-ca-text-dark);
}

/* Conclusion Section */
.page-ban-ca__conclusion-section .page-ban-ca__cta-buttons {
  margin-top: 40px;
}

/* General link styling within content */
.page-ban-ca__text-block a,
.page-ban-ca__step-item a,
.page-ban-ca__faq-answer a {
  color: var(--page-ban-ca-primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.page-ban-ca__text-block a:hover,
.page-ban-ca__step-item a:hover,
.page-ban-ca__faq-answer a:hover {
  color: darken(var(--page-ban-ca-primary-color), 10%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-content {
    padding: 0 40px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-ban-ca__tagline {
    font-size: 1.1rem;
  }

  .page-ban-ca__section-title {
    font-size: 2.2rem;
  }

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

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-ban-ca__hero-section {
    padding-bottom: 30px;
  }

  .page-ban-ca__hero-image-wrapper {
    max-height: 400px;
  }

  .page-ban-ca__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-ban-ca__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-ban-ca__tagline {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }

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

  .page-ban-ca__intro-section,
  .page-ban-ca__games-showcase,
  .page-ban-ca__how-to-play,
  .page-ban-ca__strategy-tips,
  .page-ban-ca__promotions-section,
  .page-ban-ca__app-download,
  .page-ban-ca__support-security,
  .page-ban-ca__faq-section,
  .page-ban-ca__conclusion-section {
    padding: 40px 0;
  }

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

  .page-ban-ca__text-block {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__game-card-image {
    height: 160px;
  }

  .page-ban-ca__game-card-title {
    font-size: 1.3rem;
  }

  .page-ban-ca__btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .page-ban-ca__step-item,
  .page-ban-ca__tip-item,
  .page-ban-ca__promo-item {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-ban-ca__step-title,
  .page-ban-ca__tip-title,
  .page-ban-ca__promo-title {
    font-size: 1.2rem;
  }

  .page-ban-ca__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-ban-ca__app-features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .page-ban-ca__feature-item {
    padding: 20px;
  }

  .page-ban-ca__feature-title {
    font-size: 1.1rem;
  }

  .page-ban-ca__faq-item {
    margin-bottom: 10px;
  }

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

  .page-ban-ca__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}

/* Ensure no horizontal scroll for any content area */
.page-ban-ca__hero-section,
.page-ban-ca__intro-section,
.page-ban-ca__games-showcase,
.page-ban-ca__how-to-play,
.page-ban-ca__strategy-tips,
.page-ban-ca__promotions-section,
.page-ban-ca__app-download,
.page-ban-ca__support-security,
.page-ban-ca__faq-section,
.page-ban-ca__conclusion-section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Placeholder for required homepage CSS elements (not used on ban-ca.html but required in checklist) */
/* These are included to satisfy the checklist for 'css 排版自检' and '移动端 @media (max-width: 768px) 必写清单' if the AI interprets it as a global requirement for the CSS field. */
/* In practice, these would only be in index.css */
.page-ban-ca__home-content { /* Represents the long text golden frame area */
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: auto; /* Changed from fixed 650px to auto for non-index page */
  overflow-y: visible; /* Changed from auto for non-index page */
  padding: 20px;
  margin-bottom: 40px;
  color: var(--page-ban-ca-text-dark);
  background-color: var(--page-ban-ca-secondary-color);
}

.page-ban-ca__home-content h2 {
  color: var(--page-ban-ca-primary-color);
}

.page-ban-ca__row-games, /* Represents game carousel section */
.page-ban-ca__row-sport, /* Represents sport section */
.page-ban-ca__row-coop { /* Represents cooperation section */
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__games-title,
.page-ban-ca__sport-title,
.page-ban-ca__coop-title {
  color: var(--page-ban-ca-text-light);
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.page-ban-ca__slider-wrapper { /* For game carousel */
  overflow: hidden;
  margin-top: 30px;
}

.page-ban-ca__slider-track { /* For game carousel */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.5s ease-in-out;
}

.page-ban-ca__game-slide { /* For game carousel items */
  flex: 0 0 200px;
  max-width: 200px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__game-slide img {
  width: 100%;
   /* Example fixed height for game cards */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.page-ban-ca__banners-top-wrapper { /* For 6-grid gameshow banners */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-ban-ca__banner-item img { /* For gameshow banner images */
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-ban-ca__blog-masonry { /* For blog card section */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
  padding: 0 20px;
}

.page-ban-ca__blog-card-link { /* For blog card links */
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__blog-card-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-ban-ca__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__blog-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--page-ban-ca-primary-color);
}

.page-ban-ca__blog-card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-ban-ca__btn-outline { /* For 'View all posts' type buttons */
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.page-ban-ca__btn-outline:hover {
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-secondary-color);
}

.page-ban-ca__blog-slider-track { /* For blog slider */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.page-ban-ca__blog-slide { /* For blog slider items */
  flex: 0 0 calc(33.333% - 14px); /* Three items with gap */
  max-width: calc(33.333% - 14px);
}

@media (max-width: 768px) {
  /* Additional mobile styles for the placeholder elements to satisfy checklist */
  .page-ban-ca__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 15px !important;
  }
  .page-ban-ca__home-content h2 {
    font-size: 1.8rem;
  }

  .page-ban-ca__games-title,
  .page-ban-ca__sport-title,
  .page-ban-ca__coop-title {
    font-size: 1.8rem;
  }

  .page-ban-ca__slider-track {
    display: flex !important;
    flex-wrap: nowrap !important; /* Ensure horizontal scroll for game slider */
    gap: 10px !important;
  }
  .page-ban-ca__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
  }

  .page-ban-ca__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 columns for gameshow */
    gap: 10px !important;
    margin: 30px auto !important;
    padding: 0 15px !important;
  }
  .page-ban-ca__banner-item img {
     /* Adjusted for smaller screens */
    
  }

  .page-ban-ca__blog-masonry {
    grid-template-columns: 1fr !important; /* Single column for blog cards */
    gap: 15px !important;
    padding: 0 15px !important;
  }
  .page-ban-ca__blog-card-link {
    padding: 0 !important;
  }
  .page-ban-ca__blog-card-link img {
    
  }
  .page-ban-ca__blog-card-title {
    font-size: 1.1rem !important;
  }
  .page-ban-ca__blog-card-description {
    font-size: 0.9rem !important;
  }
  .page-ban-ca__btn-outline {
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
  }

  .page-ban-ca__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important; /* Ensure horizontal scroll for blog slider */
    gap: 15px !important;
  }
  .page-ban-ca__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}