/*This styles is for the responsive layout of the theme*/
@media screen and (max-width: 1300px){
	.slider-caption .caption-title{
		font-size: 50px;
		line-height: 40px;
	}

	.slider-caption .caption-description{
		font-size: 26px;
		line-height: 30px;
	}
}


@media screen and (min-width: 1200px){
	.bck {
    margin-left: -11%;
}
}
@media screen and (max-width: 1200px){
    .boxed-layout #page{
        width:100%;
    }
    
	.ak-container,
    .boxed-layout .ak-container{
		width: 100%;
		padding: 0 10px;
	}

	#masthead .right-header{
		padding-top: 10px;
	}

	

	.socials{
		float: none;
		margin: 0 0 10px;
        text-align:right;
	}

	.ak-search{
		float: none;
		margin: 0 0 10px;
	}

	.ak-search .searchform{
		float: right;
	}

	.slider-caption .caption-title{
		font-size: 30px;
		line-height: 26px;
	}

	.slider-caption .caption-description{
		font-size: 16px;
		line-height: 20px;
	}

	#slider-banner .bx-wrapper .bx-pager{
		bottom:5px;
	}

	#slider-banner .bx-wrapper .bx-pager.bx-default-pager a{
		height: 14px;
		width: 14px;
	}

	#welcome-text{
		width: 53.5%
	}

	#top-section .welcome-text-image{
		width: 30%
	}

	#top-section .welcome-detail{
		width: 65%
	}

	#latest-events{
		width: 44%;
	}

	.event-list .event-thumbnail{
		width: 28%;
	}

	.event-list .event-thumbnail img{
		width: 100%;
	}

	.event-list .event-detail{
		width: 68%;
	}

	.featured-post{
		width: 30%;
		margin-right: 5%;
	}

	#bottom-section .testimonial-slider-wrap, 
	#bottom-section .thumbnail-gallery, 
	#bottom-section .text-box{
		width: 31%; 
		margin-right: 3.5%
	}
    
    #bottom-section .testimonial-slider-wrap{
        margin-right:0;
    }

	.testimonial-thumbnail{
		width: 30%;
	}

	.testimonial-excerpt{
		width: 65%;
	}

	#bottom-section .thumbnail-gallery ul li:nth-child(3n){
		margin-right: 6px;
	}
}
@media screen and (min-device-width: 667px) and (max-device-width: 740px) { 
  #slider-banner {
    margin-top: 0;
}
.main-navigation a {
    padding: 0 10px;
}
}

@media (min-width: 667px) and (max-width: 670px) {
	.main-navigation .menu {
    display: none;
}
.main-navigation .menu {
    position: absolute;
    left: 0;
    width: 100%;
    top: 60px;
    z-index: 9999;
    background: #df0209;
}
#masthead .right-header {
    display: none;
}
#masthead .site-branding {
    float: none;
    padding: 4px 0;
    margin: 0 auto;
    width: 70%;
}
.menu-toggle {
    display: block;
    float: left;
    background: url(../images/menu.png) no-repeat center;
    height: 48px;
    width: 171px;
    text-indent: -9999px;
    margin: 0;
    margin-left: 10px;
    position: absolute;
}
.main-navigation a {
    display: block;
    font-family: sans-serif;
    color: #ffffff;
    padding: 0 18px;
}
.phone {
    display: block;
    float: right;
    background: url(../images/phone.png) no-repeat center;
    height: 50px;
    width: 51px;
    text-indent: -9999px;
    margin-left: 144px;
    position: absolute;
}
.social {
    display: block;
    float: right;
    background: url(../images/social.png) no-repeat center;
    height: 48px;
    width: 171px;
    text-indent: -9999px;
    margin-right: -5px;
}
.main-navigation {
   
    background: none;
}
.main-navigation .ak-container {
    width: 56%;
}
}
@media screen and (max-width: 479px){
	body{
		background: #F2F2F2;
	}
	.main-navigation a {
    color: #FFF;
}
.headform::after {
      top: 29px;}
.header-text{
		display: none;
	}
	.footer4 {
    width: 33%;
    margin: 0 auto;
    float: none;
}
	.txtwid {
    float: none;
}
	#page{
		max-width: 768px;
		width: 100%;
		margin:0 auto;
		background: #FFF;
		box-shadow: 0 0 10px #999;
	}

	#slider-banner .bx-controls-direction{
		display: none;
	}

	#welcome-text{
		width: auto;
		margin-bottom: 25px;
		float: none;
	}

	#top-section{
		margin-top: 20px;
		margin-bottom: 30px;
	}

	#top-section .welcome-text-image img{
		width: 100%
	}

	#latest-events{
		width: auto;
		float: none;
	}

	#bottom-section .testimonial-slider-wrap, 
	#bottom-section .gallery, 
	#bottom-section .subscribe{
		width: auto;
		float: none;
		margin: 0 0 25px;
	}

	.testimonial-thumbnail,
	.testimonial-sidebar .testimonial-thumbnail{
		width: 100px;
		margin-right: 20px
	}

	.testimonial-excerpt,
	.testimonial-sidebar .testimonial-excerpt{
		width: calc( 100% - 120px);
		float: left;
	}

	#site-navigation .ak-container{
		padding:0;
	}

	
	.main-navigation .menu {
		display: none;
	}

	#top-footer .footer{
		width: 50%;
	}

	.hide{ display: block; margin-bottom: 25px;}

	#bottom-footer .site-info{
		float: none;
		text-align: center;
		margin-bottom: 10px;
	}

	#bottom-footer .copyright{
		float: none;
		text-align: center;
	}

	.main-navigation .menu{
		position: absolute;
		left: 0;
		width: 100%;
		top: 48px;
		z-index: 9999;
    background: #DF0209;
	}

	.main-navigation .menu li{
		width: 100%; 
		float: none;
		line-height: 38px;
    border-bottom: 1px solid #1E120D;
	}

	.main-navigation ul ul{
		position: static;
		box-shadow: none;
		border: none;
    display: none;
	}
    .main-navigation ul li:hover > ul {
    display: none;
}
    .main-navigation ul ul a{
        padding:0 20px ; 
    }

	.main-navigation .menu ul li{
		line-height:38px;
		border-bottom: 1px solid #DDD;
		padding:0; 
	}

	.main-navigation ul ul ul{
		background: #F6F6F6;
	}

	#primary-wrap{
		float: none;
		width: auto;
	}

	#primary, .left-sidebar #primary, 
	.both-sidebar #primary,
	.both-sidebar #primary-wrap .sidebar,
	.both-sidebar .sidebar{
		float: none;
		width: auto;
		margin-bottom: 25px;
	}

	.sidebar, .sidebar.left-sidebar{
		width: auto;
		float: none;
	}

}

@media screen and (max-width: 768px){
	.listing-item {
    width: 46%;
    float: left;
    margin-bottom: 30px;
    margin-left: 1.6%;
    margin-right: 1.6%;
    background: #fff;
}

.post_cimage {
    width: 100%;
    float: left;
}
.post_ccnt {
    width: 100%;
    float: left;
}
	.slider-caption .caption-title{
		margin-bottom: 0;
	}
.main-navigation {
    clear: both;
    display: block;
    font-weight: 300;
    font-family: 'Lato', sans-serif;
    position: relative;     
}

#rc-imageselect, .g-recaptcha {transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;}
.captchac{
	
    margin: 0 auto;
    width: 233px;
}
.display_resp{
	display: block;
}
	.display_none{
		display:none;
	}
	.slider-caption .caption-description{
		display: none;
	}

	.slider-caption{
		padding: 20px 0;
	}
    #bottom-section .testimonial-slider, 
    #bottom-section .thumbnail-gallery, 
    #bottom-section .text-box{
        width:100%;
        float:none; 
        margin:0 0 20px; 
    }
    
    .wpcf7-form input[type="text"], 
    .wpcf7-form input[type="email"], 
    .wpcf7-form input[type="url"], 
    .wpcf7-form input[type="password"],
    .wpcf7-form select{
        width:80%;
    }
    
    .wpcf7-form textarea{
    width: 80%;
    }

    .span1, .span2, .span3, .span4, .span5, .span6{
	    width: 100%;
	    float: none;
	    margin-left: 0;
	}
}
@media screen and (max-width: 640px) {
	#masthead .site-branding {    width: 50%;
}
}

@media screen and (max-width: 567px) {
	h1{ font-size:28px;}
	h2{ font-size:24px;}
	h3{ font-size:20px;}
	h4{ font-size:18px;}
	h5{ font-size:16px;}
	h6{ font-size:14px;}

	#mid-section{
		margin-bottom: 30px;
	}
	#colophon{
	text-align: center;
	
}
.footmenu{
	display:none;
}
.menu_services{
	
    margin-left: -18px;
}
.main-navigation li {

    font-size: 15px;}
	.main-navigation {
    clear: both;
    display: block;
    font-weight: 300;
    font-family: 'Lato', sans-serif;
    position: fixed;
    border-bottom: none;
    margin-top: 82px;
    height: 70px;
    background: #fff;
}

	.slider-caption .caption-title{
		font-size:16px;
	}

	.featured-post{
		width: auto;
		margin: 0 0 20px;
		float: none;
		text-align: center;
	}

	.featured-post .featured-image img{
		margin: 0 auto;
	}

	#masthead .right-header{
		display: none;
	}

	#masthead .site-branding{
    float: none;
    text-align: center;
    width: 300px;
    margin: 0 auto;
	}
	.headform {
    margin-top: 40px;
}
	.cta_head{
    width: 270px;
    margin: 25px auto;}
	.formright {
    width: 100%;
}
	.formleft {
    width: 100%;
}
#colophon{
	text-align: center;
	
}

}
@media screen and (max-width: 505px) {
	.listing-item {
    width: 90%;
    float: left;
    margin-bottom: 30px;
    margin-left: 5%;
}
}

@media screen and (max-width: 480px) {
	.slider-caption{
		display: none;
	}
	#colophon{
	text-align: center;
	
}
.footmenu{
	display:none;
}


	#top-section .welcome-text-image{
		width:auto !important;
		float: none;
		margin-bottom: 15px;
	}

	#top-section .welcome-text-image img{
		width: 100%;
	}

	#top-section .welcome-detail{
		width:auto !important;
	}

	#top-footer .footer{
		width: 100%;
		float: none;
		margin: 0 0 20px;
	}

	#top-footer .footer .widget{
		padding-right: 0	
	}

	#top-footer h1.widget-title{
		margin-bottom: 10px;
	}
    
    .cat-portfolio-list{
        width:100%;
        margin-right:0;
    }
    
    .cat-testimonial-list .entry-header{
        float:none;
        width:50%;
        margin-bottom:30px;
    }
    
    .cat-testimonial-list .entry-header img{
        width:100%;
    }
    
    .cat-testimonial-list .cat-testimonial-excerpt{
        float:none;
        width:100%;
    }
    
    .cat-testimonial-list .cat-testimonial-excerpt:before{
        border-color:transparent transparent #F2F3F4;
        top:-40px;
        left:20px;
    }
    
    .cat-testimonial-list:nth-child(odd) .cat-testimonial-excerpt:before{
        border-color:transparent transparent #F2F3F4;
        top:-40px;
        right:20px;
    }
    #call-to-action{
    	text-align: center;
    	padding: 20px 0;
    }
    #call-to-action h4{
    	width: 100%;
    	float: none;
    	max-width: none;
    	margin-bottom: 5px;
    }
    #call-to-action .action-btn{
    	float: none;
    	display: inline-block;
    }
}
@media screen and (max-width: 435px){
	.menu-toggle{ 
       display: block;
    float: left;
    background: url(../images/menu.png) no-repeat center;
    height: 48px;
    width: 171px;
    text-indent: -9999px;
    margin-left: 7%;
    position: absolute;
	}
	.phone{ 
    display: block;
    float: right;
    background: url(../images/phone.png) no-repeat center;
    height: 50px;
    width: 51px;
    text-indent: -9999px;
    margin-left: 161px;
    position: absolute;
	}
		.social{ 
display: block;
    float: right;
    background: url(../images/social.png) no-repeat center;
    height: 48px;
    width: 171px;
    text-indent: -9999px;
    margin-right: 9px;
	}
}
@media screen and (max-width: 375px){
	.menu-toggle{ 
    display: block;
    float: left;
    background: url(../images/menu.png) no-repeat center;
    height: 48px;
    width: 171px;
    text-indent: -9999px;
    margin: 0;
    position: absolute;
	}
	.phone{ 
    display: block;
    float: right;
    background: url(../images/phone.png) no-repeat center;
    height: 50px;
    width: 51px;
	    text-indent: -9999px;
    margin-left: 144px;
    position: absolute;
	}
		.social{ 
display: block;
    float: right;
    background: url(../images/social.png) no-repeat center;
    height: 48px;
    width: 171px;
    text-indent: -9999px;
    margin-right: -11px;
	}
}
@media screen and (max-width: 361px){
.phone {
    display: block;
    float: right;
    background: url(../images/phone.png) no-repeat center;
    height: 50px;
    width: 51px;
    text-indent: -9999px;
    margin-left: 135px;
    position: absolute;
}}
@media screen and (max-width: 320px){
    .portofolio-layout .entry-title{
        font-size:22px;
    }
    .phone{ 
    display: block;
    float: right;
    background: url(../images/phone2.png) no-repeat center;
    height: 50px;
    width: 51px;
	    text-indent: -9999px;
    margin-left: 113px;
    position: absolute;
	}
		.social{ 
display: block;
    float: right;
    background: url(../images/social2.png) no-repeat center;
    height: 48px;
    width: 171px;
    text-indent: -9999px;

    margin-right: -21px;
	}
	.menu-toggle{ 
    display: block;
    float: left;
    background: url(../images/menu2.png) no-repeat center;
    height: 48px;
    width: 171px;
    text-indent: -9999px;
    margin: 0;
    position: absolute;
	}
    .portofolio-layout .cat-portfolio-excerpt{
        font-size:14px;
    }
    
    .portofolio-layout .cat-portfolio-excerpt{
        top:110px;
    }
    
    .cat-event-list .cat-event-image{
        width:100%;
        float:none;
        margin-bottom:15px;
    }
    .cat-event-list .cat-event-excerpt{
        width:100%;
        float:none;
    }
    
    .cat-testimonial-list .entry-header{
        width:100%;
    }
}

@media screen and (min-width: 941px){
	.main-navigation .menu {
		display: block !important;
	}

}