/* ============================================================
   Responsive Breakpoints — Blue Vue Health Care
   Breakpoints: 1200px | 992px | 768px | 576px | 480px
   ============================================================ */

/* ─── Tablets & Smaller (max 992px) ─────────────────────── */
@media (max-width: 992px) {

  /* Responsive utility top-bar instead of hiding it */
  .top-bar { display: block; padding: 10px 0; }
  .top-bar .container { flex-direction: column; gap: 10px; text-align: center; justify-content: center; }
  .top-bar-contact { flex-wrap: wrap; justify-content: center; gap: 15px; }
  .top-bar-social { width: 100%; justify-content: center; flex-wrap: wrap; margin-top: 5px; }
  .bv-top-bar-search { margin-left: 0 !important; width: 100%; max-width: 300px; margin: 5px auto 0 !important; justify-content: space-between; }
  .bv-top-bar-search input { width: calc(100% - 30px) !important; }

  /* Nav wrapper */
  .main-nav-wrapper { position: relative; }
  .main-navigation { display: block; }
  .main-navigation ul { display: none; }

  /* Hamburger toggle */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--bv-primary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
  }
  .menu-toggle:hover { color: var(--bv-secondary); }

  /* Mobile nav open */
  .main-navigation.toggled ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bv-bg-primary);
    box-shadow: var(--bv-shadow-lg);
    padding: 15px 20px;
    z-index: 1001;
    gap: 0;
    border-top: 2px solid var(--bv-primary);
  }
  .main-navigation.toggled li {
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--bv-border-light);
    padding-bottom: 5px;
    margin-bottom: 5px;
  }
  .main-navigation.toggled li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .main-navigation.toggled a {
    padding: 5px 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--bv-text-dark);
  }
  .main-navigation.toggled ul ul {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    padding-top: 5px;
    display: none;
    background: none;
    border-radius: 0;
    border-top: none;
    margin-top: 5px;
  }
  .main-navigation.toggled li.menu-item-has-children.active > ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .dropdown-toggle-btn {
    position: absolute;
    right: 0;
    top: 4px;
    background: none;
    border: none;
    color: var(--bv-primary);
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
  }

  /* Header CTA */
  .header-cta { display: none; }

  /* Footer 2 cols */
  .footer-widgets { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-split { flex-direction: column; gap: 30px; }
  .about-image, .about-content { width: 100%; flex: none; }

  /* Packages */
  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  /* News grid 2-col */
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Hero dock */
  .bv-hero-dock {
    border-radius: 50px !important;
    bottom: -28px !important;
    max-width: calc(100% - 32px) !important;
    width: 100% !important;
    padding: 6px !important;
  }
  .bv-hero-dock-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    scrollbar-width: none !important;
  }
  .bv-hero-dock-inner::-webkit-scrollbar { display: none !important; }
  .bv-dock-btn {
    flex: 0 0 auto !important;
    padding: 10px 20px !important;
    font-size: 0.84rem !important;
    border-radius: 40px !important;
    gap: 6px !important;
  }
  .bv-dock-btn i { font-size: 0.95rem !important; }

  /* Services page grid */
  .services-overview-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Doctors archive grid */
  .bv-doctors-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Health packages page */
  .bv-packages-filter { flex-wrap: wrap; gap: 8px; }

  /* Stats row in service pages */
  .bv-service-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* Blog sidebar stacks below content */
  .bv-blog-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── Mobile Devices (max 768px) ─────────────────────────── */
@media (max-width: 768px) {

  /* Typography */
  h1 { font-size: 1.9rem !important; }
  h2 { font-size: 1.6rem !important; }
  h3 { font-size: 1.3rem !important; }

  .section-title { font-size: 1.7rem !important; }
  .section-subtitle { font-size: 0.95rem !important; }

  /* Container padding */
  .container { padding-left: 16px !important; padding-right: 16px !important; }

  /* Footer: single column */
  .footer-widgets { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    font-size: 0.83rem;
  }

  /* Packages stacked */
  .packages-grid { grid-template-columns: 1fr; gap: 30px; }
  .packages-grid .popular-package { transform: none !important; margin: 0 !important; }
  .packages-grid .popular-package:hover { transform: translateY(-5px) !important; }

  /* News/blog grid: single column */
  .news-grid { grid-template-columns: 1fr; gap: 24px; }
  .bv-blog-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Doctors single column */
  .bv-doctors-grid { grid-template-columns: 1fr !important; }

  /* Services page grid 1-col */
  .services-overview-grid { grid-template-columns: 1fr !important; }

  /* Service page stats 2-col */
  .bv-service-stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* Testimonials carousel: hide side cards */
  .testimonial-grid { grid-template-columns: 1fr; }

  /* Hero text */
  .bv-hero-title { font-size: 1.8rem !important; line-height: 1.25 !important; }
  .bv-hero-subtitle { font-size: 0.95rem !important; }

  /* Page header banner */
  .page-header-banner { padding: 50px 0 !important; }
  .page-header-banner h1 { font-size: 1.8rem !important; }

  /* Single blog post */
  .bv-single-post-body { padding: 24px 16px; }
  .bv-author-box { flex-direction: column; text-align: center; padding: 24px 16px !important; }
  .bv-post-nav-row { flex-direction: column; gap: 16px; }

  /* Appointment / Contact form */
  .bv-appointment-form .form-row { flex-direction: column; gap: 16px; }

  /* Search bar in top-bar (hidden anyway, but safety) */
  .bv-top-bar-search input { width: 140px !important; }

  /* Health packages page filter */
  .bv-packages-filter { justify-content: flex-start; gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .bv-filter-btn { flex: 0 0 auto; font-size: 0.82rem; padding: 8px 16px; }

  /* Vaccine / service page feature grid */
  .bv-feature-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .bv-procedure-grid { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* Doctor single page layout */
  .doctor-detail-layout { flex-direction: column !important; gap: 24px !important; }
  .doctor-detail-sidebar { width: 100% !important; }
}

/* ─── Small Mobile (max 576px) ───────────────────────────── */
@media (max-width: 576px) {

  /* Logo */
  .site-branding img { max-height: 52px; }
  .site-title { font-size: 1.1rem; }

  /* Section spacing */
  .py-5 { padding-top: 40px !important; padding-bottom: 40px !important; }

  /* Doctors grid force 1-col */
  .bv-doctors-grid { grid-template-columns: 1fr !important; gap: 18px !important; }

  /* Services grid force 1-col */
  .bv-services-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .services-overview-grid { grid-template-columns: 1fr !important; gap: 14px !important; }

  /* Service stats 1-col on tiny screens */
  .bv-service-stats { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* Hero */
  .bv-hero-title { font-size: 1.5rem !important; }
  .bv-hero-btns { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
  .bv-btn-solid, .bv-btn-outline-white { width: 100% !important; justify-content: center !important; }

  /* News card thumbnail height */
  .news-thumbnail { height: 180px !important; }
  .bv-blog-card-image { height: 190px !important; }

  /* Footer bottom stack */
  .footer-bottom { flex-direction: column; text-align: center; gap: 4px; }

  /* Health packages page cards */
  .bv-package-card { padding: 24px 18px; }
  .bv-package-price { font-size: 2rem; }

  /* Page header */
  .page-header-banner { padding: 40px 0 !important; min-height: 160px !important; }
  .page-header-banner h1 { font-size: 1.5rem !important; }
  .breadcrumbs { font-size: 0.8rem; }

  /* Scroll to top button */
  .scroll-to-top { width: 40px !important; height: 40px !important; bottom: 16px !important; right: 16px !important; font-size: 0.9rem !important; }

  /* Newsletter form in footer */
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input { width: 100%; border-radius: 8px !important; }
  .newsletter-form button { width: 100%; border-radius: 8px !important; }

  /* Section header underline */
  .section-title::after { width: 50px !important; }
}

/* ─── Extra Small (max 480px) ───────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 1.6rem !important; }
  h2 { font-size: 1.4rem !important; }

  /* Testimonial card padding */
  .testimonial-card { padding: 20px 16px !important; }

  /* Doctor card */
  .bv-doctor-card { padding: 0; }
  .bv-doctor-info { padding: 16px !important; }

  /* Search results */
  .search-result-item { flex-direction: column; gap: 10px; }

  /* Menu items font */
  .main-navigation.toggled a { font-size: 0.95rem; }
}
