/*
 * Mercia Pro CSS
 *
 * Copyright(C) 2017, ThemeZee.com - support@themezee.com
 * License: GPL v3
 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
 *
 * @package Mercia Pro
 */

/*--------------------------------------------------------------
# Header Bar
--------------------------------------------------------------*/
.header-bar-wrap {
	border-bottom: 1px solid rgba(0,0,0,0.15);
}

/* Header Content */
.header-bar .header-content {
	float: left;
	padding: 0.5em 0;
	max-width: 70%;
	font-size: 13px;
	font-size: 0.8125rem;
}

.header-bar .header-content .header-date,
.header-bar .header-content .header-text {
	display: inline-block;
	margin-right: 1.5em;
}

/* Top Navigation Toggle */
.top-navigation-toggle {
	display: inline-block;
	float: right;
	margin: 0;
	padding: 0.5em;
	border: none;
	background: none;
	color: #353535;
	text-decoration: none;
	font-weight: normal;
	font-size: 13px;
	font-size: 0.8125rem;
}

.top-navigation-toggle:hover,
.top-navigation-toggle:focus,
.top-navigation-toggle:active {
	background: none;
}

.top-navigation-toggle:hover,
.top-navigation-toggle:active {
	color: #3377bb;
	cursor: pointer;
}

.top-navigation-toggle .icon {
	margin: 0.3em 0.6em 0 0;
	width: 16px;
	height: 16px;
	vertical-align: top;
	fill: #353535;
}

.top-navigation-toggle:hover .icon,
.top-navigation-toggle:active .icon {
	fill: #3377bb;
}

/* Top Navigation Menu */
.top-navigation-menu {
	display: none;
	clear: left;
	margin: 0;
	padding: 0;
	width: 100%;
	border-top: 1px solid rgba(0,0,0,0.15);
	color: #353535;
	list-style: none;
	font-size: 13px;
	font-size: 0.8125rem;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
}

.top-navigation-menu li {
	margin: 0;
}

.top-navigation-menu a {
	display: block;
	margin: 0;
	padding: 0.5em;
	text-decoration: none;
}

.top-navigation-menu a:link,
.top-navigation-menu a:visited {
	color: #353535;
	text-decoration: none;
}

.top-navigation-menu a:hover,
.top-navigation-menu a:active {
	color: #3377bb;
}

.top-navigation-menu ul {
	margin: 0;
	padding: 0;
	width: 100%;
	background: #fff;
	list-style: none;
	font-size: 13px;
	font-size: 0.8125rem;
}

.top-navigation-menu ul a {
	padding-left: 1.5em;
}

.top-navigation-menu ul li ul a {
	padding-left: 2.5em;
}

.top-navigation-menu ul li ul li ul a {
	padding-left: 3.5em;
}

.top-navigation-menu ul li ul li ul li ul a {
	padding-left: 4.5em;
}

/* Sub Menu Dropdown Icons */
.top-navigation-menu > .menu-item-has-children a .sub-menu-icon {
	float: right;
	margin: -0.5em -0.5em 0;
	padding: 0.5em 1em;
}

.top-navigation-menu > .menu-item-has-children a .sub-menu-icon .icon {
	margin: 0.2em 0 0;
	width: 16px;
	height: 16px;
	vertical-align: top;
	fill: #353535;
}

.top-navigation-menu > .menu-item-has-children a .sub-menu-icon:hover .icon,
.top-navigation-menu > .menu-item-has-children a .sub-menu-icon:active .icon {
	fill: #3377bb;
}

.top-navigation-menu > .menu-item-has-children a .sub-menu-icon.active .icon {
	margin: 0.25em 0 0;
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
}

/*--------------------------------------------------------------
# Header Search
--------------------------------------------------------------*/

/* Header Search Icon */
.header-search .header-search-icon {
	position: absolute;
	right: 0;
	z-index: 99;
	display: inline-block;
	padding: 1em;
	font-size: 17px;
	font-size: 1.0625rem;
}

.header-search .header-search-icon:hover {
	cursor: pointer;
}

.header-search .header-search-icon:focus {
	outline: none;
}

.header-search .header-search-icon .icon-search {
	margin: 0;
	padding: 0;
	width: 24px;
	height: 24px;
	vertical-align: middle;
	fill: #353535;
}

.header-search .header-search-icon:hover .icon-search,
.header-search .header-search-icon:active .icon-search {
	fill: #3377bb;
}

/* Header Search Form */
.header-search .header-search-form-wrap {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 99;
	display: none;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	width: 100%;
	background: #fff;
	font-size: 17px;
	font-size: 1.0625rem;
}

.header-search .header-search-form-wrap .header-search-form {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}

.header-search .header-search-form-wrap .header-search-form .search-form {
	flex-grow: 1;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
}

.header-search .header-search-form-wrap .header-search-form .search-form .search-field {
	padding: 1em;
	border: none;
	font-size: 17px;
	font-size: 1.0625rem;
}

.header-search .header-search-form-wrap .header-search-form .search-form .search-submit {
	display: none;
}

/* Header Search Close Icon */
.header-search .header-search-form-wrap .header-search-form .header-search-close {
	padding: 1em;
}

.header-search .header-search-form-wrap .header-search-form .header-search-close:hover,
.header-search .header-search-form-wrap .header-search-form .header-search-close:active {
	cursor: pointer;
}

.header-search .header-search-form-wrap .header-search-form .header-search-close .icon-close {
	margin: 0;
	padding: 0;
	width: 24px;
	height: 24px;
	vertical-align: middle;
	fill: #353535;
}

.header-search .header-search-form-wrap .header-search-form .header-search-close:hover .icon-close,
.header-search .header-search-form-wrap .header-search-form .header-search-close:active .icon-close {
	fill: #3377bb;
}

/*--------------------------------------------------------------
# Author Bio
--------------------------------------------------------------*/
.entry-author {
	margin: 0 0 1.5em;
	padding: 1.5em 0 1.35em;
	border-top: 1px solid rgba(0,0,0,0.15);
	border-bottom: 1px solid rgba(0,0,0,0.15);
}

.entry-author .author-avatar {
	float: left;
	margin: 0 1.5em 0.25em 0;
	max-width: 25%;
}

.entry-author .author-avatar img {
	vertical-align: top;
}

.entry-author .author-heading .author-title {
	display: inline-block;
	margin: 0 1em 0.25em 0;
	padding: 0;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 17px;
	font-size: 1.0625rem;
	font-family: 'Open Sans', Tahoma, Arial;
	line-height: 1.4;
}

.entry-author .author-heading .author-link {
	display: inline-block;
	margin: 0 0 0.5em;
	font-size: 15px;
	font-size: 0.9375rem;
}

.entry-author .author-bio {
	margin: 0;
	font-size: 17px;
	font-size: 1.0625rem;
}

/*--------------------------------------------------------------
# Footer Content / Footer Widgets
--------------------------------------------------------------*/
.footer-content {
	padding: 1.5em 0;
	border-top: 6px solid #353535;
	text-align: center;
}

.footer-social-menu {
	margin-top: 0.5em;
}

.footer-social-menu .social-icons-menu {
	justify-content: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
}

/* Footer Widgets */
.footer-widgets-background {
	padding: 1.5em 0 0;
	border-top: 1px solid rgba(0,0,0,0.15);
}

/*--------------------------------------------------------------
# Footer Text / Footer Navigation
--------------------------------------------------------------*/
.site-footer .site-info .footer-text {
	display: block;
}

.footer-navigation {
	margin: 1em 0 0;
}

.footer-navigation-menu {
	margin: 0;
	padding: 0;
	color: #353535;
	list-style: none;
	font-size: 15px;
	font-size: 0.9375rem;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
}

.footer-navigation-menu li {
	margin: 0;
}

.footer-navigation-menu a {
	display: block;
	margin: 0;
	padding: 0.5em;
	text-align: center;
	text-decoration: none;
}

.footer-navigation-menu li:last-child a {
	border-bottom: none;
}

.footer-navigation-menu a:link,
.footer-navigation-menu a:visited {
	color: #353535;
	text-decoration: none;
}

.footer-navigation-menu a:hover,
.footer-navigation-menu a:active {
	color: #3377bb;
}

.footer-navigation-menu li.current-menu-item > a {
	text-decoration: underline;
}

/*--------------------------------------------------------------
# Scroll to Top Button
--------------------------------------------------------------*/
.scroll-to-top-button {
	position: fixed;
	right: 0.75em;
	bottom: 0.75em;
	z-index: 9999;
	display: inline;
	margin: 0 auto;
	padding: 0;
	width: 50px;
	height: 50px;
	cursor: pointer;
	-webkit-transition: none;
	transition: none;
}

.scroll-to-top-button:focus {
	background: #3377bb;
}

.scroll-to-top-button:focus:hover {
	background: #353535;
}

.scroll-to-top-button .icon {
	margin: 0.15em 0 0;
	width: 22px;
	height: 22px;
	vertical-align: top;
	fill: #fff;
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
## Mobile Medium ( Larger than 560px )
--------------------------------------------------------------*/
@media only screen and (min-width: 35em) {
	/* Footer Widgets */
	.footer-widgets {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
		margin-right: -1.5em;
	}

	.footer-widget-column {
		flex-grow: 1;
		box-sizing: border-box;
		padding-right: 1.5em;
		width: 50%;
		-webkit-box-flex: 1;
		-ms-flex-positive: 1;
	}

	/* Three Column Footer Widgets */
	.footer-widget-column:nth-child(1):nth-last-child(3),
	.footer-widget-column:nth-child(2):nth-last-child(2),
	.footer-widget-column:nth-child(3):nth-last-child(1) {
		width: 100%;
	}
}

/*--------------------------------------------------------------
## Mobile Medium ( Larger than 640px )
--------------------------------------------------------------*/
@media only screen and (min-width: 40em) {
	.entry-author {
		margin-bottom: 2em;
	}

	/* Footer Widgets */
	.footer-widgets-background {
		padding: 2em 0 0;
	}

	.footer-widgets {
		margin-right: -2em;
	}

	.footer-widget-column {
		padding-right: 2em;
	}

	/* Footer Navigation */
	.footer-navigation-menu {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-ms-flex-flow: row wrap;
		flex-flow: row wrap;
		justify-content: center;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
	}

	.footer-navigation-menu a {
		text-align: left;
	}
}

/*--------------------------------------------------------------
## Tablet Medium ( Larger than 800px )
--------------------------------------------------------------*/
@media only screen and (min-width: 50em) {
	/* Three Column Footer Widgets */
	.footer-widget-column:nth-child(1):nth-last-child(3),
	.footer-widget-column:nth-child(2):nth-last-child(2),
	.footer-widget-column:nth-child(3):nth-last-child(1) {
		width: 33.3333333333333%;
	}
}

/*--------------------------------------------------------------
## Desktop Small ( Larger than 880px )
--------------------------------------------------------------*/
@media only screen and (min-width: 55em) {
	.header-bar {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
	}

	/* Header Text */
	.header-bar .header-content {
		flex-grow: 1;
		float: none;
		max-width: 100%;
		-webkit-box-flex: 1;
		-ms-flex-positive: 1;
	}

	/* Top Navigation */
	.top-navigation-toggle {
		display: none;
	}

	.secondary-navigation {
		float: none;
	}

	.top-navigation-menu {
		position: relative;
		display: -webkit-box !important;
		display: -ms-flexbox !important;
		display: flex !important;
		-ms-flex-flow: row wrap;
		flex-flow: row wrap;
		border-top: none;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
	}

	.top-navigation-menu a {
		padding: 0.5em 1em;
		border: none;
	}

	.top-navigation-menu > .menu-item-has-children a .sub-menu-icon {
		float: none;
		margin: 0;
		padding: 0;
	}

	.top-navigation-menu > .menu-item-has-children a .sub-menu-icon .icon {
		margin: 0.4em 0 0 0.3em;
		width: 12px;
		height: 12px;
	}

	.top-navigation-menu > .menu-item-has-children a:hover .sub-menu-icon .icon {
		fill: #3377bb;
	}

	.top-navigation-menu ul {
		position: absolute;
		z-index: 99;
		display: none;
		width: auto;
		border: 1px solid rgba(0,0,0,0.15);
		border-bottom: none;
	}

	.top-navigation-menu ul li {
		position: relative;
		margin: 0;
	}

	.top-navigation-menu ul a {
		min-width: 250px;
		min-width: 16rem;
		border-bottom: 1px solid rgba(0,0,0,0.15);
	}

	.top-navigation-menu ul a,
	.top-navigation-menu ul li ul a,
	.top-navigation-menu ul li ul li ul a,
	.top-navigation-menu ul li ul li ul li ul a {
		padding: 0.75em 1em;
	}

	.top-navigation-menu ul .menu-item-has-children > a .sub-menu-icon .icon {
		margin: 0.5em 0 0 0.2em;
		width: 10px;
		height: 10px;
		-webkit-transform: rotate(270deg);
		transform: rotate(270deg);
	}

	.top-navigation-menu li ul ul {
		top: -1px;
		left: 100%;
	}

	.top-navigation-menu li.menu-item-has-children:hover > ul,
	.top-navigation-menu li.page_item_has_children:hover > ul,
	.top-navigation-menu li.menu-item-has-children[aria-expanded="true"] > ul {
		display: block;
	}

	.top-navigation-menu li.current-menu-item > a {
		text-decoration: underline;
	}

	.top-navigation-menu li.current-menu-item > a:after {
		text-decoration: none;
	}
}

/*--------------------------------------------------------------
## Desktop Large ( Larger than 1040px )
--------------------------------------------------------------*/
@media only screen and (min-width: 57.5em) {
	/* Footer Content */
	.footer-content {
		position: relative;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		text-align: left;
	}

	.footer-social-menu {
		display: block;
		margin-top: 0.25em;
		margin-left: auto;
	}

	.footer-social-menu .social-icons-menu {
		justify-content: flex-start;
		-webkit-box-pack: start;
		-ms-flex-pack: start;
	}

	/* Footer Line */
	.site-footer {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-ms-flex-flow: row wrap;
		flex-flow: row wrap;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
	}

	.site-footer .footer-navigation {
		order: 2;
		margin: 0.5em 0 0;
		-webkit-box-ordinal-group: 3;
		-ms-flex-order: 2;
	}

	.site-footer .site-info {
		flex-grow: 1;
		order: 1;
		-webkit-box-flex: 1;
		-ms-flex-positive: 1;
		-webkit-box-ordinal-group: 2;
		-ms-flex-order: 1;
	}
}

/*--------------------------------------------------------------
## Desktop Large ( Larger than 1040px )
--------------------------------------------------------------*/
@media only screen and (min-width: 65em) {
	/* Four Column Footer Widgets */
	.footer-widget-column:nth-child(1):nth-last-child(4),
	.footer-widget-column:nth-child(2):nth-last-child(3),
	.footer-widget-column:nth-child(3):nth-last-child(2),
	.footer-widget-column:nth-child(4):nth-last-child(1) {
		width: 25%;
	}
}

/*--------------------------------------------------------------
## Desktop Full ( Larger than 1200px )
--------------------------------------------------------------*/
@media only screen and (min-width: 75em) {
	.entry-author {
		margin-bottom: 2.5em;
	}

	/* Footer Widgets */
	.footer-widgets-background {
		padding: 2.5em 0 0;
	}

	.footer-widgets {
		margin-right: -2.5em;
	}

	.footer-widget-column {
		padding-right: 2.5em;
	}
}

/*--------------------------------------------------------------
18.0 Customizer Preview
--------------------------------------------------------------*/

/* Add some styling for visual edit shortcut buttons. */
.customize-partial-edit-shortcuts-shown .header-bar .header-content .header-text {
	margin-left: 2em;
}

.customize-partial-edit-shortcut-mercia_theme_options-header_text button {
	top: -5px;
	left: -35px;
}
