/*******MEDIA QUERIES********/
@media screen and (max-width:1170px) {

    #nav {
    width: 940px;
    } 

    ul#navlist li a {
	display: block;
	font-size: 17px;
	}

	ul#navlist li {
	float: left;
	position: relative;
	}

	.our-team .slide {
		width: 300px !important;
	}

	.our-team .column4 {
      width: 31114893617021278% !important;
      *width: 31.861702127659576% !important;
    }

	.service-title p {
	display: inline;
	font-size: 19px;
	color: #fff;
	margin: 0;
	}

	.test-content {
	width: 70%;
	}



	.blog-post2 {
	float: left;
	margin-left: 30px;
	width: 290px;
	border: 1px solid #ebebeb;
	}

	.side-socials ul li {
	display: inline;
	margin-left: 10px;
	}

	.post-box .post-text {
	width: 62%;
	}

	.portfolio-grid .filter-container li {
	margin-left: 30px;
	width: 290px;
	}

	.user-test img {
	float: left;
	margin-right: 10px;
	}

	.black-caption h1 {
	color: #343434;
	text-align: right;
	width: 530px;
	margin-left: -60px;
	}

	.brown-caption p {
	color: #696969;
	text-align: right;
	margin-left: -90px;
	}



}
/* for 980px or less */
@media screen and (max-width:980px) {

	#nav {
	width: 724px;
	margin: auto;
	}

    ul#navlist li a {
	display: block;
	font-size: 17px;
	}

	ul#navlist li {
	float: left;
	position: relative;
	padding: 0 10px;
	}

	.caption h1 {
	font-size: 40px;
	line-height: 45px;
	font-weight: normal;
	width: 450px;
	}

	.caption p {
	width: 430px;
	line-height: 26px;
	}

	.caption a {
	text-transform: uppercase;
	padding: 15px 25px;
	margin-top: 50px;
	font-size: 20px;
	padding: 25px 35px 15px;
	display: table;
	}

	.black-caption h1 {
	color: #343434;
	text-align: right;
	width: 530px;
	margin-left: -180px;
	}

	.brown-caption p {
	color: #696969;
	text-align: right;
	margin-left: -100px;
	}

	.caption h2 {
	font-size: 40px;
	}

	.caption h3 {
	font-size: 40px;
	}

	.last-slidp {
	width: 570px !important	;
	line-height: 26px;
	}


	.learn {
		margin-left: 40px;
	}



	.view-two .mask .port-text {
	background: url(../images/port-bg.png) center no-repeat;
	position: absolute;
	height: 180px;
	bottom: -90px;
	}

	.port-text h4 {
	color: #b22222;
	font-size: 22px;
	padding-top: 30px;
	}

	.inner-big p {
	margin: 0;
	font-size: 26px;
	}

	.inner-big a {
	font-size: 19px;
	}

	.bx-wrapper .bx-prev {
	left: -20px;
	background: url(images/control-left.png) no-repeat 0 0px;
	}

	.bx-wrapper .bx-next {
		right: -40px;
		background: url(images/control-right.png) no-repeat 1px 0px;
	}

	.our-team .slide {
		width: 340px !important;
	}

	.our-team .column4 {
      width: 31114893617021278% !important;
      *width: 31.861702127659576% !important;
    }
	
	.bx-viewport {
		height: 640px !important;
	}

	.customers .bx-viewport {
	height: 60px !important;
	}

	.service-title i {
	color: #fff;
	margin-right: 8px;
	display: inline-block;
	font-size: 15px;
	}

	.service-title span {
	display: inline;
	font-size: 16px;
	color: #fff;
	margin: 0;
	margin-right: 7px;
	}

	.service-title p {
	display: inline;
	font-size: 14px;
	color: #fff;
	margin: 0;
	}

	.test-content {
	width: 60%;
	}

	.post-meta ul li:after {
	content: "|";
	padding: 0 0px;
	color: #343434;
	}

	.post-meta ul li i {
	margin-right: 5px;
	font-size: 16px;
	color: #343434;
	}

	.post-meta ul li a {
	margin-right: 10px;
	font-weight: 300;
	font-size: 14px;
	color: #343434;
	}


	/*About*/

	.about-inner p {
	font-size: 18px;
	color: #fff;
	margin: 0;
	font-weight: 300;
	line-height: 24px;
	width: 100%;
	}

	.main-goals {
	  background: url(../images/goal.jpg) center no-repeat;
	  padding: 50px 0;
	  margin-bottom: 20px;
	}
	.how-work {
	  background: url(../images/work.jpg) center no-repeat;
	  padding: 50px 0;
	  margin-bottom: 20px;
	}
	.office {
	  background: url(../images/office.jpg) center no-repeat;
	  padding: 50px 0;
	}

	/*Blog*/

	.blog-post2 {
	float: left;
	margin-left: 30px;
	width: 340px;
	border: 1px solid #ebebeb;
	}

	.contact-wrapper {
		position: static;
		width: 100%;
		bottom: -180px;
	}

	#map {
	height: 855px;
	margin-bottom: 20px;
	filter: grayscale(100%);
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	-ms-filter: grayscale(100%);
	-o-filter: grayscale(100%);
	}

	.i-icons {
	padding-top: 10%;
	}

	.portfolio-grid .filter-container li {
	margin-left: 30px;
	width: 220px;
	}


	.stars {
	float: left;
	padding-top: 22px;
	text-align: right;
	}

	.client-slider .bx-viewport {
	height: 380px !important;
	}

	.blue-content {
		background: #3398cc;
		margin-bottom: 20px;
	}
	.red-content {
		background: #b22222;
		margin-bottom: 20px;
	}
	.green-content {
		background: #3dc0b2;
	}

	.blue-serv i {
	margin-bottom: 10px;
	}
	.red-serv i {
	margin-bottom: 10px;
	}
	.green-serv i {
	margin-bottom: 10px;
	}

	.big-img img {
	width: 100%;
	position: relative;
	margin-top: 0px;
	z-index: -100000;
	margin-bottom: -7px;
	}

	.last-strategy {
	padding-top: 0px;
	}

	
	@-webkit-keyframes fadeIn {
		0% {opacity: 1;}	
		100% {opacity: 1;}
	}

	@-moz-keyframes fadeIn {
		0% {opacity: 1;}	
		100% {opacity: 1;}
	}

	@-o-keyframes fadeIn {
		0% {opacity: 1;}	
		100% {opacity: 1;}
	}

	@keyframes fadeIn {
		0% {opacity: 1;}	
		100% {opacity: 1;}
	}


	@-webkit-keyframes bounceIn {
		0% {
			opacity: 1;
			-webkit-transform: scale(1);
		}
		
		50% {
			opacity: 1;
			-webkit-transform: scale(1);
		}
		
		70% {
			-webkit-transform: scale(1);
		}
		
		100% {
			-webkit-transform: scale(1);
		}
	}

	@-moz-keyframes bounceIn {
		0% {
			opacity: 1;
			-moz-transform: scale(1);
		}
		
		50% {
			opacity: 1;
			-moz-transform: scale(1);
		}
		
		70% {
			-moz-transform: scale(1);
		}
		
		100% {
			-moz-transform: scale(1);
		}
	}

	@-o-keyframes bounceIn {
		0% {
			opacity: 1;
			-o-transform: scale(1);
		}
		
		50% {
			opacity: 1;
			-o-transform: scale(1);
		}
		
		70% {
			-o-transform: scale(1);
		}
		
		100% {
			-o-transform: scale(1);
		}
	}

	@keyframes bounceIn {
		0% {
			opacity: 1;
			transform: scale(1);
		}
		
		50% {
			opacity: 1;
			transform: scale(1);
		}
		
		70% {
			transform: scale(1);
		}
		
		100% {
			transform: scale(1);
		}
	}


}
/* for 700px or less */
@media screen and (max-width:700px) {

     #nav {
    float: none;
    width: 400px;
    margin: auto;
    padding: 5px 0 20px;
    }
     /* Main Menu */
    #nav > ul { display: none; }
    #nav select { display: block; padding: 3px; margin-top: 15px; outline: none; border: 1px solid #333; width: 100%; }

	.logo {
/*	background: url(../images/logo.png) center no-repeat;*/
	background-size: 100%;
	width: 150px;
	height: 40px;
	display: table;
	margin: 20px auto;
	}

    .sub-menu span {
      display: block;
    }

	.right-top {
	float: left;
	margin-top: 10px
	}
	.caption h1 {
	font-size: 20px;
	line-height: 25px;
	font-weight: normal;
	width: 300px;
	}

	.caption p {
	font-size: 13px;
	width: 280px;
	line-height: 20px;
	}

	.caption a {
	text-transform: uppercase;
	padding: 15px 25px;
	margin-top: 50px;
	font-size: 20px;
	padding: 25px 35px 15px;
	display: table;
	}

	.brown-caption p {
	color: #696969;
	text-align: right;
	margin-left: 40px;
	}

	.black-caption h1 {
	color: #343434;
	text-align: right;
	width: 530px;
	margin-left: -240px;
	}

	.caption h2 {
	font-size: 25px;
	}

	.caption h3 {
	font-size: 25px;
	}

	.last-slidp {
	width: 270px !important;
	}


	.tp-leftarrow, .tp-rightarrow {
		display: none;
	}

	.feat-item {
		margin-bottom: 20px;
		position: static;
	}


	.feat-item:hover {
		margin-top: -15px !important;
	}

	.filter li {
	float: none;
	margin-right: 0px;
	 margin-bottom: 10px; 
	}

	.filter a {
	font-size: 16px;
	padding: 15px 0px;
	display:block;
	width: 100%;
	text-align: center;
	}

	.filter-container li {
	width: 32199%;
	float: left;
	}

	.inner-big p {
	margin: 0;
	font-size: 26px;
	display: block;
	text-align: center;
	margin-bottom: 10px;
	}

	.inner-big a {
	font-size: 19px;
	display: table;
	margin: 0 auto;
	}

	.statistic-box .column3{
		margin-bottom: 20px;
	}

	.our-team .slide {
	width: 210px !important;
	}

	.our-team .column4 {
      width: 100% !important;
      margin-bottom: 10px;
    }

	.additionalicons i {
	margin-right: -3px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	}

	.bx-viewport {
	height: 530px !important;
	}

	.testimonials .bx-viewport {
	height: 335px !important;
	}

	.test-content {
	width: 87%;
	}

	.testimonials .bx-wrapper img {
	float: none;
	margin-right: 20px;
	text-align: center;
	display: table;
	margin: 0 auto 10px;
	}

	.blog-item {
		margin-bottom: 20px;
	}



	.flickr  .dark [class*="column"] {
	      display: block;
	      float: left;
	      width: 100%;
	      min-height: 30px;
	      margin-left: 2.127659574468085%;
	      *margin-left: 2.074468085106383%;
	      -webkit-box-sizing: border-box;
	         -moz-box-sizing: border-box;
	              box-sizing: border-box;
	    }

	.flickr .dark [class*="column"]:first-child {
	      margin-left: 0;
	    }

	.flickr .dark .column4 {
	  width: 31114893617021278%;
	  *width: 31.861702127659576%;
	}

	.lastdiv {
	background: #f5f5f5;
	padding: 1px 0 0;
	position: relative;
	}

	.right-footer {
	background: #b22222;
	position: relative;
	bottom: 0px;
	right: 0px;
	width: 100%;
	height: 87px;
	}

	.copyright {
	font-size: 14px;
	color: #aeaeae;
	margin: 20px 0;
	}
		

	/*About*/

	.main-goals {
	  background: #3dc0b2;
	  padding: 20px 0;
	  margin-bottom: 0px;
	}
	.how-work {
	  background: #3398cc;
	  padding: 20px 0;
	  margin-bottom: 0px;
	  position: relative;height: 280px;
	}
	.office {
	  background: #b22222;
	  padding: 20px 0;
	}

	.about-inner .more {
	font-size: 22px;
	font-weight: 600;
	color: #b22222;
	width: 210px;
	margin-top: 100px;
	margin: 20px auto;
	}

	.how-work .more {
		position: absolute;
		bottom: 20px;
		left: 40%;
		margin-left: -40px;
	}

	.how-work .column7 {
		width: 70%;
		position: absolute;top: 20px;
	}

	/*Blog*/

	.blog-post2 {
	float: left;
	margin-left: 30px;
	width: 440px;
	border: 1px solid #ebebeb;
	}

	.project-text, .project-img {
		margin-bottom: 30px;
	}

	#map {
		height: 400px;
	}

	.portfolio-grid .filter-container li {
	margin-left: 30px;
	width: 210px;
	}

	.inner-footer .column3 {
	  margin-bottom: 20px;
	}

}
/* for 480px or less */
@media screen and (max-width:480px) {


	#nav {
	float: none;
	width: 270px;
	margin: auto;
	margin-bottom: 10px !important;
	}

	.caption h1 {
	font-size: 15px;
	line-height: 25px;
	font-weight: normal;
	width: 200px;
	}

	.caption p {
	font-size: 13px;
	width: 200px;
	line-height: 20px;
	}

	.caption a {
	text-transform: uppercase;
	padding: 15px 25px;
	margin-top: -50px;
	margin-left: 	-80px;
	font-size: 20px;
	padding: 25px 35px 15px;
	display: table;
	}
		
	.buy{
		margin-left: -180px !important	;
	}


	.brown-caption p {
	display: 	none;	
	}

	.black-caption h1 {
	display: 	none;	
	}	

	.caption h2 {
	font-size: 18px;
	margin-top: 	-20px;
	}

	.caption h3 {
	font-size: 18px;
	margin-top: 	-9px;
	}

		.last-slidp {
	width: 260px !important;
	margin-left: -20px;
	}

	.left-top a {
	color: #7c8389;
	font-size: 11px;
		}


	.filter-container li {
	width: 99199%;
	float: left;
	}

	.our-team .slide {
	width: 300px !important;
	}


	.bx-wrapper .bx-prev {
		left: 0px;
		background: url(images/control-left.png) no-repeat 0 0px;
	}

	.bx-wrapper .bx-next {
		right: -20px;
		background: url(images/control-right.png) no-repeat 1px 0px;
	}

	.bx-viewport {
	height: 560px !important;
	}
	.test-content {
	width: 79%;
	}

	.testimonials .bx-viewport {
	height: 465px !important;
	}

	#back-to-top {
	position: absolute;
	right: 10px;
	z-index: 1;
	bottom: 70px;
	}

	.how-work {
	background: #3398cc;
	padding: 20px 0;
	margin-bottom: 0px;
	position: relative;
	height: 350px;
	}

	.how-work .more {
	position: absolute;
	bottom: 20px;
	left: 40%;
	margin-left: -70px;
	}

	/*Blog*/
	.blog2-img iframe {
		height: 200px;
	}

	.blog-post2 {
	float: left;
	margin-left: 30px;
	width: 280px;
	border: 1px solid #ebebeb;
	}

	.portfolio-grid .filter-container li {
	margin-left: 30px;
	width: 300px;
	}

	.client-slider .bx-viewport {
		height: 410px !important;
	}

	.customers .slide {
		width: 260px !important;
		margin-right: 50px !important;
	}

}
