/*
Theme Name: TechConnect
Text Domain: TechConnect
Version: 1.0
Description: Header Styles
Author: KB
*/

.header-link-container > ul {
    display: flex;
    align-items: center;
    gap: 32px;
    translate: 0px 8px;
}

.header-link-container > ul li {
    font-weight: 500;
    text-transform: uppercase;

}

.header-parent-item {
    position: relative;
}

.header-parent-item:hover + .header-children-tray {
    display: block;
}

.header-children-tray:hover {
    display: block;
}

.header-children-tray {
    display: none;
    max-height: 60vh;
    overflow: auto;
}


.header-children-tray {
    position: absolute;
    top: calc(100%);
    left: 0;
    padding-left: 18px;
    padding-right: 18px;
    background-color: white;
    color: black!important;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-children-tray div {
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #21212114;
    font-weight: 400!important;
    cursor: pointer;
    white-space: nowrap;
}

.header-children-tray div:last-child {
    border: none!important;
}

#home-header.transparent .header-tray-arrow {
    filter: invert(0);
}

#home-header.transparent .search-button {
    filter: brightness(100);
}

#home-header img.header-tray-arrow {
    filter: invert(1);
}

#home-header.white {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#mbl-home-header {
    display: none;
}

.mbl-tray {
    display: none;
}

@media screen and (max-width: 1023px) {
    #home-header {
        display: none;
    }

    #mbl-home-header {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 55;
        display: block;
    }

    #mbl-home-header .nav-bar-container {
        display: flex;
        justify-content: space-between;
        height: 77px;
        padding: 16px 19px;
        background-color: white;
    }

    #mbl-home-header .nav-bar-container .left-container {
        max-height: 80px;
        text-align: left;
    }

    #mbl-home-header .nav-bar-container .left-container img {
        max-width: 120px;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    #mbl-home-header .nav-bar-container .right-container {
        max-height: 80px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mbl-tray {
        position: fixed;
        top: 77px;
        right: 0;
        display: block;
        width: 76%;
        height: calc(100vh - 77px);
        background-color: white;
        z-index: 55;
        transform: translateX(100%);
        transition: all 300ms linear;
    }

    .mbl-tray.display {
        transform: translateX(0%);
    }

    .mbl-tray-backdrop {
        position: fixed;
        display: none;
        top: 0;
        left: 0;
        height: 100dvh;
        width: 100dvw;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 50;
    }

    .mbl-tray-backdrop.display {
        display: block;
    }

    .mbl-header-categories{
        width: 100%;
        display: flex;
        align-items: center;
    }

    .mbl-header-categories .mbl-header-category {
        width: 100%;
    }

    .mbl-header-categories .mbl-header-category > * {
        padding: 24px 16px;
        font-weight: 600;
    }

    .mbl-children-tray {
        position: absolute;
        top: 0;
        left: 0;
        display: none;
        width: 100%;
        height: calc(100dvh - 77px);
        background-color: white;
        z-index: -56;
        overflow: auto;
    }

    .mbl-children-tray .back-button {
        padding: 12px 10px;
        font-size: 0.875rem;
        font-weight: 500;
        background-color: #2121210A;
        border-bottom: 1px solid #21212114;
    }

    .mbl-children-tray .mbl-child {
        display: block;
        padding: 16px;
        font-weight: 400;
        border-bottom: 1px solid #21212114;
    }

    .mbl-children-tray.display {
        display: block;
        z-index: 56;
    }

    .mbl-children-tray .back-button {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mbl-children-tray .back-button img {
        rotate: 180deg;
    }

}