.header {
    padding: 3px 0;
    position: relative;
}

.header .mega-menu-wrap {
    display: flex;
    align-items: center;
}

.header .logo {
    width: 100%;
    max-width: 300px;
}

.menu>ul>li {
    display: inline-block;
    cursor: pointer;
}

.menu ul li a {
    color: #333f4f;
    font-size: 20px;
    font-weight: 600;
    display: block;
    padding: 10px 20px;
}

.menu>ul>li:hover a {
    background: #333f4f;
    color: #fff;
}


/* .has-sub-menu > a {
position: relative;
} */

.has-sub-menu>a::after {
    content: "";
    border: 5px solid transparent;
    border-top-color: #333f4f;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.has-sub-menu:hover>a::after {
    border-top-color: #fff;
}

.sub-menu-wrapper {
    position: absolute;
    top: 65px;
    left: -9999px;
    background: #333f4f;
    padding: 15px 20px;
    opacity: 0;
   /* transition: top 0.5s, opacity 0.5s;
    -webkit-transition: top 0.5s, opacity 0.5s;
    -moz-transition: top 0.5s, opacity 0.5s;
    -ms-transition: top 0.5s, opacity 0.5s;
    -o-transition: top 0.5s, opacity 0.5s;*/
}

.sub-menu {
    /* padding: 20px 30px; */
    text-align: left;
}

.sub-menu a {
    color: #fff !important;
    padding: 1px !important;
    font-weight: 400 !important;
}

.sub-menu-heading {
    margin-bottom: 10px;
}

.sub-menu a:hover {
    color: #333f4f;
}

.sub-menu-heading a:hover {
    color: initial;
}

.sub-menu-wrapper a {
    color: #333f4f;
}

.sub-menu li a:hover {
    color: #6ecca5 !important;
}

.has-sub-menu:hover>.sub-menu-wrapper {
    opacity: 1;
    left: 0;
    right: 0;
    top: 85%;
    z-index: 9999;
}

/*.open-menu {
     opacity: 1;
    left: 0;
    right: 0;
    top: 85%;
    z-index: 9999;
    display: block !important;
}*/

/* Hamburger Styling */

.mobile-menu {
    display: flex;
    width: 30px;
    height: 18px;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
}

.bar {
    height: 2px;
    background: #333f4f;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    position: relative;
}

.mobile-menu.active .bar:nth-child(1) {
    transform: translateY(5px) rotate(-45deg);
    -webkit-transform: translateY(5px) rotate(-45deg);
    -moz-transform: translateY(5px) rotate(-45deg);
    -ms-transform: translateY(5px) rotate(-45deg);
    -o-transform: translateY(5px) rotate(-45deg);
}

.mobile-menu.active .bar:nth-child(2) {
    transform: translateY(-5px) rotate(45deg);
    -webkit-transform: translateY(-5px) rotate(45deg);
    -moz-transform: translateY(-5px) rotate(45deg);
    -ms-transform: translateY(-5px) rotate(45deg);
    -o-transform: translateY(-5px) rotate(45deg);
}

span.bar:nth-child(1):before {
    position: absolute;
    left: 0;
    top: -8px;
    height: 2px;
    width: 100%;
    background: #333f4f;
    content: '';
}

.mobile-menu.active span.bar:nth-child(1):before {
    display: none;
}


/* Media Queries */

@media screen and (max-width: 990px) {
    .mobile-menu {
        display: flex;
    }
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        z-index: 999;
        background: #333f4f;
        width: 100%;
        left: 0;
        right: 0;
    }
    .menu ul li a {
        color: #fff;
    }
    .has-sub-menu>a::after {
        border-top-color: #fff;
    }
    .menu>ul>li {
        display: block;
        text-align: left;
        position: relative;
    }
    .sub-menu a:hover {
        color: #333f4f;
    }
    .has-sub-menu>a {
        display: inline-block;
    }
    .has-sub-menu>a::after {
        position: absolute;
        right: 20px;
        top: 20px;
    }
    .sub-menu-wrapper {
        position: static;
        background: transparent;
        flex-direction: column;
        opacity: 1;
        display: none;
    }
    .has-sub-menu:hover>.sub-menu-wrapper {
        opacity: initial;
    }
    .sub-menu {
        width: 100%;
        padding: 5px;
    }
    .sub-menu-heading {
        border-color: #fff;
    }
    .sub-menu-wrapper a {
        color: #fff;
    }
}