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

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as shared.css handles body padding */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0; /* Brand primary color */
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 675px; /* Limit height for desktop */
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title {
  color: #ffffff;
}

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

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

.page-ban-ca__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-ban-ca__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-ban-ca__btn-primary:hover {
  background-color: #d16b05;
  border-color: #d16b05;
}

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-ban-ca__light-bg .page-ban-ca__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-ban-ca__light-bg .page-ban-ca__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Game Grid Section */
.page-ban-ca__games-section .page-ban-ca__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

.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: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-ban-ca__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-ban-ca__game-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
  margin-top: auto;
  width: 100%;
}

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

/* Advantages Section */
.page-ban-ca__advantages-section .page-ban-ca__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-ban-ca__advantage-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  height: 100%;
}

.page-ban-ca__advantage-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Guide Section */
.page-ban-ca__guide-section .page-ban-ca__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-ban-ca__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  border-left: 5px solid #EA7C07;
}

.page-ban-ca__guide-step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-ban-ca__guide-item .page-ban-ca__text-block {
  color: #f0f0f0;
}

.page-ban-ca__guide-item a {
  color: #EA7C07;
  text-decoration: underline;
}

.page-ban-ca__guide-item a:hover {
  color: #d16b05;
}

/* Promotions Section */
.page-ban-ca__promotions-section .page-ban-ca__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-ban-ca__promo-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-ban-ca__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-ban-ca__promo-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-ban-ca__promo-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__promo-item .page-ban-ca__btn-primary {
  margin-top: auto;
  width: 100%;
}

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

/* FAQ Section */
.page-ban-ca__faq-section .page-ban-ca__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.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: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* Hide default marker for details */
}

.page-ban-ca__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details in webkit */
}

.page-ban-ca__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-ban-ca__faq-answer a {
  color: #EA7C07;
  text-decoration: underline;
}

.page-ban-ca__faq-answer a:hover {
  color: #d16b05;
}

/* CTA Section */
.page-ban-ca__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.page-ban-ca__cta-section .page-ban-ca__section-title {
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-ban-ca__cta-section .page-ban-ca__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: #555555;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-ban-ca__section-title {
    font-size: 2em;
  }
  .page-ban-ca__hero-image-wrapper {
    max-height: 500px;
  }
  .page-ban-ca__game-grid, .page-ban-ca__advantage-list, .page-ban-ca__promo-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }
  .page-ban-ca__hero-image-wrapper {
    max-height: 300px !important;
  }
  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
  }
  .page-ban-ca__hero-description {
    font-size: 1em !important;
    padding: 0 15px;
  }
  .page-ban-ca__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px;
  }
  .page-ban-ca__btn-primary, .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
  .page-ban-ca__section-title {
    font-size: 1.8em !important;
    margin-bottom: 25px !important;
    padding: 0 15px;
  }
  .page-ban-ca__container {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__text-block {
    font-size: 0.95em !important;
    padding: 0 15px;
    text-align: left;
  }
  .page-ban-ca__game-grid, .page-ban-ca__advantage-list, .page-ban-ca__promo-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-ban-ca__game-card, .page-ban-ca__advantage-item, .page-ban-ca__promo-item {
    padding: 20px !important;
  }
  .page-ban-ca__game-image, .page-ban-ca__promo-image, .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-ban-ca__game-title, .page-ban-ca__advantage-title, .page-ban-ca__promo-title {
    font-size: 1.3em !important;
  }
  .page-ban-ca__guide-item {
    padding: 20px !important;
  }
  .page-ban-ca__guide-step-title {
    font-size: 1.2em !important;
  }
  .page-ban-ca__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1em !important;
  }
  .page-ban-ca__faq-answer {
    padding: 15px 20px !important;
    font-size: 0.95em !important;
  }
  .page-ban-ca__view-all-games, .page-ban-ca__view-all-promos {
    margin-top: 30px !important;
  }
  .page-ban-ca__cta-section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  .page-ban-ca__cta-section .page-ban-ca__text-block {
    margin-bottom: 30px !important;
    padding: 0 15px;
  }
  /* Specific overrides for common elements to ensure mobile adaptability */
  .page-ban-ca__section, .page-ban-ca__card, .page-ban-ca__container, .page-ban-ca__cta-buttons, .page-ban-ca__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}