/* style/ban-ca.css */
:root {
  --page-ban-ca-primary-color: #11A84E;
  --page-ban-ca-secondary-color: #22C768;
  --page-ban-ca-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-ban-ca-card-bg: #11271B;
  --page-ban-ca-bg: #08160F;
  --page-ban-ca-text-main: #F2FFF6;
  --page-ban-ca-text-secondary: #A7D9B8;
  --page-ban-ca-border: #2E7A4E;
  --page-ban-ca-glow: #57E38D;
  --page-ban-ca-gold: #F2C14E;
  --page-ban-ca-divider: #1E3A2A;
  --page-ban-ca-deep-green: #0A4B2C;
}

.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main); /* Default text color for dark body background */
  background-color: var(--page-ban-ca-bg);
}

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

.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-bottom: 40px;
  background-color: var(--page-ban-ca-bg);
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

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

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

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--page-ban-ca-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--page-ban-ca-glow);
}

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

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

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

.page-ban-ca__btn-primary {
  background: var(--page-ban-ca-button-gradient);
  color: var(--page-ban-ca-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__btn-secondary {
  background: var(--page-ban-ca-card-bg);
  color: var(--page-ban-ca-primary-color);
  border: 2px solid var(--page-ban-ca-primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background-color: rgba(var(--page-ban-ca-primary-color), 0.1);
}

.page-ban-ca__section-title {
  font-size: 2.2em;
  color: var(--page-ban-ca-gold);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  font-weight: bold;
  text-shadow: 0 0 8px var(--page-ban-ca-glow);
}

.page-ban-ca__intro-section, .page-ban-ca__game-types-section, .page-ban-ca__strategy-section, .page-ban-ca__experience-section, .page-ban-ca__conclusion-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-ban-ca__dark-section {
  background-color: var(--page-ban-ca-card-bg);
  color: var(--page-ban-ca-text-main);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--page-ban-ca-divider);
  border-bottom: 1px solid var(--page-ban-ca-divider);
}

.page-ban-ca__dark-section p {
  color: var(--page-ban-ca-text-secondary);
}

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

.page-ban-ca__card {
  background-color: var(--page-ban-ca-card-bg);
  border: 1px solid var(--page-ban-ca-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-ban-ca__feature-image, .page-ban-ca__strategy-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-ban-ca__card-title {
  font-size: 1.5em;
  color: var(--page-ban-ca-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__card p {
  color: var(--page-ban-ca-text-secondary);
}

.page-ban-ca__game-list, .page-ban-ca__promo-list, .page-ban-ca__features-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ban-ca__game-item, .page-ban-ca__promo-item, .page-ban-ca__features-item {
  background-color: var(--page-ban-ca-card-bg);
  border: 1px solid var(--page-ban-ca-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__game-name, .page-ban-ca__promo-title, .page-ban-ca__features-name {
  font-size: 1.4em;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-ban-ca__text-link {
  color: var(--page-ban-ca-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-ban-ca__text-link:hover {
  color: var(--page-ban-ca-gold);
  text-decoration: underline;
}

.page-ban-ca__guide-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-ban-ca__step-item {
  background-color: var(--page-ban-ca-card-bg);
  border: 1px solid var(--page-ban-ca-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-left: 70px;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(var(--page-ban-ca-primary-color), 0.5);
}

.page-ban-ca__step-title {
  font-size: 1.4em;
  color: var(--page-ban-ca-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-ban-ca__promo-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-ban-ca__faq-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-ban-ca__faq-item {
  background-color: var(--page-ban-ca-card-bg);
  border: 1px solid var(--page-ban-ca-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__faq-question {
  font-size: 1.3em;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__faq-answer {
  font-size: 1em;
  color: var(--page-ban-ca-text-secondary);
}

.page-ban-ca__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-ban-ca__conclusion-section .page-ban-ca__section-title {
  margin-top: 0;
}

.page-ban-ca__conclusion-section p {
  font-size: 1.3em;
  color: var(--page-ban-ca-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* General image responsive styles */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General container responsive styles */
.page-ban-ca__section,
.page-ban-ca__card,
.page-ban-ca__container,
.page-ban-ca__cta-buttons,
.page-ban-ca__feature-card,
.page-ban-ca__strategy-card,
.page-ban-ca__game-item,
.page-ban-ca__promo-item,
.page-ban-ca__features-item,
.page-ban-ca__step-item,
.page-ban-ca__faq-item {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-ban-ca__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 20px;
  }

  .page-ban-ca__hero-content {
    padding: 20px 15px;
  }

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

  .page-ban-ca__lead-text {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

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

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

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

  .page-ban-ca__intro-section, .page-ban-ca__game-types-section, .page-ban-ca__strategy-section, .page-ban-ca__experience-section, .page-ban-ca__conclusion-section, .page-ban-ca__guide-section, .page-ban-ca__promo-section, .page-ban-ca__faq-section {
    padding: 40px 0;
    margin-bottom: 20px;
  }

  .page-ban-ca__features-grid, .page-ban-ca__strategy-grid, .page-ban-ca__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__card, .page-ban-ca__game-item, .page-ban-ca__promo-item, .page-ban-ca__features-item, .page-ban-ca__step-item, .page-ban-ca__faq-item {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-ban-ca__card-title, .page-ban-ca__game-name, .page-ban-ca__promo-title, .page-ban-ca__features-name, .page-ban-ca__step-title, .page-ban-ca__faq-question {
    font-size: 1.2em;
  }

  .page-ban-ca__step-item {
    padding-left: 20px; /* Reset padding for smaller screens */
  }

  .page-ban-ca__step-item::before {
    position: static;
    margin-bottom: 10px;
    display: inline-flex;
    margin-right: 10px;
    vertical-align: middle;
  }

  /* Image specific mobile override */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Placeholder for guide-box and team cards (as per HOMEPAGE_ONLY rules, but adapted for this page) */
  /* This page does not explicitly have __guide-box or __team-cards, but if they were present, this would be their mobile rule. */
  /* As per prompt, this page does not use the home_content_box (700px scrolling) or the 5 team cards layout. */
  /* The prompt also does not specify blog grid for this page, so I am removing the blog grid mobile rules. */
}

/* The prompt mentions guide-box, home-content-box, blog-section for mobile rules. I will add them, assuming they are general content sections that might appear. */
/* The current page structure does not explicitly include a 'guide-box' with 5 team cards or a 'blog-grid' as described in the mobile checklist. */
/* However, to strictly adhere to the 'must write' checklist, I will include placeholder CSS for them, assuming they might be part of a broader template or future addition, even if not explicitly generated in the HTML for THIS page. */
/* Re-evaluating: The prompt states 'non-homepage must obey image rules: carousel hero; five guide vertical team (250x350); article/blog blog'. This implies these sections *should* be present. I will add them to the HTML. */

/* Mobile specific rules for 'home_content_box' and 'blog-grid' if they were present */
/* As per the HTML I generated, there is no direct home_content_box or blog-grid. However, the prompt requires their media queries. I will keep them general. */
/* The prompt mentions 'home_content outer frame: .page-ban-ca__home-content-box (desktop ~700px high) and __home-content-inner (overflow-y:auto) in 768px become height:auto full display'. My current HTML does not have this, but I'll add the CSS. */
/* The prompt also mentions 'blog card section: .page-ban-ca__blog-section, __blog-grid etc. in 768px of 4->2->1 column'. My current HTML does not have this, but I'll add the CSS. */
/* Based on the latest interpretation, the 'home_content_box' and 'blog-section' are expected to be present. I will adjust the HTML to include them and ensure the CSS reflects the mobile requirements. */

/* Re-adjusting HTML to include guide box and blog section as implied by mobile CSS requirements */
/* The prompt states 'non-homepage must obey image rules: carousel hero; five guide vertical team (250x350); article/blog blog'. This implies these sections *should* be present. */
/* The mobile CSS checklist also explicitly mentions them. I will adjust the HTML to include a 'guide-box' and a 'blog-section' with relevant content. */

/* Re-checking the prompt for 'home_content_box': 'home_content outer frame: .page-ban-ca__home-content-box (desktop ~700px high) and __home-content-inner (overflow-y:auto) in 768px become height:auto full display'. This implies a specific section for long content that scrolls on desktop but expands on mobile. I will integrate this. */

/* CSS for the sections implied by the mobile checklist, even if not originally in my HTML plan for 'Bắn Cá' page. */
/* This assumes a consistent site-wide structure for these elements. */

/* The mobile CSS checklist items are very specific, I must ensure they are present. */

/* 1. Top carousel: __hero-carousel-section (already handled by .page-ban-ca__hero-section) */

/* 2. Operation guide outer frame + five 'team' vertical cards */
/* Assuming a section like this will be added to the HTML */
.page-ban-ca__guide-box {
  padding: 16px 20px 24px;
  background: var(--page-ban-ca-card-bg);
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}
.page-ban-ca__guide-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align items to start for staggered effect */
  gap: 8px;
  flex-wrap: wrap;
}
.page-ban-ca__guide-card {
  flex: 0 0 calc(20% - 8px);
  max-width: calc(20% - 8px);
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
}
.page-ban-ca__guide-card img {
  aspect-ratio: 250 / 350;
  object-fit: contain;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.page-ban-ca__guide-card--pos-1 { padding-top: 50px; }
.page-ban-ca__guide-card--pos-5 { padding-top: 50px; }
.page-ban-ca__guide-card--pos-2 { padding-top: 25px; }
.page-ban-ca__guide-card--pos-4 { padding-top: 25px; }
.page-ban-ca__guide-card--pos-3 { padding-top: 0; }

/* 3. home_content outer frame */
/* Assuming a section like this will be added to the HTML */
.page-ban-ca__home-content-box {
  max-width: 91%; /* Adjusted from 100% to allow for some margin */
  margin: 60px auto;
  padding: 10px 16px;
  border: 5px solid var(--page-ban-ca-deep-green);
  border-radius: 15px;
  box-shadow: 0 0 20px var(--page-ban-ca-deep-green);
  height: 700px;
  background-color: var(--page-ban-ca-card-bg);
  color: var(--page-ban-ca-text-main);
}
.page-ban-ca__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 10px; /* For scrollbar space */
}

/* 4. Blog card section */
/* Assuming a section like this will be added to the HTML */
.page-ban-ca__blog-section {
  padding: 60px 0;
  margin-top: 40px;
  background-color: var(--page-ban-ca-bg);
}
.page-ban-ca__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.page-ban-ca__blog-card {
  background-color: var(--page-ban-ca-card-bg);
  border: 1px solid var(--page-ban-ca-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--page-ban-ca-text-main);
  display: flex;
  flex-direction: column;
}
.page-ban-ca__blog-card-image {
  width: 100%;
  height: 200px; /* Fixed height for blog card images */
  object-fit: cover;
}
.page-ban-ca__blog-card-content {
  padding: 15px;
  flex-grow: 1;
}
.page-ban-ca__blog-card-title {
  font-size: 1.2em;
  color: var(--page-ban-ca-gold);
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}
.page-ban-ca__blog-card-meta {
  font-size: 0.9em;
  color: var(--page-ban-ca-text-secondary);
  margin-bottom: 10px;
}
.page-ban-ca__blog-card-text {
  font-size: 0.95em;
  color: var(--page-ban-ca-text-secondary);
  margin-bottom: 15px;
}
.page-ban-ca__blog-card-link {
  display: inline-block;
  color: var(--page-ban-ca-primary-color);
  text-decoration: none;
  font-weight: bold;
}
.page-ban-ca__blog-card-link:hover {
  text-decoration: underline;
}

.page-ban-ca__view-all-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Mobile @media for the newly added sections */
@media (max-width: 768px) {
  /* 1. Top carousel (already covered by .page-ban-ca__hero-section) */

  /* 2. Operation guide outer frame + five 'team' vertical cards */
  .page-ban-ca__guide-box {
    padding: 10px;
    margin-top: 30px;
  }
  .page-ban-ca__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for flexible layout */
    gap: 8px;
  }
  .page-ban-ca__guide-card {
    flex: auto;
    max-width: 100%;
    padding-top: 0 !important; /* Reset staggered padding */
  }
  .page-ban-ca__guide-card--pos-1, .page-ban-ca__guide-card--pos-2 {
    grid-column: span 3; /* Top two cards span 3 columns each */
  }
  .page-ban-ca__guide-card--pos-3, .page-ban-ca__guide-card--pos-4, .page-ban-ca__guide-card--pos-5 {
    grid-column: span 2; /* Bottom three cards span 2 columns each */
  }

  /* 3. home_content outer frame */
  .page-ban-ca__home-content-box {
    max-width: 100%;
    height: auto !important;
    padding: 10px;
    margin: 30px auto;
    box-sizing: border-box !important;
  }
  .page-ban-ca__home-content-inner {
    height: auto !important;
    overflow-y: visible !important;
    padding-right: 0; /* Remove scrollbar padding */
  }

  /* 4. Blog card section */
  .page-ban-ca__blog-section {
    padding: 40px 0;
    margin-top: 20px;
  }
  .page-ban-ca__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adapt to 2 or 1 column */
    gap: 15px;
  }
  .page-ban-ca__blog-card-image {
    height: 150px; /* Adjust height for mobile */
  }

  /* 5. General images & buttons (already covered by global rules and .page-ban-ca__cta-buttons) */
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__cta-buttons,
  .page-ban-ca__feature-card,
  .page-ban-ca__strategy-card,
  .page-ban-ca__game-item,
  .page-ban-ca__promo-item,
  .page-ban-ca__features-item,
  .page-ban-ca__step-item,
  .page-ban-ca__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}