/* Desktop: Horizontal navigation with logo */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

#header h1 {
    margin: 0;
    flex-shrink: 0;
    position: absolute;
    left: 1.25em;
}

#header h1 img {
    height: 60px;
}

#header h1 .text {
    display: none; /* Hide text on desktop since we show logo */
}

#header nav {
    display: flex;
    margin-left: auto;
}

#header nav ul.links {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

#header nav ul.links li {
    padding: 0;
    display: inline-block;
}

#header nav ul.links li a {
    display: inline-block;
    padding: 0 0.75em;
    color: inherit;
    text-decoration: none;
    line-height: inherit;
    text-transform: uppercase;
    transition: color 0.2s ease-in-out;
}

#header nav ul.links li a:hover {
    color: #444;
}

#header nav ul.links li:last-child a {
    padding-right: 1.25em;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    body {
        padding-top: 0px; /* Adjust padding to accommodate header height */
    }
    #header nav {
        background-color: blue;
    }
    
    #header h1 {
        position: static;
        text-align: center;
        width: 100%;
        left: auto;
    }
    
    #header h1 img {
        /*display: none;  Hide logo on mobile */
    }
    
    #header h1 .text {
        display: inline; /* Show text on mobile */
        font-size: 1.2em;
        font-weight: 700;
    }
}
