/* Navbar base */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    /* allow height to be controlled by padding */
    min-height: 0;
    padding-top: 0.85rem;      /* taller at top */
    padding-bottom: 0.85rem;
    transition: padding 0.22s ease, background 0.3s ease, box-shadow 0.22s ease;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
  }
  
  /* On scroll: smaller padding = shorter navbar */
  .navbar.navbar-scrolled {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    box-shadow: 0 3px 14px rgba(15,23,42,0.08);
  }
  
  /* Fix left column width so shrinking logo doesn't move center nav */
  .navbar-left {
    width: 120px;
    flex: 0 0 200px;
  }
  
  /* Center block truly centered */
  .navbar-center {
    display: flex;
    justify-content: center;
  }
  .navbar-center .navbar-nav {
    flex-wrap: nowrap;
  }
  
  /* Logo size + animation */
  .navbar-logo {
    width: 110px;
    height: auto;
    transition: width 0.22s ease, transform 0.22s ease;
  }
  .navbar.navbar-scrolled .navbar-logo {
    width: 70px;
    transform: translateY(1px);
  }
  
  /* Typography for brand + links */
  .navbar-brand,
  .navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
  }
  
  /* Navbar link base styles */
  .navbar-nav .nav-link {
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1rem 5px;
  }
  
  /* Underline animation (centered) */
  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #16a249 0%, #2ad672 100%);
    transition: width 0.3s ease;
  }
  
  /* Active / hover underline */
  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    width: 80%;
  }
  
  /* Active / hover color */
  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:hover {
    color: var(--dark-green) !important;
    padding-bottom: 5px;
  }
  