.navbar-premium {
    background-color: #0d47a1 !important; /* darker blue to match screenshot tone */
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.navbar-premium .nav-link {
    color: white !important;
    font-weight: 500;
}
.navbar-premium .nav-link:hover,
.navbar-premium .nav-link.active {
    color: #ffca28 !important; /* gold/yellow accent if that fits your brand */
}
.navbar-premium .dropdown-menu {
    background-color: #0d47a1;
    border: none;
}
.navbar-premium .dropdown-item {
    color: white;
}
.navbar-premium .dropdown-item:hover {
    background-color: #1565c0;
}
.navbar-toggler {
    background: #fff;
    border: unset !important;
}

footer {
    background-color: #121212; /* or #0d1117 for GitHub-dark feel */
  }
  
  .footer-links li {
    margin-bottom: 0.65rem;
  }
  
  .footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
  }
  
  .contact-info i {
    width: 1.4rem;
    text-align: center;
  }
  
  @media (max-width: 767.98px) {
    footer h5 {
      margin-top: 2rem;
    }
    .navbar-brand {
      margin-left: 10px;
    }
    .navbar-toggler {
      margin-right: 10px;
    }
  }

  .about-testdriller down-footer {
    color: #fff !important;
  }

  .down-footer {
    color: #fff !important;
  }

  footer .footer-links {
    font-size: 0.875rem;          /* 14px – good readability, saves vertical space */
    line-height: 1.4;             /* tighter than default 1.6–1.8 */
  }
  
  footer .footer-links li {
    margin-bottom: 0.4rem;        /* reduced from ~0.65rem */
  }
  
  footer h5 {
    font-size: 1.1rem;            /* slightly smaller headings */
    margin-bottom: 1rem;          /* less space below titles */
  }
  
  footer p, footer .contact-info {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .navbar-premium .navbar-brand {
    font-size: 1.25rem !important;   /* brand text ("TestDriller") – adjust to 1.1rem if you want even smaller */
  }
  
  .navbar-premium .nav-link,
  .navbar-premium .dropdown-toggle {
    font-size: 0.9rem !important;    /* menu items ≈14.4px – feels compact yet readable */
    font-weight: 500;
  }
  
  .navbar-premium .dropdown-menu .dropdown-item {
    font-size: 0.9rem !important;
  }
  
  /* Optional: tighter padding between items if still feels wide */
  .navbar-premium .nav-item {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  /* Hover for better UX */
  .navbar-premium .nav-link:hover {
    color: #e0f7ff !important;
    text-decoration: underline;
  }

  /* Global mobile safety net */
@media (max-width: 767.98px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }
  
  .container, .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  h1.display-4, h2.display-3 {
    font-size: 2.2rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1.1rem !important;
  }
}
  