/*
 * Admiral 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 Admiral Pro
 */

/*--------------------------------------------------------------
# Header Widgets
--------------------------------------------------------------*/
.header-widgets {
	display: inline;
}

.header-widget {
	float: right;
	margin: 0.75em 0 0 1.5em;
}

.header-widget ul {
	margin: 0;
	padding: 0;
}

.header-widget-title {
	margin: 0 0 0.5em;
}

/*--------------------------------------------------------------
# Header Sub Navigation
--------------------------------------------------------------*/
.header-navigation-toggle {
	display: none;
}

.header-navigation-wrap {
	border-bottom: 1px solid rgba(255,255,255,0.1);
	background: rgba(0,0,0,0.1);
}

.header-navigation {
/*	border-top: 1px solid rgba(255,255,255,0.2); */
}

.header-navigation-menu {
	position: relative;
	float: left;
	margin: 0;
	padding: 0;
	width: 100%;
	list-style-position: outside;
	list-style-type: none;
}

.header-navigation-menu li {
	float: left;
}

.header-navigation-menu a {
	display: block;
	padding: 0.8em 1.5em;
	text-decoration: none;
	font-size: 14px;
	font-size: 0.875rem;
}

.header-navigation-menu > .menu-item-has-children > a:after {
	display: inline-block;
	margin: 0.5em 0 0 0.4em;
	color: #fff;
	content: '\f431';
	vertical-align: top;
	text-decoration: inherit;
	font-size: 14px;
	font-family: 'Genericons';
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.header-navigation-menu a:link,
.header-navigation-menu a:visited {
	color: #fff;
}

.header-navigation-menu a:hover,
.header-navigation-menu a:active {
	color: #ccc;
}

.header-navigation-menu ul {
	position: absolute;
	z-index: 9999;
	display: none;
	margin: 0;
	padding: 0;
	background: #fff;
	box-shadow: 0 2px 2px #ccc;
	list-style-position: outside;
	list-style-type: none;
}

.header-navigation-menu ul li{
	position: relative;
	float: none;
}

.header-navigation-menu ul a {
	box-sizing: border-box;
	padding: 0.8em 1em;
	min-width: 250px;
	min-width: 16rem;
	border-bottom: 1px solid #eee;
}

.header-navigation-menu ul li:last-child > a {
	border-bottom: none;
}

.header-navigation-menu ul a:link,
.header-navigation-menu ul a:visited {
	color: #777;
}

.header-navigation-menu ul a:hover,
.header-navigation-menu ul a:active {
	color: #303030;
}

.header-navigation-menu ul .menu-item-has-children > a:after {
	display: inline-block;
	margin: 0.5em 0 0 0.2em;
	color: #777;
	content: '\f431';
	vertical-align: top;
	text-decoration: inherit;
	font-size: 14px;
	font-family: 'Genericons';
	line-height: 1;
	-webkit-transform:rotate(270deg);
	-moz-transform:rotate(270deg);
	-o-transform:rotate(270deg);
	-ms-transform:rotate(270deg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.header-navigation-menu li ul ul {
	top: 0;
	left: 100%;
}

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

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

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

.header-navigation-menu .mega-menu-content .widget_meta ul li,
.header-navigation-menu .mega-menu-content .widget_pages ul li,
.header-navigation-menu .mega-menu-content .widget_categories ul li,
.header-navigation-menu .mega-menu-content .widget_archive ul li {
	border-bottom: 1px solid #eee;
}

/*--------------------------------------------------------------
# Magazine Widgets
--------------------------------------------------------------*/

/* Magazine Posts Boxed Widget Horizontal Style */
.widget-magazine-posts .magazine-horizontal-box .large-post .wp-post-image {
	float: left;
	box-sizing: border-box;
	margin: 0;
	padding-right: 1em;
	width: 50%;
}

.widget-magazine-posts .magazine-horizontal-box .large-post .post-content {
	float: right;
	box-sizing: border-box;
	padding-left: 1em;
	width: 50%;
}

.widget-magazine-posts .magazine-horizontal-box .medium-posts {
	margin-right: -2em;
}

/* Magazine Posts Boxed Widget Vertical Style */
.widget-magazine-posts .magazine-vertical-box .large-post {
	float: left;
	box-sizing: border-box;
	margin-bottom: 1em;
	padding-right: 1em;
	width: 50%;
}

.widget-magazine-posts .magazine-vertical-box .small-posts {
	box-sizing: border-box;
	margin-left: 50%;
	padding-left: 1em;
	width: 50%;
}

/* Magazine Posts List Widget */
.widget-magazine-posts-list .type-post {
	margin: 0 0 1.5em;
}

.widget-magazine-posts-list .type-post .wp-post-image {
	float: left;
	margin: 0 2em 1em 0;
	padding: 0;
	max-width: 45%;
}

.widget-magazine-posts-list .type-post .entry-title {
	font-size: 20px;
	font-size: 1.25rem;
}

/*--------------------------------------------------------------
# Footer Widgets
--------------------------------------------------------------*/
.footer-widgets-background {
	padding: 1.5em 0 0;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	background: #404040;
}

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

.footer-widgets .widget {
	margin: 0 0 2em;
}

/* Default: Four Column Footer Widgets */
.footer-widget-column {
	float: left;
	box-sizing: border-box;
	padding-right: 1em;
	width: 25%;
}

/* One Column Footer Widgets
* Using Sibling Count: http://andr3.net/blog/post/142
*/
.footer-widget-column:nth-child(1):nth-last-child(1) {
	float: none;
	width: 100%;
}

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

/* 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.3333%;
}

/* Footer Widget Styling */
.footer-widgets .widget {
	color: #ccc;
}

.footer-widgets .widget-title {
	color: #fff;
}

.footer-widgets .widget a:link,
.footer-widgets .widget a:visited  {
	color: rgba(255,255,255,0.75);
}

.footer-widgets .widget a:hover,
.footer-widgets .widget a:active  {
	color: rgba(255,255,255,0.5);
}

/*--------------------------------------------------------------
# Footer Navigation
--------------------------------------------------------------*/
.footer-navigation {
	float: right;
	padding: 0.5em;
}

.footer-navigation-menu {
	margin: 0;
	padding: 0;
	list-style-position: outside;
	list-style-type: none;
}

.footer-navigation-menu li {
	float: left;
}

.footer-navigation-menu li a {
	display: block;
	padding: 0.5em 0.75em;
	text-decoration: none;
}

.footer-navigation-menu a:link,
.footer-navigation-menu a:visited {
	color: #fff;
}

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

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

.scroll-to-top-button:focus,
.scroll-to-top-button:active {
	background: #ee4444;
}

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

.scroll-to-top-button:after {
	display: inline-block;
	margin: 0 0 0 3px;
	color: #fff;
	content: '\f432';
	vertical-align: top;
	text-decoration: inherit;
	font-size: 28px;
	font-family: 'Genericons';
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

/*--------------------------------------------------------------
## Desktop Large
--------------------------------------------------------------*/
@media only screen and (max-width: 95em) {
	.footer-widgets-background {
		padding: 1.25em 1em 0;
	}
}

/*--------------------------------------------------------------
## Desktop Medium ( < 1040px )
--------------------------------------------------------------*/
@media only screen and (max-width: 65em) {
	/* Magazine Post Widgets */
	.widget-magazine-posts .magazine-horizontal-box .large-post .entry-content {
		display: none;
	}

	/* 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: 50%;
	}

	.footer-widget-column:nth-child(3):nth-last-child(2) {
		clear: left;
	}
}

/*--------------------------------------------------------------
## Desktop Small ( < 960px )
--------------------------------------------------------------*/
@media only screen and (max-width: 60em) {
	/* Header Widgets */
	.header-widgets {
		display: block;
		text-align: center;
	}

	.header-widget {
		display: inline-block;
		float: none;
		margin: 1em 0 0;
		max-width: 100%;
		vertical-align: top;
	}

	.header-widget .search-form {
		max-width: 300px;
	}

	/* Magazine Post Widgets */
	.widget-magazine-posts .magazine-horizontal-box .large-post .entry-content {
		display: inline-block;
	}

	/*** Mobile Top Navigation ***/

	/* Reset */
	.header-navigation-menu {
		margin: 0;
	}

	.header-navigation-menu li {
		position: static;
		float: none;
	}

	.header-navigation-menu ul {
		position: static;
		display: block;
	}

	.header-navigation-menu ul a {
		float: none;
		width: auto;
	}

	.header-navigation-menu li ul ul {
		margin-left: 0;
	}

	.header-navigation-menu li:hover ul ul,
	.header-navigation-menu li:hover ul ul ul,
	.header-navigation-menu li:hover ul ul ul ul,
	.header-navigation-menu li:hover ul,
	.header-navigation-menu li li:hover ul,
	.header-navigation-menu li li li:hover ul,
	.header-navigation-menu li li li li:hover ul {
		display: inline;
	}

	.header-navigation-menu > .menu-item-has-children > a:after,
	.header-navigation-menu ul .menu-item-has-children > a:after {
		display: none;
	}

	/* Top Navigation Menu */
	.header-navigation-wrap {
		display: none;
	}

	.header-navigation-menu {
		float: left;
		width: 100%;
		border-top: 1px solid rgba(255,255,255,0.1);
	}

	.header-navigation-menu a {
		display: block;
		clear: left;
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}

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

	.header-navigation-menu ul {
		width: 100%;
		box-shadow: none;
	}

	.header-navigation-menu ul a {
		display: block;
		padding-left: 3em;
		width: 100%;
	}

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

	.header-navigation-menu ul ul ul a {
		padding-left: 6em;
	}

		.header-navigation-menu ul ul ul ul a {
		padding-left: 7.5em;
	}

	/* Mobile Submenu Dropdowns */
	.header-navigation-menu .submenu-dropdown-toggle {
		display: block;
		float: right;
		margin: 0;
		padding: 0.6em 1em;
		background: none;
	}

	.header-navigation-menu .submenu-dropdown-toggle:hover {
		cursor: pointer;
	}

	.header-navigation-menu .submenu-dropdown-toggle:before {
		color: #fff;
		content: '\f431';
		vertical-align: middle;
		text-decoration: inherit;
		font-size: 24px;
		font-family: 'Genericons';
		line-height: 1;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	.header-navigation-menu .submenu-dropdown-toggle:hover:before {
		color: #ccc;
	}

	.header-navigation-menu .submenu-dropdown-toggle.active:before {
		content: '\f432';
	}

	.header-navigation-menu ul .submenu-dropdown-toggle {
		padding: 0.55em 1em;
	}


	.header-navigation-menu ul .submenu-dropdown-toggle:before {
		color: #777;
	}

	.header-navigation-menu ul .submenu-dropdown-toggle:hover:before {
		color: #303030;
	}

	/* Footer Navigation */
	.footer-navigation {
		float: none;
		text-align: center;
		padding-bottom: 0;
	}

	.footer-navigation-menu li {
		float: none;
		display: inline-block;
	}
}

/*--------------------------------------------------------------
## Tablet Medium ( < 800px )
--------------------------------------------------------------*/
@media only screen and (max-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: 100%;
	}
}

/*--------------------------------------------------------------
## Tablet Small ( < 720px )
--------------------------------------------------------------*/
@media only screen and (max-width: 45em) {
	/* Magazine Post Widgets */
	.widget-magazine-posts .magazine-horizontal-box .large-post .entry-content {
		display: none;
	}

	.widget-magazine-posts-list .type-post .entry-content {
		display: none;
	}

}

/*--------------------------------------------------------------
## Mobile Extra Large ( < 640px )
--------------------------------------------------------------*/
@media only screen and (max-width: 40em) {
	/* Magazine Posts Widgets */
	.widget-magazine-posts .magazine-horizontal-box .medium-posts {
		margin-right: 0;
	}

	.widget-magazine-posts .magazine-horizontal-box .large-post .wp-post-image,
	.widget-magazine-posts .magazine-horizontal-box .large-post .post-content,
	.widget-magazine-posts .magazine-vertical-box .large-post {
		float: none;
		padding: 0;
		width: 100%;
	}

	.widget-magazine-posts .magazine-vertical-box .small-posts {
		margin-left: 0;
		padding-top: 1em;
		padding-left: 0;
		width: 100%;
	}

	.widget-magazine-posts .magazine-horizontal-box .large-post .entry-content {
		display: inline-block;
	}

	.widget-magazine-posts .magazine-horizontal-box .large-post .wp-post-image {
		margin: 0 0 0.5em;
	}

	.widget-magazine-posts-list .type-post .wp-post-image {
		margin: 0 1.5em 0 0;
	}

	.widget-magazine-posts-list .type-post .entry-title {
		font-size: 18px;
		font-size: 1.125rem;
	}

	/* Footer Navigation Menu */
	.footer-navigation {
		padding: 1em 0;
	}

	.footer-navigation-menu li,
	.footer-navigation-menu a {
		display: block;
	}
}

/*--------------------------------------------------------------
## Mobile Large ( < 560px )
--------------------------------------------------------------*/
@media only screen and (max-width: 35em) {
	/* Magazine Homepage: Category Post Widgets */
	.widget-magazine-posts .magazine-horizontal-box .medium-posts {
		margin-right: 0;
	}

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

	.footer-widgets {
		margin-right: 0;
	}

	.footer-widgets .widget {
		margin: 0 0 1em;
	}

	#footer-widgets .footer-widget-column {
		float: none;
		padding-right: 0;
		width: 100%;
	}
}

/*--------------------------------------------------------------
## Mobile Medium ( < 480px )
--------------------------------------------------------------*/
@media only screen and (max-width: 30em) {
	/* Magazine Homepage: Category Post Widgets */
	.widget-magazine-posts .magazine-horizontal-box .large-post .post-content {
		float: none;
		padding: 0;
		width: 100%;
	}

	.widget-magazine-posts .magazine-horizontal-box .large-post .entry-content {
		display: inline-block;
	}

	.widget-magazine-posts-list .type-post .entry-title {
		font-size: 16px;
		font-size: 1rem;
	}

	.widget-magazine-posts-list .type-post .entry-meta {
		display: none;
	}

}

/*--------------------------------------------------------------
## Mobile Small ( < 320px )
--------------------------------------------------------------*/
@media only screen and (max-width: 20em) {
	.widget-magazine-posts-list .type-post .entry-title {
		font-size: 15px;
		font-size: 0.9375rem;
	}

}

/*--------------------------------------------------------------
# Media Query Fixes
--------------------------------------------------------------*/

/* Ensure top navigation is visible on desktop view */
@media only screen and (min-width: 60.001em) {
	.header-navigation-menu {
		display: block !important;
	}

}
