/*** mega menu style *** START ***/
.pmm{
    z-index: 100;
}

.pmm a,
ul.webpart-secondary-top-menu-links a
{
    color: inherit;
}

.pmm a:hover{
    color: var(--main-2);
}

.pmm .menu {
    padding: 0;
}

.pmm nav ul a,
ul.webpart-secondary-top-menu-links a
{
    color: inherit;
    -webkit-transition: color 150ms ;
    -moz-transition: color 150ms ;
    -o-transition: color 150ms ;
    transition: color 150ms ;
}

.pmm nav ul > li:hover {
    color: var(--main-2);
}

.pmm nav ul a:hover {
    text-decoration: none;
    color: inherit;
}

.pmm .menu > ul > li > ul.sub li,
.pmm .menu > ul > li.mega-menu > ul.sub li div a
{
    color: #222;
}

.pmm .menu > ul > li > ul.sub li:hover > a,
.pmm .menu > ul > li > ul.sub li:hover > i,
.pmm .menu > ul > li.mega-menu > ul.sub li div a:hover
{
    color:var(--main-2);
}

.pmm .menu ul {
    padding-right: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    position: relative; /* we had to use this for header type 5/6 for desktop */
}

.pmm .menu li,
ul.webpart-secondary-top-menu-links li
{
    padding: 0.7rem;
}

.pmm .menu ul > li,
ul.webpart-secondary-top-menu-links li
{
    white-space: nowrap;
    margin-right: 0.2em;
    position: relative;
    width: auto;
    font-weight: bold;
}

.dir-rtl .pmm .menu ul > li,
.dir-rtl ul.webpart-secondary-top-menu-links li
{
    margin-left: 0.2em;
    margin-right: 0em;
}

.pmm .menu ul li ul.sub {
    /*display: none;*/
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 500ms ;
    -moz-transition: opacity 500ms ;
    -o-transition: opacity 500ms ;
    transition: opacity 500ms ;
    background: #fff;
    flex-direction: column;
    position: absolute;
    padding: 0;
    top: 0;
    border-radius: 4px;
}

.dir-rtl .pmm .menu ul li ul.sub {
    right: 100%;
}

.dir-ltr .pmm .menu ul li ul.sub {
    left: 100%;
}

.pmm .menu > ul > li > ul.sub {
    top: 100%;
}

.dir-rtl .pmm .menu > ul > li > ul.sub {
    right: 0;
}

.dir-ltr .pmm .menu > ul > li > ul.sub {
    left: 0;
}

.pmm .menu ul li > i{
    -webkit-transition: transform 500ms ease , color 500ms ;
    -moz-transition: transform 500ms ease , color 500ms ;
    -o-transition: transform 500ms ease , color 500ms ;
    transition: transform 500ms ease , color 500ms ;
}

.dir-rtl .pmm .menu ul li:hover > i{
    transform: rotate(-90deg);
    -webkit-transition: transform 500ms ;
    -moz-transition: transform 500ms ;
    -o-transition: transform 500ms ;
    transition: transform 500ms ;
}

.dir-ltr .pmm .menu ul li:hover > i{
    transform: rotate(90deg);
    -webkit-transition: transform 500ms ;
    -moz-transition: transform 500ms ;
    -o-transition: transform 500ms ;
    transition: transform 500ms ;
}

.pmm .menu ul li:hover > ul,
.pmm .menu ul li.dropdown.on > ul
{
    display: block;
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 500ms ;
    -moz-transition: opacity 500ms ;
    -o-transition: opacity 500ms ;
    transition: opacity 500ms ;
}

.dir-rtl .pmm .menu ul li:hover > ul > li.dropdown > ul.sub{
    border-top-right-radius: 0;
}

.dir-ltr .pmm .menu ul li:hover > ul > li.dropdown > ul.sub{
    border-top-left-radius: 0;
}

.pmm .menu ul li ul.sub li {
    margin: 0;
    font-weight: normal;
}

.pmm .menu ul li.mega-menu ul.sub li {
    white-space: normal;
}

.pmm .menu ul > li.mega-menu {
    position: unset;
}

.pmm .menu .mega-menu > .container {
    right: 0;
    left: 0;
    margin: auto;
}

.pmm .menu .mega-menu > .container > li {
    width: 100%;
}

.pmm .menu li.dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pmm .menu li.dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: row;
}

.pmm .menu li.dropdown ul.sub {
    order: 3;
    border: 1px solid #dee2e6;
}

/*** toggle style *** START ***/
#toggle-navbar {
    height: 1.5rem;
    width: 1.8rem;
}

#toggle-navbar span:after,
#toggle-navbar span:before {
    content: "";
    position: absolute;
    left: 0;
    top: -9px;
}

#toggle-navbar span:after {
    top: 9px;
}

#toggle-navbar span {
    position: relative;
    display: block;
}

#toggle-navbar span,
#toggle-navbar span:after,
#toggle-navbar span:before {
    width: 100%;
    height: 5px;
    background-color: var(--header-color);
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
    backface-visibility: hidden;
    border-radius: 2px;
}

#toggle-navbar.on span {
    background-color: transparent !important;
}

#toggle-navbar.on span:before {
    transform: rotate(45deg) translate(5px, 5px);
}

#toggle-navbar.on span:after {
    transform: rotate(-45deg) translate(7px, -8px);
}
/*** toggle style *** END ***/

.pmm-body-cover{
    position: fixed;
    right: -100%;
    bottom: 0;
    width: 0;
    height: 0;
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    -webkit-transition: opacity 500ms ;
    -moz-transition: opacity 500ms ;
    -o-transition: opacity 500ms ;
    transition: opacity 500ms ;
}

.toggle-pmm .pmm-body-cover{
    width: 100vw;
    height: 100vh;
    right:0;
    opacity: 0.5;
    -webkit-transition: opacity 500ms ;
    -moz-transition: opacity 500ms ;
    -o-transition: opacity 500ms ;
    transition: opacity 500ms ;
}

.pmcms-col-5{
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

@media (max-width: 991px) {

    .pmm .menu ul {
        flex-direction: column;
    }

    .pmm .menu,
    .pmm .menu ul,
    .pmm .menu ul li,
    ul.webpart-secondary-top-menu-links li
    {
        width: 100%;
    }

    .pmm {
        z-index: 200;
        position: fixed;
        bottom: 0;
        /*height: 1rem;*/
        overflow-y: auto;
        background-color: var(--bg-header-scrolled);
    }

    .dir-rtl .pmm {
        right:-100%;
        -webkit-transition: right 500ms ;
        -moz-transition: right 500ms ;
        -o-transition: right 500ms ;
        transition: right 500ms ;
    }

    .dir-ltr .pmm {
        left:-100%;
        -webkit-transition: left 500ms ;
        -moz-transition: left 500ms ;
        -o-transition: left 500ms ;
        transition: left 500ms ;
    }

    .pmm .menu ul li ul.sub {
        position: unset;
        display: none;
    }

    .dir-rtl .pmm.toggle-pmm {
        right: 0;
        -webkit-transition: right 500ms ;
        -moz-transition: right 500ms ;
        -o-transition: right 500ms ;
        transition: right 500ms ;
    }

    .dir-ltr .pmm.toggle-pmm {
        left: 0;
        -webkit-transition: left 500ms ;
        -moz-transition: left 500ms ;
        -o-transition: left 500ms ;
        transition: left 500ms ;
    }

    .pmm .menu ul li:hover > ul {
        display: none;
    }

    .pmm .menu ul li:hover > ul {
        display: none;
    }

    .pmm .menu .mega-menu img {
        display: none;
    }

    .pmm .menu .mega-menu .image-not-exist {
        display: none !important;
    }

    .pmm .menu .dropdown li, .pmm .menu .dropdown .menu-title {
        font-size: 1rem !important;
        font-weight: 100 !important;
        color: black !important;
        padding: 0.25rem 0 0 0 !important;
        margin: 0 !important;
        display: flex;
        line-height: 1.5;
    }

    .pmm .menu .dropdown:not(.mega-menu) li{
        padding-right: 0.75rem !important;
        padding-left: 0.75rem !important;
    }

    .pmm .menu .dropdown.mega-menu > .sub > li {
        padding: 0 !important;
    }

    .pmm .menu .dropdown .sm-hide {
        display: none;
    }

    .pmm .menu li.dropdown ul.sub, .pmm .menu li {
        width: 100% !important;
    }

    .pmm .menu li.dropdown{
        flex-flow: row wrap;
    }

    .dir-rtl .pmm .menu ul li:hover > i,
    .dir-ltr .pmm .menu ul li:hover > i
    {
        transform: none;
    }

    .pmm .menu ul li.on > i.plus-hover-to-mines:before{
        content: "\f068";
        transition: all 500ms ;
    }

    .pmm .menu ul li ul.sub{
        background-color: transparent;
        border:0px !important;
    }

    body.toggle-pmm {
        overflow: hidden;
    }

    /*body.toggle-pmm main{*/
        /*filter: blur(3px);*/
        /*-webkit-transition: all 500ms ;*/
        /*-moz-transition: all 500ms ;*/
        /*-o-transition: all 500ms ;*/
        /*transition: all 500ms ;*/
    /*}*/

    header#navbar.header-type-1.scrolled .menu-container,
    header#navbar.header-type-2.scrolled .menu-container
    {
        margin-bottom: 0!important;
        margin-top: 0!important;
    }

    .pmm .card{
        background-color: transparent;
    }

    .pmm ul.pmcms-bullet li {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    .pmcms-col-5{
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pmm .mega-menu .card-body{
        background-color: transparent !important;
        color: inherit !important;
    }

    .pmm .menu-container{
        order:2;
    }

    .webparts-position-top-menu i{
        font-size: 1.5rem;
    }

    .pmm .menu > ul > li > ul.sub li,
    .pmm .menu > ul > li.mega-menu > ul.sub li div a
    {
        color: #222;
        color: var(--header-color);
    }

}

@media (min-width: 992px) {
    .pmm .menu > ul > li:not(.mega-menu) > ul.sub li:hover:not(.mega-menu){
        background-color: var(--light);
        transition: background-color 0.5s;
    }

    .pmm .menu i.arrow {
        display: none;
    }

    .pmm .menu > ul > li > a:after {
        display:block;
        content: '';
        border-bottom: solid 2px var(--main-2);
        transform: scaleX(0);
        transition: transform 150ms ease-in-out;
    }
    .pmm .menu > ul > li > a:hover:after,
    .pmm .menu > ul > li:hover > a:after
    {
        transform: scaleX(1.2);
    }

}
/*** mega menu style *** END ***/