/* =================================================================== */
/* Flexslider
====================================================================== */

/* Browser Resets
====================================*/
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus  {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;} 


/* Necessary Styles
====================================*/
.flexslider {margin: 0; padding: 0; min-height: 400px; background: url(../images/preloader.gif) no-repeat center; background-size: 32px;}

/* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides > li {position: relative;zoom: 1;display: none;-webkit-backface-visibility: hidden;margin: 0;background-repeat: no-repeat;background-position: center;background-size: cover;}
.flexslider .slides img {width: 100%;display: block;position: relative;visibility: hidden;}
.flex-pauseplay span {text-transform: capitalize;}

/* Suggested container for "Slide" animation setups. Can replace this with your own, if you wish */
.flexslider {position: relative;  zoom: 1; z-index: 50;}

/* Clearfix for the .slides element */
.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;} 
html[xmlns] .slides {display: block;} 
* html .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block;}


/* Default Styles
====================================*/
.flexslider {
	zoom: 1;
}
section.slider {
    margin: 0 10px;
}

.ie7 .flexslider {margin-bottom: -30px;}

.flex-viewport {max-height: 2000px;}
.loading .flex-viewport {max-height: 300px;}
.flexslider .slides {zoom: 1;}


/* Direction Nav
====================================*/

.flex-direction-nav a {
	width: 35px;
	height: 35px;
	display: block;
	background-color: #000;
	bottom: 0;
	right: 0;
	float: none;
	position: absolute;
	cursor: pointer;
	text-indent: -9999px;
	background-color: #222;
	background: rgba(0, 0, 0, 0.45);
	*bottom: 50px;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

.flex-direction-nav a.flex-next {
	background-image: url(../images/slider-control-right.png);
	background-repeat: no-repeat;
	background-position: -22px center;
    background-size: auto 15px;
}

.flex-direction-nav a.flex-prev {
	margin-right: 40px;
	background-image: url(../images/slider-control-left.png);
	background-repeat: no-repeat;
	background-position: 11px center;
    background-size: auto 15px;
	left: 0;
	right: auto;
}

.flex-direction-nav a:hover.flex-next {
	background-position: 11px center;
}

.flex-direction-nav a:hover.flex-prev {
	background-position: -22px center;
}

.flex-direction-nav .flex-prev:hover,
.flex-direction-nav .flex-next:hover {
	background-color: rgba(0, 0, 0, 0.65);
	opacity: 1;
}
body .container .slider {
    margin-bottom: 20px;
}
.subpage .flex-direction-nav a {bottom: 0px; right: 0px; *bottom: 30px;}
.btn_about{
    background: #289CD8;
    background: rgba(36, 164, 250);
    bottom: 0;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    width: 90%;
    max-width: 300px;
    border-radius: 10px 10px 0 0;
    -moz-border-radius: 10px 10px 0 0;
    -webkit-border-radius: 10px 10px 0 0;
    z-index: 55;
}
.btn_about a{
    color: #fff !important;
    display: block;
    font-size: 24px;
    padding: 20px 10px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
}

/* Control Nav
====================================*/
.flex-control-nav {
	bottom: 15px;
	left: 0;
	margin: auto;
	position: absolute;
	right: 0;
	text-align: right;
	width: 1180px;
}
	
.flex-control-nav li {
	margin: 0 0 0 5px;
	display: inline-block;
	zoom: 1;
	*display: inline;
}
	
.flex-control-paging li a {
	width: 16px;
	height: 16px;
	display: block;
	background: #FFF;
	cursor: pointer;
	text-indent: -9999px;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
	-o-border-radius: 20px;
	border-radius: 20px;
	border: 2px solid #2da6dd;
	font-size: 0;
}
	
.flex-control-paging li a:hover,
.flex-control-paging li a.flex-active {
	background: #2da6dd;
}
	
.flex-control-paging li a.flex-active {
	cursor: default;
}


/* Caption
====================================*/

.caption-centre {
    width: 70%;
    margin: 0 auto;
    position: relative;
    top: 0;
}
.slide-caption {
	position: absolute;
	display: block;
	left: 0;
	bottom: 0;
	background: #000; /* IE Fix */
	background: rgba(0,0,0,0.4);
	width: 90%;
	padding: 0px 5%;
	opacity: 0;
	-webkit-transform: translate3d(0,100%,0);
	transform: translate3d(0,100%,0);
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transition-delay: .8s;
	transition-delay: .8s;
}
	
.slide-caption h3 {
	color: white !important;
	font-size: 20px;
	margin: 0;
	line-height: 35px;
	text-align: center;
	font-weight: normal;
	padding: 15px 0;
}

.slide-caption h3 span {
	color: #72B626;
}
	
.slide-caption p {
	margin:0;
	line-height: 19px;
	color: #bbb;
}

.flexslider .flex-active-slide .slide-caption {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/* Tablet Portrait size to standard 960 (devices and browsers) ========== */
@media only screen and (min-width: 960px) and (max-width: 1279px) {

	.flex-control-nav {
		width: 940px;
	}

}

/* Above Mobile Sizes (devices and browser) ============================= */
@media only screen and (min-width: 768px) {

	.flex-direction-nav a {
		height: 100px;
		top: 40%;
		bottom: auto;
		opacity: 0.6;
	}
	.slide-caption {
		width: 45%;
		margin: 0 0 40px 0;
		padding: 0 10px;
	}
	.slide-caption h3 {
		font-size: 34px;
		font-weight: 600;
		line-height: 46px;
		text-align: left;
		text-shadow: 1px 1px 1px #000, 0 1px 1px #000;
	}

}

/* Tablet Portrait size to standard 960 (devices and browsers) ========== */
@media only screen and (min-width: 768px) and (max-width: 959px) {

	.slide-caption {
		/* margin-left: 40px; */
	}
	.slide-caption h3 {
		font-size: 26px;
		line-height: 50px;
	}
	.flex-control-nav {
		width: 748px;
	}
	
}


/* All Mobile Sizes (devices and browsers) ========== */
@media only screen and (max-width: 767px) {

    .flex-control-nav {
        display: none;
    }
	.flexslider .slides > li {
		min-height: 240px;
		overflow: hidden;
	}
	.flexslider .slides img {
		position: absolute;
		width: auto;
		height: 100%;
		top: 0;
		left: 0;
	}
    .slide-caption h3 {
        font-size: 14px;
        line-height: 30px;
        text-align: left;
    }
    .btn_about {
        display: none;
    }
    
}

/* ===== More Internet Explorer Fixes ===== */

.ie7 .flex-direction-nav a.flex-next, .ie8 .flex-direction-nav a.flex-next {
	background-image: url(../images/ie-slider-control-right.png);
	background-repeat: no-repeat;
	background-position: -24px center !important;
    background-size: auto;
}
.ie7 .flex-direction-nav a.flex-prev, .ie8 .flex-direction-nav a.flex-prev {
	background-image: url(../images/ie-slider-control-left.png);
	background-repeat: no-repeat;
	background-position: 11px center !important;
    background-size: auto;
}