.top-nav {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-item {
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #007bff;
}

.nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.lang-switch {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-switch:hover {
    background: #e9ecef;
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-link {
        padding: 0.8rem 1rem;
    }
    
    .nav-list {
        padding-bottom: 5px; /* For the scrollbar */
    }
    
    /* Hide scrollbar but keep functionality */
    .nav-list::-webkit-scrollbar {
        display: none;
    }
    
    .nav-list {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .lang-switch {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
}
