/* --- TOP NAVIGATION (≈ 50px height) --- */
.top-nav {
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    padding: 6px 16px;
    /* Adjusted to maintain 50px height */
    height: 50px;
    box-sizing: border-box;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

/* --- LEFT: Logo + Hamburger --- */
.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-logo {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* --- CENTER NAV LINKS --- */
.nav-center {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-center li a {
    text-decoration: none;
    color: #ddd;

    /* NEW REQUIRED SIZE */
    font-size: 16px;

    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1;
}

.nav-center li a:hover {
    background: #444;
    color: #fff;
}

.nav-center .active {
    background: #0073ff;
    color: #fff !important;
}

/* --- RIGHT BUTTONS --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* --- HAMBURGER ICON --- */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* --- MOBILE MENU --- */
@media (max-width: 900px) {

    .hamburger {
        display: block;
    }

    .nav-center {
        display: none;
        flex-direction: column;

        position: absolute;
        top: 100%;
        /* BELOW navbar */
        left: 0;
        width: 100%;

        background: rgba(0, 0, 0, 0.95);
        padding: 18px 0;
        z-index: 1500;
    }

    .nav-center.show-menu {
        display: flex;
    }

    .nav-center li {
        padding: 12px 20px;
        width: 100%;
    }

    .nav-center li a {
        font-size: 18px;
        /* Larger touch-friendly size */
        width: 100%;
        display: block;
        padding: 12px 16px;
    }
}