﻿.wrapper,
.container,
.header {
    overflow-y: visible;
}


#menu {
    display: block;
    position: static; /* Remove absolute positioning */
    margin-right: 30px; /* Let flexbox handle spacing */
    z-index: 1;
}

.menu.menu-header {
    background-color: transparent !important;
}

    #menu ul {
        display: flex;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

        #menu ul li {
            position: relative;
        }

.nav {
    display: flex;
    align-items: center;
    max-width: 300px;
    width: 100%;
}

.logo {
    max-width: 300px;
    height: auto;
    display: block;
    margin-right: 20px;
    margin-top: 5px;
}

.nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
#hamburger-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding-right: 10px;
    padding: 10px 30px;
}

.header-inner {
    display: flex;
    align-items: center; /* Vertically centers logo and hamburger */
    justify-content: space-between; /* Pushes logo left, hamburger right */
    padding: 10px 20px;
}

.header.menu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 2000;
    overflow: visible;
}

    .header.menu-header #hamburger-toggle {
        position: absolute;
        right: 20px; /* Adjust this for desired padding from edge */
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
    }

.test-warning-banner {
    background-color: #c62828; /* deep red */
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 18px 24px;
    border-radius: 6px;
    margin: 0 40px;
    text-align: center;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 20px;
    }

    .logo {
        max-width: 120px;
        margin: 0;
        flex: 0 0 auto;
    }

    #hamburger-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above header content */
}

    #menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        position: fixed;
        top: 100px;
        right: 0;
        width: 80%;
        max-width: 150px;
        background-color: #fff;
        z-index: 1000;
    }

        #menu.open {
            display: block;
            opacity: 1;
            visibility: visible;
        }

        #menu ul {
            flex-direction: column;
            padding: 0;
            margin: 0;
            gap: 10px;
        }

        #menu li {
            padding: 10px;
            border-bottom: 1px solid #eee;
        }

    .nav {
        max-width: 180px;
    }
}