﻿.top-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background-color: #fff;
    overflow-x: auto; /* Enables scrolling on small screens */
}

nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-nav ul {
    display: flex;
    gap: 80px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .top-nav ul li a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: #333;
        font-size: 16px;
        font-weight: 500;
        transition: color 0.3s ease;
        white-space: nowrap; /* Prevents link text from wrapping */
    }

        .top-nav ul li a:hover {
            color: #ff6600;
        }

.download-btn {
    background-color: #ff6600;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

    .download-btn:hover {
        background-color: #e55b00;
    }

@media (max-width: 768px) {
    .top-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 10px 0;
        background-color: #fff;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    .top-nav ul {
        gap: 10px; /* Reduce gap for smaller screens */
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap; /* Keep all items in one row */
        padding: 0 10px;
    }

        .top-nav ul li a {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            color: #333;
            font-size: 10px;
            font-weight: 500;
            transition: color 0.3s ease;
            white-space: nowrap; /* Prevents link text from wrapping */
        }

        .top-nav ul::-webkit-scrollbar {
            display: none; /* Hide scrollbar in WebKit browsers */
        }
}
