.compact #header {
    display: block;
    position: fixed;
    z-index: 9000 !important;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
}

.admin-bar #header {
    margin-top: 32px;
}

#header {
    display: block;
    position: fixed;
    z-index: 9000 !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    height: 80px;
    border-bottom: 1px solid #e4e4e4;
    -moz-transition: all 0.3s ease 0s;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.compact #header .sb-toggle-left {
    padding: 20.5px 0;
}

#header .sb-toggle-left {
    float: left;
    color: #333;
    font-size: 28px;
    padding: 30.5px 0;
}

#header {
    float: left;
    width: 100%;
}

.compact #header .logo {
    padding: 9px 0;
}

#header .logo {
    float: left;
    padding: 14px 0;
    margin-top: 0 !important;
    -moz-transition: all 0.3s ease 0s;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

#header .main-menu {
    float: right;
    -moz-transition: all 0.3s ease 0s;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

#header .main-menu .button-slide-menu {
    display: none;
}

#header .main-menu .nav {
    float: left;
}

#header .main-menu .nav>li {
    float: left;
    margin-right: 30px;
}

#header .main-menu .nav>li:last-child {
    margin: 0;
}

#header .main-menu .nav li.menu-item>ul.sub-menu {
    transform: none;
}

#header .main-menu .nav li.menu-item>ul.sub-menu {
    position: absolute;
    top: 80%;
    display: none;
    min-width: 200px;
    padding: 0px 0;
    margin: 0;
    font-size: 13px;
    left: 0;
    right: 0;
    background: #fff;
    background-clip: padding-box;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    z-index: 1000;
    margin-top: 0;
}

#header .main-menu .nav li.menu-item>ul.sub-menu .sub-menu {
    top: 0;
    right: 100%;
    left: auto;
}

.compact #header .main-menu .nav li.menu-item>ul.sub-menu {
    top: 0%;
}

#header .main-menu .nav li.menu-item-has-children:hover>ul.sub-menu {
    display: block;
    animation-duration: 0.5s;
    animation-name: fadeInFromNone;
    animation-fill-mode: forwards;
    -webkit-animation-duration: 0.5s;
    -webkit-animation-name: fadeInFromNone;
    -webkit-animation-fill-mode: forwards;
    -ms-animation-duration: 5s;
    -ms-animation-name: fadeInFromNoneIE;
    -ms-animation-fill-mode: forwards;
}

.compact #header .main-menu .nav>li>a {
    padding: 22px 2px;
}

#header .main-menu .nav>li>a {
    padding: 33px 0px;
    position: relative;
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    color: #161616;
    vertical-align: bottom;
    text-decoration: none;
    text-transform: uppercase;
}

#header .main-menu .nav li:hover>a:before {
    -moz-transition: all 0.3s ease 0s;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    height: 1px;
    /*background: #47c1bf;*/
    width: 0;
    -webkit-transform: translate(0, 15px);
    -moz-transform: translate(0, 15px);
    -ms-transform: translate(0, 15px);
    -o-transform: translate(0, 15px);
    transform: translate(0, 15px);
}

#header .main-menu .nav li:hover>a {
    color: #47c1bf;
}

#header .main-menu .nav ul li.menu-item-has-children>a {
    color: #191919;
    background: #fff;
    font-size: 12px;
}

#header .main-menu .sub-menu>li {
    position: relative;
}

#header .yamm .menu-item-has-children .sub-menu li a:hover,
#header .yamm .menu-item-has-children .sub-menu li.menu-item-object-page a {
    color: #47c1bf;
    background: #fff;
}

#header .main-menu .nav li:hover>a:before,
#header .main-menu .nav li.menu-item-object-page a:before {
    width: 100%;
    left: 0;
}

.sub-menu>li a {
    font-weight: 300;
}

#header .main-menu .nav .sub-menu li a:hover {
    color: #47c1bf !important;
    background: #eee !important;
}

#header .main-menu .nav ul li.current-menu-item>a {
    color: #fff;
    background: #47c1bf;
}

#header .main-menu .sub-menu>li a {
    padding: 10px 20px;
    font-size: 12px;
    border-bottom: 1px solid #f2f2f2;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
}

.sub-menu li>a {
    display: block;
    clear: both;
    line-height: 1.428571429;
    white-space: normal;
    color: #30373b;
    font-weight: 500;
    font-size: 1.2em;
    padding: 10px 30px;
}

#header .main-menu .sub-menu .list-unstyled a {
    color: #707070;
    padding: 5px 0;
    width: 100%;
    font-size: 13px;
    transition-property: margin-left, background-color;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 0;
    display: inline-block;
}

#header .main-menu .sub-menu .list-unstyled li p {
    color: #333;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.dropdown-submenu {
    position: relative;
}

.sb-active .sub-menu {
    width: 100%;
    padding: 10px 10px 10px 24px;
    background: #f7f7f7;
    display: none;
}

.sb-left li:hover a ul.sub-menu {
    display: block;
    text-decoration: none;
}


/*
.sb-slidebar a:hover > ul.sub-menu {
    display: block;
}*/

.sub-menu>li>a:hover,
.sub-menu>li>a:focus {
    color: #454545;
    text-decoration: none;
    background-color: #f9f9f9;
    -webkit-transition: background-color .3s, -webkit-transform .3s;
    transition: background-color .3s, transform .3s;
}

.dropdown-submenu:hover .sub-menu {
    top: 0 !important;
}

#header .main-menu .current_page_item-submenu>.sub-menu {
    top: 0;
    left: 100% !important;
    margin-top: -1px;
    margin-left: -1px;
    /* margin-left: -456px; */
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.sb-slide,
#main.site_wrapper,
.sb-slidebar {
    -webkit-transition: -webkit-transform 400ms ease;
    -moz-transition: -moz-transform 400ms ease;
    -o-transition: -o-transform 400ms ease;
    transition: transform 400ms ease;
    -webkit-transition-property: -webkit-transform, left, right;
    -webkit-backface-visibility: hidden;
}

.close_menu {
    position: absolute;
    top: 13px;
    height: 60px;
    right: 10px;
    padding: 14px 10px 0 0;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}


/*.sb-active li:hover>.sub-menu {
    display: block;
    -webkit-animation-duration: 0.5s;
    -webkit-animation-name: fadeInFromNone;
    -webkit-animation-fill-mode: forwards;
    animation-duration: 0.5s;
    animation-name: fadeInFromNone;
    animation-fill-mode: forwards;
    -ms-animation-duration: 0.5s;
    -ms-animation-name: fadeInFromNoneIE;
    -ms-animation-fill-mode: forwards;
}
*/

@-webkit-keyframes fadeInFromNone {
    0% {
        opacity: 0;
    }
    1% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInFromNoneIE {
    0% {
        opacity: 0;
    }
    1% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInFromNone {
    0% {
        opacity: 0;
    }
    1% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.menu_mobile {
    display: block;
    position: fixed;
    background: #fff;
    width: 290px;
    height: 100%;
    left: -290px;
    top: 0;
    transition: all 0.4s ease 0s;
    z-index: 9999;
    overflow: auto;
}