header .navbar-nav{
    display: flex;
    flex-direction: row;
}
.navbar{
    background: #fafafa;
    padding: 0 1rem;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    display: flex;
    z-index: 10;
}
.brand-and-icon{
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
}
.navbar-brand{
    font-size: 1.8rem;
    letter-spacing: 3px;
    font-weight: 700;
}
.navbar-toggler{
    display: block;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: all 0.4s ease;
    border: 2px solid #000;
    border-radius: 4px;
}
.navbar-toggler:hover{
    opacity: 0.7;
}
.navbar-collapse{
    overflow-y: scroll;
    display: none;
}
.navbar-nav > li > a{
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 400;
    display: block;
    padding: 0.6rem 0;
    margin: 0.2rem 0;
    border-bottom: 1px solid #ddd;
    border-radius: 1px;
    position: relative;
    transition: all 0.4s ease;
    color: #d10007;
}
.navbar-nav > li > a:hover{
    text-decoration: none;
}
.drop-icon{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.navbar-nav > li > a:hover{
    opacity: 0.7;
}
.sub-menu h4{
    text-transform: capitalize;
    font-size: 14px;
    padding: 0.5rem 0;
    font-weight: 600;
    color: #d10007;
}
.sub-menu ul li{
    text-transform: capitalize;
    padding: 0.2rem 0;
    margin: 0.2rem 0;
    font-size: 0.95rem;
}
.sub-menu ul li a{
    opacity: 0.8;
    transition: all 0.5s ease;
}
.sub-menu ul li a:hover{
    opacity: 0.9;
}
.sub-menu{
    display: none;
}

.sub-menu-item{
    padding: 15px;
    border-right: 1px solid #ccc;
}
.sub-menu-item:last-child{
    border:none;
}
.sub-menu-item ul{
    padding: 0px;
    margin: 0px;
}
.sub-menu-item ul li{
    list-style-type: none;
}
.sub-menu-item a{
    position: relative;
    padding-left: 18px;
}

.sub-menu-item ul li a{
color: #333;
    position: relative;
    padding-left: 22px;
    display: block;
}
.sub-menu-item a:before{
   content: "\f101";
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    /* pointer-events: none; */
    position: absolute;
    right: auto;
    top: 0;
    left: 0;
    width: auto;
    height: 18px;
    line-height: 15px;
    text-align: center;
    font-size: 18px;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    -moz-transition: all 300ms ease-in-out 0s;
    -webkit-transition: all 300ms ease-in-out 0s;
    transition: all 300ms ease-in-out 0s;
    color: #5c5c5c;
    /* transform: translate(-50% ,-60%); */
    cursor: pointer;
}
.sub-menu-item ul li a:before{
   content: "\f101";
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    /* pointer-events: none; */
    position: absolute;
    right: auto;
    top: 0;
    left: 0;
    width: auto;
    height: 30px;
    line-height: 25px;
    text-align: center;
    font-size: 18px;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    -moz-transition: all 300ms ease-in-out 0s;
    -webkit-transition: all 300ms ease-in-out 0s;
    transition: all 300ms ease-in-out 0s;
    color: #5c5c5c;
    /* transform: translate(-50% ,-60%); */
    cursor: pointer;
}
.sub-menu h4 a:before{display:none;}
.sub-menu-item ul li a:hover{
    color: #d10007;
    text-decoration: none;
    padding-left: 28px;
}
/* Media Queries */
@media screen and (min-width: 992px){
    .navbar{
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 0;
        position: relative;
    }
    .navbar-toggler{
        display: none;
    }
    .brand-and-icon{
        flex: 0 0 100px;
        border-bottom: none;
        padding: 0;
    }
    .navbar-collapse{
        display: block!important;
        overflow-y: hidden;
        flex: 1 0 auto;
    }
    .navbar-nav{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .navbar-nav > li > a{
        border-bottom: none;
       margin: 0 0 0 auto;
     padding: 2rem 1.2rem 2rem 0.9rem; font-size: 14px;
 letter-spacing: 1px;   }
    .sub-menu{
        position: absolute;
        left: 0;
        width: auto;
        top: 100%;
        background: #f8f8f8;
        box-shadow: 0px 4px 5px #ccc;
        border: 1px solid #ccc;
    }
    .navbar-nav > li:hover .sub-menu{
        display: grid!important;
        grid-template-columns: repeat(4, 1fr);
    }
    .navbar-nav > li:first-child:hover .sub-menu{
        display: grid!important;
        grid-template-columns: repeat(6, 1fr);
    }
    .navbar-nav > li{
        /*border-bottom: 2px solid transparent;*/
        transition: border-bottom 0.4s ease;
    }
}

@media (max-width:1270px){
    .navbar-nav > li > a{
        margin: 0px;
    }
}
@media (max-width:1024px){
    .navbar-nav > li > a{
        padding: 15px;
    }
    .drop-icon{
        display: none;
    }
}
@media (max-width:991px){
    header .navbar-nav{
        flex-direction: column;
        border: 1px solid #ccc;
    }
}