.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
}
.top-navbar .logo {
  flex-shrink: 0;
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link, .nav-links a {
  min-width: 120px;
  text-align: center;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
  display: inline-block;
}
@media (max-width: 900px) {
  .nav-link, .nav-links a {
    width: 100%;
    min-width: 120px;
    max-width: 250px;
    margin: 0.25rem auto;
  }
}
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    display: none !important;
    z-index: 100;
    border-bottom: 1px solid #eee;
    text-align: center;
    box-sizing: border-box;
  }
  .nav-links.open {
    display: flex !important;
  }
  .navbar-toggle {
    display: block;
    z-index: 200;
    margin-left: auto;
    margin-right: 0;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .top-navbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    position: relative;
  }
}

/* Hamburger/X icon animation */
.navbar-toggle .fa-bars { display: inline; }
.navbar-toggle.active .fa-bars { display: none; }
.navbar-toggle .fa-times { display: none; }
.navbar-toggle.active .fa-times { display: inline; }
