/*
HEADER LEFTPANE
================================================ */
/* header leftpane pagewrap */
#pagewrap {
	padding-top: 0 !important; /* prevent inline padding apply from JS */
}
#body {
	padding-left: 340px;
	padding-right: 4%;
}
.full_width #body {
	padding-left: 280px;
	padding-right: 0;
}
#footerwrap {
	padding-left: 280px;
}
.row_inner {
	width: auto;
	max-width: 90%;
	margin: 0 auto;
}
.sidebar-none #content {
	padding: 0;
}
.iphone.sidemenu-active.mobile-menu-visible {
	position: fixed;
}

/* header leftpane headerwrap */
#headerwrap {
	float: left;
	width: 280px;
	height: 100%;
	left: 0;
	border-bottom: none;
	border-right: 1px solid rgba(0,0,0,.1);
}
.header-leftpane #pagewrap #headerwrap {
	position: fixed !important;
}
.transparent-header #headerwrap {
	background-color: rgba(0,0,0,.3);
}
#header {
	text-align: inherit;
	position: absolute;
	height: 100%;
	width: 100%;
	max-width: none;
	padding: 2em 1.5em;
}

.touch #header {
	overflow-y:auto;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
}

/* header leftpane site logo */
#site-logo {
	font-size: 2.2em;
	padding-top: 0;
	letter-spacing: .03em;
	margin: 0 0 .5em;
}

/* header leftpane site description */
#site-description {
	margin: 0 0 1.5em;
	letter-spacing: -.05em;
}

/* header leftpane social widget */
.social-widget {
	float: none;
	clear: both;
	display: block;
}

/* header leftpane searchform */
#searchform-wrap {
	float: none;
	clear: both;
	display: block;
	margin: 0 0 1.5em;
}
#searchform-wrap #searchform {
	width: auto; /* reset searchform width */
}
#headerwrap #searchform #s {
	width: 100%;
	margin: 0;
	padding: .25em 2.1em;
	border-radius: 5em;
	background-color: #fff;
	color: #000;
}
#headerwrap #searchform .icon-search:before {
	background: none;
	font-size: 1em;
	left: 10px;
	line-height: 1em;
	margin-top: -.5em;
	padding: 0;
	position: absolute;
	top: 50%;
	width: 1em;
	color: #000;
}
#headerwrap #searchform #s:focus,
#headerwrap #searchform #s:hover,
#headerwrap #searchform .icon-search:hover + #s {
	width: 100%;
	background-color: #fff;
}

/* header leftpane main nav */
#main-nav {
	float: none;
	clear: both;
	margin: 0 0 2em;
}
#main-nav ul {
	width: auto;	
}
#main-nav li:not(.themify-widget-menu) > ul {
	border: none;
	background: none;
	display: block;
	position: static;
	padding: .2em 0 0 1em;
	margin: 0;
	opacity: 1;
	-webkit-transform: none;
	-moz-transform: none;
	transform: none;
}
#main-nav li {
	display: block;
}
#main-nav a {
	padding: .4em 0;
	width: 100%;
}
#main-nav ul a {
	width: auto;
	color: inherit;
}
#main-nav ul li {
	float: none !important;
	width: auto !important;
}
#main-nav .has-mega-column > .sub-menu,
#main-nav .has-mega-sub-menu .mega-sub-menu {
	display: block;
	position: static;
	box-shadow: none;
	border: none;
	background-color: transparent;
	min-height: inherit;
	max-height: inherit;
	opacity: 1;
	-webkit-transform: none;
	-moz-transform: none;
	transform: none;
}
#main-nav .has-mega-sub-menu .mega-sub-menu ul,
#main-nav .has-mega-column .sub-menu li {
	display: block;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}
#main-nav .has-mega-column .widgettitle,
#main-nav .has-mega-column > .sub-menu > .columns-sub-item > a,
#main-nav .has-mega-column > .sub-menu a {
	font-size: inherit;
	font-weight: normal;
	text-transform: none;
}
#main-nav li.mega-link.loading:before,
#main-nav .mega-sub-menu li:hover a:after,
#main-nav .mega-menu-posts {
	display: none;
}
#main-nav .has-mega-column > .sub-menu .widget {
	margin-top: .5em;
	margin-bottom: .5em;
}
#main-nav .has-mega-sub-menu .mega-sub-menu,
#main-nav .has-mega-column > .sub-menu {
	color: inherit;
}
#main-nav .has-mega-column > .sub-menu {
	padding: .5em 1em .1em;
}
#main-nav .has-mega-sub-menu .mega-sub-menu > ul a {
	padding: .5em 1em .1em;
}

/* dropdown icon */
#main-nav .menu-item-has-children .child-arrow:before,
#main-nav .page_item_has_children .child-arrow:before {
    content: "\e64b";
	font-family: themify;
	font-size: 0.8em;
	cursor: pointer;
    position: absolute;
    right: 0;
	top: 4px;
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
#main-nav .menu-item-has-children .child-arrow.toggle-on:before,
#main-nav .page_item_has_children .child-arrow.toggle-on:before {
    content: "\e646";
	-webkit-transform: rotate(-90deg);
	-moz-transform: rotate(-90deg);
	transform: rotate(-90deg);
}
#main-nav .menu-item-has-children > a .sub-arrow,
#main-nav .page_item_has_children > a .sub-arrow {
	display: none;
}
#headerwrap #main-nav .has-mega-column > .sub-menu,
#headerwrap #main-nav .has-mega-sub-menu .mega-sub-menu,
#headerwrap #main-nav .has-mega-column > .sub-menu > li > ul,
#headerwrap #main-nav .has-mega-sub-menu:hover .mega-sub-menu {
	opacity: 1;
	-webkit-transform: none;
	-moz-transform: none;
	transform: none;
	padding: 0 0 0 1em;
}
.header-leftpane #headerwrap #main-nav .has-sub-menu > .sub-menu > li > ul.sub-menu,
.header-leftpane #headerwrap #main-nav .has-mega-column > .sub-menu > li > ul.sub-menu,
.header-leftpane #headerwrap #main-nav > li > div.sub-menu,
.header-leftpane #headerwrap #main-nav > li > ul.sub-menu {
	height: 100%;
	overflow: hidden;
	max-height: 0;
	-webkit-transition: max-height 0.5s ease-in-out;
	-moztransition: max-height 0.5s ease-in-out;
	transition: max-height 0.5s ease-in-out;
}
.header-leftpane #headerwrap #main-nav .has-sub-menu > .sub-menu > li > .toggle-on + ul.sub-menu,
.header-leftpane #headerwrap #main-nav .has-mega-column > .sub-menu > li > .toggle-on + ul.sub-menu,
.header-leftpane #headerwrap #main-nav > li > .toggle-on + div.sub-menu,
.header-leftpane #headerwrap #main-nav > li > .toggle-on + ul.sub-menu {
	max-height: 1000px;
	min-height: initial;
}
#headerwrap #main-nav > li {
	position: relative;
}
#headerwrap #main-nav > li:last-child a,
#headerwrap #main-nav > li a {
	border-bottom: 1px solid rgba(0,0,0,.1)
}
#headerwrap #main-nav > li li a {
	font-size: 0.95em;
	margin-bottom: 0;
	padding: 0.5em 1.5em .5em 0;
}
#headerwrap #main-nav > li li li a {
	padding: 0.5em .5em .5em 0;
}

/* header leftpane column */
#headerwrap .col3-1 {
	float: none;
	width: auto;
	margin: auto;
}
.header-widget .widget {
	margin: 0 0 3em;
}
#sidebar {
	margin-right: 2%;
}

/* footer leftpane */
#footer {
	max-width: 96%;
}

@media screen and (max-width: 1000px) {

	.header-leftpane.mobile-menu-visible {
		overflow-x: hidden;
	}

	/* header leftpane #body */
	.header-leftpane #footerwrap,
	.header-leftpane.full_width #footerwrap,
	.header-leftpane #body,
	.header-leftpane.full_width #body {
		padding-left: 0;
		padding-right: 0;
	}
	.header-leftpane.full_width.mobile-menu-visible {
		left: 280px;
	}
	.header-leftpane #sidebar {
		margin: auto;
	}

	/* header leftpane sidemenu */
	.header-leftpane #mobile-menu.sidemenu {
		position: static;
		width: auto;
		background: none;
		height: auto;
		overflow: inherit;
		padding: 0;
	}

	/* header leftpane headerwrap */
	.header-leftpane.sidemenu-left #headerwrap {
		left: 0;
	}
	.header-leftpane #headerwrap {
		overflow: inherit;
		left: -280px;
	}

	/* header leftpane header */
	.header-leftpane #headerwrap #header {
		width: auto;
		height: 100%;
		padding: 35px 25px 50px;
	}

	/* header leftpane menu icon */
	.header-leftpane #headerwrap #menu-icon {
		position: fixed;
		left: 0;
		background-color: #EC1E24;
		color: #fff;
		font-size: 1.2em;
		width: 32px;
		height: 45px;
		line-height: 45px;
		text-align: center;
		z-index: 10000;
		-webkit-transition: left .2s ease-in-out;
		-moz-transition: left .2s ease-in-out;
		transition: left .2s ease-in-out;
	}
	.header-leftpane.mobile-menu-visible #headerwrap #menu-icon {
		left: 280px;
	}
	.header-leftpane #headerwrap #menu-icon-close {
		display: none;
	}
	.header-leftpane #headerwrap #menu-icon:before {
		content: "\e661";
		font-family: themify;
		font-size: 100%;
	}
	.header-leftpane.mobile-menu-visible #headerwrap #menu-icon:before {
		content: "\e662";
	}

	/* header leftpane site logo */
	.header-leftpane #headerwrap #site-logo {
		font-size: 2.2em;
		padding-top: 0;
		letter-spacing: .03em;
		margin: 0 0 .5em;
	}
	.header-leftpane #headerwrap .social-widget {
		margin: 1em 0 2em;
	}

}