:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B; /* This is the body background color from shared.css */
}

/* General styles for the Bắn Cá page */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page, light on dark body */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-ban-ca__section {
  padding: 60px 0;
  background-color: transparent; /* Sections might have specific backgrounds, but default to transparent */
}

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-ban-ca__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary); /* Secondary text color */
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.page-ban-ca__hero-image {
  width: 100%;
  max-height: 700px; /* Limit height to prevent excessive size */
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-ban-ca__main-title {
  font-weight: 800;
  color: var(--gold); /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
  font-size: clamp(2em, 4vw, 3em); /* Example using clamp for H1 */
}

.page-ban-ca__description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-tertiary,
.page-ban-ca__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-ban-ca__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 67, 166, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(17, 67, 166, 0.6);
}

.page-ban-ca__btn-secondary {
  background: var(--card-bg); /* #10233F */
  color: var(--text-main); /* #F3F8FF */
  border: 2px solid var(--border-color); /* #244D84 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--deep-navy); /* #08162B */
  border-color: var(--glow); /* #4FA8FF */
  color: var(--glow);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__btn-tertiary {
  background: var(--primary-color); /* #113B7A */
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 5px;
}

.page-ban-ca__btn-tertiary:hover {
  background: var(--secondary-color); /* #1D5FD1 */
}

.page-ban-ca__btn-text {
  background: none;
  color: var(--glow); /* #4FA8FF */
  border: none;
  padding: 0;
  font-size: 1em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-ban-ca__btn-text:hover {
  color: var(--gold); /* #F2C14E */
}

/* Intro Section */
.page-ban-ca__intro-section {
  background-color: var(--card-bg); /* #10233F */
  padding: 80px 0;
}

.page-ban-ca__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

/* Game Lobbies Section */
.page-ban-ca__game-lobbies {
  padding: 80px 0;
}

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

.page-ban-ca__lobby-card {
  background-color: var(--card-bg); /* #10233F */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  color: var(--text-secondary);
  border: 1px solid var(--border-color); /* #244D84 */
}

.page-ban-ca__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-ban-ca__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--text-main);
  padding: 15px 20px 10px;
}

.page-ban-ca__card-text {
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-ban-ca__lobby-card .page-ban-ca__btn-tertiary {
  margin: 0 20px 20px;
  align-self: flex-start;
}


/* Guide Section */
.page-ban-ca__guide-section {
  background-color: var(--deep-navy); /* #08162B */
  padding: 80px 0;
}

.page-ban-ca__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ban-ca__guide-item {
  background-color: var(--card-bg); /* #10233F */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color); /* #244D84 */
}

.page-ban-ca__guide-step-title {
  font-size: 1.6em;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-ban-ca__guide-item p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 80px 0;
}

.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ban-ca__tips-item {
  background-color: var(--card-bg); /* #10233F */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color); /* #244D84 */
}

.page-ban-ca__tips-title {
  font-size: 1.6em;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-ban-ca__tips-item p {
  color: var(--text-secondary);
}

/* Promo Section */
.page-ban-ca__promo-section {
  background-color: var(--deep-navy); /* #08162B */
  padding: 80px 0;
}

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

.page-ban-ca__promo-item {
  background-color: var(--card-bg); /* #10233F */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color); /* #244D84 */
}

.page-ban-ca__promo-title {
  font-size: 1.6em;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-ban-ca__promo-item p {
  color: var(--text-secondary);
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 80px 0;
}

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

.page-ban-ca__faq-item {
  background-color: var(--card-bg); /* #10233F */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color); /* #244D84 */
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg); /* Change to X when open */
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.page-ban-ca__faq-answer .page-ban-ca__btn-text {
  margin-top: 10px;
  display: inline-block;
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-navy); /* #08162B */
}

/* Images in content area */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Table styles for responsiveness */
.page-ban-ca table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  overflow-x: auto; /* Enable horizontal scroll for tables on small screens */
  display: block; /* Make table a block element to allow overflow-x */
  white-space: nowrap; /* Prevent content from wrapping inside cells */
}

.page-ban-ca table th,
.page-ban-ca table td {
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  text-align: left;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

.page-ban-ca table th {
  background-color: var(--primary-color);
  color: var(--text-main);
  font-weight: 700;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-ban-ca__hero-content {
    margin-top: 20px;
  }

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

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

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-tertiary,
  .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: 12px 20px !important;
    font-size: 1em !important;
  }

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

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

  .page-ban-ca__text-block {
    font-size: 0.95em;
  }

  .page-ban-ca__lobby-grid,
  .page-ban-ca__promo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2x2 layout for cards on mobile */
    gap: 15px; /* Reduced gap for mobile */
    padding: 0 15px;
  }

  .page-ban-ca__lobby-card,
  .page-ban-ca__guide-item,
  .page-ban-ca__tips-item,
  .page-ban-ca__promo-item,
  .page-ban-ca__faq-item {
    padding: 20px;
  }

  .page-ban-ca__card-title,
  .page-ban-ca__guide-step-title,
  .page-ban-ca__tips-title,
  .page-ban-ca__promo-title {
    font-size: 1.4em;
  }

  .page-ban-ca__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

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

  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9em;
  }

  /* Universal image and container responsive rules */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-ban-ca__container,
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__lobby-card,
  .page-ban-ca__guide-item,
  .page-ban-ca__tips-item,
  .page-ban-ca__promo-item,
  .page-ban-ca__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden; /* Prevent horizontal scroll */
  }
  .page-ban-ca table {
    font-size: 0.9em;
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
  }
}