/* Header Right Side Menu //////////*/

.menu, .menu ul, .menu ul li, .menu ul li a, .menu #menu-button {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    line-height: 1;
    display: block;
    /*  position: relative;
*/
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#primary-menu {
    float: left;
    /* border-bottom:2px solid #fff; */
    /* font-family: 'Poppins', serif; */
    font-size: 24px;
    font-weight: 700;
}

#secondary-menu {
    float: right;
    z-index: 999;
    margin-bottom: 12px;
    /* margin-right: 6px; */
    position: relative;
    /* font-family: 'Lato', serif; */
    font-size: 14px;
    font-weight: bold;
}

#secondary-menu ul ul {
    /* top:0; */
    padding: 25px 0px;
}

/* #secondary-menu ul > li:hover {
    background: #85a854;
} */

#secondary-menu ul li.has-sub i, #secondary-menu ul li:nth-child(3) i {
    margin-left: 5px;
    font-size: 16px;
    position: relative;
    bottom: -1px;
}

#secondary-menu ul ul li {
    font-family: 'Poppins', serif;
    font-weight: 500;
}

#secondary-menu li.i-search {
    width: 45px;
    position: relative;
}

#secondary-menu li.i-search.no-lang .web-search {
    top: 0;
}

#secondary-menu ul>li>a {
    text-transform: initial;
}

#secondary-menu ul.lang-menu>li>a {
    text-transform: uppercase;
    /* padding-top: 23px; */
}

#secondary-menu ul.social-links {
    padding: 15px 5px 0px;
}

#secondary-menu .social-links li {
    margin-right: 3px;
}

#secondary-menu .social-links li:last-child {
    margin-right: 0px;
}

#secondary-menu .social-links>li:hover {
    background: unset;
}

#secondary-menu .social-links li.social-link a, .mobile-header ul.social-links li a {
    /* padding: 8px 9px; */
    font-size: 17px;
    color: #fff;
    font-weight: bold;
    background: #9dc767;
    border-radius: 35px;
    width: 35px;
    line-height: 35px;
    text-align: center;
    display: inline-block;
    padding: 0px;
}

#secondary-menu .social-links li.social-link:hover a, .mobile-header ul.social-links li.social-link:hover a {
    background: #c5ce5b;
}

.mobile-header ul.social-links {
    position: absolute;
    right: 100px;
    top: 10px;
    padding-left: 0;
}

.mobile-header .social-links li {
    display: inline-block;
}

/*#secondary-menu li.i-search i {
	font-size:24px;
	position:relative;
	top:-10px;
	cursor:pointer;
}*/

#primary-menu>ul>li>a {
    margin: 0 20px;
}

#primary-menu ul li:first-child a {
    margin-left: 0;
}

#primary-menu ul li:hover>ul {
    left: -10px;
}

#primary-menu ul li:first-child:hover>ul {
    left: -25px;
}

#primary-menu ul li:last-child a {
    margin-right: 0;
}

#primary-menu ul ul li:first-child a {
    margin-left: inherit;
}

#primary-menu ul ul li:last-child a {
    margin-left: inherit;
}

/* Mega Menu */

.mega-menu {
    width: 100%;
    background: #929743;
    left: 0;
    position: fixed;
    top: 0;
    padding: 180px 30px 30px;
    display: none;
    z-index: 98;
    text-align: left;
    height: 100vh;
}

.mega-menu a {
    display: block;
    font: 26px Georgia, "Times New Roman", Times, serif;
    color: #24201f;
    padding: 0px 0 40px;
    text-align: left;
}

.mega-menu a:first-child {
    margin-bottom: 20px;
    padding-bottom: 0px;
    line-height: 0;
}

.mega-menu a:hover {
    color: #c6ce5f;
}

.mega-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.mega-menu ul li {
    width: 31.62%;
    margin: 0 30px 0 0;
    text-align: center;
}

.mega-menu ul li:nth-of-type(3n) {
    margin-right: 0px;
}

.mega-menu ul li img {
    width: 100%;
}

a.nav-button {
    position: absolute;
    right: 12px;
    top: 64px;
    padding: 14px 50px;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    transition-duration: .4s;
    -webkit-transition-duration: 0.4s;

    color: #fff;
    background: #9dc767;
    border: 1px solid #9dc767;
}

a:hover.nav-button,
.nav-button.active {
    color: #87b350;
    border: 1px solid #fff;
    background-color: #fff;
}

.menu:after, .menu > ul:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.menu #menu-button {
    display: none;
}

.menu ul {
    float: right;
}

.menu>ul>li {
    display: inline-block;
    position: relative;
}

.menu.align-center>ul {
    font-size: 0;
    text-align: center;
}

.menu.align-center > ul > li {
    display: inline-block;
    float: none;
}

.menu.align-center ul ul {
    text-align: left;
}

.menu > ul > li > a {
    margin: 0 15px;
    padding: 10px 0;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
}

/* #secondary-menu > ul > li {
	margin: 0px 10px;
} */

/* #secondary-menu > ul > li.has-sub > a {
	padding-right: 10px;
} */

#secondary-menu>ul>li>a {
    margin: 0;
    padding: 25px 10px 10px 8px;
    position: relative;
    z-index: 999999;
    /* font-weight:bold; */
    /* margin: 0px 10px; */
}

/* #secondary-menu > ul > li:first-of-type > a {
    font-weight: 700;
} */

/* #secondary-menu > ul > li > ul {
    padding-left: 10px;
    padding-right: 1px;
} */

#secondary-menu.menu ul ul li a {
    padding: 10px 15px;
}

#secondary-menu>ul>li:last-child>a {
    z-index: 9;
}

.menu>ul>li>a:hover, .menu>ul>li:hover a, .menu>ul>li>a.active {
    color: #e3f0d2;
    text-decoration: none;
    border-bottom: none;
}

#secondary-menu.menu>ul>li:hover>a {
    color: #e3f0d2;
}

.header.sticky .menu>ul>li>a {
    color: #fff;
}

.header.sticky .menu>ul>li>a:hover, .header.sticky .menu>ul>li>a.active, .header.black-bg .menu>ul>li>a:hover, .header.black-bg .menu>ul>li>a.active {
    color: #e3f0d2;
    text-decoration: none;
}

/* .menu > ul > li.has-sub > a {
	padding-right: 30px;
} */

.menu>ul>li.has-sub>a:after {
    position: absolute;
    top: 25px;
    right: 15px;
    width: 8px;
    height: 2px;
    display: block;
    background: #ccc;
    content: '';
    display: none;
}

.menu>ul>li.has-sub>a:before {
    position: absolute;
    top: 22px;
    right: 18px;
    display: block;
    width: 2px;
    height: 8px;
    background: #ccc;
    content: '';
    display: none;
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}

.menu > ul > li.has-sub:hover > a:before {
    top: 23px;
    height: 0;
}

.menu ul ul {
    position: absolute;
    left: -9999px;
    right: 0;
    margin: 0 auto;
    width: 100%;
    min-width: 160px;
    background: #87b350;
    z-index: 2;
    padding-top: 10px;
    padding-bottom: 10px;
}

ul.lang-menu ul {
    min-width: unset;
}

.menu ul.lang-menu {
    margin-right: 6px;
}

#primary-menu ul ul {
    width: 320px;
}

/* #secondary-menu ul ul {
    padding-bottom:32px;
} */

/*.menu.align-right ul ul {
	text-align: left;
}*/

.menu ul ul li {
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}

.menu li:hover>ul {
    left: 0;
}

/*
.menu.align-right li:hover > ul {
	left: auto;
	right: auto;
}*/

.menu li:hover a {
    border-bottom: 2px solid #fff;
}

.menu li:hover>ul>li {
    /* height: 35px;*/
    display: block;
    width: 100%;
}

.menu ul ul ul {
    margin-left: 100%;
    top: 0;
    background: none;
}

.menu.align-right ul ul ul {
    margin-left: 0;
    margin-right: 100%;
    background: #fff;
}

.menu ul ul li a, .menu li:hover ul li a {
    /* width: 170px;*/
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    border: none;
}

.menu ul ul li:hover>a, .menu ul ul li a:hover, .menu ul ul li a.active {
    color: #dfedcc;
    border: none;
}

.menu ul ul li.has-sub>a:after {
    position: absolute;
    top: 16px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #fff;
    content: '';
}

.menu.align-right ul ul li.has-sub>a:after {
    right: auto;
    left: 11px;
    display: none;
}

.menu ul ul li.has-sub>a:before {
    position: absolute;
    top: 13px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #dddddd;
    content: '';
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
    display: none;
}

.menu.align-center ul ul li.has-sub>a:before {
    right: auto;
    left: 10px;
}

.menu ul ul>li.has-sub:hover>a:before {
    top: 17px;
    height: 0;
}

.submenu-button {
    display: none;
}

/* .menu > ul > li.has-sub > a {
	padding-right:10px;
} */

.menu ul ul li a {
    font-size: 16px;
    /* font-weight:500; */
    border: none;
    padding: 7px 25px;
    text-align: left;
    margin: 0;
    display: block;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    line-height: inherit;
    background: none;
}

.menu ul ul li a:hover {
    color: #e3f0d2;
    background: none;
}

.mobile-view {
    display: none;
}

a.search-icon {
    width: 24px;
    height: 24px;
    margin: 5px 0 0 20px;
    display: block;
    float: right;
    text-indent: -9009px;
    cursor: pointer;
    background: #fff url(../img/i_search.png) no-repeat right top;
}

a:hover.search-icon {
    background-position: right bottom;
}

.main-bar {
    position: relative;
    padding-top: 70px;
}

.menu-button {
    float: right;
    font: 19px Poppins, serif;
    padding: 10px 25px;
    text-transform: uppercase;
    color: #fff;
    background: #0b4b8e;
    margin: 6px 0 0 20px;
    height: auto;
    clear: right;
}

.menu-button:hover {
    color: #fff;
    background: #1157a0;
}

.main-sub-menu {
    background: rgba(255, 255, 255, 0.95);
    position: absolute;
    right: 0;
    top: 110px;
    padding: 10px 30px 20px;
    font: 14px Poppins, sans-serif;
    color: #666;
    text-transform: uppercase;
    display: none;
    border-bottom: 2px solid #1157a0;
}

.main-sub-menu a {
    display: block;
    padding: 12px 0;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.main-sub-menu a:last-child {
    border: none;
}

.main-sub-menu a:hover, .main-sub-menu a.active {
    color: #1157a0;
    background: url(../img/more-video-arrow.png) no-repeat right 14px;
}

#primary-menu.menu>ul {
    font-size: 0px;
}

#primary-menu.menu>ul>li {
    font-size: 26px;
    border-bottom: 2px solid #fff;
}

#primary-menu.menu>ul>li>a {
    font-weight: bold;
}

#primary-menu.menu ul ul li a {
    line-height: 1.5;
}

#secondary-menu ul>li.has-sub {
    margin-right: 10px;
}

#secondary-menu ul.no-lang+ul li:last-child a {
    padding-right: 12px;
}

@media all and (max-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
    .nav-second li.border a, .nav-second li.language, .nav-second li.button {
        padding: 17px;
        border: none;
        width: auto;
    }
    .nav-second {
        display: none;
    }
    .menu {
        width: 100%;
        position: relative;
        z-index: 999;
    }
    .menu ul {
        width: 100%;
        display: none;
    }
    .menu.align-center>ul {
        text-align: left;
    }
    .menu {
        float: none;
        clear: both;
        background: #000;
    }
    .align-right {
        text-align: left !important;
    }
    .menu ul li {
        width: 100%;
        clear: both;
        float: none;
        border-top: 1px solid rgba(120, 120, 120, 0.2);
        background: none;
        position: relative;
    }
    .menu ul ul li, .menu li:hover>ul>li {
        height: auto;
    }
    .menu ul li a, .menu ul ul li a {
        width: 100%;
        border-bottom: 0;
        font-size: 16px;
    }
    .menu>ul>li {
        float: none;
    }
    .menu ul ul li a {
        padding-left: 25px;
    }
    .menu ul ul ul li a {
        padding-left: 35px;
    }
    .menu ul ul li a {
        color: #616365;
        background: none;
    }
    .menu ul ul li:hover>a, .menu ul ul li.active>a {
        color: #1157a0;
    }
    .header.sticky .menu>ul>li>a {
        color: #fff;
    }
    .menu ul ul {
        margin-top: -4px;
        width: 100%;
    }
    .menu ul ul, .menu ul ul ul, .menu.align-right ul ul {
        position: relative;
        left: 0;
        width: 100%;
        margin: 0;
        text-align: left;
        background: none;
        padding-top: 0;
    }
    .menu>ul>li.has-sub>a:after, .menu>ul>li.has-sub>a:before, .menu ul ul>li.has-sub>a:after, .menu ul ul>li.has-sub>a:before {
        display: none;
    }
    .menu>ul>li.has-sub>a {
        padding: 15px;
    }
    .menu #menu-button {
        display: block;
        width: 45px;
        height: 45px;
        color: #fff;
        cursor: pointer;
        font-size: 16px;
        text-transform: uppercase;
        font-weight: 700;
        background: #53b9cc;
        position: absolute;
        right: 15px;
        top: -61px;
        display: none;
    }
    .menu #menu-button:after {
        position: absolute;
        top: 15px;
        left: 12px;
        display: block;
        height: 4px;
        width: 20px;
        /*border-top: 2px solid #fff;*/
        border-bottom: 7px double #fff;
        content: '';
    }
    .menu #menu-button:before {
        position: absolute;
        top: 25px;
        left: 12px;
        display: block;
        height: 2px;
        width: 20px;
        background: #fff;
        content: '';
    }
    .menu #menu-button.menu-opened:after {
        top: 23px;
        left: 16px;
        border: 0;
        height: 2px;
        width: 15px;
        background: #ffffff;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    .menu #menu-button.menu-opened:before {
        top: 23px;
        left: 16px;
        background: #ffffff;
        width: 15px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    .menu .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        display: block;
        border-left: 1px solid rgba(120, 120, 120, 0.2);
        height: 46px;
        width: 46px;
        cursor: pointer;
    }
    .menu .submenu-button.submenu-opened {
        background: #08255d;
    }
    .menu ul ul .submenu-button {
        height: 34px;
        width: 34px;
    }
    .menu .submenu-button:after {
        position: absolute;
        top: 22px;
        right: 19px;
        width: 8px;
        height: 2px;
        display: block;
        background: #08255d;
        content: '';
    }
    .menu ul ul .submenu-button:after {
        top: 15px;
        right: 13px;
    }
    .menu .submenu-button.submenu-opened:after {
        background: #ffffff;
    }
    .menu .submenu-button:before {
        position: absolute;
        top: 19px;
        right: 22px;
        display: block;
        width: 2px;
        height: 8px;
        background: #08255d;
        content: '';
    }
    .menu ul ul .submenu-button:before {
        top: 12px;
        right: 16px;
    }
    .menu .submenu-button.submenu-opened:before {
        display: none;
    }
    .menu ul ul.one-col, .menu ul ul {
        top: 0;
    }
    .menu ul ul {
        width: 100%;
        -webkit-box-shadow: 10px 10px 12px -10px rgba(0, 0, 0, 0);
        -moz-box-shadow: 10px 10px 12px -10px rgba(0, 0, 0, 0);
        box-shadow: 10px 10px 12px -10px rgba(0, 0, 0, 0);
    }
    .menu>ul>li.has-sub>a {
        padding: 15px;
        margin: 0;
    }
    .menu li:hover>ul {
        left: 0;
    }
    .main-bar {
        /* float: none;
    display: table;
    flex-wrap: inherit;
    width: 100%;*/
    }
    .menu ul {
        float: none;
    }
}
