/* uSkinned overrides */

@media (min-width:768px) {

    .navigation nav.main {
        background-color: #2e2d62;
    }

    header::after {
        background-color: #2e2d62;
    }

    header .site-search {
        top: 30px;
    }
}

@media (max-width: 767px) {
    h1.heading.main {
        margin-left: 15px;                  /* Fix alignment of titles in mobile mode */
    }
}

.col-md-8.col-sm-10.col-sm-offset-1.col-xs-12.text-left {
    width: 85%; /* Banner image title width (left-aligned) */
    background-color: rgba(255,255,255,0.75);
}

.col-md-8.col-md-offset-2.col-sm-10.col-sm-offset-1.col-xs-12.text-center {
    background-color: rgba(100,100,100,0);  /* Banner image title (center) remove text background colour */
}

blockquote.floating-quote {
    border-left: 5px solid #2e2d62;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: normal;
    font-size:18px;
    padding: 10px 35px 10px 35px;
}

blockquote::before{
    font-family: Georgia;
   font-size: 60px;
    padding: 10px 0px 0px 5px;
    content:"\201C";
}

blockquote::after{
    font-family: Georgia;
    font-size: 60px;
    padding: 0px 0px 0px 10px;
    bottom:-30px;
    content:"\201D";
    transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
}

@media (min-width: 992px){
    blockquote.floating-quote {
        margin:30px 50px 30px -16.67%;
        width: 50%;
        font-size:18px;
        float:left;
    }
}

@media (min-width:768px) and (max-width: 991px) {
    blockquote.floating-quote {
        padding: 10px 35px 10px 35px;margin:20px 20px 20px 0px;
        width: 40%;
        font-size:16px;
        float:left;
    }
}

@media (max-width:767px){
    blockquote {
        font-size:16px;
        margin: 20px 10px 20px 10px;
    }
}

.well {
    box-shadow: 0px 5px 10px 0px rgba(136,136,136,0.6);
    background: #ffffff;
}

.apc {
    padding: 16px 0;
}

/* Navigation padding and font size for various screen widths */

@media (min-width: 768px) {
    .navigation nav.main ul li a span {
        padding: 23px 7px !important;
        font-size: 13px;
        font-weight: normal;
    }
}

@media (min-width:992px) {
    .navigation nav.main ul li a span {
        padding: 23px 16px !important;
        font-size: 14px;
        font-weight: normal;
    }
}

@media (min-width: 1200px) {
    .navigation nav.main ul li a span {
        padding: 23px 28px !important;
        font-size: 14px;
        font-weight: normal;
    }
}

/* Layout Links */
nav.footer ul li, nav.footer ul li a, nav.footer ul li a:hover, nav.footer ul li a:focus, nav.footer ul li a:active {
    font-size: 12px;
}

/* General */

.no-padding {
    padding: 0px;
}

body {
	color: #000;
}

a {
	font-weight: bold;
}

a:hover {
	text-decoration: underline;
}


/* MegaMenu dropdown */

@media (min-width: 768px) {
    .mega-dropdown {
        position: static !important;
    }

        .mega-dropdown > a {
            display: inline-block !important;
        }

        .mega-dropdown > ul {
            width: 100% !important;
            position: absolute !important;
        }

        .mega-dropdown > i {
            display: none;
        }

        .mega-dropdown .mega-header {
            border-bottom: 1px solid #2e2d62;
            font-weight: bold;
            min-height: 72px;
        }

    .navigation nav.main ul li:hover ul {
        left: 0;
    }

    .navigation nav.main li a:hover {
        color: #2e2d62 !important;
        background-color: #fff !important;
    }

    .navigation nav.main li a.active {
        color: #fff;
        opacity: 1;
    }

    .navigation nav.main li.mega-dropdown a.active:hover {
        opacity: 1;
    }

    .navigation nav.main li.mega-dropdown ul {
        background-color: #fff;
    }

        .navigation nav.main li.mega-dropdown ul li a {
            color: #2e2d62;
            vertical-align: top!important;
        }

    .mega-items span {
        /*min-height: 72px;*/
        min-height: 48px;
    }

    .navigation nav.main li.mega-dropdown ul li a:hover {
        text-decoration: underline !important;
    }

    .navigation nav.main li.mega-dropdown ul a::before {
        background-color: none;
        /*background-color: rgba(46,45,98,0.4);*/
    }

    .navigation nav.main li.mega-dropdown ul a:hover::before {
        background-color: none;
        /*background-color: rgba(46,45,98,0.8);*/
    }
}

@media (max-width: 768px) {
    .mega-dropdown .mega-items {
        display: none;
    }
}

p.link.pull-right {
    margin-top: 0px;
}


/* Promo and News Pods */

@media (min-width: 1200px) {
    .news-pods .item,
    .promo-pods .item {
        width: 22%;
        margin: 1.5%;
    }
}

@media (min-width: 992px) and (max-width:1199px) {
    .news-pods .item,
    .promo-pods .item {
        width: 31%;
        margin: 1%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .news-pods .item,
    .promo-pods .item {
        width: 46%;
        margin: 2%;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .news-pods .item,
    .promo-pods .item {
        width: 46% !important;
        margin: 2%;
    }   
}

@media (max-width: 479px) {
    .news-pods .item,
    .promo-pods .item {
        width: 94%;
        margin: 3%;
    }
}

.news-pods .item,
.promo-pods .item {
    box-shadow: 0px 5px 10px 0px rgba(136,136,136,0.6);
    padding-left: 0px;
    padding-right: 0px;
    background: #fff;
}

    .news-pods .item .heading,
    .news-pods .item .text,
    .news-pods .item .link,
    .promo-pods .item .heading,
    .promo-pods .item .text,
    .promo-pods .item .link {
        padding-left: 7%;
        padding-right: 7%;
    }

    .news-pods .item .link,
    .promo-pods .item .link {
        padding-bottom: 7%;
    }

.news-pods .item{
    height: 360px;
}

.news-pods .text{
    height: 140px;
}

.news-pods .heading{
    display: block;
    height: 160px;
}

.news-date {
    display: block;
    color: #999;
}

/* Specific Content pages */

.search-field, .search-date-1, .search-date-2, .search-researcharea, .search-andor {
    -webkit-appearance: menulist-button;
}

.search-advancedRow {
    margin-bottom: 10px;
}

#studypage #studytitle {
    font-size: 15pt;
    padding: 10px 19px;
    clear: right;
    letter-spacing: 1px;
    line-height: 25px;
}

#studypage #studyheadline {
    margin-top: 5px;
    font-size: 11pt;
    font-weight: bold;
    padding: 10px 19px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

div#studytitle {
    padding-left: 0px;
    padding-right: 0px;
}

div#studyheadline {
    background: rgba(46,45,98,1);
    box-shadow: 0px 5px 10px 0px rgba(136,136,136,0.6);
    border-color: rgba(46,45,98,0);
    margin-bottom: 20px!important;
}

p.studyheadline-equalmargin {
    margin-bottom: 8px;
}

@media (max-width:768px){
    div#studytitle {
        margin-left:5%!important;
        margin-right:5%!important;
    }
    div#whenwherewho {
        margin-left:5%!important;
        margin-right:5%!important;
    }    
}

.our-research img {
    display: block;
    width: 70%;
    margin: auto;
}


/* Staff pages */

div.our-staff, a.our-staff:link, a.our-staff:visited, a.our-staff:hover, a.our-staff:active {
    border-radius: 4px;
    border-width: 2px;
}

a.our-staff-dir:link, a.our-staff-dir:visited, a.our-staff-dir:hover, a.our-staff-dir:active {
    background-color: #2E2D62;
    color: #fff;
    text-transform: uppercase;
}

a.our-staff-research:link, a.our-staff-research:visited, a.our-staff-research:hover, a.our-staff-research:active {
    background-color: #2e2d62;
    color: #fff;
    text-transform: uppercase;
}
div.our-staff-research {
    border-color: #2e2d62;
    text-align: center;
}

a.our-staff-train:link, a.our-staff-train:visited, a.our-staff-train:hover, a.our-staff-train:active {
    background-color: #FBBB10;
    color: #000;
    text-transform: uppercase;
    border:2px solid #FBBB10;
}

a.our-staff-comms:link, a.our-staff-comms:visited, a.our-staff-comms:hover, a.our-staff-comms:active {
    background-color: #FF6900;
    color: #000;
    text-transform: uppercase;
    border:2px solid #FF6900;
}

div.our-staff-func {
    border-color: #00A788;
}
div#our-staff-func-head {
    background-color: #00A788;
    border-color: #00A788;
    text-transform: uppercase;
    color: #000;
}
button.our-staff-func {
    border-radius: 4px;
    border:2px solid #00A788;
    background-color: #fff;
    color: #000;
    font-weight: normal;
}
div#our-staff-func-head h3 {
    font-weight: bold;
    font-size: 14px;
}

img.staff-profile-img {
    /* keep aspect ration when resizing */
    object-fit: cover;
    object-position: top;
    overflow: hidden;
}

@media (min-width: 768px) {
    /* make space for lengthy job titles */
    .senior-staff-tile {
        height: 460px;
    }
    .senior-staff-tile-img {
        height: 240px;    
        /* set as background img to fix ie problems */
        background-size: cover; 
        background-position: center 0;
    }
    .senior-staff-tile a{
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .senior-staff-tile {
        height: 350px;
    }
    .senior-staff-tile-img {
        height: 300px;  
        max-width:250px;
        background-size: cover; 
        background-position: center 0;
    }
    .senior-staff-tile a.btn {
        margin-top: 80px;
    }
    #staff-profile img.staff-profile-img {
        width: 40%;
    }
}