
#masthead {
    position: relative;
    padding: 20px 12px;
    background: #fff;
    top: 0;
    box-shadow: 0px 0px 16px rgba(61, 61, 61, 0.2);
    transition: all 0.3s ease-in-out;
}
#masthead.sticky-header {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 99999;
}
body.admin-bar #masthead.sticky-header {
    top: 32px;
}
#main-content.sticky-nav,
body.admin-bar #main-content.sticky-nav {
    margin-top: 90px;
}
#main-content.sticky-nav .page-sidebar {
    position: fixed;
    height: 100%;
    top: 90px;
    transition: all .3s ease-in-out;
    z-index: 9999;
    overflow: hidden;
}
#main-content.sticky-nav .page-sidebar:hover {
    max-width: calc(100% - 77px);
}
body.admin-bar #main-content.sticky-nav .page-sidebar {
    top: calc(90px + 32px);
}
#masthead a {
    text-decoration: none;
}
#masthead .logo-wrapper .logo a img {
    max-height: 50px;
    width: auto;
    height: auto;
    min-width: 33px;
    min-height: 33px;
}
#masthead .search-part .avatar {
    width: 33px;
    height: 33px;
    object-fit: cover;
    border-radius: 100%;
    margin-right: 15px;
    box-shadow: 0 4px 8px 0 rgb(0 0 0 / 12%), 0 2px 4px 0 rgb(0 0 0 / 8%);
}
#masthead .search-part h3 {
    font-weight: 500;
    font-size: 15px;
    color: #333333;
    letter-spacing: 0.03em;
}
#masthead #search-btn {
    height: 100%;
    padding: 10px 12px;
    border: none;
    background: white;
    border-radius: 5px;
}
#masthead #search-btn:not(.default-state):hover {
    background: var(--primary-color);
    color: white;
}
#masthead button:focus {
    border-color: transparent;
    outline: none;
}
#masthead button.default-state {
    background-color: transparent;
    border-color: transparent;
    color: #333;
}
#masthead #search-btn i.fas.fa-search {
    font-size: 16px;
}
#masthead .divider {
    height: 21px;
    width: 1px;
    background: #d2d2d2;
    margin: 0 33px;
    margin-left: 20px;
}
#masthead .search-form {
    display: none;
    margin-right: 10px;
}
#masthead .search-field {
    width: 100%;
    max-width: 480px;
    min-width: 200px;
    height: 100%;
    font-weight: normal;
    font-size: 14px;
    display: flex;
    align-items: center;
    letter-spacing: 0.01em;
    color: #8B8B8B;
    box-shadow: 0px 0px 5px 1px rgb(61 61 61 / 20%);
    padding: 9px 12px;
    line-height: unset;
    border-radius: 5px;
    border: 1px solid rgb(204, 204, 204);
}
#masthead .search-form * {
    margin-bottom: 0!important;
}
#masthead .mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 116px;
}
#masthead .mobile-menu ul {
    width: 200px;
    list-style-type: none;
}
#masthead .mobile-menu li a {
    margin-left: 0;
    color: #8B8B8B;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 17px;
    text-align: center;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}
#masthead .mobile-menu li a i {
    font-size: 30px;
    margin-bottom: 5px;
}
#masthead .mobile-menu-wrap,
#masthead .mobile-menu,
#masthead .user-menu-wrap {
    display: none;
}
#masthead .user-menu-wrap {
    padding-top: 20px;
    background: transparent;
    position: absolute;
    top: 100%;
    left: 0;
    width: 125px;
}
#masthead .user-menu {
    border: 1px solid #fff;
    background: #fff;
    box-shadow: 0px 0px 12px rgb(204 204 204);
    padding: 12px;
    position: relative;
}
#masthead .mobile-menu {
    position: absolute;
    top: 40px;
    right: 0;
    width: 205px;
    border: 1px solid #fff;
    background: #fff;
    box-shadow: 0px 0px 12px rgb(204 204 204);
}
#masthead .mobile-menu::after,
#masthead .user-menu::after {
    content: '';
    position: absolute;
    background: #fff;
    right: 2px;
    top: -6px;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
}
#masthead .user-menu::after {
    content: '';
    position: absolute;
    background: #fff;
    left: 7px;
    top: -9px;
    width: 15px;
    height: 15px;
    transform: rotate(45deg);
}
#masthead .logged-user {
    position: relative;
    cursor: pointer;
}
#main-content .page-sidebar .menu li:hover a {
    color: var(--primary-color);
}
#main-content .page-sidebar .menu {
    margin-top: 7px;
    overflow: hidden;
}
#main-content .page-sidebar .menu li {
    padding: 14px 0;
    border-left: 5px solid transparent;
    margin: 0;
    overflow: hidden;
}
#main-content .page-sidebar .menu li > a {
    display: flex;
    align-items: center;
    padding-right: 5px;
}
#main-content .page-sidebar .menu li.current-menu-item,
#main-content .page-sidebar .menu li:hover {
    border-left: 5px solid var(--primary-color);
}
#main-content .page-sidebar .menu li:hover a,
#main-content .page-sidebar .menu li.current-menu-item a,
#masthead .mobile-menu li:hover a,
#masthead .mobile-menu li.current-menu-item a {
    color: var(--primary-color);
}
#main-content .page-sidebar {
    max-width: 74px;
}
#main-content.sticky-nav .page-content-wrapper {
    margin-left: auto;
    width: calc(100% - 74px);
}

@media (min-width: 1024px) {
    #masthead .logged-user:hover .user-menu-wrap {
        display: block;
    }
}

@media all and (max-width: 1280px) {
    #masthead .divider {
        margin: 0 18px;
        margin-left: 9px;
    }
}

@media all and (max-width: 1024px) {
    #masthead .mobile-menu-wrap {
        display: block;
        position: relative;
    }
    #masthead .search-part h3 {
        font-size: 12px;
    }
    #masthead .divider {
        margin: 0 20px;
        margin-left: 8px;
    }
    #masthead .logo-wrapper .logo a img {
        max-height: 44px!important;
    }
    #masthead {
        height: 65px;
        padding: 0 30px;
    }
    #main-content.sticky-nav {
        margin-top: 65px;
    }
    body.admin-bar  #main-content.sticky-nav {
        margin-top: 65px;
    }
    #masthead.sticky-header {
        z-index: 999999;
    }
    button#toggle-mobile-menu {
        padding: 0;
        margin-left: 15px;
        font-size: 25px;
    }
    button#close-mobile-menu {
        padding: 0;
        font-size: 16px;
        position: absolute;
        top: 10px;
        right: 13px;
        z-index: 1;
    }
    #masthead .mobile-menu li a {
        font-size: 10px;
        line-height: 12px;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    #masthead .mobile-menu li a i {
        font-size: 20px;
        margin-bottom: 5px;
    }
}
@media screen and (max-width: 782px) {
    body.admin-bar  #main-content.sticky-nav {
        margin-top: calc(65px - 46px);
    }
    html #wpadminbar {
        display: none;
    }
    body.admin-bar #masthead.sticky-header {
        top: 0;
    }
}
@media all and (max-width: 768px) {
    #masthead {
        padding: 0 15px;
    }
    #masthead .search-part .avatar {
        width: 25px;
        height: 25px;
        margin-right: 10px;
    }
    #masthead .logo-wrapper .logo a img {
        max-height: 36px!important;
    }
    #masthead .divider {
        margin: 0 15px;
        margin-left: 3px;
    }
    #masthead .search-part h3 {
        display: none;
    }
    button#toggle-mobile-menu {
        margin-left: 10px;
        border: none;
    }
}

@media (max-width: 400px) {
    #masthead .search-field {
        margin-left: 10px;
        min-width: 120px;
    }
}

@media (max-width: 320px) {
    #masthead .search-part .avatar {
        margin-right: 8px;
    }
    #masthead .divider {
        margin: 0 12px;
        margin-left: 3px;
    }
}