/* Base styles for the Bắn Cá page */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Page background color */
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Rely on body padding for header offset, then add a small top padding */
  padding-bottom: 60px;
  background-color: #0A0A0A;
}

.page-ban-ca__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 15px;
}

.page-ban-ca__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: #FFD36B; /* Highlighted title color */
  margin-bottom: 10px;
}

.page-ban-ca__intro-text {
  font-size: 1.1rem;
  color: #FFF6D6;
}

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

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #FFF6D6;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-ban-ca__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B;
  border: 2px solid #3A2A12; /* Border color */
}

.page-ban-ca__btn-secondary:hover {
  background: #1e1e1e;
  color: #FFF6D6;
  border-color: #FFD36B;
}

.page-ban-ca__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #FFF6D6;
  border: none;
}

.page-ban-ca__btn-small:hover {
  opacity: 0.9;
}

.page-ban-ca__hero-image {
  flex: 1 1 40%;
  min-width: 280px;
  text-align: center;
}

.page-ban-ca__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* General Content Area */
.page-ban-ca__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 15px;
}

.page-ban-ca__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #FFD36B;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-ban-ca__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD86A 0%, #DDA11D 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-ban-ca__text-block a {
  color: #FFD36B;
  text-decoration: underline;
}

/* Game Showcase Section */
.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: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-ban-ca__game-title {
  font-size: 1.5rem;
  color: #FFD36B;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__game-description {
  font-size: 0.95rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Guide Section */
.page-ban-ca__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__guide-step {
  text-align: center;
  background-color: #111111; /* Card BG */
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__icon-box-media {
  width: 180px; /* Smaller for guide steps */
  height: 180px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #3A2A12; /* Border color */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image is round */
  display: block;
}

.page-ban-ca__step-title {
  font-size: 1.3rem;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-ban-ca__step-description {
  font-size: 0.95rem;
  color: #FFF6D6;
}

/* Promotion Section */
.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-color: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-ban-ca__promo-title {
  font-size: 1.4rem;
  color: #FFD36B;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__promo-description {
  font-size: 0.95rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-ban-ca__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-ban-ca__faq-list {
  margin-top: 40px;
}

.page-ban-ca__faq-item {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  color: #FFF6D6;
}

.page-ban-ca__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFD36B;
}

.page-ban-ca__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFD36B;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF6D6;
}

/* CTA Section */
.page-ban-ca__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #0A0A0A;
}

.page-ban-ca__cta-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.page-ban-ca__cta-text-wrap {
  flex: 1 1 55%;
  min-width: 300px;
}

.page-ban-ca__cta-text-wrap .page-ban-ca__section-title {
  text-align: left;
  margin-bottom: 20px;
}

.page-ban-ca__cta-text-wrap .page-ban-ca__section-title::after {
  margin-left: 0;
}

.page-ban-ca__cta-buttons--end {
  flex: 1 1 auto;
  justify-content: flex-end;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column-reverse; /* Image above content on smaller screens */
    text-align: center;
  }

  .page-ban-ca__hero-content {
    align-items: center;
    text-align: center;
  }

  .page-ban-ca__cta-text-wrap .page-ban-ca__section-title {
    text-align: center;
  }

  .page-ban-ca__cta-text-wrap .page-ban-ca__section-title::after {
    margin: 15px auto 0;
  }

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

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

@media (max-width: 768px) {
  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-container {
    padding: 30px 15px;
    gap: 30px;
  }

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

  .page-ban-ca__intro-text {
    font-size: 1rem;
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-small {
    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;
  }

  /* Content Sections */
  .page-ban-ca__content-area {
    padding: 40px 15px;
  }

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

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

  /* Game Showcase Grid */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

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

  /* Guide Steps (Module 1 equivalent, using feature type) */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-ban-ca__icon-box-media {
    width: 150px; /* Smaller round images for mobile */
    height: 150px;
    margin-bottom: 20px;
  }

  /* Promo Section */
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-ban-ca__promo-image {
    height: 200px; /* Adjust promo image height for mobile */
  }

  /* FAQ Section */
  .page-ban-ca__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* CTA Section */
  .page-ban-ca__cta-flex {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .page-ban-ca__cta-text-wrap .page-ban-ca__section-title {
    text-align: center;
  }

  .page-ban-ca__cta-text-wrap .page-ban-ca__section-title::after {
    margin: 15px auto 0;
  }

  .page-ban-ca__cta-buttons--end {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to button container */
  }

  /* Generic Image and Container rules for mobile */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Exception for round images in guide section - maintain aspect ratio */
  .page-ban-ca__icon-box-media img {
    height: 100% !important; /* Override height:auto for round images */
    object-fit: cover !important;
  }
}