/*--------------------------------------------------------------
6. Menus
--------------------------------------------------------------*/

.herald-menu{
	ul > li > a{
		float: left;
		padding: 10px 15px 10px 15px;
		-webkit-transition: all .1s linear;
		   -moz-transition: all .1s linear;
		    -ms-transition: all .1s linear;
		     -o-transition: all .1s linear;
		        transition: all .1s linear;
	}
	ul > li > ul a{
	    transition: color .15s linear 0s,padding-left .15s linear 0s;
	    -moz-transition: color .15s linear 0s,padding-left .15s linear 0s;
	    -ms-transition: color .15s linear 0s,padding-left .15s linear 0s;
	    -o-transition: color .15s linear 0s,padding-left .15s linear 0s;
	    -webkit-transition: color .15s linear 0s,padding-left .15s linear 0s;
	}
	ul > li > ul li:hover > a{
		 padding-left: 20px;
	}
	li{
		float: left;
		position: relative;
		list-style: none;
		&:last-child{
			margin-right: 0;
		}
	}
	ul > .menu-item-has-children > a:after,
	.herald-mega-menu > a:after{
		font-family: "FontAwesome";
		content: "\f0d7";
		margin-left: 7px;
		font-size: 10px;
		float: right;
	}
	ul ul{
	  box-shadow: 0 1px 0 1px rgba(0, 0, 0, 0.1);
	  float: left;
	  position: absolute;
	  top: 100%;
	  left: -999em;
	  z-index: 99999;
	  padding: 10px 0;
	  text-align: left;
	  opacity: 0;
	  -webkit-backface-visibility: hidden;
	  -webkit-transition: opacity 0.3s cubic-bezier(0, 0.795, 0, 1);
	  -moz-transition: opacity 0.3s cubic-bezier(0, 0.795, 0, 1);
	  -ms-transition: opacity 0.3s cubic-bezier(0, 0.795, 0, 1);
	  -o-transition: opacity 0.3s cubic-bezier(0, 0.795, 0, 1);
	  transition: opacity 0.3s cubic-bezier(0, 0.795, 0, 1);
	}
	.sub-menu{
		width: 280px;
		.sub-menu{
			padding: 10px;
		}
		li{
			display: block;
			margin: 0;
			width: 100%;
			a{
			    float: left;
			    width: 100%;
			}
		}
		> li.menu-item-has-children > a:after{
			content: "\f0da";
		}
	}
	ul li:hover > ul, 
	ul li:focus > ul{
		left: 0;
		opacity: 1;    	
	}
	ul ul ul{
		left: -999em;
		top: -10px;
		box-shadow: 0 1px 0 1px rgba(0,0,0,.1), 0 0px 0 1px rgba(0,0,0,.1);
	}
	ul ul li:hover > ul,
	ul ul li.focus > ul {
		left: 100%;
	}
}

.herald-menu .sub-menu .sub-menu.herald-rev{
	left: initial;
	right: 100%; 		
}

.header-bottom{
	.herald-menu{
		li{
			a{
				float: left;
			}
		}
	}
}
.herald-menu-popup{
	position: relative;
	.herald-in-popup{
	  box-shadow: 0 2px 2px 0px rgba(0, 0, 0, 0.1);
	  float: left;
	  position: absolute;
	  top: 100%;
	  left: 0;
	  z-index: 99999;
	  padding: 0;
	  text-align: left;
	  display: none;
	  min-width: 200px;
		animation: hover-fade .2s linear 0s forwards;
		-moz-animation: hover-fade .2s linear 0s forwards;
		-ms-animation: hover-fade .2s linear 0s forwards;
		-o-animation: hover-fade .2s linear 0s forwards;
		-webkit-animation: hover-fade .2s linear 0s forwards;
	  li{
	  	float: left;
	  }

	}
	&:hover{
		cursor: pointer;
	}
}

.hel-r .herald-menu-popup{	
		&:hover,
		&:focus{
			.herald-in-popup{
				right: 0;
				left: auto;
				display: block;    	
			}
		}
}
.hel-r .herald-menu-popup-search.herald-search-active .herald-in-popup{
		right: 0;
		left: auto;
		display: block;   
}

.hel-l .herald-menu-popup,
.hel-c .herald-menu-popup{	
		&:hover, 
		&:focus{
			.herald-in-popup{
				left: 0;
				display: block;  
			} 	
		}	
}
.herald-site-header .herald-menu-popup .herald-search-form{
	.herald-search-submit{
		display: none;
	}
}

.herald-site-header,
.herald-header-sticky {
	.herald-search-form{
		position: relative;
		max-width: 200px;
	}
	.herald-search-input{
	    font-size: 1.3rem;
	    width: 100%;
	    padding: 0 30px 0 10px;
	}
	.herald-search-submit{
		background: transparent;
		position: absolute;
		right: 3px;
		top: -2px;	
		border: none;
		height: 100%;
		&:after{
		font-family: "FontAwesome";
		content: "\f002";
		}	
	}
	.herald-soc-nav li{
		margin-bottom: 0;
	}
}

.header-top{
	.herald-menu{
		> ul > li{
			margin: 0;
		}
		> ul > li > a{
			padding: 11px 10px 11px;
		}

		.sub-menu li a{
			padding: 6px 12px;
		}
		.sub-menu{
			width: 150px;
			padding: 0 0 4px;
		}
	}
	.hel-l{
		.herald-menu{
			> ul > li:first-child > a{
				padding: 11px 10px 11px 0;
			}
		}
	}
	.hel-r{
		.herald-menu{
			> ul > li:last-child > a{
				padding: 11px 0 11px 10px;
			}		
		}
	}
}

.herald-in-popup{
	.herald-search-submit{
	    right: 15px;
	    top: 0;
	}
}
.header-middle{
	.herald-menu{
		ul > li > a{
			border-radius: 2px;
		}
		ul > li.menu-item-has-children > a{
			border-radius: 2px 2px 0 0;
		}
		.sub-menu{
			border-radius: 0 2px 2px 2px;
		}
		.sub-menu .sub-menu{
			border-radius: 2px;
		}
		li{
			margin: 0;
		}
		ul ul{
			padding: 7px 0;
		}
		ul li > ul .sub-menu{
			top: -7px;
		}
	}
}
.header-middle .herald-menu ul > li.current-menu-ancestor > a{
	border-radius: 2px;
}
.header-middle .herald-menu ul > li.current-menu-ancestor:hover > a{
	border-radius: 2px 2px 0 0;
}


.herald-menu li.herald-mega-menu{
	position: static;
}
.herald-menu li.herald-mega-menu .herald-menu-toggler{
	display: none;
}

.herald-menu li.herald-mega-menu .sub-menu a{
	float: none;
	width: auto;
	padding: 0;
}

.herald-menu li.herald-mega-menu .sub-menu .entry-title  a{
	background-color: transparent;
}

.herald-menu li.herald-mega-menu .herald-ovrld .meta-category a{
	padding: 4px 8px;
	color:#FFF;
}

.header-middle .herald-menu ul li.herald-mega-menu.current-menu-parent a{
	border-radius: 2px;
}
.header-middle .herald-menu ul li.herald-mega-menu a,
.header-middle .herald-menu ul li.herald-mega-menu:hover a{
	border-radius: 2px 2px 0 0;
}
.header-middle .hel-c .herald-menu ul li.herald-mega-menu:hover{
	.sub-menu{
	    left: -5px;
	    top: 90%;		
	}
}


// .herald-boxed .header-bottom .hel-c .herald-menu ul li.herald-mega-menu:hover,
// .herald-boxed .header-bottom .hel-l .herald-menu ul li.herald-mega-menu:hover{
// 	.sub-menu{
// 		left: 0;
// 	}
// }
// .header-bottom .hel-c .herald-menu ul li.herald-mega-menu:hover .sub-menu{
// 	left: -20px;
// }
// .hel-l .herald-menu ul li.herald-mega-menu:hover .sub-menu{
// 	left: -30px;
// }


// .hel-r .herald-menu ul li.herald-mega-menu:hover .sub-menu{
// 	left: auto;
// 	right: -30px;
// }
// .herald-boxed .hel-r .herald-menu ul li.herald-mega-menu:hover .sub-menu{
// 	left: auto;
// 	right: 0;
// }
.herald-menu li.herald-mega-menu:hover >.sub-menu{
	left: -40px;
}
.herald-boxed .herald-menu li.herald-mega-menu:hover >.sub-menu{
	left: 0;
}

.hel-r .herald-menu ul li.herald-mega-menu:hover .sub-menu{
	left: auto;
	right: -40px;
}
.herald-boxed .hel-r .herald-menu ul li.herald-mega-menu:hover .sub-menu{
	left: auto;
	right: 0;
}

.herald-boxed .herald-header-sticky .hel-c .herald-menu li.herald-mega-menu:hover >.sub-menu{
	left: -5px;
}

.herald-menu li.herald-mega-menu{
	> .sub-menu{
		position: absolute;
		width: 1400px;
		padding: 0;
		.col-lg-12{
			height: auto;
		}
		.herald-no-sid{
			.herald-module{
				box-shadow: none;
			}
		}
	}
	.entry-meta{
		font-weight: normal;
		text-transform: none;
	}
	.sub-menu ul{
	    left: 0;
	    width: 100%;
	    height: 100%;
	    opacity: 1;
	    padding: 0;
	    box-shadow: none;
	    position: relative;
	}
	.herald-module{
	    padding-top: 40px;
	    -webkit-box-shadow: -1px 0 0 0 rgba(0,0,0,.1);
	    box-shadow: -1px 0 0 0 rgba(0,0,0,.1);
	    padding-left: 40px;
	    width: 77%;
	}
	.col-lg-3{
		padding-top: 40px;
		width: 23%;
    	padding-right: 40px;
		a{
			padding: 10px 0;
			float: left;
			width: 100%;
			text-transform: uppercase;
	        &:hover{
	        	padding-left: 5px;
	        }
		}
		li{
			border-bottom: 1px solid rgba(0,0,0,0.1);
			&:last-child{
				border:none;
			}
		}
	}
}
.herald-menu li.herald-mega-menu .herald-no-sid .herald-module{
	width: 100%;
	padding: 40px 20px 0;
}
.herald-boxed .herald-mega-menu .container,
.herald-site-header .herald-mega-menu .container,
.herald-mega-menu .sub-menu .container{
	width: 100%;
	padding: 0 10px 0 40px;
	float: left;
}
.herald-menu li.herald-mega-menu-classic .sub-menu .entry-title a{
	text-align: left;
}
.herald-menu li.herald-mega-menu .sub-menu .herald-ovrld .entry-title a{text-align: center;}
.herald-site-header  .herald-mega-menu.menu-item-has-children > .sub-menu,
.herald-menu li.herald-mega-menu.herald-mega-menu.herald-mega-menu-classic > .sub-menu {
    display: table;
    table-layout: fixed;
    padding: 0 30px;
}
.herald-mega-menu.herald-mega-menu-classic  > .sub-menu > li{
    display: table-cell;
    text-align: left;
    vertical-align: top;
}
.herald-mega-menu .herald-ovrld .entry-header{
	margin-top: 0;
}
.herald-mega-menu.menu-item-has-children > .sub-menu > li {
    padding: 10px;
}
.herald-site-header .herald-mega-menu.menu-item-has-children .sub-menu ul {
    display: block;
    position: relative;
    width: auto;
    padding: 0;
    left: 0;
    top: 0;
    min-height: initial;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
    clear: both;
}
 .herald-mega-menu-classic > .sub-menu > li {
    display: table-cell;
    padding: 20px;
    text-align: left;
    border-left: 1px solid rgba(0,0,0,0.1);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    float: none;
}
.herald-mega-menu > .sub-menu > li:first-child{
	border-left: none;
}
.herald-mega-menu > .sub-menu a{
	width: 100%;
}
.herald-mega-menu > .sub-menu li:hover > a{
	background: transparent !important;
}
.herald-mega-menu-classic .sub-menu>li.menu-item-has-children>a:after{
	display: none;
	text-align: left;
}
.herald-site-header .herald-mega-menu.herald-mega-menu-classic > .sub-menu,
.herald-site-header .herald-mega-menu > .sub-menu{
	padding: 0 40px;
}
.herald-mega-menu.herald-mega-menu-classic>.sub-menu>li{
 	padding: 30px;
}
.herald-mega-menu.herald-mega-menu-classic>.sub-menu>li:first-child{
	padding-left: 0;
}
.herald-mega-menu.herald-mega-menu-classic>.sub-menu>li:last-child{
	padding-right: 0;
}

.herald-mega-menu-classic .sub-menu li:last-child{
	border-bottom: none;
}
.herald-mega-menu.herald-mega-menu-classic .sub-menu .sub-menu > li:hover > a{
	padding-left: 5px;
}
.herald-mega-menu.herald-mega-menu-classic>.sub-menu>li a{
	padding: 8px 0;
	float: left;
	width: 100%;
}
.herald-mega-menu.herald-mega-menu-classic>.sub-menu>li > a{
	border-bottom: 1px solid rgba(0,0,0,0.1);
	margin-bottom: 8px;
}
.herald-menu .herald-mega-menu.herald-mega-menu-classic .sub-menu ul{
	width: auto;
}
.herald-menu .herald-mega-menu.herald-mega-menu-classic > .sub-menu > li{
	width: auto;
}
.herald-menu .herald-mega-menu .herald-no-sid{
	padding: 0 40px;
}
.herald-mega-menu .herald-module .herald-ovrld {
    min-height: auto;
}
@keyframes hover-fade {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}
@-moz-keyframes hover-fade {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}
@-ms-keyframes hover-fade {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}
@-o-keyframes hover-fade {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}
@-webkit-keyframes hover-fade {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}