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

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

.page-ban-ca__dark-bg {
  background-color: var(--background-color, #0D0E12);
}

.page-ban-ca__text-main {
  color: var(--text-main-color, #FFF3E6);
}

.page-ban-ca__card {
  background-color: var(--card-bg-color, #17191F); /* Using custom card background */
  border: 1px solid var(--border-color, #A84F0C); /* Using custom border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-main-color, #FFF3E6);
  line-height: 1.2;
}

.page-ban-ca__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-main-color, #FFF3E6);
}

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E67800 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: #FF8C1A; /* Brand primary color for text */
  border: 2px solid #FF8C1A;
  box-shadow: 0 2px 10px rgba(255, 140, 26, 0.2);
}

.page-ban-ca__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1);
  color: #FFB04D;
  border-color: #FFB04D;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.3);
  transform: translateY(-2px);
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
  object-position: center;
}

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

.page-ban-ca__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--text-main-color, #FFF3E6);
}

.page-ban-ca__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  color: var(--text-main-color, #FFF3E6);
}

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

/* Intro Section */
.page-ban-ca__intro-section p {
  font-size: 17px;
  margin-bottom: 15px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ban-ca__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-ban-ca__game-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-ban-ca__game-title a {
  color: var(--text-main-color, #FFF3E6);
  text-decoration: none;
}

.page-ban-ca__game-title a:hover {
  color: #FFB04D;
}

.page-ban-ca__game-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__game-btn {
  margin-top: auto;
  width: 100%;
}

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

.page-ban-ca__guide-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-ban-ca__step-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Strategy Section */
.page-ban-ca__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.page-ban-ca__article-body h3 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FF8C1A; /* Primary brand color for subtitles */
}

.page-ban-ca__article-body p {
  margin-bottom: 15px;
}

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

.page-ban-ca__promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-ban-ca__promo-text {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-ban-ca__benefit-item {
  text-align: center;
}

.page-ban-ca__benefit-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-ban-ca__benefit-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-ban-ca__benefit-description {
  font-size: 16px;
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #A84F0C);
  overflow: hidden;
  background: var(--card-bg-color, #17191F);
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: rgba(255, 140, 26, 0.1);
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color, #FFF3E6);
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FF8C1A; /* Brand primary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05);
  border-radius: 0 0 5px 5px;
}

/* Outro Section */
.page-ban-ca__outro-section {
  text-align: center;
  padding-bottom: 60px;
}

.page-ban-ca__outro-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Copyright */
.page-ban-ca__copyright {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  border-top: 1px solid var(--border-color, #A84F0C);
  background-color: var(--background-color, #0D0E12);
}

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

  .page-ban-ca__section-title {
    font-size: clamp(26px, 4vw, 38px);
  }

  .page-ban-ca__main-title {
    font-size: clamp(32px, 5vw, 48px);
  }

  .page-ban-ca__hero-description {
    font-size: clamp(16px, 2.5vw, 20px);
  }

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

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

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

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-image-wrapper {
    max-height: 400px; /* Adjust max height for mobile */
  }

  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset;
    height: auto !important;
  }

  .page-ban-ca__main-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }

  .page-ban-ca__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-ban-ca__hero-cta-buttons,
  .page-ban-ca__cta-promo-buttons,
  .page-ban-ca__outro-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General images and containers */
  .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,
  .page-ban-ca__hero-content,
  .page-ban-ca__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Products/Games grid - 2 columns */
  .page-ban-ca__games-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__promo-grid,
  .page-ban-ca__benefits-grid {
    grid-template-columns: 1fr 1fr; /* Two columns for mobile */
    gap: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  .page-ban-ca__game-card,
  .page-ban-ca__guide-step,
  .page-ban-ca__promo-card,
  .page-ban-ca__benefit-item {
    padding: 15px;
  }

  .page-ban-ca__game-image,
  .page-ban-ca__benefit-image {
    height: 150px; /* Adjust height for smaller screens */
  }

  .page-ban-ca__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 25px;
  }

  .page-ban-ca__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Article body / Strategy section */
  .page-ban-ca__article-body {
    font-size: 15px;
    line-height: 1.6;
  }

  .page-ban-ca__article-body h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  /* FAQ */
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question { padding: 15px; }
  .page-ban-ca__faq-qtext { font-size: 16px; }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer { padding: 0 15px 15px; }

  .page-ban-ca__copyright {
    padding: 15px;
    font-size: 13px;
  }
}