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

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

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

.page-ban-ca__section--about .page-ban-ca__section-title,
.page-ban-ca__section--guide .page-ban-ca__section-title,
.page-ban-ca__section--promo .page-ban-ca__section-title,
.page-ban-ca__section--faq .page-ban-ca__section-title {
  color: var(--text-main, #333333);
}

.page-ban-ca__section--games,
.page-ban-ca__section--app,
.page-ban-ca__section--conclusion {
  background-color: #E53935; /* Main brand color */
  color: #ffffff;
}

.page-ban-ca__section--games .page-ban-ca__section-title,
.page-ban-ca__section--app .page-ban-ca__section-title,
.page-ban-ca__section--conclusion .page-ban-ca__section-title {
  color: #ffffff;
}

.page-ban-ca__section-title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.page-ban-ca__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #FF5A4F;
  border-radius: 2px;
}

.page-ban-ca__content-area {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-ban-ca__text-block p {
  margin-bottom: 20px;
  font-size: 17px;
  color: inherit;
}

.page-ban-ca__text-block strong {
  font-weight: bold;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding: 10px 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-ban-ca__hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px 60px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.8) 0%, rgba(255, 90, 79, 0.9) 100%);
  border-radius: 0 0 15px 15px;
  margin-top: -15px; /* Overlap slightly with image */
  width: 100%;
  box-sizing: border-box;
}

.page-ban-ca__main-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
}

.page-ban-ca__description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  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 15px rgba(229, 57, 53, 0.4);
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.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(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-ban-ca__product-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__product-title a {
  color: #E53935;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ban-ca__product-title a:hover {
  color: #FF5A4F;
}

.page-ban-ca__product-description {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-ban-ca__btn-play {
  background: #FF5A4F;
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 5px;
}

.page-ban-ca__btn-play:hover {
  background: #E53935;
}

/* Guide List */
.page-ban-ca__guide-list {
  list-style-type: none;
  padding: 0;
  margin-top: 30px;
}

.page-ban-ca__guide-list li {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  text-align: left;
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-ban-ca__guide-list li strong {
  color: #E53935;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.page-ban-ca__guide-list li a {
  color: #FF5A4F;
  text-decoration: none;
  font-weight: bold;
}

.page-ban-ca__guide-list li a:hover {
  text-decoration: underline;
}

/* Tips List */
.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-ban-ca__tips-list li {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FF5A4F;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-ban-ca__tips-list li strong {
  color: #ffffff;
  font-weight: bold;
}

/* Promo List */
.page-ban-ca__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-ban-ca__promo-list li {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-ban-ca__promo-list li strong {
  color: #E53935;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.page-ban-ca__promo-list li a {
  color: #FF5A4F;
  text-decoration: none;
  font-weight: bold;
}

.page-ban-ca__promo-list li a:hover {
  text-decoration: underline;
}

/* App Download Section */
.page-ban-ca__app-download-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

.page-ban-ca__app-info p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-ban-ca__app-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-ban-ca__app-features-list li {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-ban-ca__app-features-list li::before {
  content: '✔';
  color: #FF5A4F;
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-ban-ca__app-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  text-align: center;
}

.page-ban-ca__app-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e0e0e0);
  overflow: hidden;
  background: var(--card-bg, #ffffff);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
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: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #333333);
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935;
  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 8px 8px;
  color: var(--text-main, #333333);
  font-size: 16px;
  text-align: left;
}

.page-ban-ca__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

.page-ban-ca__faq-answer a {
  color: #FF5A4F;
  text-decoration: none;
  font-weight: bold;
}

.page-ban-ca__faq-answer a:hover {
  text-decoration: underline;
}

/* Conclusion Section */
.page-ban-ca__section--conclusion .page-ban-ca__cta-buttons {
  margin-top: 30px;
}

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

.page-ban-ca__section,
.page-ban-ca__card,
.page-ban-ca__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Media Queries */
/* Tablet and smaller screens */
@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 20px;
  }

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

  .page-ban-ca__section-title {
    font-size: clamp(26px, 3.5vw, 34px);
    margin-bottom: 30px;
  }

  .page-ban-ca__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
  }

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

  .page-ban-ca__main-title {
    font-size: clamp(28px, 4.5vw, 40px);
  }

  .page-ban-ca__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit width for stacked buttons */
    margin: 0 auto;
  }

  .page-ban-ca__products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-ban-ca__product-card img {
    
  }

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

  .page-ban-ca__app-download-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-ban-ca__app-info,
  .page-ban-ca__app-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .page-ban-ca__app-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-ban-ca__app-buttons .page-ban-ca__btn-primary,
  .page-ban-ca__app-buttons .page-ban-ca__btn-secondary {
    width: 100%;
    max-width: unset;
  }
}

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

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

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

  .page-ban-ca__section-title {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 25px;
  }

  .page-ban-ca__hero-section {
    padding-top: 10px;
  }

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

  .page-ban-ca__hero-content {
    padding: 25px 15px 30px;
    margin-top: -10px; /* Adjust overlap for mobile */
  }

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

  .page-ban-ca__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .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__products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    overflow-x: hidden;
  }

  .page-ban-ca__product-card {
    margin: 0 auto;
    max-width: 350px;
  }

  .page-ban-ca__product-card img {
    
  }

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

  .page-ban-ca__product-description {
    font-size: 14px;
  }

  .page-ban-ca__content-area {
    padding: 0 15px;
  }

  .page-ban-ca__text-block p,
  .page-ban-ca__guide-list li,
  .page-ban-ca__promo-list li {
    font-size: 15px;
  }

  .page-ban-ca__guide-list li strong,
  .page-ban-ca__promo-list li strong {
    font-size: 16px;
  }

  .page-ban-ca__tips-list li {
    font-size: 14px;
    padding: 12px 15px;
  }

  .page-ban-ca__app-download-grid {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  .page-ban-ca__app-info,
  .page-ban-ca__app-image {
    width: 100%;
    max-width: unset;
  }

  .page-ban-ca__app-image img {
    max-width: 80%;
    margin: 0 auto;
  }

  .page-ban-ca__app-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
  }

  .page-ban-ca__app-features-list li {
    font-size: 15px;
  }

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

  /* General image responsive */
  .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__content-area,
  .page-ban-ca__text-block,
  .page-ban-ca__app-download-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by .page-ban-ca__container */
    /* padding-right: 15px; */ /* Handled by .page-ban-ca__container */
  }
}