#header {
    padding: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
}

#header .inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5em 2em !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    position: relative !important;
    height: 4.5em !important;
}

#header .inner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4.5em;
    background: #fff;
    z-index: -1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#header nav {
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    top: 0 !important;
    background: transparent !important;
    z-index: 1 !important;
    right: auto !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

#header nav ul {
    display: flex !important;
    gap: 2em !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: center !important;
    background: transparent !important;
    justify-content: center !important;
    height: 100% !important;
}

#header nav ul li {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

#header nav ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #333 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    height: 100% !important;
    line-height: normal !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    text-transform: none !important;
}

#header nav ul li a img {
    width: 3.5em !important;
    height: 3.5em !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: transparent !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

#header nav ul li a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

#header nav ul li a[href="index.html"]:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

#header nav ul li a[href="Giro.html"]:hover {
    background: rgba(255, 105, 180, 0.1) !important;
}

#header nav ul li a[href="Tour.html"]:hover {
    background: rgba(247, 212, 23, 0.1) !important;
}

#header nav ul li a[href="Vuelta.html"]:hover {
    background: rgba(200, 16, 46, 0.1) !important;
}

/* Responsive navigation */
@media screen and (max-width: 736px) {
    #header .inner {
        padding: 0.5em 1em !important;
        height: 4em !important;
    }

    #header .inner::after {
        height: 4em !important;
    }

    #header nav {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        top: 0 !important;
    }

    #header nav ul {
        gap: 1.5em !important;
    }

    #header nav ul li a {
        background: transparent !important;
        height: auto !important;
        line-height: normal !important;
    }

    #header nav ul li a img {
        width: 3.5em !important;
        height: 3.5em !important;
        background: transparent !important;
    }
}

/* Add padding to main content to prevent it from appearing under fixed header */
#main {
    padding-top: 8em !important;
}

/* Active page navigation colors */
.giro-page #header nav ul li a[href="Giro.html"] {
    box-shadow: 0 0 0 2px #ff69b4 !important;
}

.tour-page #header nav ul li a[href="Tour.html"] {
    box-shadow: 0 0 0 2px #f7d417 !important;
}

.vuelta-page #header nav ul li a[href="Vuelta.html"] {
    box-shadow: 0 0 0 2px #c8102e !important;
} 