/*
    css template - mobile header min width 768px
*/
/* hamburg menu - elinsTemplate */
@media(max-width: 991px ) {
    header .btn-toggle-menu {
        display: none;
    }

    header .btn-toggle-menu .hamburger .line {
        width: 30px;
        height: 3px;
        background-color: #ecf0f1;
        display: block;
        margin: 6px auto;
        -webkit-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
    }

    header .btn-toggle-menu .hamburger:hover {
        cursor: pointer;
    }

    header .btn-toggle-menu #hamburger-11 {
        -webkit-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
    }

    header .btn-toggle-menu #hamburger-11.is-active {
        animation: smallbig 0.6s forwards;
    }

    @keyframes smallbig {
        0%, 100% {
            -webkit-transform: scale(1);
            -ms-transform: scale(1);
            -o-transform: scale(1);
            transform: scale(1);
        }

        50% {
            -webkit-transform: scale(0);
            -ms-transform: scale(0);
            -o-transform: scale(0);
            transform: scale(0);
        }
    }
    header .btn-toggle-menu #hamburger-11.is-active .line:nth-child(1),
    header .btn-toggle-menu #hamburger-11.is-active .line:nth-child(2),
    header .btn-toggle-menu #hamburger-11.is-active .line:nth-child(3) {
        -webkit-transition-delay: 0.2s;
        -o-transition-delay: 0.2s;
        transition-delay: 0.2s;
    }

    header .btn-toggle-menu #hamburger-11.is-active .line:nth-child(2) {
        opacity: 0;
    }

    header .btn-toggle-menu #hamburger-11.is-active .line:nth-child(1) {
        -webkit-transform: translateY(9px) rotate(45deg);
        -ms-transform: translateY(9px) rotate(45deg);
        -o-transform: translateY(9px) rotate(45deg);
        transform: translateY(9px) rotate(45deg);
    }

    header .btn-toggle-menu #hamburger-11.is-active .line:nth-child(3) {
        -webkit-transform: translateY(-9px) rotate(-45deg);
        -ms-transform: translateY(-9px) rotate(-45deg);
        -o-transform: translateY(-9px) rotate(-45deg);
        transform: translateY(-9px) rotate(-45deg);
    }
}
@media(max-width: 991px ){
    #top{
        display: none;
    }
    #top a{
        font-size: 16px;
    }
    #top .container .row div:nth-child(3) a{
        padding: 0 15px;
    }
    #top .container .row div{
        min-width: 45px;
    }
    #top a{
        line-height: 45px;
    }
    header{
        height :60px;
        position: relative;
    }
    header img{
        float: left;
    }
    header .container{
        padding-right: 15px;
        padding-left: 15px;
    }
    header  .container .row > div{
        padding: 0;
        padding-top:13px;
    }
    header  .container .row > div:nth-child(1){
        display: none;
    }
    header  .container .row > div:nth-child(2){
        width: calc(100% - 60px);
        float: left;
        text-align: right;
        padding: 5px 0;
        max-width: 100%;
    }
    header  .container .row > div:nth-child(2) a{
        display: block;
        text-align: right;
        padding: 0 20px;
    }
    header .container .btn-toggle-menu{
        width: 60px;
        display: block;
        height: 60px;
        float: right;
        position: absolute;
        right: 0;
        top: 0;
        background: #4098f8;
        padding: 0;
        margin: 0;
        max-width: 60px;
    }
    header .container .row div > div#menu{
        opacity: 0;
        right: -100%;
        bottom: -1000%;
        position: fixed;
        width: 100%;
        max-width: 370px;
        height : calc(100% - 60px);
        transition: right 0.4s , opacity 0.8s;
        background: #ebeef2;
        z-index: 900;
    }
    header .container .row div > div#menu ul{
        margin: 0;
        padding: 0;
    }
    header .container .row div > div#menu ul.menu >  li{
        width: 100%;
        padding:0;
        border-bottom: 1px solid #292e31;
    }
    header .container .row div > div#menu ul.menu >  li:last-child{
        border: none;
    }
    header .container .row div > div#menu  ul > li > a{
        font-size: 18px;
        color: #333;
        display: inline-block;
        padding: 14px;
        padding-right: 25px;
    }
    body.open-menu header .container .row div > div#menu{
        opacity: 1;
        right :0;
        bottom: 0;
    }
    body.open-menu header #menu .sub-menu{
        position: static;
        border: none;
    }
    body.open-menu header #menu  ul.sub-menu li{
        width: 100%;
        padding: 0;
        border: none;
    }
    body.open-menu header div#menu ul.sub-menu   li >  a{
        font-size: 16px;
        color: #333;
        padding: 10px 20px;
        padding-top: 0;
        padding-right: 36px;
    }
    header #menu li.dropdown > .sub-menu{
        opacity: 1;
        display: none;
            background: #ebeef2;
    }
    header #menu li.dropdown > .sub-menu{
        display: none;
        visibility: visible;

    }
    header #menu li.dropdown.open-submenu{
        padding-bottom: 10px !important;
    }
    /*header #menu li.dropdown.open-submenu a{*/
        /*padding-bottom: 0 !important;*/
    /*}*/
    header #menu li.dropdown{
        position: relative;
    }
    header #menu li.dropdown::after{
        position: absolute;
        content: "\f104";
        width: 66px;
        height: 66px;
        font-family: FontAwesome, sans-serif;
        color: #4098f8;
        font-size: 18px;
        text-align: center;
        left: 0px;
        top: -5px;
        transform: rotate(270deg);
        line-height: 66px;
        transition: 0.3s;
    }

    header #menu li.dropdown:hover > .sub-menu {
        width: 93%;
    }
    header #menu li.dropdown ul li.dropdown::after {
         display: none;
    }

    header #menu li.dropdown.open-submenu::after{
        transform: rotate(90deg);
         left: 13px;
    }

    header #menu::after{
        position: absolute;
        width: 1000%;
        right: 100%;
        height :100%;
        background: rgba(0, 0, 0, 0.45);
        content: ' ';
        top: 0;
    }
}
@media(max-width: 480px){
    header .container .row div > div#menu{
        max-width: 230px;
    }
}
