/* Base styles for the Bắn Cá page */
.page-ban-ca {
  font-family: Arial, sans-serif;
  color: var(--text-main-color, #FFF6D6); /* Default text color for dark background */
  background-color: var(--background-color, #0A0A0A); /* Ensure consistency with body background */
}

/* Container for content sections */
.page-ban-ca__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-ban-ca__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1/H2 */
  color: var(--text-main-color, #FFF6D6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

/* Sub-titles for content blocks */
.page-ban-ca__sub-title {
  font-size: clamp(1.5em, 3vw, 2em);
  color: var(--primary-color, #F2C14E);
  margin-bottom: 20px;
  font-weight: bold;
}

/* Text blocks/paragraphs */
.page-ban-ca__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 20px;
}

/* Dark background sections */
.page-ban-ca__dark-section {
  background-color: var(--background-color-card, #111111); /* Using card background for dark sections */
  padding: 60px 0;
}

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

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  height: auto;
}

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

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

.page-ban-ca__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* CTA Buttons */
.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width for responsive buttons */
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding for small screens */
}

.page-ban-ca__cta-buttons--center {
  justify-content: center;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-outline {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons adapt to container width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-ban-ca__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%));
  color: #111111; /* Dark text on bright button */
  border: none;
}

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

.page-ban-ca__btn-secondary {
  background: var(--background-color-card, #111111);
  color: var(--text-main-color, #FFF6D6);
  border: 2px solid var(--border-color, #3A2A12);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--primary-color, #F2C14E);
  color: #111111;
  border-color: var(--primary-color, #F2C14E);
}

.page-ban-ca__btn-outline {
  background: transparent;
  color: var(--primary-color, #F2C14E);
  border: 2px solid var(--primary-color, #F2C14E);
}

.page-ban-ca__btn-outline:hover {
  background: var(--primary-color, #F2C14E);
  color: #111111;
}

/* List styles */
.page-ban-ca__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-ban-ca__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-main-color, #FFF6D6);
  font-size: 1.1em;
  line-height: 1.6;
}

.page-ban-ca__list li::before {
  content: '★'; /* Star bullet point */
  color: var(--primary-color, #F2C14E);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: 0;
}

/* Image with text block */
.page-ban-ca__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-ban-ca__image-text-block .page-ban-ca__content-image {
  flex: 1;
  min-width: 300px; /* Minimum width before wrapping */
  border-radius: 10px;
  object-fit: cover;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-ban-ca__image-text-block .page-ban-ca__text-content {
  flex: 1;
  min-width: 300px; /* Minimum width before wrapping */
}

/* Rule Grid (for rules section) */
.page-ban-ca__rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__rule-card {
  background: var(--background-color-card, #111111);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #FFF6D6);
  height: 100%; /* Ensure cards in grid have equal height */
  box-sizing: border-box;
}

.page-ban-ca__rule-card .page-ban-ca__card-title {
  color: var(--primary-color, #F2C14E);
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__rule-card p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color, #FFF6D6);
}

.page-ban-ca__rule-card a {
  color: var(--secondary-color, #FFD36B);
  text-decoration: underline;
}

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

.page-ban-ca__hall-card {
  background: var(--background-color-card, #111111);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-ban-ca__hall-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-ban-ca__hall-card .page-ban-ca__card-title {
  color: var(--primary-color, #F2C14E);
  font-size: 1.5em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__hall-card p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color, #FFF6D6);
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-ban-ca__hall-card .page-ban-ca__btn-outline {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.page-ban-ca__strategy-card {
  background: var(--background-color-card, #111111);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #FFF6D6);
  height: 100%;
  box-sizing: border-box;
}

.page-ban-ca__strategy-card .page-ban-ca__card-title {
  color: var(--primary-color, #F2C14E);
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__strategy-card p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 20px;
}

.page-ban-ca__strategy-card .page-ban-ca__content-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 15px;
  display: block;
}

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

.page-ban-ca__promo-card {
  background: var(--background-color-card, #111111);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-ban-ca__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}