/* ************************* MEGA MENUS ************************* */

.home.page #megamenu_lightbox {
	z-index: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 727px; /* same height as the feature */
	background-color: #000;
	opacity: 0;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	display: none; /* JS will fade in */
}

/* ************************* MAIN MENU ************************* */

.header_menu {
	clear: both;
	font-family: "Open Sans Bold";
	font-size: 12px;
	text-transform: uppercase;
	position: relative;
	height: 100%;
	z-index: 20; /**/
}

	#main-navigation { height: 100%; }
	.header_menu div[class*="-menu-container"] { display: inline-block; vertical-align: bottom; position: relative; height: 100%; }
	
	.header_menu ul.menu { list-style-type: none; display: table; table-layout: fixed; width: 78%; height: 100%; }
		.header_menu ul.menu .menu-image-title-hide .link { display: none; }
	
		.header_menu ul.menu > li {
			display: inline-block;
			display: table-cell;
			vertical-align: middle;
			text-align: center;
		}
		
			.header_menu ul.menu > li > a {
				text-decoration: none;
				color: #404040;
				background-color: transparent;
				display: block;
				padding: 0 15px;
			}
			
				.header_menu ul.menu > li.home { width: 25px; }
					.header_menu ul.menu > li.home a { padding: 0; }
			
				.header_menu ul.menu > li:hover > a,
				.header_menu ul.menu > li[class*="current-"] > a { color: #EB8C21; background-color: transparent; }
				
	.header_menu li.menu-item-has-children > a > img.menu-image { display: none; } /* hide image attached to mega menu items at top level */
	
	.header_menu li.menu-item a.menu-image-hovered img {
		/* disable transitions built in to menu-image */
		-webkit-transition: none;
		-moz-transition: none;
		transition: none;
	}
				
	/* ----- MEGA MENUS ----- */
	
	.header_menu ul.menu > li > ul.sub-menu {
		background-color: #fff; /* adjust as per theme */
		top: 57px; /* equal to the height of main menu anchor elements */
		min-height: 148px; 
		opacity: 0;
		-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; /* this should be 100 to fix a bug in IE where it wouldn't fade in until the megamenu was actually hovered *directly* over - we were only using opacity for transition effects anyway */
		visibility: hidden;
		position: absolute;
		left: 0;
		overflow: hidden;
		/*width: 960px !important; /* override JS calc */
		/*max-width: 960px;*/
		/*min-height: 350px;*/
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		padding: 0 30px;
		/* padding-bottom: 0; */ /* you may want this if you have a megamenu footer, for example, flush at the bottom of the menu wrapper */
		line-height: 1.6em;
		cursor: initial;
		border-top: 1px solid #B8B8B8;
		border-bottom: 1px solid #B8B8B8;
	}

		.header_menu ul.menu > li > ul.sub-menu > li { display: block; float: left; width: 15.5%; text-align: center; }
		
			.header_menu ul.menu > li > ul.sub-menu > li > a {
				text-decoration: none;
				color: #555;
				opacity: 1;
				display: block;
				padding: 25px 5px;
			}
			
				.header_menu ul.menu > li > ul.sub-menu > li > a > img.menu-image {
					width: auto;
					max-width: 100%;
					height: 71px;
					display: block;
					margin: 0 auto;
				}
				
				.header_menu ul.menu > li > ul.sub-menu > li > a > .link { display: block; margin: 10px auto 0 auto; padding: 0 5px; }
					.header_menu ul.menu > li > ul.sub-menu > li > a > img.menu-image + .link { }
			
			
				.header_menu ul.menu > li > ul.sub-menu:hover > li > a { opacity: 0.5; }
				
				.header_menu ul.menu > li > ul.sub-menu:hover > li > a:hover,
				.header_menu ul.menu > li > ul.sub-menu > li[class*="current-"] > a { color: #EB8C21; opacity: 1; }
	
	/* show mega menu on hover, once positioned correctly by JS */

	.header_menu ul.menu > li.positioned:hover { }
	
		.header_menu ul.menu > li.positioned:hover > ul.sub-menu {
			opacity: 1;
			z-index: 1;
			visibility: visible;
			-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
			
		}
		
#desktop-nav{
	display: none; /* desktop menu*/
}

/* Mobile Menu */
#mobile-nav,
#mobile-toggle{
	display: none; /*displayed by responsive.css */
}

#mobile-toggle span, #mobile-toggle span:before, #mobile-toggle span:after {
	cursor: pointer;
	border-radius: 1px;
	height: 5px;
	width: 35px;
	background: #EB8C21;
	position: absolute;
	display: block;
	content: '';
}

#mobile-toggle span:before {
	top: -10px;
}

#mobile-toggle span:after {
	bottom: -10px; 
}


/* Creates cross when menu is open */
#mobile-toggle.active span {
  background-color: transparent;
}

#mobile-toggle.active span:before, #mobile-toggle.active span:after {
  top: 0;
}

#mobile-toggle.active span:before {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
  transform: rotate(45deg);
}
#mobile-toggle.active span:after {
  	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.mm-opened .mobile-header {
	display: block;
	width: 96%;
	background-color: #FFF;
	height: 106px;
	padding: 0 2%;
	border-bottom: 1px solid #B8B8B8;
 }

.mm-selected{
	background: transparent !important;
}

/** Sidebar menu for Taxonomy Pages **/
.sidebar_submenu a {
	font-family: 'Open Sans Bold';
    text-decoration: none;
    color: #404040;
  	text-transform: uppercase;
}
#sidebar .sidebar_submenu li{
	margin: 0;
	padding: 0;
}

#sidebar .sidebar_submenu li > a{
    background-color: transparent;
    display: block;
    margin: 0;
    padding: 15px;
    border-top: 1px solid #B8B8B8;
    border-left: 1px solid #B8B8B8;
    border-right: 1px solid #B8B8B8;
    -webkit-transition: all .5s;
	-moz-transition: all .5s;
	transition: all .5s;
}

#sidebar .sidebar_submenu li:last-child{
	border-bottom: 1px solid #B8B8B8;
}

#sidebar .sidebar_submenu li:hover > a,
#sidebar .sidebar_submenu li[class*="current-"] > a{
    background-color: #eb8c21;
    padding-left: 30px;
    color: #fff !important;
    border-top: 1px solid #eb8c21;
    border-left: 1px solid #eb8c21;
    border-right: 1px solid #eb8c21;
  }

#sidebar .sidebar_submenu li:hover > a::before,
#sidebar .sidebar_submenu li[class*="current-"] > a::before{
	content: "";
    padding: 10px;
    padding-right: 20px;
    background-image: url("../images/icons/arrow1_left_white.png");
    background-size: auto 15px;
    background-repeat: no-repeat;
    background-position: center left 0px;
}


#sidebar .sidebar_submenu li:hover:last-child,
#sidebar .sidebar_submenu li[class*="current-"]:last-child{
	border-bottom: 1px solid #eb8c21;
}

.sidebar_submenu .menu-image{
	display: none;
}

#sidebar .menu{
	margin: 0;
	padding: 0;
}

/* ******************** The end, thanks for visiting! ******************* */