.nav-bar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 900px; /* Match body max-width */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2eaadc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #2699c7;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    color: #37352f;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: #f5f5f5;
}

.nav-item.active {
    color: #2eaadc;
    background-color: #e6f7ff;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    body {
        padding-top: 120px; /* Increase top padding for mobile */
    }
}