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

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

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-ban-ca__section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  margin-bottom: 40px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  background: var(--card-bg);
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  max-width: 90%;
}

.page-ban-ca__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__step-button,
.page-ban-ca__game-button,
.page-ban-ca__promo-button,
.page-ban-ca__article-cta .page-ban-ca__btn-primary {
  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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: #F2FFF6;
  border: 2px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

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

.page-ban-ca__feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px;
  border-radius: 10px;
  object-fit: cover;
}

.page-ban-ca__feature-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ban-ca__feature-description {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

.page-ban-ca__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-ban-ca__step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__step-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 15px;
  line-height: 1;
}

.page-ban-ca__step-title {
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__step-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-ban-ca__step-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: auto;
}

.page-ban-ca__step-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Popular Games Section */
.page-ban-ca__popular-games-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

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

.page-ban-ca__game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-ban-ca__game-title {
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ban-ca__game-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__game-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}

.page-ban-ca__game-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Tips Section (Article Body) */
.page-ban-ca__tips-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

.page-ban-ca__article-body {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin: 0 auto;
}

.page-ban-ca__article-figure {
  margin: 0 0 30px 0;
  text-align: center;
}

.page-ban-ca__article-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.page-ban-ca__article-caption {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.page-ban-ca__article-body p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-ban-ca__article-subtitle {
  font-size: 26px;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__article-cta {
  text-align: center;
  margin-top: 40px;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

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

.page-ban-ca__promo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__promo-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__promo-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-ban-ca__promo-button {
  background: var(--deep-green);
  color: #F2FFF6;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}

.page-ban-ca__promo-button:hover {
  background: var(--primary-color);
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

.page-ban-ca__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
}

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: var(--divider);
}

.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 25px 25px;
  background: var(--background);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
  font-size: 16px;
}

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

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

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

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

  .page-ban-ca__hero-description {
    font-size: 17px;
  }

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

  .page-ban-ca__article-body {
    padding: 30px;
  }

  .page-ban-ca__article-subtitle {
    font-size: 24px;
  }
}

@media (max-width: 849px) {
  .page-ban-ca__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__container,
  .page-ban-ca__hero-content,
  .page-ban-ca__article-body,
  .page-ban-ca__hero-actions,
  .page-ban-ca__features-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__game-list,
  .page-ban-ca__promo-grid,
  .page-ban-ca__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }

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

  .page-ban-ca__hero-content {
    margin-top: -40px; /* Adjust overlap for mobile */
    padding: 20px;
  }

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

  .page-ban-ca__hero-description {
    font-size: 15px;
  }

  .page-ban-ca__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

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

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

  .page-ban-ca__feature-description,
  .page-ban-ca__step-card p,
  .page-ban-ca__game-description,
  .page-ban-ca__promo-description {
    font-size: 15px;
  }

  .page-ban-ca__step-number {
    font-size: 40px;
  }

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

  .page-ban-ca__article-body {
    padding: 25px;
  }

  .page-ban-ca__article-body p {
    font-size: 16px;
  }

  .page-ban-ca__article-subtitle {
    font-size: 22px;
  }

  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px 20px;
  }

  .page-ban-ca__faq-qtext {
    font-size: 16px;
  }

  .page-ban-ca__faq-toggle {
    font-size: 20px;
    width: 24px;
  }

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

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