.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(70px, 8vw, 90px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-img {
    width: clamp(40px, 6vw, 60px);
    height: clamp(40px, 6vw, 60px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.school-name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.school-name {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.location-small-head {
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    color: #64748b;
    font-weight: 500;
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    padding: 0.75rem 0;
    position: relative;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50px);
}

@media (max-width:1099px){
    .nav-dropdown:hover .dropdown-content {
        transform: translateX(0px);
    }
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #374151;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #3b82f6;
    padding-left: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(1px, 3px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Responsive */
@media (max-width: 1099px) {
    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        transition: left 0.3s ease;
        padding-top: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 90%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #f1f5f9;
        font-size: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-dropdown {
        width: 90%;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        display: none;
    }
    
    .nav-dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .dropdown-content a:hover {
        padding-left: 1rem;
        background: #e2e8f0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .hamburger {
        gap: 3px;
    }
    
    .bar {
        width: 22px;
        height: 2.5px;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .nav-container {
        height: 90px;
    }
    
    .nav-menu {
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .dropdown-content {
        min-width: 220px;
    }
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.nav-link:focus,
.dropdown-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}


.nav-link.active,
.dropdown-content a.active {
  color: #3b82f6;
}

.nav-link.active::after {
  width: 100%;
}

.nav-dropdown.active > .dropdown-toggle {
  color: #3b82f6;
}
