/*
Theme Name: Templestowe Dental
Version: 1.0
Description: Custom website for Templestowe Dental
Author: Intervision Design
Author URI: http://www.intervision.com.au
*/





/************************************/
/*** CSS CODED BY EHREN FERGUSSON ***/
/************************************/




@font-face {
    font-family: 'GothamMedium';
    src: url('_assets/fonts/GothamMedium.eot');
    src: url('_assets/fonts/GothamMedium.eot?#iefix') format('embedded-opentype'),
         url('_assets/fonts/GothamMedium.woff') format('woff'),
         url('_assets/fonts/GothamMedium.ttf') format('truetype'),
         url('_assets/fonts/GothamMedium.svg#GothamMedium') format('svg');
    font-weight: normal;
    font-style: normal;
}

/************************************/
/************ START CSS *************/

body {
	background: #222 no-repeat center bottom fixed;
	color: #000;
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	font-weight: 300;
}
a {
	color:#319cde;
	font-weight: 400;
}
a:hover,
a:active {
	color:#319cde;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.2em;
	font-weight: normal;
	text-transform: uppercase;
	font-family: 'GothamMedium', sans-serif;
}

/*a { -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s; }*/
/* .round { -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; }*/

/************************************/
/*************** MAIN ***************/

/* Colors
	#319cde = Blue
	#222222 = Dark Grey
*/

/* Buttons */

.btn { display: inline-block; padding: 10px 30px; font-family: 'GothamMedium', sans-serif; font-size: 18px; text-transform: uppercase; line-height: 1em; -webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px; -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s; text-align: center;}
.btn.color { color: #319cde; border: 2px solid #319cde;}
.btn.white { color: #fff; border: 2px solid #fff;}
.btn.dark { color: #222; border: 2px solid #222;}
.btn.color:hover { color: #fff; background: #319cde;}
.btn.white:hover { color: #319cde; background: #fff;}
.btn.dark:hover { color: #fff; background: #222;}

/* Grey Scale */

.desaturate,
.desaturate img { -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s;
-webkit-filter: grayscale(1);
-webkit-filter: grayscale(100%);
		filter: gray;
		filter: grayscale(100%);
}
.desaturate:hover,
.desaturate img {
-webkit-filter: grayscale(0);
-webkit-filter: grayscale(0);
		filter: none;
		filter: grayscale(0);
}

/* Header */

#header { position: fixed; background: #fff; width: 100%; min-height: 80px; -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s; z-index: 999;
	-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.3);
	-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3);
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
	#header.top { top: 0;}
	#header.hide { top: -100px; opacity: 0;}
	#logo { position: absolute; left: 50%; top: 5px; width: 70px; height: 70px; margin-left: -35px;}
	#site_title { position: absolute; left: 90px; top: 20px; width: 160px; height: 40px; padding-top: 3px; font-size: 18px; color: #319cde; line-height: 1.1em;}

/* Home */

#intro_block { position: relative; display: block; width: 100%; height: 100%; min-height: 520px; background: #222; color: #fff; text-align: center;
	background: no-repeat center center;
	-webkit-background-size: cover !important;
	-moz-background-size: cover !important;
	-o-background-size: cover !important;
	background-size: cover !important;
}
	#menu_home {}
	#logo_home { position: absolute; top: 50%; left: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px;}
	#intro_block .intro { position: absolute; bottom: 0; width: 500px; left: 50%; margin-left: -250px;}
	#intro_block h2 { font-size: 24px;}
	#intro_block .btn { margin: 20px 0;}
	#intro_block span { width: 100%; height: 40px; display: block; text-align: center; color: #ccc; cursor: pointer; font-size: 26px;}

#text_block { padding: 50px 0; text-align: center; background: #fff;}
	#text_block .text { font-size: 18px; line-height: 1.6em; padding: 0 50px;}

#action_block { text-align: center; color: #fff; padding: 100px 0;
	background: no-repeat center center;
	-webkit-background-size: cover !important;
	-moz-background-size: cover !important;
	-o-background-size: cover !important;
	background-size: cover !important;
}
	#action_block h2 { font-size: 36px; padding: 0 30px 30px 30px;}
	#action_block .btn {}

#news_block { padding: 40px 0; background: #fff; text-align: center;}
	.news_item { padding: 0; text-align: center; margin: 0 100px;}
	.news_item * {-o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s;}
	.news_item .preview { width: 114px; height: 114px; margin: 0 auto; position: relative; border: 3px solid #319cde;
	-webkit-border-radius:60px; -moz-border-radius:60px; border-radius:60px;}
	.news_item .preview i { display: block; position: absolute; left: 50%; top: 50%; margin: -50px 0 0 -50px; width: 100px; height: 100px; background: no-repeat center center; -webkit-border-radius:60px; -moz-border-radius:60px; border-radius:60px;
	-webkit-background-size: cover !important;
	-moz-background-size: cover !important;
	-o-background-size: cover !important;
	background-size: cover !important;}
	.news_item .preview:hover i { width: 108px; height: 108px; margin: -54px 0 0 -54px;}
	.news_item h3 { font-size: 18px; color: #222; padding: 20px 0; text-transform: uppercase;}
	.news_item .text { color: #000; padding-bottom: 10px;}
	.news_item span { display: block; padding-bottom: 30px; font-style: italic; font-weight: 700;}

/* Promo Boxes */

#promo_block { padding-top: 60px;}
	.promo_box { position: relative; background: no-repeat center center; height: 220px; width: 220px; margin: 50px auto 0 auto; text-align: center; color: #fff;
	-webkit-border-radius:150px; -moz-border-radius:150px; border-radius:150px;
	-webkit-background-size: cover !important;
	-moz-background-size: cover !important;
	-o-background-size: cover !important;
	background-size: cover !important;}
	.promo_box * { -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s;}
	.promo_box:after { content: ''; display: block; position: absolute; top: 50%; left: 50%; width: 230px; height: 230px; margin: -115px 0 0 -115px; border: 2px solid #319cde; opacity: 0; -webkit-border-radius:150px; -moz-border-radius:150px; border-radius:150px; -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s; cursor: pointer;}
	.promo_box h3 { position: absolute; top: 50%; width: 100%; left: 0; margin-top: -10px; font-size: 20px; line-height: 1em; color: #fff; text-align: center;}
	.promo_box:hover:after { opacity: 1;}
	.promo_box:hover h3 { color: #319cde;}

/* Pages */

#cover { display: block; position: relative; background: no-repeat center center; height: 400px;
	-webkit-background-size: cover !important;
	-moz-background-size: cover !important;
	-o-background-size: cover !important;
	background-size: cover !important;
	}
	#cover h1 { font-size: 72px; color: #fff; line-height: 1em; text-align: center; display: block; width: 100%; margin: 0 auto; position: absolute; bottom: -20px;}
	#cover h1 a { color: #fff;}
	
#content { padding: 50px 0; background: #fff;}

/* Services */

#service_block { padding: 30px 0; background: #fff;}
	.service_item { display: block; position: relative; margin: 20px; text-align: center;}
	.service_item * { -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s;}
	.service_img { display: block; height: 150px; margin-bottom: 20px;}
	.service_item h3 { color: #222;}
	.service_item:hover h3 { color: #319cde;}
	
	.popup { max-width: 700px; padding: 40px 50px;}
	.popup h3 { text-align: center; padding-bottom: 30px; color: #319cde; font-size: 36px !important;}
	
	.panel_flip {
		margin: 15px;
		text-align: center;
		min-height: 300px;
		position: relative;
		
		-webkit-perspective: 600px;
		-moz-perspective: 600px;
		-ms-perspective: 600px;
		perspective: 600px;
	}

	.panel_flip .service_front,
	.panel_flip .service_back {
		text-align: center;
	}
		
	.panel_flip .service_front {
		height: 100%;
		width: 100%;
		position: absolute;
		top: 0;
		z-index: 900;
		text-align: center;
		
		-webkit-transform: rotateX(0deg) rotateY(0deg);
		   -moz-transform: rotateX(0deg) rotateY(0deg);
		     -o-transform: rotateX(0deg) rotateY(0deg);
			-ms-transform: rotateX(0deg) rotateY(0deg);
				transform: rotateX(0deg) rotateY(0deg);
		   
		-webkit-transform-style: preserve-3d;
		   -moz-transform-style: preserve-3d;
		     -o-transform-style: preserve-3d;
		    -ms-transform-style: preserve-3d;
				transform-style: preserve-3d;
		   
		-webkit-backface-visibility: hidden;
		   -moz-backface-visibility: hidden;
			-ms-backface-visibility: hidden;
				backface-visibility: hidden;
		   
		-webkit-transition: all .4s ease-in-out;
		   -moz-transition: all .4s ease-in-out;
			-ms-transition: all .4s ease-in-out;
			 -o-transition: all .4s ease-in-out;
				transition: all .4s ease-in-out;
	}
	
	.panel_flip .service_back {
		display: table;
		height: 100%;
		width: 100%;
		position: absolute;
		top: 0;
		z-index: 1000;
		
		-webkit-transform: rotateY(-180deg);
		   -moz-transform: rotateY(-180deg);
		     -o-transform: rotateY(-180deg);
			-ms-transform: rotateY(-180deg);
				transform: rotateY(-180deg);
		   
		-webkit-transform-style: preserve-3d;
		   -moz-transform-style: preserve-3d;
		     -o-transform-style: preserve-3d;
		    -ms-transform-style: preserve-3d;
				transform-style: preserve-3d;
		   
		-webkit-backface-visibility: hidden;
		   -moz-backface-visibility: hidden;
			-ms-backface-visibility: hidden;
				backface-visibility: hidden;
		   
		-webkit-transition: all .4s ease-in-out;
		   -moz-transition: all .4s ease-in-out;
			-ms-transition: all .4s ease-in-out;
			 -o-transition: all .4s ease-in-out;
				transition: all .4s ease-in-out;
	}
	.panel_flip.flip .service_front {
		z-index: 900;
		
		-webkit-transform: rotateY(180deg);
		   -moz-transform: rotateY(180deg);
		     -o-transform: rotateY(180deg);
			-ms-transform: rotateY(180deg);
				transform: rotateY(180deg);
	}
	.panel_flip.flip .service_back {
		z-index: 1000;
		
		-webkit-transform: rotateX(0deg) rotateY(0deg);
		   -moz-transform: rotateX(0deg) rotateY(0deg);
		     -o-transform: rotateX(0deg) rotateY(0deg);
			-ms-transform: rotateX(0deg) rotateY(0deg);
				transform: rotateX(0deg) rotateY(0deg);
	}
	.box1 {
		background: #fff;
		width: 100%;
		height: 100%;
		margin: 0 auto;
		padding: 50px 20px 30px 20px;
	}
	.box2 { display: table-cell; vertical-align: middle;
		background: #222222;
		color: #fff;
		width: 100%;
		height: 300px;
		margin: 0 auto;
		padding: 30px;
	}
	.box2 h3 { padding-bottom: 15px; color: #319cde;}

/* Posts */

.the_posts { margin-bottom: 30px; text-align: center;}
	.the_posts .feat_img { min-height: 100px; position: relative;}
	.the_posts .feat_img span { position: absolute; left: 50%; bottom: 15px; margin-left: -40px; width: 80px; height: 80px; background: #319cde; color: #fff; font-size: 36px; text-align: center; line-height: 1em; text-transform: uppercase; z-index: 99; padding-top: 15px; font-family: 'GothamMedium', sans-serif;
	-webkit-border-radius: 80px; -moz-border-radius: 80px; border-radius: 80px;	
	}
	.the_posts .feat_img span em { font-style: normal; display: block; position: relative; margin-top: -10px; font-size: 12px;}
	.the_posts .details { padding: 24px 0;}
	.the_posts .details h2 { color: #000; font-size: 18px; padding-bottom: 15px;}
	.the_posts .details .text { padding-bottom: 20px;}
	.the_posts .details .btn { font-size: 16px !important; line-height: 1em !important;}

.post_single { position: relative; /*padding:0 80px;*/}
	
	.single_date { position: absolute; left: 50%; top: 50%; margin: 0 0 0 -40px; width: 80px; height: 80px; border: 2px solid #319cde; color: #319cde; font-size: 36px; text-align: center; line-height: 1em; text-transform: uppercase; z-index: 99; padding-top: 15px; font-family: 'GothamMedium', sans-serif;
	-webkit-border-radius: 80px; -moz-border-radius: 80px; border-radius: 80px;	
	}
	.single_date em { font-style: normal; display: block; position: relative; margin-top: -10px; font-size: 12px;}

	.post_content { position: relative;}
	.post_title { font-size: 30px; padding-bottom: 20px; text-align: center;}
	.post_single .feat_img { margin-bottom: 30px;}
	.post_meta { position: relative; height: 40px; margin-bottom: 20px; text-align: center;}
	/*.post_date { position: absolute; top: 0; left: 0; width: 50px; height: 40px; border-right: 2px solid #99A2AE; color: #99A2AE; text-align: right; padding-top: 5px; font-size: 14px; font-weight: bold; text-transform: uppercase; line-height: 1em;}
	.post_date em { font-style: normal; font-weight: normal; font-size: 13px; display: block;}*/
	.post-social { /*margin-left: 60px;*/}
	.post-social li { display: inline-block; position: relative; text-align: center; margin: 0;}
	.post-social li a { display: block; height: 40px; padding-top: 8px; font-size: 16px; padding: 10px; -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s; -webkit-border-radius:30px; -moz-border-radius:30px; border-radius:30px;}
	.post-social li a em { font-style: normal; padding: 0 10px;}
	
	.post-social li.fb a { /*border: 2px solid #3a589b;*/ color: #3a589b;}
	.post-social li.tw a { /*border: 2px solid #1daaf1;*/ color: #1daaf1;}
	.post-social li.pi a { /*border: 2px solid #e14b33;*/ color: #cb2027;}
	.post-social li.li a { /*border: 1px solid #137bb6;*/ color: #137bb6;}
	
	.post-social li.fb a:hover { background: #3a589b; color: #fff;}
	.post-social li.tw a:hover { background: #51c7ef; color: #fff;}
	.post-social li.pi a:hover { background: #cb2027; color: #fff;}
	.post-social li.li a:hover { background: #137bb6; color: #fff;}
	
	/*.post_single .prev_p a,
	.post_single .next_p a { margin: 20px;}*/
	
	.post_nav { display: block;}
	.post_nav * { -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s;}
	.post_nav a { display: inline-block; line-height: 1em; margin: 10px 0; font-size: 18px; padding: 15px 30px; background: #319cde; color: #fff; -webkit-border-radius:30px; -moz-border-radius:30px; border-radius:30px; }
	.post_nav .left { text-align: left;}
	.post_nav .right { text-align: right;}
	.post_nav a:hover { background: #222;}

/* Next / Prev */

.prev_p *,
.next_p * { -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s;}
.prev_p a,
.next_p a { display: block; position: relative; margin: 30px 0 10px 0;}
.prev_p h6,
.next_p h6 { font-size: 18px; display: inline-block; line-height: 1em; padding: 15px 30px; background: #319cde; color: #fff; -webkit-border-radius:30px; -moz-border-radius:30px; border-radius:30px;}
.prev_p a:hover h6,
.next_p a:hover h6 { background: #222;}

.prev_p a { text-align: left;}
.next_p a { text-align: right;}

/* Sidebar */

#sidebar { padding-left: 30px;}

/* Widgets */
.widget { padding:0 0 30px 0;}
	.widget .widget_heading { margin-top: -6px; }
	.widget h3 { margin-top: 0; font-size: 12px; letter-spacing: normal; border-bottom: 2px solid transparent; position: relative; margin-bottom: 15px; text-align: center; text-transform: uppercase;}
	.widget h3:before { content: ""; display: block; border-top: 1px solid #319cde; width: 100%; height: 2px; position: absolute; top: 50%; z-index: 1;}
	.widget h3 span { padding: 0 10px; position: relative; display: inline-block; z-index: 1; background: #fff; font-weight: inherit;}
	.widget ul li { padding: 0; position: relative;}
	.widget ul ul li { margin: 0 15px;}
	.widget ul li:last-child { border-bottom: none;}
	.widget ul li a { font-size: 12px; color: #666;}
	.widget ul li a:hover { color: #319cde;}
	.widget .textwidget { padding: 0;}
	#searchform { position: relative;}
	#searchform input[type="text"] { display: block; width: 100%;}
	#searchform .searchsubmit { position: absolute; top: 5px; right: 5px; border: none ; background: none; width: 30px; height: 30px ; margin: 0; font-size: 18px; line-height: 1em; display: block; cursor:pointer; color: #ddd;}
	#searchform .searchsubmit:hover { /*color: #ff8a55;*/}

/* Footer */

#footer { padding: 40px 0; text-align: center; color: #fff;}
	.social { text-align: center;}
	.social li { display: inline-block; margin: 10px; vertical-align: top;}
	.social li span { position: relative; display: block; width: 40px; height: 40px; border: 2px solid #319cde; color: #319cde; text-align: center; padding-top: 8px; font-size: 20px; -webkit-border-radius:60px; -moz-border-radius:60px; border-radius:60px; -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s;}
	.social li span:hover { color: #fff; border-color: #fff;}
	
	.address { padding: 30px 0 0 0; font-size: 18px; color: #319cde; font-weight: 400;}
	
	.footer_menu { padding: 30px 0;}
	.footer_menu ul { text-align: center;}
	.footer_menu ul li { display: inline-block; margin: 5px 10px;}
	.footer_menu ul li a { color: #fff; font-size: 13px; text-transform: uppercase;}
	.footer_menu ul li a:hover { text-decoration: underline; color: #319cde;}
	
	.copyright { font-size: 10px; text-align: center; color: #ccc;}
	.copyright a { color: #ccc;}

/* Gallery SHortcode */
.gallery_block { padding: 20px 0;}
.gallery_block .item { padding: 5px;}

/* SlideShow Blocks */
.cycle-slideshow, .cycle-slideshow * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.cycle-slideshow { position: relative; min-height: 50px; overflow: hidden;}
/*.cycle-slideshow img { position: absolute; top: 0; left: 0; width: 100%; padding: 0; display: block;}
.cycle-slideshow img:first-child {position: static; z-index: 100;}*/
.cycle-pager > * { cursor: pointer;}
.cycle-pager { position: absolute; width: 150px; text-align: right; bottom: 20px; right: 20px; z-index: 999;}
.cycle-pager span { width: 10px; height: 10px; display: inline-block; background: #fff; color: #fff; margin: 0 5px; font-size: 1px; line-height: 1em; overflow: hidden; cursor: pointer;  opacity: 0.5;}
.cycle-pager span.cycle-pager-active { opacity: 1;}
.cycle-prev, .cycle-next { position: absolute; top: 50%; margin-top: -25px; width: 50px; height: 50px; background: #fff; z-index: 999; opacity: 0; cursor: pointer; -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s;}
.cycle-prev { left: 0;}
.cycle-next { right: 0;}
.cycle-prev i, .cycle-next i { display: block; width: 26px; height: 26px; position: absolute; top: 50%;}
.cycle-prev i { border-bottom: 1px solid #40464f; border-left: 1px solid #40464f; margin: -12px 0 0 -12px; left: 30px;
-webkit-transform: rotate(45deg);
   -moz-transform: rotate(45deg);
     -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
        transform: rotate(45deg);
}
.cycle-next i { border-bottom: 1px solid #40464f; border-right: 1px solid #40464f; margin: -12px 0 0 -12px; left: 20px;
-webkit-transform: rotate(-45deg);
   -moz-transform: rotate(-45deg);
     -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
        transform: rotate(-45deg);
}
.cycle-slideshow:hover .cycle-prev, .cycle-slideshow:hover .cycle-next { opacity: 1;}
.slide_block { max-width: 100%; /*height: 700px;*/ display: block; position: relative;}
.slide_block .slide { width: 100%; height: 100%; display: block; position: relative; background: no-repeat center center;
	-webkit-background-size: cover !important;
	-moz-background-size: cover !important;
	-o-background-size: cover !important;
	background-size: cover !important;}

/************************************/
/************** MENUS ***************/

#menu_l.main_menu { position: absolute; top: 23px; right: 50%; margin-right: 60px;}
#menu_l.main_menu ul { text-align: right;}
#menu_r.main_menu { position: absolute; top: 23px; left: 50%; margin-left: 60px;}
#menu_r.main_menu ul { text-align: left;}

.main_menu {}
.main_menu ul {}
.main_menu ul li { position: relative; display: inline-block;}
.main_menu ul li a { display: block; font-size: 14px; line-height: 1em; padding: 10px; color: #222; font-weight: 400; font-family: 'Open Sans', sans-serif; text-transform: uppercase; -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s;}
.main_menu ul li a:hover { /*background: #242a33;*/}
.main_menu ul li.current-menu-item a,
.main_menu ul li.current-menu-parent a,
.main_menu ul li.current-page-ancestor a { color: #319cde;}

#menu_home.main_menu { padding: 30px 0;}
#menu_home.main_menu ul { text-align: center;}
#menu_home.main_menu ul li a { color: #fff;}
#menu_home.main_menu ul li a:hover, { }
#menu_home.main_menu ul li.current-menu-item a,
#menu_home.main_menu ul li.current-menu-parent a,
#menu_home.main_menu ul li.current-page-ancestor a { color: #fff;}
.phone_number a { color: #319cde !important; font-weight: 700 !important;}

/* Level 1 */
.main_menu ul ul:before { content: ''; position: absolute; left: 50%; top: -7px; margin-left: -7px; width: 0px; height: 0px; border-style: solid; border-width: 0 7px 7px 7px; border-color: transparent transparent #000 transparent;}
.main_menu ul ul { position:absolute; left: 50%; top: 45px; margin-left: -100px; background: rgba(5,21,36,0.9); width: 200px; z-index:9999; text-align: center; padding: 15px 0; border-top: 2px solid #000;
	-webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	-moz-box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	-webkit-border-radius:10px; -moz-border-radius:10px; border-radius:10px;
}
.main_menu ul ul li { width: 200px; display: block; margin: 0;}
.main_menu ul ul li a,
.main_menu ul li.current-menu-item li a { display: block; padding: 10px 20px; color: #fff; font-size: 14px; margin: 0; border: none; background: none; }
.main_menu ul ul li a:hover,
.main_menu ul li.current-menu-item ul a,
.main_menu ul li.current-menu-parent ul a,
.main_menu ul ul li.current-menu-item a,
.main_menu ul ul li.current-menu-parent a { background: none; border: none; color: #fff;}
.main_menu ul ul li a:hover,
.main_menu ul ul li.current-menu-item a { color: #319cde;}
/* level 2 */
.main_menu ul ul ul {display: none;}

/* mobile menu */
#menumobile {/* position: relative; z-index: 99; display: block;*/ background: #222222;}
#menumobile .row div { min-height: 0px !important;}
#menu-icon { width: 40px; height: 40px; padding: 10px 0 0 0; background: #fff; text-align: center; font-size: 16px; text-transform: uppercase; cursor: pointer; display: block; position: fixed; top: 20px; right: 20px; z-index: 9999;}
#menu-icon.active { background: #319cde;}

#menu-icon:before, #menu-icon:after { -o-transition:.5s; -ms-transition:.5s; -moz-transition:.5s; -webkit-transition:.5s; transition:.5s;}
#menu-icon:before { content: ''; display: block; width: 20px; height: 8px; border-bottom: 2px solid #222222; border-top: 2px solid #222222; position: absolute; top: 50%; left: 50%; margin: -8px 0 0 -10px;}
#menu-icon:after { content: ''; display: block; width: 20px; height: 1px; border-top: 2px solid #222222; position: absolute; top: 50%; left: 50%; margin: 5px 0 0 -10px;}
#menu-icon.active:before { border-bottom: none; width: 28px; margin: -2px 0 0 -16px; border-color: #fff;
-webkit-transform: rotate(45deg);
   -moz-transform: rotate(45deg);
     -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
        transform: rotate(45deg);
}
#menu-icon.active:after { width: 28px; margin: -1px 0 0 -14px; border-color: #fff;
-webkit-transform: rotate(-45deg);
   -moz-transform: rotate(-45deg);
     -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
        transform: rotate(-45deg);
}
#menumobile ul { clear: both; width: auto; z-index: 100; padding: 100px 30px 20px 30px; position: relative; display: none;}
#menumobile ul li { clear: both; float: none; }
#menumobile ul a, #menumobile ul ul a {color: #fff; text-transform: uppercase; font-size: 16px; display: block; text-align: right; padding: 10px 0;}
#menumobile ul a:hover, #menumobile ul ul a:hover {color: #fff;}
#menumobile ul ul { top: 0; padding: 0; width: auto; position: relative; display: none; border: none; background: none;}
#menumobile ul ul li { padding:0 20px;}

/************************************/
/************** GRIDS ***************/

.container {
	margin:0 auto;
	width:1100px;
	display:block;
	padding: 0;
}


/* GRIDS TABLET */
@media (min-width: 768px) and (max-width: 1099px) {
	
	.container { width: 768px;}
	.cycle-pager { margin-left: 235px;}
	
	#header.top { top: 0;}
	#header.hide { top: 0; opacity: 1;}
	#logo { left: 5px; margin-left: 0;}
	
	#intro_block { height: 520px;}
	
}

/* GRIDS MOBILE */
@media (max-width: 767px) {
	
	.container { width: 100%; padding: 0 30px;}
	.cycle-pager { margin-left: 0; left: auto; right: 5px; bottom: 10px;}
	
	#header.top { top: 0;}
	#header.hide { top: 0; opacity: 1;}
	#logo { left: 5px; margin-left: 0;}
	#intro_block .intro { width: 320px; margin-left: -160px}
	
	#intro_block { height: 520px;}
	
	#cover { height: 200px;}
	#cover.single_blog { height: 300px;}
	#cover h1 { font-size: 36px; line-height: 1em; bottom: -10px;}
	
	.post-social li a em { display: none;}
	
	.prev_p h6,
	.next_p h6 { font-size: 12px; padding: 10px 15px;}
	
	#text_block { padding: 30px 0; }
	#text_block .text { font-size: 15px; line-height: 1.5em; padding: 0;}

	#action_block { padding: 40px 0; }
	#action_block h2 { font-size: 20px; padding: 0 0 30px 0;}

	.news_item { margin: 0;}

	.service_img { margin: 0 auto 20px auto; width: 80px; height: 80px;}
	
}

/* MAX HEIGHT */
@media (max-height: 900px) {
	.slide_height { height: 500px;}
}

/************************************/
/************** OTHER ***************/

/* SELECT & PLACEHOLDER */
::selection,
::-moz-selection { background: #f1f1f1; color:#333;}

::-webkit-input-placeholder { color:#999999;}
	 :-ms-input-placeholder { color:#999999;}
	 	 ::-moz-placeholder { color:#999999;}
		  :-moz-placeholder { color:#999999;}

/* FORMS */
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
/*input[type="number"],*/
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
	background: #fff;
	border: 1px solid #D0D4D7;
	color: #0092D0;
	font-size:14px ;
	padding: 10px !important;
}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
/*input[type="number"]:focus,*/
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus {
	background:#f3f3f3;
	border-color: #319cde;
	color: #319cde;
	outline: none !important;
}

input[type="button"],
input[type="submit"] {
	border: 2px solid #319cde;
	background: #fff;
	color: #319cde;
	font-size: 14px;
	font-weight: 700;
	padding: 9px 20px;
	text-transform: uppercase;
	-webkit-border-radius:30px; -moz-border-radius:30px; border-radius:30px;
	/*font-family: 'GothamMedium', sans-serif;*/
}

input[type="button"]:hover,
input[type="submit"]:hover {
	color: #fff;
	background: #319cde;
}

input[type="radio"],
input[type="checkbox"] {
margin: 0 !important;
*margin-top: 0 !important;
line-height: normal;
}

.gfield select { font-size: 18px !important; }
.gform_wrapper { margin: 0 !important;}
.gform_wrapper br { display: none !important;}
.gfield_label { font-size: 13px !important; padding: 0; font-weight: 400 !important;}
.gfield_checkbox li { margin: 0 !important; font-size: 12px !important;}
.gfield_html ol { font-size: 12px !important;}
.gfield_html ol li { margin: 0 !important;}
.gform_title { font-weight: normal !important;}

/* TEXT STYLING */

.text 	 { padding: 0;}
.text a {}
.text a:hover { text-decoration: underline;}
.text h6 { font-size:16px;}
.text h5 { font-size:18px;}
.text h4 { font-size:18px;}
.text h3 { font-size:24px;}
.text h2 { font-size:30px;}
.text h1 { font-size:36px;}
.text h1,
.text h2,
.text h3,
.text h4,
.text h5,
.text h6 {
	padding-bottom: 15px;
	/*color: #22323e;
	text-transform: uppercase;*/
}
/*.text h1:after,
.text h2:after,
.text h3:after,
.text h4:after,
.text h5:after,
.text h6:after { content: ''; display: block; width: 80px; height: 2px; background: #22323e; margin-top: 20px;}*/

/* PAGE NAVIGATION */
.page_navigation { border: none; padding: 0;}
.page_navigation ul li a { border-color: #ddd;}
.page_navigation ul li a { background: #f9f9f9; color: #4b4b50;}
.page_navigation ul li a:hover { background: #f1f1f1;}
.page_navigation ul li a.current { color: #fff; background: #319cde; border: 1px solid #319cde;}

/* ALIGNMENTS */
.wp-caption {
	border: 1px solid #ddd;
	background-color:#fff;
	color:#999;
	-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	   -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* SHORTCODES */

.shortcode-list.custom li:before { color: #319cde !important;}
.shortcode-alert.custom { background: #319cde !important; color: #fff;}
.shortcode-button {
	font-weight: 400;
	text-transform: uppercase;
	-webkit-border-radius:30px; -moz-border-radius:30px; border-radius:30px;}
.shortcode-button.custom { border: 2px solid #319cde !important; color: #319cde !important;}
.shortcode-button.custom:hover { background: #319cde !important; color: #fff !important;}
/*.shortcode-divider,
.shortcode-divider.thick { border-color: #000 !important;}
.shortcode-divider span { background: #000 !important; color: #fff;}
.shortcode-quote,
.shortcode-quote em,
.shortcode-quote:before { color: #000 !important;}
.shortcode-toggle-title,
.shortcode-accordion-title { border-bottom: 2px solid #000 !important;}
.shortcode-toggle-content,
.shortcode-accordion-content { background: rgba(0,0,0,0.2) !important;}
.shortcode-price { border-bottom: 2px dotted #000 !important; }*/


/************************************/
/************* END CSS! *************/