.navbar .megamenu {
    padding: 1rem;
}

ul.nav.nav-tabs {
    background-color: #ebf1f2;
}

ul.nav.nav-tabs li a {
    padding: 10px 14px;
    color: #2b4f84;
    font-size: 14px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #ebf1f2;
}

ul.nav.nav-tabs li.active a {
    border-bottom: 1px solid #2b4f84;
}

ul.nav.nav-tabs li a.active {
    border-bottom: 1px solid #2b4f84;
}

.navbar-nav .dropdown-menu {
    padding-top: 0;
}

.navbar-nav .dropdown-menu .tab-content .panel-body ul {
    list-style: none;
    padding: 0;
    padding-top: 5px;
}

.navbar-nav .dropdown-menu .tab-content .panel-body ul li a {
    padding: 3px 14px;
    color: #2b4f84;
    font-size: 14px;
    display: block;
    text-decoration: none;
    transition: .5s ease-out;
}

.navbar-nav .dropdown-menu .tab-content .panel-body ul li a:hover {
    color: #0c7fc7;
    transform: translate(10px, 0px);
}

.navbar-nav .dropdown-menu .tab-content .panel-body ul li a:after {
    /* content: ""; */
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 1px;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transform: rotate(269deg);
    position: absolute;
    left: 0;
    margin-top: 10px;
    opacity: 0;
    transition: .5s ease-out;
}

button.navbar-toggler {
    border: 0px solid #fff;
    outline: none;
}

.navbar-nav .dropdown-menu .tab-content .panel-body ul li a:hover:after {
    opacity: 1;
}

.ham-menu {
    height: 43px;
    width: 50px;
    top: 8rem;
    left: 8rem;
    padding: 0.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border-radius: 0.25em;
    margin: 5px 0;
}

.ham-menu .line {
    background-color: white;
    border-radius: 1em;
    width: 2rem;
    height: 0.25rem;
}

.ham-menu .line1 {
    transform-origin: 0% 0%;
    transition: transform 100ms ease-in-out;
}

.ham-menu .line3 {
    transform-origin: 0% 100%;
    transition: transform 100ms ease-in-out;
}

.check:checked~.ham-menu .line1 {
    display: block;
    transform: rotate(45deg);
}

.check:checked~.ham-menu .line2 {
    opacity: 0;
}

.check:checked~.ham-menu .line3 {
    display: block;
    transform: rotate(-45deg);
}


/* ============ desktop view ============ */

@media all and (min-width: 992px) {
    .navbar .has-megamenu {
        position: static!important;
    }
    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
    }
}


/* ============ desktop view .end// ============ */


/* ============ mobile view ============ */

@media(max-width: 991px) {
    .navbar.fixed-top .navbar-collapse,
    .navbar.sticky-top .navbar-collapse {
        overflow-y: auto;
        max-height: 90vh;
        margin-top: 10px;
    }
}

@media (max-width: 991px) {
    .tab-content>.tab-pane {
        display: block;
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .panel-heading {
        display: none;
    }
    .panel {
        border: none;
        box-shadow: none;
    }
    .panel-collapse {
        height: auto;
    }
    .panel-collapse.collapse {
        display: block;
    }
}

@media (max-width: 767px) {
    .tab-content .tab-pane {
        display: block;
    }
    .nav-tabs {
        display: none;
    }
    .navbar-nav .dropdown-menu .tab-content .panel-title a {
        display: block;
        padding: 10px 14px;
        color: #2b4f84;
        font-size: 14px;
        display: block;
        text-decoration: none;
        /* border-bottom: 1px solid #ebf1f2; */
        background-color: #e4e8eb;
        position: relative;
    }
    .navbar-nav .dropdown-menu .tab-content .panel-title a:hover {
        background-color: #dfdfdf;
    }
    .navbar-nav .dropdown-menu {
        padding-top: 0;
        padding-bottom: 0;
    }
    .navbar-nav .dropdown-menu .tab-content .panel-body ul li a {
        padding: 6px 14px;
        border-bottom: 1px solid #e7e7e7;
    }
    .navbar-nav .dropdown-menu .tab-content .panel-title a:before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        width: 100%;
        background-color: #dbdbdb;
        bottom: 2px;
    }
    .navbar-nav .dropdown-menu .tab-content .panel-title a::after {
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
        position: absolute;
        right: 15px;
        top: 17px;
    }
    .navbar-nav .dropdown-menu .tab-content .panel-title {
        margin: 0;
    }
    .panel {
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        margin-top: -2px;
    }
    .tab-pane:first-child .panel {
        border-radius: 5px 5px 0 0;
    }
    .tab-pane:last-child .panel {
        border-radius: 0 0 5px 5px;
    }
}