/* MJ THEMR : FRONTEND CSS */
/* ------------------------------------------------------------------------- */


/* COLUMNS 3% SPACING */
/* ------------------------------------------------------------------------- */


.cols {
	clear: both;
	margin-bottom: 0 !important;
}

.cols .col {
	float: left;
	margin-right: 3% !important;
	margin-bottom: 3% !important;
}

.cols5 .col {
	width: 17.6%;
}

.cols5 .col:nth-child(5n) {
	margin-right: 0 !important;
}

.cols4 .col {
	width: 22.75%;
}

.cols4 .col:nth-child(4n) {
	margin-right: 0 !important;
}

.cols3 .col {
	width: 31.33%;
}

.cols3 .col:nth-child(3n) {
	margin-right: 0 !important;
}

.cols2 .col {
	width: 48.5%;
}

.cols2 .col:nth-child(2n) {
	margin-right: 0 !important;
}

.cols img {
}

.cols5 .col.colspan2 {
	width: 38.2%;
}

.cols5 .col.colspan3 {
	width: 58.8%
}

.cols4 .col.colspan2 {
	width: 48.5%;
}

.cols4 .col.colspan3 {
	width: 74.25%
}

.cols3 .col.colspan2 {
	width: 65.66%;
}

.cols .col.last {
	margin-right: 0 !important;
}

.cols .col > h2:first-child, 
.cols .col > h3:first-child, 
.cols .col > h4:first-child {
	margin-top: 0 !important;
}


.cols5 .col:nth-child(5n+1) {
	clear: left;
}

.cols4 .col:nth-child(4n+1) {
	clear: left;
}

.cols3 .col:nth-child(3n+1) {
	clear: left;
}


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

	.cols .col { width: 31.33% !important; clear: none !important; }
	
	.cols5 .col:nth-child(5n) { margin-right: 3% !important; }
	.cols4 .col:nth-child(4n) { margin-right: 3% !important; }
	.cols5 .col:nth-child(3n) { margin-right: 0 !important; }
	.cols4 .col:nth-child(3n) { margin-right: 0 !important; }
	.cols3 .col:nth-child(3n) { margin-right: 0 !important; }
	
	.cols5 .col:nth-child(3n+1) { clear: left !important; }
	.cols4 .col:nth-child(3n+1) { clear: left !important; }
	
	.cols5 .col.colspan3 { width: 65.66% !important; }
	.cols5 .col.colspan2 { width: 34.33% !important; }
	.cols4 .col.colspan3 { width: 65.66% !important; }
	.cols3 .col.colspan2 { width: 65.66% !important; }	
	.cols2 .col { width: 48.5% !important; }
	
}

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

	.cols .col { width: 48.5% !important; clear: none !important; }
	
	.cols .col:nth-child(5n) { margin-right: 3% !important; }
	.cols .col:nth-child(4n) { margin-right: 3% !important; }
	.cols .col:nth-child(3n) { margin-right: 3% !important; }	
	.cols .col:nth-child(2n) { margin-right: 0 !important; }
	
	.cols5 .col:nth-child(3n+1) { clear: none !important; }	
	.cols4 .col:nth-child(3n+1) { clear: none !important; }	
	
	.cols5 .col:nth-child(2n+1) { clear: left !important; }	
	.cols4 .col:nth-child(2n+1) { clear: left !important; }	
	.cols3 .col:nth-child(2n+1) { clear: left !important; }
	
	.cols5 .col.colspan3 { width: 48.5% !important; }
	.cols5 .col.colspan2 { width: 48.5% !important; }
	.cols4 .col.colspan3 { width: 48.5% !important; }
	.cols3 .col.colspan2 { width: 48.5% !important; }		

}

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

	.cols .col { width: 100% !important; clear: none !important; }
	
	.cols .col { margin-right: 0 !important; margin-bottom: 25px !important; }
	
	.cols .col.colspan3 { width: 100% !important; }	
	.cols .col.colspan2 { width: 100% !important; }	
	
}



/* COLUMNS 1.5% SPACING */
/* ------------------------------------------------------------------------- */


.gap1.cols {
	clear: both;
	margin-bottom: 0 !important;
}

.gap1.cols .col {
	margin-right: 1.5% !important;
	margin-bottom: 1.5% !important;	
}

.gap1.cols5 .col {
	width: 18.8%;
}

.gap1.cols4 .col {
	width: 23.875%;
}

.gap1.cols3 .col {
	width: 32.333%;
}

.gap1.cols2 .col {
	width: 49.25%;
}


.gap1.cols5 .col.colspan2 {
	width: 39.1%;
}

.gap1.cols5 .col.colspan3 {
	width: 59.4%
}

.gap1.cols4 .col.colspan2 {
	width: 49.25%;
}

.gap1.cols4 .col.colspan3 {
	width: 74.625%
}

.gap1.cols3 .col.colspan2 {
	width: 66.166%;
}


.gap1.cols5 .col:nth-child(5n) {
	margin-right: 0 !important;
}

.gap1.cols4 .col:nth-child(4n) {
	margin-right: 0 !important;
}

.gap1.cols3 .col:nth-child(3n) {
	margin-right: 0 !important;
}

.gap1.cols2 .col:nth-child(2n) {
	margin-right: 0 !important;
}



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

	.gap1.cols .col { width: 32.333% !important; }
		
	.gap1.cols5 .col:nth-child(5n) { margin-right: 1.5% !important; }
	.gap1.cols4 .col:nth-child(4n) { margin-right: 1.5% !important; }
	.gap1.cols5 .col:nth-child(3n) { margin-right: 0 !important; }
	.gap1.cols4 .col:nth-child(3n) { margin-right: 0 !important; }
	.gap1.cols3 .col:nth-child(3n) { margin-right: 0 !important; }
	
	.gap1.cols5 .col.colspan3 { width: 66.166% !important; }
	.gap1.cols5 .col.colspan2 { width: 33.833% !important; }
	.gap1.cols4 .col.colspan3 { width: 66.166% !important; }
	.gap1.cols3 .col.colspan2 { width: 66.166% !important; }	
	.gap1.cols2 .col { width: 49.25% !important; }
	
}

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

	.gap1.cols .col { width: 49.25% !important; }
	
	.gap1.cols .col:nth-child(5n) { margin-right: 1.5% !important; }
	.gap1.cols .col:nth-child(4n) { margin-right: 1.5% !important; }
	.gap1.cols .col:nth-child(3n) { margin-right: 1.5% !important; }	
	.gap1.cols .col:nth-child(2n) { margin-right: 0 !important; }
	
	.gap1.cols5 .col.colspan3 { width: 49.25% !important; }
	.gap1.cols5 .col.colspan2 { width: 49.25% !important; }
	.gap1.cols4 .col.colspan3 { width: 49.25% !important; }
	.gap1.cols3 .col.colspan2 { width: 49.25% !important; }		

}

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

	.gap1.cols .col { width: 100% !important; }
	.gap1.cols .col { margin-right: 0 !important; }
	
	.gap1.cols .col.colspan3 { width: 100% !important; }	
	.gap1.cols .col.colspan2 { width: 100% !important; }	
	
}



/* COLUMNS 0% SPACING */
/* ------------------------------------------------------------------------- */


.gap0.cols {
	clear: both;
	margin-bottom: 0 !important;
}

.gap0.cols .col {
	margin-right: 0% !important;
	margin-bottom: 0% !important;	
}

.gap0.cols5 .col {
	width: 20%;
}

.gap0.cols4 .col {
	width: 25%;
}

.gap0.cols3 .col {
	width: 33.333%;
}

.gap0.cols2 .col {
	width: 50%;
}


.gap0.cols5 .col.colspan2 {
	width: 40%;
}

.gap0.cols5 .col.colspan3 {
	width: 60%
}

.gap0.cols4 .col.colspan2 {
	width: 50%;
}

.gap0.cols4 .col.colspan3 {
	width: 75%
}

.gap0.cols3 .col.colspan2 {
	width: 66.666%;
}


.gap0.cols5 .col:nth-child(5n) {
	margin-right: 0 !important;
}

.gap0.cols4 .col:nth-child(4n) {
	margin-right: 0 !important;
}

.gap0.cols3 .col:nth-child(3n) {
	margin-right: 0 !important;
}

.gap0.cols2 .col:nth-child(2n) {
	margin-right: 0 !important;
}



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

	.gap0.cols .col { width: 33.333% !important; }
	
	.gap0.cols5 .col:nth-child(5n) { margin-right: 0 !important; }
	.gap0.cols4 .col:nth-child(4n) { margin-right: 0 !important; }
	.gap0.cols5 .col:nth-child(3n) { margin-right: 0 !important; }
	.gap0.cols4 .col:nth-child(3n) { margin-right: 0 !important; }
	.gap0.cols3 .col:nth-child(3n) { margin-right: 0 !important; }	
	
	.gap0.cols5 .col.colspan3 { width: 66.666% !important; }
	.gap0.cols5 .col.colspan2 { width: 33.333% !important; }
	.gap0.cols4 .col.colspan3 { width: 66.666% !important; }
	.gap0.cols3 .col.colspan2 { width: 66.666% !important; }	
	.gap0.cols2 .col { width: 50% !important; }
	
}

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

	.gap0.cols .col { width: 50% !important; }
	
	.gap0.cols .col:nth-child(5n) { margin-right: 0 !important; }
	.gap0.cols .col:nth-child(4n) { margin-right: 0 !important; }
	.gap0.cols .col:nth-child(3n) { margin-right: 0 !important; }	
	.gap0.cols .col:nth-child(2n) { margin-right: 0 !important; }
	
	.gap0.cols5 .col.colspan3 { width: 50% !important; }
	.gap0.cols5 .col.colspan2 { width: 50% !important; }
	.gap0.cols4 .col.colspan3 { width: 50% !important; }
	.gap0.cols3 .col.colspan2 { width: 50% !important; }		

}

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

	.gap0.cols .col { width: 100% !important; }
	.gap0.cols .col { margin-right: 0 !important; }
	
	.gap0.cols .col.colspan3 { width: 100% !important; }	
	.gap0.cols .col.colspan2 { width: 100% !important; }	
	
}


.cols.nomargin .col { margin-bottom: 0 !important; }


@media only screen and (max-width: 650px) {
	
	.cols.nomargin .col { margin-bottom: 20px !important; }
	.cols .col:last-child { margin-bottom: 0 !important; }	
	
}



/* NEWS FIELDS
/* ------------------------------------------------------------------------- */

#newsfields {
	margin: 40px 0px 20px 0px;
}

#newsfields .col {
	border: 1px solid #d8d8d8;
	margin-bottom: 3%;
}

#newsfields .col:hover {
	border: 1px solid #9a9a9a;
}

#newsfields .desc {
	padding: 10px;
	font-size: 0.9em;
	line-height: 1.2em;
	height: 126px;
	overflow-y: hidden;
}

#newsfields a {
	text-decoration: none;
}

#newsfields h4 {
	margin: 0px 0px 6px 0px;
	font-size: 1.1em;
	line-height: 1.2em;
	overflow: hidden;
	width: 100%;
	height: 1.2em;
}



/* ARTICLE FIELDS
/* ------------------------------------------------------------------------- */



.articles {
	margin: 40px 0px 20px 0px !important;
	margin-left: 0 !important;
}

.articles .entry {
	border: 1px solid #d8d8d8 !important;
	margin-bottom: 3% !important;
}

.articles .entry:hover {
	border: 1px solid #9a9a9a !important;
}

.articles .entry {
	list-style: none;
	margin-left: 0;	
	position: relative;
}

.articles .pic {
	position: relative;
	line-height: 0;	
}

.articles .pic .picbox {

}

.articles .picbox img {
	-moz-transition: all .3s ease;
	-webkit-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;	
}

.articles .entry:hover .picbox img {

}


.articles .desc {
	padding: 10px !important;
	font-size: 0.9em;
	line-height: 1.2em;
}

.articles .desc.noexcerpt {
	height: 55px;
}

.articles .desc.notext,
.articles .desc.noexcerpt .excerpt {
	display: none !important;
}


.articles a {
	text-decoration: none !important;
}

.articles h4 {
	margin: 0px 0px 6px 0px;
	font-size: 1.15em;
	line-height: 1.2em;
}


.articles.stripes {
	
}

.articles.stripes .desc {
	height: auto !important;
	padding: 15px;
}

.articles .desc .excerpt, 
.articles .desc .excerpt * {	
	color: #6c6c6c !important;
}


@media only screen and (min-width: 600px) {
	
	.articles.stripes .entry .pic {
		width: 35%;
		float: left;
	}
	
	.articles.stripes .entry .desc {
		width: 64%;
		float: right;
	}
	
}

@media only screen and (max-width: 600px) {
	
	.articles .desc {
		height: auto !important;
	}
	
}



.articlenav {
	margin-left: 0;
	padding-left: 0;
	padding-bottom: 8px;
	margin-bottom: 40px;
	border-bottom: 1px solid #e5e5e5;
}

.articlenav li {
	list-style: none;
	display: inline;
	margin-left: 15px;
}

.articlenav li:first-child {
	margin-left: 0;
}

.articlenav li a {
	text-decoration: none;
	padding-bottom: 9px;
	color: #757575;
}

.articlenav li a:hover, 
.articlenav li.currentnav a {
	border-bottom: 1px solid #000000;
	color: #000000;
}


@media only screen and (max-width: 720px) {
	
	.articlenav { 
		padding-bottom: 10px; 
	}
		
	.articlenav li { 
		display: inline-block; 
		margin-left: 0; 
		margin-right: 15px; 
		margin-bottom: 10px; 
	}
	
	.articlenav li a { 
		padding-bottom: 0; 
	}

}



/* FLEX GRID
/* ------------------------------------------------------------------------- */


.fgrid {
	display: flex !important;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	width: 100%;
}

.fgrid5 .fcol {
	width: 18.5%;
	margin-left: 1.875% !important;
	margin-bottom: 1.875% !important;
}

.fgrid5 .fcol:first-child, 
.fgrid5 .fcol:nth-child(5n+1) {
	margin-left: 0 !important;
}

.fgrid4 .fcol {
	width: 23%;
	margin-left: 2.66% !important;
	margin-bottom: 2.66% !important;	
}

.fgrid4 .fcol:first-child, 
.fgrid4 .fcol:nth-child(4n+1) {
	margin-left: 0 !important;
}

.fgrid3 .fcol {
	width: 31.5%;
	margin-left: 2.75% !important;
	margin-bottom: 2.75% !important;
}

.fgrid3 .fcol:first-child, 
.fgrid3 .fcol:nth-child(3n+1) {
	margin-left: 0 !important;
}

.fgrid2 .fcol {
	width: 48.75%;
	margin-left: 2.5% !important;
	margin-bottom: 2.5% !important;
}

.fgrid2 .fcol:first-child, 
.fgrid2 .fcol:nth-child(2n+1) {
	margin-left: 0 !important;
}


@media only screen and (max-width: 1000px) {
	
	.fgrid .fcol { 
		width: 31.5%; 
		margin-left: 2.75% !important; 
		margin-bottom: 2.75% !important; 
	}
	
	.fgrid .fcol:nth-child(5n+1), 
	.fgrid .fcol:nth-child(4n+1) {
		margin-left: 2.75% !important;
	}
	
	.fgrid .fcol:first-child, 
	.fgrid .fcol:nth-child(3n+1) {
		margin-left: 0 !important;
	}	
	
}

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

	.fgrid .fcol { 
		width: 48.75%; 
		margin-left: 2.5% !important; 
		margin-bottom: 2.5% !important; 
	}
	
	.fgrid .fcol:nth-child(5n+1), 
	.fgrid .fcol:nth-child(4n+1), 
	.fgrid .fcol:nth-child(3n+1) {
		margin-left: 2.5% !important;
	}
	
	.fgrid .fcol:first-child, 
	.fgrid .fcol:nth-child(2n+1) {
		margin-left: 0 !important;
	}	

}

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

	.fgrid {
		display: block !important;
	}
	
	.fgrid .fcol {
		width: 100%;
		margin-left: 0 !important;
		margin-bottom: 25px !important;
	}
	
	.fgrid .fcol:nth-child(5n+1), 
	.fgrid .fcol:nth-child(4n+1), 
	.fgrid .fcol:nth-child(3n+1), 
	.fgrid .fcol:nth-child(2n+1) {
		margin-left: 0 !important;
	}		
	
}


/* ARTICLE SLIDER
/* ------------------------------------------------------------------------- */


.articleslider {
	display: block;
	width: 100%;
	margin: 40px 0px;
	text-align: center;
	position: relative;
}

.articleslider .control {
	display: block;
	width: 4%;
	height: 100%;
	opacity: 0.4;
}

.articleslider .control:hover {
	opacity: 1;
}

.articleslider .controlprev {
	background: url(../images/arrow-prev.png) no-repeat left center;
	background-size: contain;	
	float: left;
}

.articleslider .controlnext {
	background: url(../images/arrow-next.png) no-repeat right center;
	background-size: contain;	
	float: right;
}

.articleslider .itemcontainer {
	display: inline-block;
	position: relative;
	width: 90%;	
	height: 100%;
	margin: 0 auto;
	overflow-x: hidden;	
	text-align: left;
}

.articleslider .itemcontainer .cols {
	min-width: 100%;
	position: absolute;
	white-space: nowrap;
	overflow: hidden;
}

.articleslider .itemcontainer .cols .col {
	clear: none !important;
	margin-left: 10px !important;
	margin-right: 10px !important;
	margin-bottom: 0 !important;

}

.articleslider .itemcontainer .articles {
	margin: 0 !important;
	width: auto;
}

.articleslider .itemcontainer .excerpt {
	white-space: normal;
	overflow: visible;
}

@media screen and (max-width: 500px) {
	
	.articleslider .control { 
		width: 8%; 
	}
	
	.articleslider .itemcontainer {
		width: 82%;
	}
	
}



/* PAGINATION
/* ------------------------------------------------------------------------- */

.pagination {
	clear: both;
	margin: 10px 0 30px 0;
	position: relative;
	text-align: right;
	background: #f9f9f9;
}

.pagination .pages-info {
	float: left;
	padding: 7px 12px 6px 12px;
	font-size: 0.9em;
}

.pagination .pages-navi {
	float: right;
}

.pagination .pages-navi .pagenumbers {
	display: inline;
}

.pagination span, 
.pagination a {
	display: inline-block;
	float: left;
	margin: 0;
	border-left: 4px solid #ffffff;
	padding: 10px 8px;
	padding-bottom: 0;
	text-decoration: none;
	width: auto;
	color: #838383;
	background: #e0e0e0;
	font-size: 16px;
	line-height: 1em;
	height: 36px;
	width: 45px;
	text-align: center;
	font-weight: 600;
	font-family: "Arial", "sans-serif";	
}

.pagination a:hover {
	color: #fff;
	background: #4d4d4d;
}

.pagination a.arrowbutton {
	font-size: 22px;
	padding-top: 5px;	
}

.pagination .current {
	background: #4d4d4d;
	color: #fff;
}


@media only screen and (max-width: 720px) {
	
	.pagination {
		background: #ffffff;
		text-align: center;		
	}
	
	.pages-info {
		display: block;
		width: 100%;
		text-align: center;
		float: none;
	}
	
	.pagination .pages-navi {
		display: block;
		float: none;
		text-align: center;
	}
	
	.pagination span, 
	.pagination a {	
		padding-left: 4px;
		padding-right: 4px;
		width: 37px;
	}
	
	.pagination .pages-navi * {
		display: inline-block;
		float: none;
	}
	
	.pagination .pages-navi > a:first-child {
		border-left: 0;
	}
	
	.pagination .extrapagelink {
		display: none;
	}	
	
}



/* SCROLLER
/* ------------------------------------------------------------------------- */


.hsContainer {
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #fff;
}

.hsContent {
    display: table-cell;
    vertical-align: middle;
    color: #ffffff;
    padding: 0 8%;
    text-align: center;    
}

.bcg {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
}

.bcgfixed {
	background-attachment: fixed;
}

.hsContent .slideText {
	display: block;
    margin: 0 auto;
    color: #ffffff;
	text-shadow: 0px 0px 4px rgba(0,0,0,0.75);    
}

.hsContent .slideText * {
}

.hsContent .slideText h1, 
.hsContent .slideText h2, 
.hsContent .slideText h3, 
.hsContent .slideText h4 {
	margin: 0 0;
	font-weight: 600;
	line-height: 1.05em;
	color: inherit;
}

.hsContent .slideText h1, 
.hsContent .slideText h2 {
	font-size: 3em;
	word-wrap: break-word;
}




/* OPENER / HIDDEN SECTIONS
/* ------------------------------------------------------------------------- */


article .opener, 
article .opener2 {
	display: block;
	text-decoration: none;
	background: url(../images/arrow-normal.png) no-repeat;
	background-position: 12px 12px;
	padding: 8px;
	padding-left: 30px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;	
	border: 1px solid #d7d7d7;	
	margin-bottom: 10px;
	line-height: 1.4em;
}

article .opener, 
article .opener * {
}

article .opener2 {
	display: block;
	font-size: 1.3em;
	padding-bottom: 15px;
	margin-bottom: 15px;
	border-bottom: 1px solid #C8C69E;
}

article .opener.active, 
article .opener2.active {
	background: url(../images/arrow-active.png) no-repeat;
	background-position: 12px 11px;
}

article .section {
	display: none;
	padding-top: 20px;
}

article .section {
	padding: 12px 15px;
	background: #f8f8f8;
	margin: 15px 0px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;	
}

article .section .colorline {
	margin: 20px 0px;
}

article .section .col {
	margin-bottom: 5px !important;
}

article .section ul {
	margin-bottom: 0 !important;
}

article .section > h1:first-child, 
article .section > h2:first-child, 
article .section > h3:first-child, 
article .section > h4:first-child, 
article .section > h5:first-child {
	margin-top: 0 !important;
}



/* OTHER SHORTCODES
/* ------------------------------------------------------------------------- */


.colorline {
	display: block;
	width: 100%;
	height: 1px;
	margin: 25px 0px;
	background: #888888;
}

.colorbox {
	display: block;
	margin: 0px 0px;
	background: #888888;
	padding: 15px;
	border-radius: 5px;
}

.colorbox * {
	color: #ffffff !important;
}

.colorbox > h1:first-child, 
.colorbox > h2:first-child, 
.colorbox > h3:first-child, 
.colorbox > h4:first-child {
	margin-top: 0 !important;
}

