/* Use the Georgia font for Headings */
h1, h2, h3, h4 {
	font-family: "Georgia", serif;
}

.panel-title {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Increase size of general text */
body {
	font-size: 16px;
}

h5 {
	font-size: 16px;
}

.btn {
	font-size: 16px;
}

ul.dropdown-menu {
	font-size: 16px;
}

/* Make any and all links to sections within pages respect the header depth */
#rule-of-law:before {
	display: block;
	content: " ";
	margin-top: -142px;
	height: 142px;
	visibility: hidden;
}

/* Change colour of the footer menu */
.nav-pills > li > a {
	color: rgb(255, 255, 255);
	text-decoration: none;
}

.nav > li > a:hover,
.nav > li > a:focus {
  background-color: rgb(22,133,196);
}

/* Make navbar the full width of the container */
.navbar-header {
	width: 100%;
}

/* Reduce navbar min-height */
/* .navbar {
	min-height: 80px;
}

.navbar-brand {
	height: 80px;
	padding-top: 15px;
}

@media screen and (min-width: 992px) {
	.navbar {
		min-height: 100px;
	}
	
	.navbar-brand {
		height: 100px;
		padding-top: 10px;
	}
}
*/

/* Position Members area menu in header */
#members-menu {
	float: right;
} 

/* Members section button only needs negative right margin when the nav menu is collapsed */
.navbar-btn {
	margin: 15px -15px 12px 0;
}

@media screen and (min-width: 992px) {
    .navbar-btn {
        margin: 15px 0 12px 0;
    }
}

/* Position the main menu below the Members menu */
#main-menu {
	clear: right;
	float: right;
}

#menu-main-header {
	margin-right: 0;
} 

.navbar-nav {
	margin-top: 14px;
	margin-bottom: 0px;
}

/* Position the collapsed menu below the Members menu */
.navbar-toggle {
	clear: right;
	margin: 23px -15px 20px 0;
}

/* Centre and border the collapsed menu */
.navbar-collapse {
	border: none;
}

/* Give main menu items an even padding */
.navbar-nav > li > a {
	padding: 12px;
}

/* Highlight active main menu item */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
	z-index: 2;
	color: #fff;
	background-color: rgb(42, 158, 210);
	border-color: rgb(42, 158, 210);
}

/* Override Page Header */
.page-header {
	margin-top: 0;
}

/* Front Page Banner */
#banner {
	padding: 5px;
	background-size: cover;
	overflow: hidden;
	position: relative;
	background-image: url("/wp-content/themes/tlef-main/img/lef_bg.jpg");
	border-radius: 0 0 10px 10px;
	opacity: 0.8;
}

#banner-intro {
	color: #fff;
}

/* - Front Page News */

.jumbotron {
	background-color: rgba(38,168,231,0.1);
}

.news {
    width: 100%;
	overflow: hidden;
	clear: both;
	margin: 0 auto;
}

.news-header {
    font-size: 19px;
    color: rgb(153,153,153);
    font-weight: 100;
    margin: 10px 0;
}

.news-item {
	width: 100%;
	min-height: 100px;
	float: left;
	position: relative;
	background: rgba(38,168,231,0.1);
	border-radius: 10px;
	margin-bottom: 10px;
}

.carousel-indicators {
	bottom: 0px;
}

.rolling-news {
	background: rgba(38,168,231,0.1);
	border-radius: 10px;
	min-height: 100px;
}

.rolling-news h2 {
	font-size: 24px;
	line-height: 26px;
	padding: 10px 10px 20px 10px;
}

.rolling-news a {
	text-decoration: none;
}

.news h2 {
	font-size: 24px;
	line-height: 26px;
	padding: 10px;
	color: rgb(0,0,0);
	margin: 0;
}

.news-button {
    position: absolute;
    right: 0px;
    bottom: 2px;
    font-weight: bold;
    font-size: 13px;
	padding: 10px;
	color: rgb(120,192,228);
}

.post-date {
    bottom: 10px;
}

/* Styling for the 'New' tag on grants pages */
span.update {
    background: rgb(253,197,67);
    font-size: 11px;
    font-weight: bold;
    padding: 2px;
    color: rgb(0,0,0);
    margin-right: 5px;
    vertical-align: top;
}

/* Styling of the pagination, used on grants pages */
.pagination > .active > .dots,
.pagination > .active > .dots:hover {
	color: #ddd;
	background-color: #fff;
	border-color: #ddd;
}

/* Display of objectives at foot of front page */
.objective p {
    margin-bottom: 0;
}

@media screen and (min-width: 768px) {
    .objective {
        min-height: 120px;

    }
}
@media screen and (min-width: 992px) {
    .objective {
        min-height: 100px;

    }
}
@media screen and (min-width: 1200px) {
    .objective {
        min-height: 80px;
    }
}

/* Grants - Criteria display */
div.grant-criteria{
	width: 500px !important;
}

.grant-criteria table{
	border-collapse: separate;
	border-spacing: 5px;
}

.major-criteria td{
     padding: 5px 5px !important;
}

.support-criteria td{
     padding: 5px !important;
}

.grant-criteria td{
	color: rgb(150,150,150) !important;
	text-align: center;
	vertical-align: middle;
	width: 100px;
	line-height: 20px !important;
	border: 2px solid !important;
	border-radius: 5px;
}

td.understanding{	
	background-color: rgba(44,217,146,0.2);
	border-color: rgba(44,217,146,0.4)!important;
}

td.understanding-met{
	color: rgb(250,250,250) !important;
	background-color: rgb(44,217,146);	
	border-color: rgb(50,50,50) !important;
}

td.thinking{
	background-color: rgba(109,131,208,0.2);
	border-color: rgba(109,131,208,0.4)!important;
}

td.thinking-met{
	color: rgb(250,250,250) !important;
	background-color: rgb(109,131,208);
	border-color: rgb(50,50,50) !important;
}

td.access{
	background-color: rgba(145,89,218,0.2);
	border-color: rgba(145,89,218,0.4)!important;
}

td.access-met{
	color: rgb(250,250,250) !important;
	background-color: rgb(145,89,218);
	border-color: rgb(50,50,50) !important;
}

td.brexit{
	background-color: rgba(225,94,155,0.2);
	border-color: rgba(225,94,155,0.4)!important;
}

td.brexit-met{
	color: rgb(250,250,250) !important;
	background-color: rgb(225,94,155);
	border-color: rgb(50,50,50) !important;
}

td.health{
	background-color: rgba(231,66,100,0.2);
	border-color: rgba(231,66,100,0.4)!important;
}

td.health-met{
	color: rgb(250,250,250) !important;
	background-color: rgb(231,66,100);
	border-color: rgb(50,50,50) !important;
}

td.online-court{
	background-color: rgba(237,38,45,0.2);
	border-color: rgba(237,38,45,0.4)!important;
}

td.online-court-met{
	color: rgb(250,250,250) !important;
	background-color: rgb(237,38,45);
	border-color: rgb(50,50,50) !important;
}

td.evidence{
	background-color: rgba(255,215,33,0.2);
	border-color: rgba(255,215,33,0.4)!important;
}

td.evidence-met{
	color: rgb(250,250,250) !important;
	background-color: rgb(255,215,33);
	border-color: rgb(50,50,50) !important;
}

td.technology{
	background-color: rgba(255,215,33,0.2);
	border-color: rgba(255,215,33,0.4)!important;
}

td.technology-met{
	color: rgb(250,250,250) !important;
	background-color: rgb(255,215,33);
	border-color: rgb(50,50,50) !important;
}

td.law-reform{
	background-color: rgba(255,215,33,0.2);
	border-color: rgba(255,215,33,0.4)!important;
}

td.law-reform-met{
	color: rgb(250,250,250) !important;
	background-color: rgb(255,215,33);
	border-color: rgb(50,50,50) !important;
}

td.communications{
	background-color: rgba(255,215,33,0.2);
	border-color: rgba(255,215,33,0.4)!important;
}

td.communications-met{
	color: rgb(250,250,250) !important;
	background-color: rgb(255,215,33);
	border-color: rgb(50,50,50) !important;
}

/* Caption text for IT home page */

div.img-caption {
    position: absolute;
    left: 20px;
    bottom: 5px;
    font-size: 12px;
    font-weight: 200;
    line-height: 1.4em;
    padding: 5px 10px;
    color: rgb(250,250,250);
    background-color: rgba(42,158,210,0.8);
    max-width: 80%;
}
    
@media screen and (min-width: 768px) {
    div.img-caption {
        left: 25px;
        bottom: 10px;
        font-size: 16px;
    }
}
@media screen and (min-width: 992px) {
    div.img-caption {
        left: 30px;
        bottom: 15px;
        font-size: 20px;
    }
}
@media screen and (min-width: 1200px) {
    div.img-caption {
        left: 35px;
        bottom: 20px;
        font-size: 24px;
    }
}

/* Carousel Fade option - required for a carousel consisting of multiple parts (eg Research Home) */

.carousel.fade {
	opacity: 1;
}
.carousel.fade .item {
	transition: opacity ease-out .7s;
	left: 0;
	opacity: 0; /* hide all slides */
	top: 0;
	position: absolute;
	width: 100%;
	display: block;
}
.carousel.fade .item:first-child {
	top: auto;
	opacity: 1; /* show first slide */
	position: relative;
}
.carousel.fade .item.active {
	opacity: 1; 
}