/*
Theme Name: Manna from Devon 2013
Author: Alex Watson (Dart Digital)
Author URI: http://www.dartdigital.co.uk/
Description: Custom responsive theme
Version: 1.0
*/


/* /////////////   General   ////////////// */

/* colours:

red 				- #b32026
orange (links)		- #f47a1f
light grey 			- #e2e2e2
dark grey (text) 	- #3f3f3f
brown (logo text)	- #f47a1f

*/

body {
	font-family: 'Open Sans', arial, sans-serif;
	font-size: 16px;
	color: #3f3f3f;
}

.container {
	width: 1060px;
}

#page_wrap {
	margin-top: 10px;
}

h1,h2,h3,h4,h5,h6 {
	font-weight: 600;
	color: #f47a1f;
	margin-bottom: 5px;
}

h1, h2 {
	text-transform: uppercase;
}

h4 {
	font-weight: normal;
}

h5, h6 {
	font-size: 14px;
}

h3 a:link, h3 a:visited {
	color: #864e07;
}
h3 a:hover {
	text-decoration: none;
}

h3.upperlower {
	text-transform: lowercase;
}

h3.upperlower:first-letter {
	text-transform: capitalize;
}

.divider {
	display: block;
	border-bottom: 1px solid #f47a1f;
}


a:link, a:visited {
	color: #f47a1f;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

p {
	margin-bottom: 10px;
	font-size: 14px;
}

span.link {
	color: #f47a1f;
}

.center {
	text-align: center;
}

.alignright {
	float: right;
}

.alignleft {
	float: left;
	margin: 0 10px 0 0;
	border: 5px solid #e2e2e2;
}

.alignright {
	margin: 0 0 10px 10px;
	border: 5px solid #e2e2e2
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	border: 5px solid #e2e2e2;
}

.alignnone {
		border: 5px solid #e2e2e2;
}

.alignleft img, .alignright img {
	display: block;
}

p.wp-caption-text {
	font-size: 11px;
	background: #e2e2e2;
	margin: 0;
	font-style: italic;
	text-align: center;
	padding: 3px 0 0 0;
}

.wp-caption {
	margin-bottom: 15px;
	max-width: 96%
}

.wp-caption img {
	display: block;
	max-width: 100%;
}

.clear {
	clear: both;
}

strong, .bold, b {
	font-weight: 600;
}

em {
	font-style: italic;
}

.brown {
	color: #77440d;
}

.shadow {
	text-shadow: #333 1px 1px;
}

.grey-box {
	background-color: #e2e2e2;
	min-height: 90px;
	padding: 10px;
	border-left: 10px solid #f47a1f;
	overflow: hidden;
}

.grey-box .brown {
	font-size: 16px;
	text-align: center;
}

.grey-box p {
	margin-bottom: 5px;
	font-size: 14px;
}

.grey-box .btn {
	float: right;
}

.btn:link, .btn:visited, .btn_big, .btn_big:visited {
	border: 1px solid #cacaca;
	font-size: 14px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	-moz-box-shadow: 0px 0px 7px #999;
    -webkit-box-shadow: 0px 0px 7px #999;
    box-shadow: 0px 0px 7px #999;
}

.btn:link, .btn:visited {
	height: 25px;
	background: url('images/button_bg.png') repeat-x;
	padding: 3px 6px!important;
	color: #b32026;
}

.btn:hover {
	background: url('images/button_bg_hover.png') repeat-x;
	text-decoration: none;
}

.btn_big {
	background: url('images/button_big_bg.png') repeat-x;
	display: block;
	padding: 3px 4px 3px 4px;
	overflow: hidden;
	color: #3f3f3f;
}

.btn_big:hover {
	text-decoration: none;
}

.btn.book:link, .btn.book:visited,
.btn.buy:link, .btn.buy:visited {
	background: #f47a1f;
	box-shadow: none;
	border: 0;
	color: #fff;
}


/* wp events manager button styles */
.epl_button_wrapper {
	float: right;
}

.epl_button, .epl_button_small, input.epl_button  {

    background-color: #f47a1f !important;
    border: none!important;
    border-radius: 2px;
    color: #FFFFFF!important;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    padding: 3px 6px!important;
    text-decoration: none;
    text-shadow:none!important;
    float: right !important;
	
	display: block;
	text-align: center;
	
	margin-bottom: 9px;
}

.epl_button_wrapper .epl_button {
	float: none!important;
	display: inline-block;
}

#calculate_total_due, .epl_button[type='submit'] {
	margin: 0;
}

.epl_button_small {

    font-size: 0.8em;
    font-weight: normal;
    padding: 2px 5px;
    width: auto;

}

.epl_button:hover, .epl_button_small:hover, input[type="submit"].epl_button_small:hover {

    background-color: #0066AA;
    text-decoration: none;
    color: #fff;

}
/* ---- */

.btn.buy {
	width: 120px;
	display: block;
	margin: 0 auto;
	margin-bottom: 20px;
}

#content ul {
	margin-bottom: 15px;
}

#content ul li {
	list-style: disc url('images/bullet.png') inside;
	text-indent: -12px;
	margin-left: 12px;
	font-size: 14px;
	padding-bottom: 12px;
}

#facebook-button {
	width: 86%;
	max-width: 222px;
	margin: 18px 0 16px 14px;
}

#facebook-button img {
	float: left;
	width: 17%;
	height: auto;
}

#facebook-button span {
	display: block;
	margin: 4% 0 0 21%;
	font-size: 14px;
	color: #3f3f3f;
}

#content .span_18 {
	margin-bottom: 15px;
}


/* /////////////   Header   ////////////// */
header.row {
	margin-bottom: 0.5em;
}

header #logo {
	width: 100%;
	max-width: 422px;
}

#tagline {
	font-style: italic;
	font-size: 14px;
	text-align: right;
	margin-bottom: 10px;
}

#contact p {
	text-align: right;
	margin: 0 0 10px;
}

header .tel {
	font-size: 20px;
}

nav#main {
	background-color: #e2e2e2;
	margin-bottom: 15px;
}

nav#main .menu-main-menu-container > ul li {
	position: relative;
	outline: 1px solid #fff;
	float: left;
	background-color: #e2e2e2;
}

nav#main li a {
	display: block;
	padding: 5px 9px;
}

nav#main li.last a {
	border-right: 0;
}

nav#main li a:link, nav#main li a:visited, nav#mobile a:link, nav#mobile a:visited {
	color: #3f3f3f;
	font-size: 14px;
}

nav#main li.current-menu-item > a {
	color: #f47a1f;
}

nav#main li a:hover {
	color: #f47a1f;
	text-decoration: none;
}

/* subnav */
nav#main ul li ul.sub-menu {
	position: absolute;
	z-index: 20;
	top: 29px;
	left: 0;
	width: auto;
	display: none;
	background: #dbdada;
	border-top: 1px solid #fff;
}

nav#main ul li:hover ul.sub-menu {
	display: block;
}

ul.sub-menu li {
	width: 100%;
}


/* mobile nav */
nav#mobile {
	display: none;
}

#mobile-toggle {
	padding: 8px 36px 8px 5px;
	text-align: right;
	background: #e2e2e2 url('images/menu-icon.png') right no-repeat;
	border-bottom: 1px solid #fff;
	cursor: pointer;
}

nav#mobile ul {
	background: #e2e2e2
}

nav#mobile ul li {
	border-top: 1px solid #fff;
}

nav#mobile ul li a {
	display: block;
	padding: 5px;
}

nav#mobile ul li ul.sub-menu {
	padding-left:20px;
	background-color: #e9e9e9;
}

nav#mobile ul li ul.sub-menu li {
}

.social-icons {
text-align: right;
}


/* /////////////////// Homepage /////////////////// */
/*.slides {
	width: 73%;
}*/

.flexslider.row {
	padding: 0 0 10px;
	margin: 0 0 20px;
	border-bottom: 1px solid #f47a1f;
}

.flexslider .slides > li {
	max-height: 402px;
	overflow: hidden;
}


.flex-control-nav {
	display: none;
}

.flexslider .slides > li {
	position: relative;
}

.slider-caption {
	display: block;
	width: 70%;
	padding: 10px;
	background:rgba(0, 0, 0, 0.4);
	position: absolute;
	bottom: 4%;
	color: #fff;
}

.slider-caption h3 {
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
	color: #fff;
}

.slider-caption p {
	margin: 0;
}

#course-boxes div {
	position: relative;
	width: 27%;
	height: auto;
	float: left;
	margin: 2%;
	overflow: hidden;
}

#course-boxes div img {
	display: block;
	width: 100%;
	height: 100%;
}

#course-boxes div span {
	position: absolute;
	top: 80%;
	background:rgba(0, 0, 0, 0.5);
	/*background: rgba(244,122,31, 0.5);*/
	width: 100%;
	height: 85%;
	display: block;
	right: 0;
	color: #fff;
	padding: 5px 10px;
}

#course-boxes h3 {
	text-align: center;
	text-transform: uppercase;
	font-size: 20px;
	font-weight: 600;
	padding: 2px 0 4px 0;
	color: #fff;
}

#course-boxes div p {
	font-size: 14px;
	line-height: 18px;
}

#course-boxes div p.center {
	text-transform: uppercase;
}

#course-boxes .no-hover-course {
	top: auto;
	bottom: 0px;
	height: auto;
}

#course-boxes .no-hover-course h3 {
	margin: 0;
}

#course-boxes #extra-course-info {
	clear: both;
	width: 95%;
	margin: 0;
}

#homepage-bottom div.col {
	margin-bottom: 10px;
}

#homepage-bottom h3 {
	margin-bottom: 10px;
}

#homepage-bottom .attachment-small-landscape {
	width: 100%;
	height: auto;
	border: 1px solid #3f3f3f;
}

#homepage-bottom span.text {
	display: block;
	min-height: 120px;
}

#contact-box span.text {
	min-height: auto;
}

.grey-box.location {
	border-left: 10px solid #b32026;
	text-align: center;
}

.grey-box.location p {
	line-height: 16px;
	text-align: center;
}

.grey-box.location img {
	float: left;
	border: 1px solid #bbb;
	margin-right: 6px;
	width: 50%;
	height: auto;
}

.grey-box.location .btn {
	float: none;
}

/* Twitter Widget */
#homepage-bottom .juiz_last_tweet_tweetlist {
	font-size: 14px;
	min-height: 254px;
}

#homepage-bottom .juiz_last_tweet_follow_us {
	min-height: 42px;
	margin: 0;
	padding: 7px 0 10px 48px;
	background: url('images/twitterbird.png') 6px 11px no-repeat;
	font-size: 10px;
}

/* //////////// general content pages /////// */

#content article {
	margin-bottom: 12px;
}

#content h1, #content h2 {
	margin-bottom: 15px;
}

/* /////// Course Directory page /////// */
#course-directory article {
	clear: both;
	overflow: hidden;
}

#course-directory article .image {
	overflow: hidden;
	float: left;
	margin: 5px 3% 10px 0;
	width: 23%;
}

#course-directory article .info {
	float: right;
	width: 74%;
}

#course-directory article img {
	width: 100%;
	height: auto;
	display: block;
	border: 6px solid #e2e2e2;
}

#course-directory article .btn { /* this class is only active on handheld devices */
	display: block;
	margin-bottom: 4px;
	width: 95px;
	font-size: 12px;
	text-align: center;
}

/* course category landing page */
#courses {
	margin-bottom: 14px;
	overflow: hidden;
}

#courses div {
	width: 48%;
	float: left;
	background: #e2e2e2;
	padding: 1%;
	margin: 0 1% 1% 0;
}

#courses div img {
	float: left;
	width: 34%;
	height: auto;
	margin-right: 2%;
}

#courses p {
	margin: 0;
	font-size: 14px;
}

#courses a:link p, #courses a:visited p {
	color: #000;
	line-height: 18px;
}

#courses h4 {
	margin: 0;
	color: #f47a1f;
	line-height: 18px;
	margin-bottom: 3px;
}

#course-category > div {
	overflow: hidden; margin-bottom: 15px;
}

#companies {
	border-top: 1px solid #f47a1f;
	margin-top: 20px;
	padding-top: 10px;
	clear: both;
}

#companies div {
	width: 50%;
	float: left;
	padding: 2%;
}

#companies span {
	display: block;
	min-height: 80px;
	margin-bottom: 10px;
}

#companies img {
	display: block; margin-left: auto; margin-right: auto; 
}

/* customer reviews page */
#content ul#all-reviews {
	padding-top: 10px;
}

#content ul#all-reviews li {
	list-style: none;
	text-indent: 0;
	margin: 0;
	font-style: italic;
	margin-bottom: 20px;
}

#content ul#all-reviews li span {
	font-style: normal;
	font-size: 12px;
}


/* /////////// individual course page. eg. essential bread //////// */
#left-sidebar {
	width:100%;
	float:none;
	font-size: 15px;
	padding-right: 2%;
	text-align: center;
	@media(min-width: 500px){
		width:32%;
		float:left;
	}
}

#left-sidebar img {
	margin-bottom: 7px;
	width: 100%;
	height: auto;
	border: 5px solid #e2e2e2;
}

#left-sidebar table.event_dates_table {
	margin: 10px 0 17px;
	width: 100%;
}

#left-sidebar table.event_dates_table td {
	list-style: none;
	margin: 0 0 0 10px;
	text-indent: 0;
	font-style: italic;
	text-align: center;
}

#left-sidebar p {
	font-size: 14px;
	text-align: center;
	margin: 10px 0;
}

#left-sidebar .btn {
	display: block;
	text-align: center;
	margin: 0 26%;
}

#left-sidebar .epl_button {
	margin: 0 26% 10px;
}

#left-sidebar .epl_avail_spaces_table .price {
	display: none;
}

#left-sidebar .toggle_container {
	display: block;
}

#content #middle {
	width: 100%;
	float: none;
	@media(min-width: 500px){
		width: 67%;
		float: right;
	}
}

/* ///////// gallery //////// */
#content .gallery {
	width: 172px;
	float: left;
	margin: 10px 15px;
}

#content .gallery img {
	border: 1px solid rgb(207, 207, 207);
	padding: 5px;
}

#content .gallery img.photo {
	border: 6px solid #e2e2e2;
	padding: 0;
	display: block;
}

#content .gallery p {
	padding: 5px 0;
	font-size: 14px;
	display: block;
	text-align: center;
}


#videos {
	margin-top: 20px;
}

#videos h2 {
	margin: 0;
}

#videos div {
	width: 47%;
	list-style: none;
	float: left;
	margin: 2% 1% 0;
	text-indent: 0;
}

.video-container {
	position: relative;
	padding-bottom: 28.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}

.video-container iframe,  
.video-container object,  
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ///////// Blog //////////*/
.post {
	margin-bottom: 20px;
}
.post h3 {
	margin: 0;
}

.post .date {
	margin: 0 0 4px 0;
	font-size: 12px;
}

#comments {
	margin-top: 20px;
}

#comments h2 {
	margin-bottom: 0;
}

.commentlist {
	margin:0;
	list-style:none;
}

.commentlist .children {
	margin: 10px 0 0 40px;
	list-style:none;
}

#content .comment article {
	margin-bottom: 0;
}

.comment {
	margin:0;
	padding: 10px 10px 15px;
}

.comment article {
	padding:20px;
	margin-bottom:35px;
	box-shadow:0 0 5px rgba(0, 0, 0, .1);
	background:#fff;
	border-bottom:#DDD 1px solid;
	overflow: hidden;
}

.commentlist .comment:first-child .comment-body {
	margin-top:0;
}

.comment .avatar {
	float:right;
	padding:5px;
	margin:0 0 20px 20px;
	background:#fff;
	border-bottom:#DDD 1px solid;
	box-shadow:0 0 5px rgba(0, 0, 0, .1);
}

.comment .fn {
	font-size:15px;
	font-style:normal;
	font-weight:600;
	line-height:1.62em;
}

.comment .fn span {
	display: none;
}

.comment-meta {
	margin-bottom:18px;
	font-size:12px;
}

a.comment-reply-link {
	padding:4px 15px;
	border-radius:15px;
	box-shadow:0 0 5px rgba(0, 0, 0, .1);
	background:#F8F8F8;
	background:-moz-linear-gradient(#FCFCFC, #F3F3F3);
	background:-webkit-linear-gradient(#FCFCFC, #F3F3F3);
	background:-o-linear-gradient(#FCFCFC, #F3F3F3);
	background:-ms-linear-gradient(#FCFCFC, #F3F3F3);
	background:linear-gradient(#FCFCFC, #F3F3F3);
	border-bottom:#DDD 1px solid;
	color:#333;
	text-decoration:none;
}

a.comment-reply-link:hover {
	box-shadow:#CCC 0 0 5px;
}

a.comment-reply-link:focus {
	box-shadow:0 0 5px rgba(0, 0, 0, .4);
	background:-moz-linear-gradient(#F3F3F3, #FCFCFC);
	background:-webkit-linear-gradient(#F3F3F3, #FCFCFC);
	background:-o-linear-gradient(#F3F3F3, #FCFCFC);
	background:-ms-linear-gradient(#F3F3F3, #FCFCFC);
	background:linear-gradient(#F3F3F3, #FCFCFC);
}

#respond {
	width:auto;
	padding:20px;
	margin-bottom:5.1%;
}

.commentlist #respond {
	margin: 0 0 5.1% 0;
}

.comment-notes,
.form-allowed-tags {
	color:#aaa;
	font-size:12px;
	line-height:16px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
	position:relative;
}


.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-comment label {
	display:inline-block;
	position:absolute;
	top:1px;
	left:1px;
	z-index:1;
	width:60px;
	padding:0 10px;
	color:#444;
	line-height:36px;
}

.comment-form-comment label {
	display: none;
}

.comment-form-author .required,
.comment-form-email .required,
.comment-form-url .required,
.comment-form-comment .required {
	position:absolute;
	top:1px;
	right:1.5%;
	z-index:2;
	color:#FF0000;
	font-size:24px;
	line-height:44px;
}

.bypostauthor > article {
	background: #F0F0F0;
}

#comments textarea {
	padding: 1.5%;
	box-shadow: inset 1px 1px 5px rgba(0, 0, 0, .05);
	background: #FCFCFC;
	border: #EEE 1px solid;
	color: #999;
}

.next-link {
	float: right;
}

/* /////// Social media buttons //////// */

#share {
	float: right;
	font-size: 12px;
	margin-top: 20px;
	width: 206px;
}

#share li {
	display: block;
	float: left;
	list-style: none;
	background: none;
	margin-left: 10px;
	padding: 0;
	width: 66px;
}

#facebook-button {
	margin-top: -2px;
}

/* //// RSS link /// */
#rss {
	height: 24px;	
	margin-top: 14px;
	font-size: 14px;
}

#rss a {
	background: url('images/rss.jpg') 0px 5px no-repeat;
	padding-left: 30px;
	padding-top: 0px;
	display: block;
	height: 40px;
}

/* //////// sitemap /////////*/
ul#sitemap ul {
	margin-bottom: 0;
}

ul#sitemap li {
	list-style: none;
	text-indent: 0;
	margin-left: 0
}

ul#sitemap li ul li {
	margin-left: 20px;
}

/* //////// SIDEBAR //////// */

#sidebar h3 {
	font-weight: normal;
}

#bookonlinebox, #sidebar .gallery-sidebar{
	margin-bottom: 20px;
}

#bookonlinebox .grey-box {
	text-align: center;
}

#bookonlinebox .grey-box .btn {
	float: none;
}

#sidebar ul li {
	list-style: none;
}

#sidebar #gallery {
	overflow: hidden;
}

.gallery-sidebar img {
	width: 100%;
	height: auto;
}

#sidebar .gallery-sidebar h3 {
	font-weight: bold;
	text-transform: uppercase;
	font-size: 14px;
}

#sidebar #reviews {
	margin-bottom: 25px;
}

#sidebar #reviews li {
	list-style: none;
	font-style: italic;
	font-size: 14px;
	margin-bottom: 15px;
}

#sidebar #reviews li span {
	font-style: normal;
	font-size: 12px;
}

/* newsletter signup */
#sidebar .signupframe {
	border: 0;
}
#sidebar .signupframe tr{
	height: 30px;
}

#sidebar .signupframe input {
	height: 25px;
}

/* //////// Right Content //////*/
#content #right-content {
	font-size: 14px;
}

/* ///////////// FOOTER ///////// */

footer {
	border-top: 1px solid #f47a1f;
	padding-top: 15px;
}

footer #left a.logo {
	float: left;
}

footer #left p {
	font-size: 12px;
	margin-top: 13px;
}

#menu-footer-menu {
	float: right;
	margin-top: 9px;
}

#menu-footer-menu li {
	display: inline;
}

#menu-footer-menu li a:link, #menu-footer-menu li a:visited {
	border-right: 1px solid #c1bebe;
	color: #3f3f3f;
	font-size: 12px;
	padding: 0 5px 0 1px;
}

#menu-footer-menu li:last-child a {
	border-right: 0;
}

/* Events planner */
.fc-event-title .epl_fc_title_time {
	background-color: none!important;
	box-shadow: none!important;
}

/* shop */

.ec_product_type1 .ec_product_addtocart a {
	text-align: center;
}

#ec_store_product_list img {
	display: block;
}

/* tables -- */

table tr td:first-child {
	border-left-style: none;
}

/* ------------ RESPONSIVE MEDIA QUERIES ------- */

@media (min-width: 1024px) {
	.flexslider {
		height: 402px;
	}
}


@media (max-width: 1024px) {
	.grey-box.location p, #facebook-button span {
		font-size: 13px;
	}
}

/* iPad portrait */
@media (max-width: 768px) {
	body {
		font-size: 14px;
		line-height: 18px;
	}
	#course-boxes div {
		width: 29%;
	}
	#course-boxes h3 {
		padding: 8px 0 8px 0
	}
	#facebook-button span {
		margin: 10px 0 0 55px
	}
	.grey-box.location .btn {
		display: block;
		width: 70px;
		float: right;
		margin: 6px 39px 0;
	}
	#contact-box .grey-box {
		min-height: 122px;
	}
	#contact-box .grey-box p {
		font-size: 13px;
	}
	#left-sidebar .btn {
		margin: 16px 0 0 23px;
	}

	#right-home {
		margin-top: 10px;
		border-bottom: 1px solid #f47a1f;
	}

}

@media (min-width: 685px) and (max-width: 768px) {
	.grey-box.booking{
		min-height: 44px;
		padding: 10px;
	}
	.grey-box.booking p{
		display: block;
		float: left;
		margin: 5px;
		font-size: 14px;
		line-height: 16px;
	}
	.grey-box.booking p.brown {
		font-size: 14px;
		font-weight: 600;
	}
	#homepage-bottom span.text {
		min-height: 94px;
	}
	#contact-box span.text {
		min-height: auto;
	}
}

@media (min-width: 380px) and (max-width: 768px) {
	#homepage-bottom .col.span_6 {
		width: 47%;
		margin-right: 4%;
		margin-left: 0;
	}
	#homepage-bottom .col.span_6.last {
		margin-right: 0;
	}
}

/* eg: Android Samsung galaxy landscape */
@media (max-width: 685px) {
	#tagline {
		text-align: center;
	}

	#contact p {
		margin: 0 0 3px;
		text-align: center;
		font-size: 16px;
	}
	nav#main {
		display: none;
	}
	nav#mobile {
		display: block;
	}
	#course-boxes h3 {
		padding: 5px 0 8px 0;
		font-size: 16px;
	}
	#course-boxes div p.center {
		text-transform: none;
	}
	#course-boxes div span {
		padding: 5px 3px;
	}
	#homepage-bottom span.text {
		/*min-height: 100px;*/
	}
	.grey-box.location .btn {
		margin: 3px 30px 0;
	}
	#course-directory article .image {
		height: 100%;
	}
}


/* iphone 5 landscape */
@media (max-width: 568px) {
	body {
		font-size: 12px;
		line-height: 16px;
	}
	h1,h2,h3,h4 {
		font-size: 14px;
	}
	h5,h6 {
		font-size: 13px;
	}
	#course-boxes div p {
		font-size: 12px;
	}
	.grey-box p {
		font-size: 12px;
	}
	.grey-box.location .btn {
		margin: 3px 17px 0;
	}
	#courses p {
		font-size: 12px;
	}
	#courses div {
		min-height: 105px;
	}
	#left-sidebar .btn {
		margin: 16px 0 0 16px;
	}
}

/* iPhone 3+4 landscape */
@media (max-width: 480px){
	.flex-direction-nav {
		display: none;
	}
	#course-boxes div {
		width: 46%;
	}
	#facebook-button span {
		margin: 10px 0 0 44px;
		font-size: 13px;
	}
	#contact-box .grey-box .btn {
		margin: 0 auto;
		margin-top: 21px;
		float: none;
	}
	#left-sidebar .btn {
		margin: 0;
	}
	#content .gallery_box ul li {
		width: 50%;
	}
	#content .gallery_detail_box {
		font-size: 12px;
	}
}

/* eg: Android Samsung galaxy portrait */
@media (max-width: 380px) {
	.slider-caption {
		background: none;
		padding: 0 10px;
		width: 100%;
		text-shadow: #3f3f3f 1px 1px;
	}
	.slider-caption span.link {
		font-size: 14px;
		display: block;
		font-weight: bold;
	}
	.flex-direction-nav {
		display: none;
	}
	#homepage-bottom span.text {
		min-height: 0;
	}
	#facebook-button span {
		margin: 1px 0 0 53px;
	}
	#contact-box .grey-box {
		min-height: 197px;
	}
	.grey-box.location img {
		width: 100%;
	}
	#contact-box .grey-box .btn {
		margin: 0 auto;
		float: none;
	}
}

/* iPhone 3+4 portrait */
@media (max-width: 320px) {
	#course-boxes div span {
		top: 60%;
	}
	#facebook-button {
		margin: 0 auto;
		margin-bottom: 10px;
	}
	#facebook-button span {
		margin: 9px 0 0 53px;
		font-size: 14px;
	}
	#contact-box .grey-box {
		min-height: 87px;
	}
	#contact-box .grey-box .btn {
		float: right;
		margin-right: 47px;
	}
	.grey-box.location img {
		width: 36%;
	}
	#left-sidebar {
		width: 40%;
	}
	#left-sidebar p, #left-sidebar ul li, #left-sidebar strong {
		font-size: 12px;
	}
	#content #middle {
		width: 60%;
	}

}

/* small android portrait */
@media (max-width: 240px) {
	.slider-caption p {
		display: none;
	}
	#contact-box .grey-box {
		min-height: 103px;
	}
	#contact-box .grey-box .btn {
		margin-right: 26px;
	}

}