.specialists-hero {
        padding-top: 160px;
        padding-bottom: 20px;
      }
      .doctors-grid-6 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 35px;
        margin-bottom: 60px;
        width: 100%;
      }
      
      /* Target focus rings for social icon anchors to prevent layout shift */
      .doctor-card .doctor-socials a:focus-visible {
        outline: 2px solid var(--text-dark);
        outline-offset: 3px;
        border-radius: 50%;
      }
      /* ==========================================================================
   BULLETPROOF RESPONSIVE NAVIGATION & CORRECT 'X' TRANSFORMS
   ========================================================================== */

/* Force layout container to hold its structure on a single row */
nav.glass-box {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative !important;
}

#menu-toggle {
  display: none !important;
}

/* Define explicit rendering values for the hamburger container */
.hamburger-btn {
  display: none;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 26px !important;
  height: 18px !important;
  cursor: pointer !important;
  z-index: 1000 !important;
}

/* Force lines to have structural thickness and center orientation origins */
.hamburger-btn span {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  background-color: #0f172a !important; 
  border-radius: 4px !important;
  
  /* 🌟 FIX: Force lines to rotate around their exact center point, preventing the tick mark bug */
  transform-origin: center !important; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINT SWITCH (TRIGGERS AT 1260PX FOR 8 LINK ITEMS)
   ========================================================================== */
@media (max-width: 1260px) {
  
  .hamburger-btn {
    display: flex !important;
  }

  nav .nav-links {
    position: absolute !important;
    top: calc(100% + 15px) !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.96) !important; 
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05) !important;
    
    flex-direction: column !important;
    padding: 30px !important;
    gap: 15px !important;
    align-items: stretch !important;
    text-align: center !important;
    margin: 0 !important;
    
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 999 !important;
  }

  nav .nav-links li {
    width: 100% !important;
    margin: 0 !important;
  }

  nav .nav-links li a {
    display: block !important;
    padding: 12px !important;
    width: 100% !important;
    font-size: 1.1rem !important;
    color: #0f172a !important;
    background: transparent !important;
  }
  /* ==========================================================================
     OPENED MENU 'X' ANIMATION TRIGGERS
     ========================================================================== */
  
  #menu-toggle:checked ~ .nav-links {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  /* 🌟 FIX: Balanced structural rotation values that form a perfect 'X' */
  #menu-toggle:checked ~ .hamburger-btn span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg) !important;
  }

  #menu-toggle:checked ~ .hamburger-btn span:nth-child(2) {
    opacity: 0 !important;
  }

  #menu-toggle:checked ~ .hamburger-btn span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg) !important;
  }
}
/* ==========================================================================
   PREMIUM MAGNETIC PULSE UNDERLINE SYSTEM (NAV & FOOTER LINKS)
   ========================================================================== */

/* 1. Clear styling and anchor contexts */
.nav-links li a,
.footer-links a,
.footer-section ul li a,
footer a {
  position: relative !important;
  text-decoration: none !important;
  padding-bottom: 6px !important; /* Spaces text away from the rising baseline */
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 2. Construct the Invisible Double-Sided Magnetic Dot baseline */
.nav-links li a::after,
.footer-links a::after,
.footer-section ul li a::after,
footer a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background-color: #0f172a !important; /* Deep Premium Charcoal Black Line */
  border-radius: 4px !important;
  opacity: 0 !important;
  
  /* Elastic bounce easing curve to mimic magnetic spring physics */
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              left 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease !important;
}

/* 3. Active Elastic Stretch Target Trigger on Hover */
.nav-links li a:hover::after,
.footer-links a:hover::after,
.footer-section ul li a:hover::after,
footer a:hover::after {
  width: 100% !important;
  left: 0 !important;
  opacity: 1 !important;
}