/*
Theme Name: MD of Spirit River 2016
Theme URI: http://www.mdspiritriver.ab.ca/
Description: Responsive theme custom-designed for MDSR in 2016.
Author: Karyl Gilbertson, New Harvest Media
Author URI: http://newharvest.ca/
Version: 2.1
License: GPLv2
License URI: https://wordpress.org/about/gpl/
Text Domain: new-harvest
Tags: light, responsive-layout
*/

/* ==== GENERAL ==== */

.wf-loading * {
	visibility: hidden;
}
body {
	margin: 0;
	padding: 0;
	background: #0b1429 url('images/bg_body.jpg') top left repeat-x;
	font: 16px "ff-tisa-sans-web-pro", Arial, sans-serif;
	}
.row-wrapper > div {
	max-width: 1000px;
	margin: 0 auto;
	overflow: auto;
	background: #fff;
}
.alignleft {
	float: left;
	margin: .3em 1em 1em 0;
}
.aligncenter {
	text-align: center;
	margin: 0 auto;
}
.alignright {
	float: right;
	margin: .3em 0 1em 1em;
}
img {
	border: 0;
	max-width: 100%;
	height: auto !important;
}
a, a:link, a:visited, .Jump_to_Section, .backtotop  {
	color: #048;
}
a:hover, .Jump_to_Section:hover, .backtotop:hover{
	color: #08C;
    cursor:pointer;
}
hr {
	border: none;
	border-top: 1px solid #CCC;
}
#content hr {
	margin: 0 -1em 0 0;
}
/* Remove list styling where lists are usually navigational elements */
#top-nav ul,
#main-nav ul,
#sidebar ul,
#footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ==== EMERGENCY ALERTS ==== */
.emerg-banner {
	background: #E53;
	border: 1px solid #B20;
	box-shadow: inset 0 0 1px #FFF;
	color: #000;
	margin: 0 -1em 1em 0;
	padding: .75em 1em;
	border-radius: .5em;
}
.emerg-banner h3,
.emerg-banner ul {
	margin: 0;
}
.emerg-banner a {
	color: #FFF;
}
.emerg-banner a:hover {
	opacity: 0.8;
}
.emerg-banner i {
	display: block;
	margin: 3px 0 3px .1em;
	font-size: 3em;
	color: #fff;
	opacity: 0.3;
}

/* ==== HEADER ==== */
.header-wrapper {
	margin: 1.01em 0 0; /* Having at 1.01em instead of 1em fixes a rendering bug in IE / Edge for some reason */
}
#header {
	border-radius: 1em 1em 0 0;
}
#site-title {
	float: left;
	margin: 1em 1em 0;
	line-height: 1;
}
#site-title h1,
#site-title h2 {
	margin: 0;
	font-size: 3em;
}
#site-title .textwidget {
	float: left;
}
#site-title img {
	float: left;
	margin: 0 .33em 0 0;
}
#site-title a {
	text-decoration: none;
	color: #152751;
}
#site-title small {
	float: left;
	font-size: .39em;
	font-weight: normal;
	margin: .5em 0 0;
}
#site-title small:first-child {
	color: #08c;
}
#site-title small.md-num {
	color: #097f48;
	margin-left: 2.2em;
}
#site-title strong {
	float: left;
	clear: left;
	margin: .1em 0 0 .33em;
}
#site-description {
    text-align: right;
    margin: 5em 1em;
	font-style: italic;
}
#header-mid {
	float: right;
	text-align: right;
	margin: 1.66em 1.66em 0 0;
}
#header-mid a {
	display: block;
	font-size: .8em;
	margin: 0 0 .5em;
}
#header-mid a i {
	margin: 0 .5em 0 0;
}
#header-right {
	background: #097f48;
	float: right;
	/*width: 25%;*/
	width: 15.6em;
	padding: 1.66em;
	border-radius: 0 1em 0 1em;
	border: 1px solid #097f48;
	box-shadow: inset 0 0 1px #FFF;
	border-right: 0;
	border-top: 0;
}
#header-right a {
	display: block;
	color: #FFF;
	line-height: 1;
	margin: 0 0 1em;
	font-size: .8em;
}
#header-right a i {
	margin: 0 0 0 .25em;
}

/* ==== NAVIGATION ==== */

.top-wrapper > div {
	background: none;
	overflow: auto;
	font-size: 75%;
	text-align: right;
}
#main-nav {
	background: #097f48;
	max-width: 66%;
	border-radius: 0 1em 1em 0;
	border: 1px solid #097f48;
	box-shadow: inset 0 0 1px #FFF;
	border-left: 0;
}
/* 1st Level Nav */
#top-nav ul {
	line-height: 1;
}
#top-nav ul li,
#main-nav ul li {
	display: inline-block;
}
#top-nav ul li {
	margin: 0 0 0 .7em;
}
#top-nav ul li:first-child {
	margin: 0;
}
#main-nav ul li {
	padding: 1em 0 1em;
	margin: -1px 0 -1px 1em;
}
#main-nav > ul > li.current-menu-item, #main-nav > ul > li.current-menu-ancestor {
	background: url('images/current_menu.png') center bottom no-repeat;
}
#main-nav ul li.current-menu-item > a {
	color: #ffcc00;
}
#main-nav ul li:first-child {
	margin-left: 1.66em;
}
#top-nav ul li a,
#main-nav ul li a {
	color: #fff;
}
#main-nav ul li a {
	font-weight: bold;
	text-decoration: none;
}
#main-nav ul li a:hover,
#top-nav ul li a:hover {
	opacity: 0.8;
}
/* 2nd Level Nav */
#top-nav ul.menu > li > ul.sub-menu,
#main-nav ul.menu > li > ul.sub-menu {
    display:none;
	position: absolute;
    z-index: 200;
    background: #097f48;
	margin: 0 0 0 -1.5em;
	padding: 0 0 1em;
	box-shadow: 0 6px 6px rgba(0,0,0,0.5), inset 0 -1px 1px #FFF;
	border-radius: 0 0 1em 1em;
	border: 1px solid #097f48;
	border-top-width: 1em;
}
#top-nav ul.menu > li:hover > ul.sub-menu,
#main-nav ul.menu > li:hover > ul.sub-menu {
	display: block;
}
#top-nav ul.menu > li:hover > ul.sub-menu li,
#main-nav ul.menu > li:hover > ul.sub-menu li  {
	display: block;
	text-align: left;
	margin: 0;
	padding: 0;
}
#top-nav ul.sub-menu li a,
#main-nav ul.sub-menu li a {
	display: block;
	padding: .5em 1.5em;
}
ul.sub-menu li:hover {
	background: rgba(0,0,0,0.1);
}
#searchform,
#cse-search-box {
	clear: right;
	text-align: right;
	overflow: auto;
	position: relative;
}
#searchform input,
#cse-search-box input {
	padding: 0 5%;
	font: 12pt "ff-tisa-sans-web-pro", sans-serif;
	line-height: 2.1;
	border: 1px solid #FFF;
	border-radius: .25em;
	color: #666;
	width: 88%;
	margin: 0;
	height: 33px;
	box-shadow: inset 0 0 5px #888;
	background-position: .5em center !important;
}
#searchform #searchsubmit,
#cse-search-box #searchsubmit {
	position: absolute;
	top: 0; right: 0;
	width: 2em;
	display: block;
	padding: 0;
	font-size: 12pt;
	line-height: 2;
	border: 0;
	color: #0e4971;
	background: none;
	margin: 0;
	height: 35px;
	box-shadow: none;
}

/* ==== BANNER ==== */

#banner {
	margin: 1em;
	border-radius: 1em 0 0 1em;
	overflow: hidden;
}
#banner .flexslider {
	margin: 0;
}
#banner .flex-control-nav {
	bottom: 10px;
	right: 5px;
	z-index: 2;
	width: auto;
}
#banner .flex-control-paging li a {
	background: #FFF;
	border: 1px solid #FFF;
	box-shadow: 0 0 10px #000;
	width: 8px;
	height: 8px;
}
#banner .flex-control-paging li a.flex-active {
	background: #000;
	border: 1px solid #FFF;
}
#banner .metaslider .caption-wrap {
	top: 0;
	left: 685px;
	width: 41%;
	opacity: 1.0;
	background: #14254e;
	box-shadow: inset 0 0 1px #FFF;
	border-radius: 0 1em 1em 0;
	border: 1px solid #14254e;
	border-left: 0;
}
#banner .metaslider .caption {
	padding: 1.66em;
	color: #64bcff;
}
#banner .metaslider .caption h3 {
	color: #ffcc00;
	font-size: 1.33em;
	margin: 0 0 .5em;
}

/* ==== MAIN CONTENT AREAS ==== */
#main {
	border-radius: 0 0 1em 1em;
	overflow: visible;
}

#content {
    padding: 1.66em;
    margin-right: 33%;
	line-height: 1.5;
}
.entry-title,
.page-title {
	margin: 0 0 .5em;
	line-height: 1;
	color: #097f48;
    clear:left;
}
.entry-meta {
        color: #888;
        font-size: .8em;
}
.sticky, .bypostauthor {
    background: #ecf4ec;
    padding: 1em;
    margin: 0 -1em 1em 0;
    border-radius: .5em;
}
.sticky .entry-meta {
	display: none;
}
iframe {
	max-width: 100%;
}

div#nav-below {
    clear: left;
    margin: 1em 0;
	border-top: 1px dashed #99ceb6;
    text-transform: capitalize;
}

.nav-previous, .nav-next {
	width: 50%;
	float: left;
}
.nav-next {
	text-align: right;
}

/* ==== IMAGES / CAPTIONS ==== */

.wp-caption {
    text-align: center;
}
.wp-caption .wp-caption-text,
.gallery-caption {
    font-size: 75%;
    margin: 0;
    padding: 0;
	font-style: italic;
	color: #777;
}

/* ==== SIDEBAR ==== */

#sidebar {
	margin-top: -3.7em;
	float: right;
	/*width: 25%;*/
	width: 15.6em;
	padding: 1.66em;
	line-height: 1.77;
	min-height: 874px; /* may need to adjust if sidebar content changes */

	background: #097f48;
	border-radius: 1em 0 1em 0;
	border: 1px solid #097f48;
	box-shadow: inset 0 0 1px #FFF;
	border-right: 0;
	border-bottom: 0;

	color: #fff;
}
#sidebar a {
	color: #FFF;
}
#sidebar i {
	margin: 0 .5em 0 0;
}
#sidebar .widget-container {
	margin: 0 0 1.66em;
}
#sidebar .widget-title {
	font-size: 1.2em;
	line-height: 1;
	margin: 0 0 1em;
	color: #ffcc00;
}
#sidebar .widget-title a {
	color: #ffcc00;
	text-decoration: none;
}
#sidebar .mc_general strong {
	line-height: 1 !important;
	color: #B5D5C2;
	font-weight: normal !important;
}
#sidebar .mc_general a {
	color: #FFF;
	font-weight: bold;
}
#sidebar .widget_sp_image img {
	box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

#sidebar img.windowIcon {display:none;}

/* ==== FOOTER ==== */

.footer-wrapper {
	background: #152751;
	margin: 2em 0 0;
}
#footer, #footer a {
	background-color: transparent;
	color: #fff;
}
#footer .widget-container {
	width: 30%;
	padding: 1.5%;
	float: left;
}
#footer .widget-container:last-child {
	border: none;
}
#footer .widget-title {
	margin: 0 0 1em;
}
#footer p {
	margin: .5em 0;
}
#footer i {
	margin: 0 .5em 0 0;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}


/* Fix Business Directory Clearing Glitch */
.wpbdp-cf:after, .cf:after, 
.wpbdp-page-main_page #wpbdp-categories, 
.wpbdp-bar:before,
#wpbdp-search-form .wpbdp-search-filter,
.wpbdp-clearfix:after, .cf:after {
    clear: none !important;
}
/* ==== RESPONSIVE STUFF ==== */

@media screen and (max-width: 1000px) {
	.row-wrapper > div {
		margin: 0 1em 0;
	}
}
@media screen and (max-width: 947px) {
	#main-nav {
		max-width: 100%;
		border-radius: 0;
		border-right-width: 0px;
	}
	#sidebar {
		margin-top: 1.66em;
	}
}
@media screen and (max-width: 858px) {

	#site-title small {
		margin: 0;
	}
	#header-mid {
		margin-top: -.5em;
	}
	#header-mid a {
		float: left;
		margin: 0 0 0 1em;
	}
	#header-mid img {
		max-width: 1.5em;
	}
}
@media screen and (max-width: 751px) {

	#header-right {
		width: 100%;
		padding: 1.66em 0;
		margin: 1em 0 0;
		border-radius: 0;
	}
	#top-nav {
		margin: 0 0 0 1.66em;
	}
	#searchform {
		margin: 1em 1.66em 0;
		float: left;
	}
	#header-mid {
		margin-top: -3.5em;
	}
	#header-mid a {
		color: #FFF;
	}
	#header-mid a img {
		border: 1px solid #FFF;
		border-radius: 2px;
	}
	#banner {
		margin: 0;
		border-radius: 0;
	}
	#banner .metaslider .caption-wrap {
		position: static;
		top: inherit;
		left: inherit;
		right: inherit;
		bottom: inherit;
		border-radius: 0;
		border-left: 1px solid #14254e;
		width: 99.7%;
		/*height: 12em;*/
	}
	#banner .metaslider .flex-direction-nav {
		display: none;
	}
	#banner .flex-control-nav {
        bottom: 1.5em;
        right: 1em;
	}
}
@media screen and (max-width: 636px) {
	#main-nav {
		padding: .5em 0;
	}
	#main-nav ul li {
		padding: .5em 0;
	}
	#main-nav > ul > li.current-menu-item, 
	#main-nav > ul > li.current-menu-ancestor {
		background: none;
	}
	#main-nav ul li:first-child {
		margin-left: 1em;
	}
	#main-nav ul.menu > li > ul.sub-menu {
		border-radius: 0 1em 1em 1em;
	}
	#main {
		padding: 1.66em 0;
	}
	#sidebar {
		width: auto;
		float: none;
		margin: 0 1.66em;
		border-radius: 1em;
	}
	#content {
		margin-right: 0;
	}
}
@media screen and (max-width: 447px) {
	#site-title {
		font-size: .9em;
	}
	#footer .widget-container {
		width: 100%;
	}
	#footer .widget-container * {
		text-align: center !important;
	}
	#footer .widget-container img {
		float: none;
		display: block;
		margin: 1em auto;
	}
	.emerg-banner {
		margin: 0 0 1em;
	}
	.emerg-banner a {
		display: block;
	}
	#content table {
		max-width: 100%;
	}
	#content table td {
		display: block;
		width: 100% !important;
	}
}
@media screen and (max-width: 436px) {
	#searchform,
	#cse-search-box {
		max-width: 45%;
		margin: 0 0 0 1.5em;
	}
}
@media screen and (max-width: 416px) {
	#site-title {
		font-size: .6em;
	}
	#site-title small {
		margin-top: 2.5em;
	}
	#banner .metaslider .caption {
		font-size: .8em;
		line-height: 1.2;
	}
}

/* Super RSS Reader Widget */

#widget_sp_image-8 {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

#widget_sp_image-8 a {
    display: block;
    background: #fff;
    padding: 1em;
    border-radius: .5em .5em 0 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

#widget_sp_image-8 a img {
	box-shadow: none !important;
}

#super_rss_reader-2 {
    padding-top: 0 !important;
}

#super_rss_reader-2 .super-rss-reader-widget {
	color: #000;
    background: #fff;
    padding: 1em !important;
    margin: 0 !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    border-top: 1px solid #eee;
    border-radius: 0 0 .5em .5em;
}

#super_rss_reader-2 .super-rss-reader-widget .srr-item .srr-title a {
    font-weight: bold;
}