#mega-menu .navbar .dropdown-menu {
    border: none;
    background-color: #fff !important;
}

#mega-menu .navbar-nav>li:last-child::after,
#mega-menu .navbar-nav>li:first-child::after {
    display: none;
}

#mega-menu .navbar-nav>li::after {
    content: "|";
    float: right;
    color: #fff;
    top: 9px;
    left: 0;
    z-index: 9999;
    position: absolute;

}


#mega-menu ul.nav.flex-column li a {
    color: #0C8944;
    border: none;
}

#mega-menu ul.nav.flex-column li {
    border-bottom: none;
}

#mega-menu li.nav-item a {
    transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
}

.navbar-expand-second {
    justify-content: flex-end !important;
    display: inline-block !important;
    width: 10%;
    flex-basis: initial;
    flex-grow: 0;
}

#mega-menu ul>li {
    margin-left: -3px;
    /* margin: auto;
    width: 100%;
    text-align: center; */
}

/* breakpoint and up - mega dropdown styles */

@media screen and (min-width: 992px) {

    /* remove the padding from the navbar so the dropdown hover state is not broken */
    #mega-menu .navbar {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    /* remove the padding from the nav-item and add some margin to give some breathing room on hovers */
    /* makes the dropdown full width  */
    #mega-menu .navbar .dropdown {
        position: relative;
    }

    #mega-menu .navbar .dropdown-menu {
        width: 100%;
        left: -1px;
        right: 0;
        /*  height of nav-item  */
        top: 52px;
        border-radius: 0;
    }

    /* shows the dropdown menu on hover */
    #mega-menu .navbar .dropdown:hover .dropdown-menu,
    #mega-menu .navbar .dropdown .dropdown-menu:hover {
        display: block !important;

    }

    #mega-menu .navbar .dropdown-menu {
        border: 1px solid rgb(177 172 172 / 30%);
        background-color: #fff;
    }
}


/**
-------------------------------------------------------------------------
    Style code written by M Umar Farooq @ 8/12/2020 - 8:10 AM
-------------------------------------------------------------------------
 */

/*---- Mega Menu -----*/
#mega-menu .navbar {
    height: 43px;
}

#mega-menu .dropdown,
#mega-menu .nav-item,
#mega-menu .nav-item .nav-link,
#mega-menu .has-children,
#mega-menu .has-children .dropdown-toggle,
#mega-menu .dropdown .dropdown-toggle {
    max-height: 43px;
}

#mega-menu .has-children .dropdown-toggle {
    line-height: 43px;
    font-weight: 600;
}

#mega-menu .nav-item .nav-link,
#mega-menu .dropdown .dropdown-toggle {
    padding: 8px 11px;
    line-height: 23px;
    border-top: 1px solid transparent;
    position: relative;
    z-index: 100000;
    color: #fff;
}

#mega-menu .dropdown:hover .dropdown-menu~.dropdown-toggle {
    box-shadow: 1px 2px 2px 0 rgba(0, 0, 0, 0.3);
    border-bottom: 6px solid #6ab130;
    border-left: none;
    border-right: none;
}

#mega-menu .dropdown-menu~.dropdown-toggle:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 6px;
    background-color: transparent;
    width: 100%;
    z-index: 10000;
}

#mega-menu .dropdown:hover .dropdown-menu~.dropdown-toggle:before {
    background-color: #fff;
}

#mega-menu .dropdown a span:after {
    transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
}

#mega-menu .dropdown .dropdown-menu {
    top: 41px;
    pointer-events: none;
    display: block !important;
    visibility: hidden;
    opacity: 0;
    border-top: transparent;
    padding: 12px 0 8px 0 !important;

    /* transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out; */
}

#mega-menu .dropdown .dropdown-menu:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 100%;
    background-color: #6ab130;
}

#mega-menu .dropdown:hover>.nav-link {
    border-top: 1px solid #0c8944;
}

#mega-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.3);
}

/*======= Submenu Style ===========*/

#mega-menu .dropdown .dropdown-menu .nav .nav-item {
    margin-bottom: 6px;
}

#mega-menu .dropdown .dropdown-menu .nav .nav-item:hover {
    background-color: #dbeaca;
}

#mega-menu .dropdown .dropdown-menu .nav .nav-item .nav-link {
    font-size: 12px;
    height: initial;
    line-height: initial;
    background-color: transparent !important;
    padding: 6px 10px;
}

#mega-menu .dropdown .dropdown-menu {
    max-width: 350px !important;
    min-width: 300px !important;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

#mega-menu .dropdown .dropdown-menu .col-md-2 {
    min-width: 100%;
}


/**======================================================================
    End Style by M Umar Farooq @ 8/12/2020 - 8:10 AM
=========================================================================*/