nav {
    position: fixed;
    top: 137px; /* Below the header */
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    background-color: #00796b;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto; /* Allows horizontal scrolling if links don't fit */
    white-space: nowrap; /* Keep all links on one line */
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 6px;
    font-weight: bold;
    /* This clamp is fine. It works for viewports roughly > 720px */
    font-size: clamp(0.9rem, 2vw, 1.3rem);
}

/* For smaller screens, set a specific, smaller font size */
@media (max-width: 400px) {
    nav a {
        font-size: 0.85rem;
    }
}

/* For even smaller screens, make it slightly smaller again */
@media (max-width: 370px) {
    nav a {
        font-size: 0.80rem;
    }
}

nav a:hover {
    text-decoration: underline;
}