/*
Theme Name: Behavioural Insights Team - Public Site
Theme URI: http://www.behaviouralinsights.co.uk/
Author: Dynamic Array
Author URI: http://dynamicarray.co.uk/
Description: Updated 2018 theme for the Behavioural Insights Team website
Version: 2.1b
Text Domain: behavioural-insights
*/

@font-face {font-family: 'Futura-Demi';src: url('assets/fonts/376E31_0_0.eot');src: url('assets/fonts/376E31_0_0.eot?#iefix') format('embedded-opentype'),url('assets/fonts/376E31_0_0.woff2') format('woff2'),url('assets/fonts/376E31_0_0.woff') format('woff'),url('assets/fonts/376E31_0_0.ttf') format('truetype');}
@font-face {font-family: 'Futura-Demi-Italic';src: url('assets/fonts/376E31_1_0.eot');src: url('assets/fonts/376E31_1_0.eot?#iefix') format('embedded-opentype'),url('assets/fonts/376E31_1_0.woff2') format('woff2'),url('assets/fonts/376E31_1_0.woff') format('woff'),url('assets/fonts/376E31_1_0.ttf') format('truetype');}
@font-face {font-family: 'FuturaPT-Book';src: url('assets/fonts/376E32_0_0.eot');src: url('assets/fonts/376E32_0_0.eot?#iefix') format('embedded-opentype'),url('assets/fonts/376E32_0_0.woff2') format('woff2'),url('assets/fonts/376E32_0_0.woff') format('woff'),url('assets/fonts/376E32_0_0.ttf') format('truetype');} 

body {
	font-family: 'FuturaPT-Book', 'Trebuchet MS', Arial, sans-serif;
	background-color: #4D4F53;
	color: #4D4F53;
	font-size: 1.7rem;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Futura-Demi';
}

body {
	padding-top: 70px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}

body.admin-bar nav {
	margin-top: 32px;
}

nav.navbar-fixed-top {
	-webkit-transition: height 0.5s linear;
	-moz-transition: height 0.5s linear;
	-o-transition: height 0.5s linear;	
	transition: height 0.5s linear;
}

nav.navbar-fixed-top.shrunk {
	height: 90px!important;
}

@media screen  and (min-width: 769px) and (max-width: 1366px) {
	.navbar-inverse .navbar-nav > li > a {
		font-size: 1.2rem!important;
	}
}

@media screen and (max-width: 768px) {
	ul.nav.navbar-nav {
		margin-top: 0!important;
	}

	body.admin-bar nav {
		margin-top: 46px;
	}

	.navbar-header {
		margin-top: 2%;
	}

	#main-content {
		margin-top: 40px;
	}
}

.navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover {
    background-color: #fff;
}

ul.nav.navbar-nav {
	margin-top: 99px;
	-webkit-transition: margin-top 0.5s linear;
	-moz-transition: margin-top 0.5s linear;
	-o-transition: margin-top 0.5s linear;	
	transition: margin-top 0.5s linear;	
}

nav.navbar-fixed-top.shrunk ul.nav.navbar-nav {
	margin-top: 15px;
}

#header-logo-link {
	padding: 0;
	float: left;
	margin-left: -20px;
	height: 175px;
	width: 175px;
    background-image: url("/wp-content/themes/bit-2015/assets/img/logo.svg?v=1.2");
    background-position: top left;
	background-size: contain;
	-webkit-transition: background-image 0.5s linear;
	-moz-transition: background-image 0.5s linear;
	-o-transition: background-image 0.5s linear;	
	transition: background-image 0.5s linear;
}

body.page-id-581 #header-logo-link {
	background-image: url("/wp-content/themes/bit-2015/assets/img/logo-usa.svg");
}
body.page-id-581 #cabinet-office-box {
	display: none;
}


nav.navbar-fixed-top.shrunk #header-logo-link {
    background-image: url("/wp-content/themes/bit-2015/assets/img/logo-without-text.svg");
}

#cabinet-office-box {
	margin-bottom: 2%;
    margin-top: 65px;
	float: left;
	-webkit-transition: opacity 0.25s linear;
	-moz-transition: opacity 0.25s linear;
	-o-transition: opacity 0.25s linear;
	transition: opacity 0.25s linear;	
}
/*
@media screen and (max-width: 568px) {
	#cabinet-office-box {
		margin-top: 25px;
	}
}
*/
#cabinet-office-box p {
    margin: 0;
    vertical-align: bottom;
    font-size: 0.75em;
    line-height: 2em;	
}

#cabinet-office-box p img {
	height: 58px;
}


nav.navbar-fixed-top.shrunk #cabinet-office-box {
	opacity: 0;
	-webkit-transition: opacity 0.75s linear;
	-moz-transition: opacity 0.75s linear;
	-o-transition: opacity 0.75s linear;
	transition: opacity 0.75s linear;	
}

#header-logo {
	height: 180px; 
	width: auto;
	margin-left: -25px;
}

@media screen and (max-width: 568px) {
	#bit-navbar-collapse {
		margin-top: -95px;
		position: fixed;
		width: 100%;		
	}
}

@media screen and (max-width: 768px) {
	#bit-navbar-collapse {
		background-color: #D7DFE6;
		border-bottom: 1px solid;
		border-top-style: none;
		margin-top:170px;
		margin-top: -95px;
		position: fixed;
		width: 100%;		
	}

	ul.nav.navbar-nav {
		float: none!important;
	}

	.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus, .navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover {
		color: #333;
	}	

	.navbar-fixed-top .navbar-collapse {
		max-height: none;
	}

	nav.navbar li ul.dropdown-menu {
		display: block;
		position: initial;
		float: none;
	}

	#cabinet-office-box p img {
		height: 48px;
	}	

	#header-logo-link {
		margin-left: -5px;
	}
}

nav.navbar.navbar-inverse.navbar-fixed-top {
	height: 			170px;
	background-color:	#FFF;
	border-style: 		none;
	-webkit-box-shadow: 0px 5px 23px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: 0px 5px 23px 0px rgba(0,0,0,0.25);
    box-shadow: 0px 5px 23px 0px rgba(0,0,0,0.25);	
}

@media screen and (min-width: 769px) and (max-width: 991px) {
	nav.navbar.navbar-inverse.navbar-fixed-top {
		height: 150px;
	}

	ul.nav.navbar-nav {
		float: none;
	}

	#main-content {
		margin-top: 45px;
	}
}



.navbar-inverse .navbar-toggle .icon-bar {
	background-color: #000;
}


.navbar-inverse .navbar-nav > li > a {
	color: #000;
	font-size: 1.5rem;
	font-family: 'Futura-Demi';
}

.navbar-inverse .navbar-nav>li>a:focus, .navbar-inverse .navbar-nav > li > a:hover {
	color: #000;
	background-color: inherit;
	text-decoration: underline;
}

.navbar-fixed-top .nav {
	padding: 15px 0;
}

.navbar-fixed-top .navbar-brand {
	padding: 0 15px;
}

footer {
	padding: 30px 0;
}

@media(min-width:769px) {
	body {
		padding-top: 100px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
	}
	body.admin-bar {
		padding-top: 102px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
	}
	.navbar-fixed-top .navbar-brand {
		padding: 15px 0;
	}
	.navbar>.container .navbar-brand, .navbar>.container-fluid .navbar-brand {
  		margin-left: 0;
	}
}

#main-content {
	background-color: #FFF;
	padding-bottom: 15px;
	padding-top: 75px;
}

footer {
	color: #fff;
}

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

a:hover {
	text-decoration: underline;	
}

.blue {
	color: #0098DB;
}

.teamTitle {
	position: absolute;
	bottom: 0px;
	width: 100%;
	padding-bottom: 0.3em;
	padding-top: 0.3em;
	margin-bottom: 0.4em;
	background-color: #0098DBB3;
	color: #FFF;
	padding-left: 1em;
	padding-right: 1em;
}

.toggled {
	background: #F2F2F2 url('assets/img/minus.png') 97% 45% no-repeat !important;
	background-size: 30px !important;
	padding: 14px 10px;
}
.toggler {
	cursor: pointer;
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	padding: 14px 10px;
	background: #F2F2F2 url('assets/img/plus.png') 97% 45% no-repeat;
	background-size: 30px !important;
	margin-bottom: 25px;
}
.togg {
	display: none;
}

.blog-meta {
	color: #6D6E70;
	font-weight: normal;
	font-size: 1em;
}	

img.press_logo.wp-post-image {
	height: 30px;
	width: auto;
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	-ms-filter: grayscale(100%);
	-o-filter: grayscale(100%);
	filter: gray;
}

.press-title {
	font-size: 1.2em;
}

.carousel-image {
    display: block;
    width: 100%;
    height: auto;
}

.carousel-contents {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding: 2%;
	margin: 0;
	background-color: rgba(0, 174, 239, 0.7);
	min-height: 120px;
	color: #fff;
}

.carousel-contents a {
	text-decoration-line: none;
}

.owl-controls {
	display: block;
	margin: 2% 0;
	height: 30px;
	margin-top: 10px;
  	text-align: center;
}

.owl-theme .owl-controls .owl-page {
	display: inline-block;
	zoom: 1;
}

.owl-controls .owl-page span {
	width: 30px;
  	height: 20px;
	border-radius: 0px;
	-webkit-border-radius: 0px;
	background: url('/wp-content/themes/bit-2015/assets/img/grey-diamond.png') no-repeat;
	background-size: contain;
	margin: 0px 5px;
	display: inline-block;
}

.owl-controls .owl-page.active span {
	background: url('/wp-content/themes/bit-2015/assets/img/blue-diamond.png') no-repeat;
	background-size: contain;
}

img.img-responsive {
	width: 100%;
}

.isotope-item {
	padding: 0;
	background-color: rgba(0, 174, 239, 1);
	margin-right: 1%;
	margin-bottom: 1%;
}

.isotope-item img {
	transition: 	opacity 0.5s;
}

.isotope-item a:hover img {
	opacity: 0.5;
}

.isotope-item .people-title {
	position: relative;
	bottom: 0;
	width: 100%;
	padding: 2%;
	margin: 0;
	background-color: rgba(0, 174, 239, 0.7);
	color: #fff;
}

.page-id-581 .north-america img.isotope-image {
	width: 100%;
	height: auto;
}

.bit-local-staff img.isotope-image {
    width: 100%;
    height: auto;
}

.bit-location-sidebar h2:nth-child(1) {
	margin-top: 0;
}

h2.blue {
	margin-top: 0;
}

.page-numbers.current {
	color: #fff;
	background-color: rgba(0, 174, 239, 1);
}

.pagination>li>a, .pagination>li>span {
	color: rgba(0, 174, 239, 1);
}

body.post-type-archive-bit_people {
  overflow-y: scroll;
}

.widget_authors ul li {
  list-style-type: none;
}

.widget_authors ul li img {
  margin-right: 5px;
}

ul.filter, .widget_authors ul {
	padding: 0;
}

ul.filter li {
  list-style-type: none;
  margin: 3px;
  margin-left: 0;
}

ul.filter a.active {
	background-color: #0098DB;
	color: #FFF;
	border-radius: 3px;
}

ul.filter a {
	padding: 5px;
}

.partner-logo {
	float: left;
	width: 150px;
	height: 130px;
	background-size: contain; 
	background-repeat: no-repeat;
	background-position: center;
	margin-right: 50px;
}

@media (min-width: 769px) {
	.navbar-right .dropdown-menu {
		left: 0;
	}
	
	.dropdown:hover .dropdown-menu {
		display: block;
	}
}

.dropdown-menu {
	box-shadow: none;
	background-color: #D7DFE6;
	color: #000;
	top: 75%;
	border-style: none;
}

.dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover {
	color: #eee;
	background-color: #0098DB;
}

.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus, .navbar-inverse .navbar-nav>.active>a:hover {
	color: #000;
	background-color: transparent;
	text-decoration: underline;
}

.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-nav>.open>a:focus, .navbar-inverse .navbar-nav>.open>a:hover {
	color: inherit;
	background-color: inherit;
}

.navbar-nav .caret { display: none; }



.dropdown-menu>.active>a, .dropdown-menu>.active>a:focus, .dropdown-menu>.active>a:hover {
	color: #FFF;
	text-decoration: none;
	background-color: #0098DB;
}

.h1, h1 {
  font-size: 2.0em;
}

.h2, h2 {
	font-size: 1.75em;
}

.sidebar .h2, .sidebar h2 {
	font-size: 1.25em;
}

.sidebar .screen-reader-text {
	display: none;
}

a .block, a:hover .block {
	color: #000;
}

a.no-decoration, a.no-decoration:hover {
	text-decoration: none;
}

.block img {
	width: 		100% !important;
	height: 	auto;
	transition: opacity 0.5s;
}

.block.blue {
	background-color: #0098DB;
}

a:hover .block img {
	opacity: 0.5;
}

.img-featured {
	margin-bottom: 2%;
}

.widget_mailchimpsf_widget .mc_input {
	width: 80%;
	border: 1px solid #e1e1ef;
}

.widget_mailchimpsf_widget .mc_merge_var {
	margin: 0;
}

.widget_mailchimpsf_widget #mc_signup_submit {
	margin-top: 2%;
}

.widget_mailchimpsf_widget .mc_signup_submit {
	text-align: left;
}

#s {
	border: 1px solid #e1e1ef;
}

.bit-widget::after {
	content: '';
	border-bottom: 1px solid #EEE;
	margin: 10px;
	display: block;
}

.publication-shot {
	border: 1px solid #000;
	vertical-align:	text-top;
}


footer ul.nav.navbar-nav {
	float: none;
	margin: 0;
}

footer .navbar-nav>li>a {
	padding-top: 0;
	color: #fff;
}
footer .nav>li>a:focus, footer .nav>li>a:hover {
  text-decoration: underline;
  background-color: transparent;
}
.widget_authors li {
	margin-bottom: 2%;
}

@media (min-width: 769px) {
	.dropdown:hover .dropdown-menu {
    		min-width: 180px;
    }
}


/* BIT Popup */
.bit-cta {
	display: none;
	background-color: #0098DB;
	color: #fff;
	padding: 1rem;
	-webkit-transition: visibility 1s linear, opacity 1s linear;
	transition: visibility 1s linear, opacity 1s linear;
}

.bit-cta.gone {
	opacity: 0;
	-webkit-transition: visibility 1s linear, opacity 1s linear;
	transition: visibility 1s linear, opacity 1s linear;
}

.bit-cta img {
	margin: 0.5rem;
	width: 25%;
	height: auto;
}

.bit-cta i.fa {
	font-size: 1.5rem;
	float: right;
	cursor: pointer;
}

.bit-cta a {
	color: #fff;
}

.bit-widget.widget_authors select {
	width:	100%;
}

.bit-local-staff {
    display: inline-flex;
    float: unset;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
	.bit-cta {
		width: 100%
	}
}

@media (min-width: 1025px) {
	.bit-cta {
		position: fixed;
		left: -0.5rem;
		z-index: 99;
		padding: 1.75rem;
		border-radius: 0 5px 5px 0;
	}
}

/* iPads (portrait) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
	.navbar-nav>li {
		float: none;
	}

	.navbar-toggle {
		display: inherit;
		float: right;
	}

	.container>.navbar-header {
		width: 100%;
	}

	ul.nav.navbar-nav {
		width: 100%;
	}
	.navbar-collapse.collapse {
		display: none!important;
	}
	.navbar-collapse.collapse.in {
		display: block!important;
	}
}