﻿.header-main {
    background-color: #fff;
    border-bottom: 1px solid var(--headline-text);
    width: 100%;    
    position: relative;
    z-index: 10;
    transition: height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1px;
}

.navbar-brand p {
    color: var(--headline-text);
    font-weight: bold;
    font-size: small;
    padding-left: 25px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-item {
    display: inline-block;
    position: relative;
    margin-right: 20px;
    padding-right: 20px;
}

    .nav-item:not(:last-child):after {
        content: "|";
        font-size: 45px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #0F3192;
    }

    /* If we need the | bars thinner */
    /*.nav-item:not(:last-child):after {
        content: "|";
        font-size: 24px;
        // Keeps the line longer font-weight: 100;
        // Use the lightest available weight position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #ccc;
    }*/

    .nav-item a {
        color: var(--headline-text);
        font-weight: bold;
    }

.nav-link {
    display: block;
    padding: 10px 15px;
    color: #000;
    text-decoration: none;
    transition: background-color 0.3s;
}

    .nav-link:hover {
        background-color: transparent;
    }

.dropdown {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1000;
    border: 1px solid #ddd;
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    min-width: 100%;
    white-space: nowrap;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;    
    color: var(--headline-text);
    text-decoration: none;
    transition: background-color 0.3s;
    border-bottom: 1px solid #ddd;
    background-color: transparent;
    text-align: center;
}

    .dropdown a:hover {
        background-color: var(--header-dropdown);
    }

    .dropdown a:last-child {
        border-bottom: none;
    }

.icon-container {    
    width:35%;
    transform: translateX(187%);
    background-color: white;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    transform-origin: top;
}

    .icon-container a {
        color: var(--headline-text);
        font-weight: bold;
    }

.header-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100; /* Make sure the header is above other content */
    height: 125px;
    padding: 0 20px;
    background-color: #fff; /* Ensure background is solid when over content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: height 0.3s ease-out, padding 0.3s ease-out, box-shadow 0.3s ease-out;
}

    .header-scrolled .navbar {
        align-items: center;
        height: 60px;
    }

/* Hide elements not needed on scroll */
.hidden-on-scroll {
    display: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.visible-on-scroll {
    display: block;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.marketplace-text {
    transition: opacity 0.3s ease-in-out;
    transform: translateX(2%);
}

.hidden-text {
    opacity: 0;
    visibility: hidden;
}

.header-logo {
    transition: transform 0.3s ease;
    transform: translateX(25%);
}

.header-scrolled .header-logo {
    transform: scale(0.75) translateY(20px);
}

.dropdown {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #e5f1ff;    
}

    .dropdown li a {
        color: #0F3192;
        text-decoration: none;
        padding: 8px 10px;
        display: block;
    }

        .dropdown li a:hover {
            background-color: #c2e0ff;
        }