/*------------------ Variables
*/
/*--- Main Colors
*/
@primaryColor: #005372;
@secondaryColor: #cd2229;
/*--- Background Colors
*/
@backgroundColor: #ccc;
@contentColor: #ffffff;
@contentHighlightColor: darken(@contentColor, 10%); /* darken if light color, lighten if dark color */
@lineColor: #cccccc;
/*--- Text Colors
*/
@textColor: #333333;
@secondaryTextColor: #999999;
/*--- State Colors
*/
@successColor: #5bb75b;
@dangerColor: #da4f49;
/*-----*/
/*------------------ Mixins
*/
.box-shadow(@shadow) {
	-webkit-box-shadow: @shadow;
	-moz-box-shadow: @shadow;
	box-shadow: @shadow;
}
.box-sizing(@boxmodel) {
	-webkit-box-sizing: @boxmodel;
	-moz-box-sizing: @boxmodel;
	box-sizing: @boxmodel;
}
.button-style(@color, @background) {
	color: @color;
	background-color: @background;
    .vertical-gradient(@background, darken(@background, 12%));
	border-color: darken(@background, 14%);
	/* hover, focus, active */
	&:hover,
	&:focus,
	&:active,
	&.active,
	.open > .dropdown-toggle& {
		color: @color;
		background-color: darken(@background, 12%);
		border-color: darken(@background, 26%);
	}
	/* focus, active */
	&:focus,
	&:active,
	&.active {
		border-color: darken(@background, 14%);
		.box-shadow(inset 0 3px 5px rgba(0,0,0,.25));
	}
	/* disabled */
	&.disabled,
	&[disabled],
	fieldset[disabled] & {
		&,
		&:hover,
		&:focus,
		&:active,
		&.active {
			background-color: @background;
			border-color: darken(@background, 5%);
		}
	}
}
.transition(@properties) {
	-webkit-transition: @properties;
	-moz-transition: @properties;
	o-transition: @properties;
	transition: @properties;
}
.vertical-gradient(@startColor, @endColor) {
	background-image: -webkit-linear-gradient(top,@startColor 0,@endColor 100%);
	background-image: linear-gradient(to bottom,@startColor 0,@endColor 100%);
}
/*-----*/
/*------------------ @Font-face
*/
@font-face {
	font-family: "Museo";
	src: url('../fonts/museoslab.eot');
	src: url('../fonts/museoslab.eot?#iefix') format('eot'), 
	url('../fonts/museoslab.woff') format('woff'), 
	url('../fonts/museoslab.ttf') format('truetype'), 
	url('../fonts/museoslab.svg#museo_slab500') format('svg');
	font-weight: normal;
	font-style: normal;
}
/*-----*/
/*------------------ DOM
*/
body {
	background-color: @backgroundColor;
	padding-bottom: 40px;
	font-size: 14px;
	font-family: Arial, Helvetica, sans-serif;
	color: @textColor;
	font-weight: normal;
}
::-moz-selection {
	background: @primaryColor;
	color: #ffffff;
	text-shadow: none;
}
::-webkit-selection {
	background: @primaryColor;
	color: #ffffff;
	text-shadow: none;
}
::selection {
	background: @primaryColor;
	color: #ffffff;
	text-shadow: none;
}
hr {
	border-top: 4px solid darken(@secondaryColor, 15%);
	border-bottom: none;
}
.relative {
	position: relative;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
a img {
	display: inline;
}
.input-group-addon img {
	display: inline;
	max-width: none;
}
table img {
	max-width: none;
}
a:focus,
button:focus {
	outline: 0 !important;
}
/*-----*/
/*------------------ Forms
*/
.form-control:focus {
	outline: none;
	border-color: @primaryColor;
	@shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(red(@primaryColor),green(@primaryColor),blue(@primaryColor),0.6);
	.box-shadow(@shadow);
}
textarea {
	resize: vertical;
}
/*-----*/
/*------------------ Typography
*/
a {
	color: @primaryColor;
	text-decoration: none;
}
a:hover,
a:focus {
	color: @primaryColor;
	text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
	line-height: 100%;
	color: @primaryColor;
	font-family: Museo, Arial, Helvetica;
}
/*-----*/
/*------------------ Buttons
*/
.btn-default {
	.button-style(#333333, #ffffff);
	border-color: #cccccc;
}
.btn-primary,
.button {
	.button-style(#ffffff, @primaryColor);
	text-shadow: none;
}
.btn-success {
	.button-style(#ffffff, @successColor);
}
.btn-danger {
	.button-style(#ffffff, @dangerColor);
}
/*-----*/
/*------------------ Bootstrap Elements
*/
.lead {
	font-weight: normal;
}
.text-primary {
	color: @primaryColor;
}
.text-success {
	color: @successColor;
}
.text-danger {
	color: @dangerColor;
}
.text-muted {
	color: @secondaryTextColor;
}
.bg-primary {
	background-color: @primaryColor;
}
.bg-success {
	background-color: @successColor;
}
.bg-danger {
	background-color: @dangerColor;
}
.bg-primary,
.bg-success,
.bg-danger {
	margin-top: 20px;
	margin-bottom: 20px;
}
.bg-primary p:last-child,
.bg-success p:last-child,
.bg-danger p:last-child {
	margin-bottom: 0;
}
.table-borderless > thead > tr > th,
.table-borderless > tbody > tr > th,
.table-borderless > tfoot > tr > th,
.table-borderless > thead > tr > td,
.table-borderless > tbody > tr > td,
.table-borderless > tfoot > tr > td {
	border: 0;
}
.table-striped tbody > tr:nth-child(odd) > td,
.table-striped tbody > tr:nth-child(odd) > th,
.table-hover tbody tr:hover > td,
.table-hover tbody tr:hover > th,
.well {
	background-color: @contentHighlightColor;
}
blockquote,
blockquote.pull-right {
	border-color: @contentHighlightColor;
}
.table-bordered,
.table-bordered th,
.table-bordered td,
.table th,
.table td,
.page-header,
.well,
legend,
.form-actions {
	border-color: @lineColor;
}
legend {
	color: @textColor;
}
.help-block,
.help-inline {
	color: @secondaryTextColor;
}
.form-actions {
	background-color: transparent;
}
.breadcrumb {
	background-color: @contentHighlightColor;
}
.breadcrumb > li + li:before {
	content: "/";
	padding: 0 10px;
}
.pagination > li > a,
.pagination > li > span {
	color: @primaryColor;
}
.pagination > li > a:hover,
.pagination > li > span:hover {
	color: @secondaryColor;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
	background-color: @primaryColor;
	border-color: @primaryColor;
}
.input-group-btn > .btn {
	z-index: 3;
}
/*-----*/
/*------------------ Banner
*/
.logo img {
	position: absolute;
	right: 0;
}
.banner {
	z-index: 201;
	position: relative;
}
.internal-selector .logo {
	background-color: @primaryColor;
	height: 143px;
}
.banner-image {
	padding: 0;
}
.banner-image .e107-banner-image {
	height: 143px;
	background-size: cover;
	background-position: center center;
}
.internal-image {
	margin-left: -15px;
	margin-right: -15px;
	& p {
		margin: 0;
	}
}
/*-----*/
/*------------------ Navigation
*/
/*--- Top Level
*/
/* Background */
.navbar {
	background-color: @secondaryColor;
	.vertical-gradient(@secondaryColor, darken(@secondaryColor, 15%));
	border-radius: 0;
	margin-left: -15px;
	margin-right: -15px;
	border: 0;
	border-top: 6px solid #fff;
	border-bottom: 6px solid #fff;
	margin-bottom: 0;
}
.nav-link-home {
	padding: 21px 10px;
	color: @secondaryColor;
	display: block;
	float: left;
	border-right: 1px solid darken(@secondaryColor, 5%);
	border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.nav-link-home:hover {
	background-color: rgba(0, 0, 0, 0.08);
	color: @secondaryColor;
}
.nav-link-home .fa-stack {
	-webkit-transition: -webkit-transform 1s ease;
	-moz-transition: -moz-transform 1s ease;
	transition: transform 1s ease;
}
.nav-link-home .fa-stack-2x {
	color: #fff;
}
.nav-link-home:hover .fa-stack {
	-webkit-transform: rotateY(180deg);
	-moz-transform: rotateY(180deg);
	transform: rotatey(180deg);
}
.sitelinks-container .sitelinks {
	
	/*--- Top Level
	*/
	
	/* Link Block */
	& li {
		border-right: 1px solid darken(@secondaryColor, 5%);
		border-right: 1px solid rgba(0, 0, 0, 0.1);
	}
	
	/* Link */
	& li a {
		text-transform: uppercase;
		font-size: 12px;
		color: #fff;
		padding-top: 25px;
		padding-bottom: 25px;
		
		/* Hover */
		&:hover,
		&:active {
			background-color: rgba(0, 0, 0, 0.08);
		}
		
		/* Parent */
		&.parent {
			padding-right: 30px;
			&:before {
				display: inline-block;
				font-family: FontAwesome;
				font-style: normal;
				font-weight: normal;
				line-height: 1;
				-webkit-font-smoothing: antialiased;
				-moz-osx-font-smoothing: grayscale;
				content: "\f0d7";
				position: absolute;
				right: 15px;
				font-size: 14px;
			}
		}
	}
	
	/* Link Open */
	& .open > a {
		background-color: rgba(0, 0, 0, 0.08);
	}
	
	/* Active */
	& .active > a {
		background-color: transparent;
	}
	
	/*--- Drop Level
	*/
	
	/* Container */
	& li .nav {	
		background-color: @secondaryColor;
		.vertical-gradient(@secondaryColor, darken(@secondaryColor, 15%));
		border-radius: 0 0 4px 4px;
		min-width: 150px;
		
		/* Link Block */
		& li {
			float: none;
		}
		
		/* Link */
		& li a {
			display: block;
			padding: 15px 15px;
			white-space: nowrap;
			
			/* Parent */
			&.parent {
				padding-right: 30px;
				&:before {
					content: "\f0da";
				}
			}
		}
	}
	
	/*--- Sub Levels
	*/
	
	/* Container */
	& li .nav li .nav {
		border-radius: 0 4px 4px 0;
		min-width: 0;
	}
}
/*--- Important Structure
*/
.sitelinks-container {
	position: relative;
	z-index: 200;
	
	& .sitelinks {
		
		& ul {
			width: auto;
		}
		
		& li {
			position: relative;
			
			&.open > ul {
				display: block;
			}
			
			& ul {
				position: absolute;
    			display: none;
			}
			
			& li:hover ul {
				top: 0;
				left: 100%;
				display: block;
			}
			
			& li a {
				white-space: nowrap;
			}
		}
	}
}
.mobile-menu-button {
    display:  none;
}
/*--- Internal Sublinks
*/
.sublinks {
	margin-left: -15px;
	margin-right: -15px;
	background-color: @primaryColor;
	padding-left: 44px;
	font-family: Museo, Arial, Helvetica;
}
.sublinks h1 {
	margin: 0;
	color: #fff;
	display: inline-block;
	padding: 10px;
	font-size: 26px;
	padding-top: 37px;
}
.sublinks a {
	display: inline-block;
	color: #fff;
	padding: 40px 12px 25px 12px;
	vertical-align: top;
}
.sublinks a:hover,
.sublinks a:active,
.sublinks a.active {
	text-decoration: none;
	background-color: rgba(0, 0, 0, 0.08);
}
/*-----*/
/*------------------ Search
*/
.search-container {
	width: 200px;
	float: right;
	padding-left: 15px;
	padding-right: 15px;
	padding-top: 17px;
}
.search-container .form-control:focus {
	border-color: #666;
	.box-shadow(inset 1px 1px 2px rgba(0, 0, 0, 0.4));
}
.search-container .form-control:focus + .input-group-btn .btn {
	border-color: #999;
}
.search-container .input-group-btn .btn {
	border-left: 0;
	margin-left: 0;
}
/*-----*/
/*------------------ Content
*/
.content-container {
	background-color: @contentColor;
	.box-shadow(1px 1px 2px rgba(0, 0, 0, 0.4));
	padding-bottom: 0;
}
.home-selector .content-container {
	background-color: @primaryColor;
	color: #ffffff;
}
.page-title-background {
	background-color: #fff;
	margin-top: 25px;
	margin-bottom: 25px;
	padding-left: 40px;
}
.page-title {
	margin: 0;
	color: darken(@secondaryColor, 15%);
}
.internal-selector .cpage_body {
	
}
.cpage_body p {
	min-height: 15px;
}
.home-image-small,
.home-image-large {
	padding: 0;
}
.home-image-small .e107-banner-image {
	width: 100%;
	height: 262px;
	background-size: cover;
	background-position: center center;
}
.official-site {
	text-align: center;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	padding-top: 5px;
	padding-bottom: 5px;
	margin-bottom: 20px;
}
.official-site p {
	margin: 0;
	font-size: 10px;
}
.latest-news {
	color: #333;
}
.latest-news .panel-body {
	padding: 0;
}
.SPN-recent {
	display: block;
	color: #333;
	padding: 15px;
	min-height: 133px;
}
.SPN-recent:hover {
	text-decoration: none;
	color: #333;
	background-color: #e8e8e8;
}
.SPN-recent img {
	border: 1px solid #eaeaea;
	border-radius: 4px;
	margin-right: 10px;
}
.SPN-recent h3 {
	font-size: 20px;
	margin-top: 0;
	margin-bottom: 10px;
}
.latest-news .panel + .panel .panel-body {
	padding: 15px 5px 0 5px;
	
	& img {
		float: left;
		padding: 0 10px 20px 10px;
	}
}
.facebook-feed .panel-body {
	padding: 0;
}
/* Make Facebook Like Box Responsive */
.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget span iframe[style] {
    width: 100% !important;
}
.advertisements {
    margin-bottom: 20px;
}
.advertisements p {
    margin-right: -15px;
    margin-bottom: 0;
    margin-left: -15px;
}
.advertisements a {
    float: left;
    max-width: 25%;
    display: block;
    padding-left: 15px;
    padding-right: 15px;
}
.advertisements img {
	border: 2px solid #fff;
}
.page-left-column {
	padding-left: 55px;
	padding-right: 25px;
}
.page-right-column {
	padding-left: 25px;
	padding-right: 55px;
}
.upcoming-events {
    color: #333;
    .panel-body {
        max-height: 696px;
        overflow: scroll;
    }
    h3:first-child {
        margin-top: 0;
    }
}
.upcoming-events-date {
    float: left;
    clear: both;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    margin-bottom: 10px;
    line-height: 1;
    text-align: center;
    color: #fff;
    border-radius: 50%;
    p:first-child {
        margin-top: 4px;
        margin-bottom: 1px;
        font-size: 10px;
    }
    p:last-child {
        margin-bottom: 0;
        font-family: Museo, Arial, Helvetica;
        font-size: 20px;
    }
}
.upcoming-events-date-red {
    background-color: @secondaryColor;
}
.upcoming-events-date-blue {
    background-color: @primaryColor;
}
.upcoming-events-date-pink {
    background-color: #ec008c;
}
.upcoming-events-date-green {
    background-color: #209e1e;
}
/*-----*/
/*------------------ Footer
*/
.footer {
	margin-top: 20px;
	color: #666;
	font-size: 12px;
}
.footer p {
	margin-bottom: 5px;
}
/*-----*/
/*------------------ Login
*/
.login-container {
	margin: auto;
	width: 400px;
}
.login-container #page-header {
	margin-top: 0;
	margin-bottom: 20px;
}
.login-container .checkbox {
	margin-top: 0;
	margin-bottom: 15px;
}
/*-----*/
/*------------------ Responsive
*/
/* Large */
@media (min-width: 1200px) {
	
	.home-image-small .e107-banner-image {
		height: 316px;
	}
	
}
 
/* Medium */ 
@media (min-width: 992px) and (max-width: 1199px) {
	
	.sitelinks-container .sitelinks li a {
		padding-left: 10px;
		padding-right: 10px;
		font-size: 11px;
	}
}
/* Small */ 
@media (min-width: 768px) and (max-width: 991px) {
	
	.sitelinks-container .sitelinks li a {
		padding-left: 9px;
		padding-right: 9px;
		font-size: 11px;
	}
	
	.sitelinks-container .sitelinks li:last-child {
		border-right: 0;
	}
	
	.search-container {
		display: block;
		width: auto;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	
	.banner-image img {
		margin-top: -26px;
	}
	
	.home-image-small .e107-banner-image {
		height: 203px;
	}
}
 
/* Extra Small */
@media (max-width: 767px) { 
	/*------------------ Navigation (Change to Button)
	*/
	
	.nav-link-home {
		border-right: 0;
		padding-top: 13px;
		padding-bottom: 13px;
	}
	
	/*--- First Level
	*/
	
	.sitelinks-container {
		float: left;
		padding-left: 10px;
	}
	
	/* Container */
	.sitelinks-container .sitelinks {
		border-radius: 0 0 4px 4px;
		background-color: @secondaryColor;
		.vertical-gradient(@secondaryColor, darken(@secondaryColor, 15%));
		margin: 0;
		top: 54px;
		left: 10px;
	}
	
	/* Link Block */
	.sitelinks-container .sitelinks li {
	}
	
	/* Link */
	.sitelinks-container .sitelinks li a {
		padding: 10px;
	}
	
	/* Active */
	.sitelinks-container .sitelinks .active > a,
	.sitelinks-container .sitelinks .active > a:hover,
	.sitelinks-container .sitelinks .active > a:focus {
	}
	
	/*--- Other Levels
	*/
	
	.sitelinks-container .sitelinks li .nav {
		background-color: transparent;
		background-image: none;
		border-left: 2px solid rgba(0, 0, 0, 0.08);
	}
	
	/* Link Block */
	.sitelinks-container .sitelinks li .nav li {
	}
	
	/* Link */
	.sitelinks-container .sitelinks li .nav li a {
	}
	
	.sitelinks-container .sitelinks li .nav li a.parent:before {
		content: "\f0d7";
	}
	
	/*--- Important Structure
	*/
	
	.sitelinks-container .sitelinks {
		display: none;
		position: absolute;
		min-width: 150px;
		
		& li {
			float: none;
			clear: both;
			
			& .nav {
				margin: 0 0 0 20px;
			}
		}
		
		& li.open > ul {
			display: block;
			position: static;
			margin-bottom: 10px;
		}
	}
	
	.sitelinks-container.open .sitelinks {
		display: block;
	}
	
	.mobile-menu-button {
		display: inline-block;
		margin-top: 10px;
	}
	
	/*--- Login
	*/
	.login-container {
		width: auto;
	}
	
	/*--- Other
	*/
	
	.logo p {
		margin: 0;
	}
	
	.logo img {
		left: -15px;
	}
	
	.banner {
		z-index: 0;
	}
	
	.banner-image {
		padding-left: 180px;
	}
	
	.banner-image img {
		margin-top: -30px;
	}
	
	.search-container {
		padding-top: 10px;
	}
	
	.home-image-small .e107-banner-image {
		height: 316px;
		background-size: contain;
		background-repeat: no-repeat;
		margin: auto;
	}
    .advertisements {
        text-align: center;
    }
    .advertisements p {
        margin-right: 0;
        margin-left: 0;
    }
	
	.advertisements a {
		max-width: 50%;
        padding-left: 0;
        padding-right: 0;
        &:nth-child(2n) {
            padding-left: 10px;
        }
        &:nth-child(2n + 1) {
            padding-right: 10px;
        }
        + a + a {
            margin-top: 20px;
        }
	}
	
}
 
 
/* Tiny */
@media (max-width: 480px) { 
	/*--- Other
	*/
	
	.banner-image {
	}
	
	.search-container {
		width: 183px;
		padding-left: 10px;
	}
	
	.advertisements a {
        max-width: 100%;
        &:nth-child(2n) {
            padding-left: 0;
        }
        &:nth-child(2n + 1) {
            padding-right: 0;
        }
        + a {
            margin-top: 20px;
        }
    }
	
	/* Extra Bootstrap Class */
	.col-xxs-12 {
		width: 100%;
	}
	
}
/*-----*/