/* lg */ 
@media (min-width: 1200px) {

}

/* md */
@media (min-width: 992px) and (max-width: 1199px) {

}

/* sm */
@media (min-width: 768px) and (max-width: 991px) {
 	.navbar-right li a {
		font-size: 12px;
		padding-right: 10px;
	}
	.social-icons ul li {
		margin-bottom: 10px;
	}
	.btn-signup {
		padding: 10px 20px;
	}

	/* Fix: Research Topics - remove min-height to prevent overlap on tablets */
	.our-areas .col-sm-4 {
		min-height: auto;
		margin-bottom: 20px;
	}
	.our-areas .row .col-sm-4:nth-child(1),
	.our-areas .row .col-sm-4:nth-child(2),
	.our-areas .row .col-sm-4:nth-child(3) {
		min-height: auto;
	}

	/* Fix: Team member images scale down for tablets */
	#team .img-responsive {
		width: 180px;
		height: 180px;
	}
}

/* xs */
@media (max-width: 767px) {
	body {
		font-size: 14px;
	}
	#home-slider .caption h1 {
		font-size: 40px;
	}
	#home-slider .caption {
		font-size: 15px;
		padding: 0 30px;
	}
	.left-control, .right-control {
		font-size: 20px;
		height: 30px;
		line-height: 25px;
		width: 30px;
	}
	#home-slider:hover .right-control {
		right: 15px;
	}
	#home-slider:hover .left-control {
		left: 15px;
	}
	.caption .btn-start {
		font-size: 12px;
		padding: 10px 30px;
	}
	.navbar-brand {
		padding: 5px 15px !important;
	}
	.navbar-toggle {
	  border:1px solid #fff;
	}

	.navbar-toggle .icon-bar {
	  background-color: #fff;
	}
	.navbar-right li a {
		font-size: 13px;
		padding-bottom: 8px;
		padding-top: 10px;
	}

	/*Areas*/
	section {
		padding: 45px 0;
	}
	.heading {
		font-size: 14px;
		padding-bottom: 45px;
	}
	.heading h2 {
		font-size: 26px;
	}
	.areas-info h3 {
		font-size: 20px;
	}
	/* Fix: Remove min-height constraints on mobile - let content flow naturally */
	.our-areas .col-sm-4 {
		min-height: auto;
		margin-bottom: 20px;
		padding-bottom: 20px;
		border-bottom: 1px solid #eee;
	}
	.our-areas .row .col-sm-4:nth-child(1),
	.our-areas .row .col-sm-4:nth-child(2),
	.our-areas .row .col-sm-4:nth-child(3) {
		min-height: auto;
	}
	.our-areas .col-sm-4:last-child {
		border-bottom: none;
	}
	.our-areas .col-sm-4:nth-child(4), 
	.our-areas .col-sm-4:nth-child(5), 
	.our-areas .col-sm-4:nth-child(6) {
		padding-top: 0;
	}
	
	/*About*/
	.about-info {
		text-align: center;
		margin-bottom: 50px;
	}
	#about-us .about-info p {
		margin-right: 0;
		text-align: justify;
	}
	
	/*Team*/
	.team-member {
		margin-bottom: 50px;
	}
	.team-members .col-sm-3,
	#portfolio .col-sm-3, 
	.blog-posts .col-sm-4  {
		width: 50%;
		float: left;
	}
	/* Fix: Scale and center team images on mobile */
	#team .img-responsive {
		width: 150px;
		height: 150px;
		margin-left: auto;
		margin-right: auto;
	}
	.member-image {
		text-align: center;
	}
	#team .carousel-inner .row {
		justify-content: center;
	}

	/*Events*/
	.events-table .single-table img {
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
	
	/*Social*/
	.social-icons ul li a {
		font-size: 14px;
		height: 30px;
		line-height: 30px;
		width: 30px;
	}	
	.count .col-xs-6 {
		margin-bottom: 35px;
	}
	.btn-signup {
		font-size: 12px;
		margin-top: 25px;
		padding: 10px 35px;
	}
	
	#blog {
		overflow: hidden;
	}
	.entry-header h2 {
		line-height: 20px;
	}
	.blog-posts .col-sm-4 {
		margin-bottom: 35px;
	}
	.load-more {
		margin-top: 35px;
	}
	.btn-loadmore {
		font-size: 12px;
		padding: 15px 75px;
	}
	#contact-us .heading {
		padding-top: 35px;
	}
	.contact-info {
		padding-left: 0;
	}
	#footer .footer-bottom {
		text-align: center;
	}
	.footer-bottom p.pull-right {
		float: none !important;
	}

	/* Fix: Publications section adjustments for mobile */
	#publications {
		height: auto;
		min-height: 400px;
	}
	#publications-carousel .item {
		height: auto;
		min-height: 180px;
		margin: 0 20px;
	}
	.publications-left-control {
		left: 10px;
	}
	.publications-right-control {
		right: 10px;
	}
}

/* XS Portrait - smartphones in portrait mode */
@media (max-width: 479px) {
  
	/* Fix: Show 1 team member per row instead of 2 for readability */
	.team-members .col-sm-3, 
	#portfolio .col-sm-3, 
	.blog-posts .col-sm-4 {
		width: 100%;
		float: none;
	}

	/* Fix: Scale team images for small screens */
	#team .img-responsive {
		width: 180px;
		height: 180px;
	}

	/* Fix: Better padding for small screens */
	.container {
		padding-left: 20px;
		padding-right: 20px;
	}

	/* Fix: Smaller heading text for very small screens */
	#home-slider .caption h1 {
		font-size: 28px;
	}
	#home-slider .caption img {
		height: 60px;
	}

	/* Fix: btn-loadmore should not overflow on small screens */
	.btn-loadmore {
		padding: 12px 40px;
		font-size: 11px;
	}

	/* Fix: About section text alignment for readability */
	#about-us .about-info p {
		text-align: left;
		font-size: 14px;
		line-height: 24px;
	}

	/* Fix: Publications controls closer on small screens */
	#publications-carousel .item {
		margin: 0 10px;
		font-size: 13px;
	}
	.publications-left-control {
		left: 5px;
	}
	.publications-right-control {
		right: 5px;
	}

	/* Fix: Events table images scale and center on small screens */
	.events-table .single-table img {
		width: 160px;
		height: 160px;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
}
