#logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
}

#header-topbar {
    background: linear-gradient(to top, #d1d5db, #e5e7eb);
}

#header-topbar .header-container {
    display: flex;
    justify-content: flex-end;
}

#header-topbar .header-utility ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 8px 10px 8px 10px;
}

#header-topbar .header-utility li {
    display: flex;
    align-items: center;
}

#header-topbar .header-utility li + li::before {
    content: "";
    width: 1px;
    height: 20px;
    background-color: #a7a7a7;
    margin: 0 20px;
}

#header-topbar .header-utility a {
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    transition: color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: .5rem;
    letter-spacing: 0.02em;
}

#topmenu_logon span, #topmenu_logoff span {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-transform: uppercase;
}

#header-topbar .header-utility a .icon {
    height: 1rem;
    width: 1rem;
}

#topmenu_help .icon .icon-background {
    fill: currentColor;
}

#topmenu_help .icon .icon-foreground {
    fill: #fff;
}

#header, #headeruid {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    height: auto;
    margin-bottom: .5rem;
}

.cfcu-header-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 90px;
    margin: 0 .5rem;
}

.nav-primary {
    margin-left: auto;
}

#header .nav-primary ul,
#headeruid .nav-primary ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    gap: 2rem;
}

#header .nav-primary a,
#headeruid .nav-primary a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color 0.3s ease-in-out;
}

#header .nav-primary a:hover,
#headeruid .nav-primary a:hover {
    color: #c41e3a;
}

.cfcu-mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    margin-left: auto;
}
.cfcu-mobile-menu-toggle .icon {
    height: 20px;
    width: 20px;
}

@media (max-width: 820px) {
    #logo {
        max-height: 50px;
    }

    .cfcu-header-row {
        min-height: 75px;
    }
    
    .cfcu-mobile-menu-toggle {
        display: block;
    }
    
    .nav-primary {
        display: none;
    }

    #header-topbar .header-utility {
        padding-right: 1em;
    }

    #header-topbar .header-utility ul {
        padding: 6px 10px 6px 10px;
    }

    #header-topbar .header-utility a {
        font-size: 13px; 
    }

    #header .nav-primary.is-open,
    #headeruid .nav-primary.is-open {
        display: block;
        position: absolute;
        top: 95px; 
        left: auto;
        right: 16px; 
        width: 300px;
        background-color: rgba(248, 249, 250, 0.85); 
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        z-index: 1000;
        border-radius: 8px;
        margin-left: 0;
        overflow: hidden; 
    }

    #header .nav-primary.is-open::before,
    #headeruid .nav-primary.is-open::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background-color: #005f69; 
    }

    #header .nav-primary.is-open ul,
    #headeruid .nav-primary.is-open ul {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
        gap: 0;
    }

    .nav-primary.is-open li {
        width: 100%;
        border-bottom: 1px solid #eee; 
    }

    .nav-primary.is-open li:last-child {
        border-bottom: none;
    }

    .nav-primary.is-open a {
        display: block;
        padding: 12px 20px;
        width: 100%;
    }
}