/* PAGE BACKGROUND  */

#page {
	background-color: #fff;
}
#page h1 {
	font-family: Lato, sans-serif;
	font-weight: 700;
	padding-left: 8px;
}
#page h2, #page h3, #page h4 {
	color: #1d3460;
	font-family: Lato, sans-serif;
	font-weight: 700;
}

/* FONT STYLE */

#page_content H1, 
#page_content H2,
#page_content H3,
#page_content H4,
#page .pseudo-h1 a,
p.caption,
#local_menu_header li {
	color: #002848;
    text-shadow: none;
}



#page .pseudo-h1 a {
    text-decoration: none;
    border-bottom: none;
}

/* NAVIGATION & HEADER */


#local_header .navbar-inner {
    background-color: #e6eeeb;
	position: relative;
    left: calc(-50vw + 50%);
    z-index: 1000;
    width: 100vw;
    box-shadow: none;
}

.banner-area.breakout-area {
    background-color: transparent;
    border: none;
    margin-top: -2.5em;
}

/* MOBILE MENU BAR COLOUR */
#local_header .navbar-inner #header {
	background: #002848;
}

#local_header .nav>li {
	border-right: 1px solid #1f7a8c;
	width: 25%;
}

#local_header .nav>li:last-child {
	border-right: 0;
}

#local_header .nav>li>a {
    text-shadow: none;
	color: #002848;
    text-align: center;
}

#local_header .nav li.dropdown>.dropdown-toggle .caret {
    border-top-color: #002848;
    border-bottom-color: #002848;
}

@media only screen and (min-width: 48em) {
	ul#local_menu_header {
	    padding: 0 1em;
	}
}

@media only screen and (max-width: 37.5em) {
    #local_header .navbar-inner {
        width: 100vw;
    }
}

@media only screen and (min-width: 48em) {

    div.noprint a.blocklink img.scale-with-grid {
        top: 130px;
        position: absolute;
        z-index: 10;
        left: 10px;
    }
    .columns.twelve.center h1 {
        font-size: revert;
    }
}

@media only screen and (min-width: 90em) {

    div.noprint a.blocklink img.scale-with-grid {
        top: 108px;
        position: absolute;
        z-index: 10;
        left: 171px;
    }
    .columns.twelve.center h1 {
        font-size: 2.25rem;
    }
}


/* LEAD TEXT */



@media only screen and (min-width: 37.5em) {
	
	p.lead.border {
    	border-right: 5px solid grey;
    	padding: 10px 10px 10px 0;
    	margin-right: 20px;
	}
}

/* OVERLAY IMAGES */

@media only screen and (min-width: 48em) {
    .three.columns .overlay-image .caption {
        font-size: 1em;
        max-width: 75%;
    }

    .four.columns .overlay-image .caption {
        font-size: 1.2em;
        width: auto;
    }

    .overlay-image{
        position: relative;
        overflow: hidden;
    }

    .overlay-image img{
        max-width: 100%;
        -moz-transition: all 0.3s;
        -webkit-transition: all 0.3s;
        transition: all 0.3s;
    }

    .overlay-image:hover img, .overlay-image:focus img {
        -moz-transform: scale(1.25);
        -webkit-transform: scale(1.25);
        transform: scale(1.25);
    }

    .overlay-image .caption  {
       color: #fff !important;
       border-top-right-radius: 10px;
       border-bottom-right-radius: 10px;
       background: rgba(31,122,140, 0.9);
       padding: 0.5em 0.5em 0.5em 1.5em !important;
       width: auto;
       font-weight: 400;
       display: inline-block;
       margin-top: 2em;
       bottom: calc(-1em + 60%) !important;
       font-size: 1.2em;
    }
}


/* HOMEPAGE HERO IMAGE */

@media only screen and (min-width: 37.5em) {
    .columns.twelve.center {
        background-color: rgba(31,122,140, 0.9);
        width: 80%;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        padding-left: 1em;
		top: 3em;
    }
}

@media only screen and (min-width: 48em) {
    .columns.twelve.center {
        background-color: rgba(31,122,140, 0.9);
        width: 60%;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        padding-left: 1em;
		top: 4em;
    }
}

@media only screen and (min-width: 64em) {
    .columns.twelve.center {
        background-color: rgba(31,122,140, 0.9);
        width: 50%;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        padding-left: 1em;
		top: -1em;
    }
}

.columns.twelve.center h1 {
    color: #fff !important;
}

.columns.twelve.center {
    background-color: rgba(31,122,140, 0.9);
    top: 5em;
}

@media only screen and (min-width: 48em) {
    .columns.twelve.center {
        top: 6em;
    }
}

@media only screen and (min-width: 64em) {
    .columns.twelve.center {
        top: 5em;
    }
}

@media only screen and (min-width: 90em) {
    .columns.twelve.center {
        top: 2em;
    }
}

@media only screen and (min-width: 37.5em) {
	.pull.left {
	    margin-left: 0;
	}
}

/* WELLS - Classes can be added to wells in rich text to enable multiple styles of well (colours, background-images, etc) */

#page_content .well {
	background: #e6eeeb;
	color: #002848;
	text-shadow: none;
    border-radius: 20px;
	margin-bottom: 20px;
}


#page_content .well.alternate {
	background: #1f7a8c;
	color: #fff;
	text-shadow: none;
	border-radius: 20px;
    margin-bottom: 20px;
}

#page_content .well.alternate h2, .well.alternate h3 {
	color: #fff !important;

}

#page_content .well.alternate a {
	color: #fff;
	border-color: #fff;
}

/* CENTERED TWO COL ON SERVICES  */

.remove-bottom {
    margin: 0 0 0 0 !important;
    padding: 0;
    width: 100%;
}

/* TILE LINKS ON TRAINING PAGE */

.tile-link {
    background: #1f7a8c;
	color: #fff;
	text-shadow: none;
	border-radius: 20px;
text-align: center;
}

.tile-link .link-text {
	padding: 20px;
	min-height: 210px;
}

.tile-link a, .tile-link h2, .tile-link p {
    color: #fff !Important;
    border: none;
    
}

/* BREAKOUT AREAS - as with wells, multiple styles of breakout area can be created. Additional classes can be added in Experience Editor (via 'Edit component properties'), such as 'alternate', 'alternate-two'
    These classes have no inherent styling attached and so can be used to build up a suite of styled breakout blocks */


.breakout-area {
    background-color: transparent;
    border: none;
}

.breakout-area.alternate {
    background: #CBCDCD;
    margin-top: 15px;
}


.breakout-area.alternate h2 {
    color: #fff !important;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background: #404745;
    padding: 0.25em 0.5em 0.25em 1.5em;
    width: auto;
    font-weight: 700;
    display: inline-block;
    margin-top: 2em;
   }

.breakout-area.alternate p {
	margin-left: 40px;
	margin-right: 40px;
}

.breakout-area .row {
    margin: 0 0 0 0;
    padding: 0;
    width: 100%;
    z-index: 1;
}


/* BUTTONS */

#page button, a[role="button"], a[role="button"]:visited, input[type="submit"], input[type="reset"], input[type="button"] {
    color: #fff !important;
    font-weight: 700;
    background: #1f7a8c;
    text-shadow: none;
    border-radius: 10px;
    border: 0;
}

#page button:hover, a[role="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover  {
    background: #fff;
    color: #404745 !important;
}

#page button, a[role="button"].secondary, a[role="button"]:visited.secondary, input[type="submit"].secondary, input[type="reset"].secondary, input[type="button"].secondary {
    color: #000 !important;
    font-weight: 700;
    background: #e6eeeb;
    text-shadow: none;
    border-radius: 10px;
    border: 0;
}

#page button, a[role="button"].secondary:hover {
    background: #CBCDCD;
    color:#000 !important;
}

#page button, a[role="button"].grey, a[role="button"]:visited.grey, input[type="submit"].grey, input[type="reset"].grey, input[type="button"].grey {
    color: #fff !important;
    font-weight: 700;
    background: #404745;
    text-shadow: none;
    border-radius: 10px;
    border: 0;
}

#page button, a[role="button"].grey:hover {
    background: #CBCDCD;
    color:#000 !important;
}

a.card-button.medium.green.column.button-link {
    background: #004C69;
    color: #fff !important;
}

div.awards button {
    margin-bottom: 0.5rem;
    margin-right: 0.5em;
    margin-left: 0.5em;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: fill-available;
}

/* SLIDESHOW */

 #slideshow ul.on li div.caption {
	  background-color: rgba(31,122,140, 0.9);
    top: 5em; 
	 height: max-content;
	padding-left: 3em;
 }

@media only screen and (min-width: 37.5em) {
	#slideshow ul.on li div.caption {
	background-color: rgba(31,122,140, 0.9);
        width: 60%;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
		top: 2em;
}
}

	
@media only screen and (min-width: 48em) {
    #slideshow ul.on li div.caption {
       background-color: rgba(31,122,140, 0.9);
        width: 60%;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
		top: 4em;
    }
}

@media only screen and (min-width: 64em) {
    #slideshow ul.on li div.caption {
        background-color: rgba(31,122,140, 0.9);
        width: 40%;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
		top: 6em;
	}
    }

    #slideshow ul.on li div.caption h2 {
        line-height: 2em;
    }

    #slideshow ul.on li div.caption p {
        font-size: larger;
    }

    #slideshow .navnext {
        right: 1.5rem;
    }

    #slideshow .navprev {
        left: 1.5rem;
    }
    a.ssbutton {
        right: 10%;
        bottom: 15%;
        position: absolute;
    }
}
/*INTRO TEXT */
p.ps-intro {
    font-size: xx-large;
    line-height: 1.5em;
    margin: 0 0 0.5em 0 !important;
}

@media only screen and (min-width: 90em) {
    p.ps-intro {
        margin-left: -25% !important;
    }
}

/* BANNER AREA - headings on hero images*/

p#pic-location {
    position: absolute;
    right: 4%;
    top: 76%;
    background-color: rgba(64,71,69,0.9);
    padding: 0.5em;
    border-radius: 0.5rem;
    font-size: small;
}

@media only screen and (min-width: 37.5em){
    p#pic-location {
        top: 71%;
    }
}

@media only screen and (min-width: 90em) {
    p#pic-location {
        top: 85%;
        font-size: inherit;
    }
}

.breakout-bg.bg.alternate-two .columns {
    position:absolute;
    left: 20%;
    top: 50%;
    z-index: 100;
    width: auto;
    margin: 0;
    padding: 10px;
    background: rgba(0,40,72,.7);
    height: fit-content;
}
.breakout-bg.bg.alternate-two h1 {
	color: #fff !important;    
	font-size: 1.5em;
}

.breakout-bg.bg.alternate-two {
    background: none;
}

@media only screen and (min-width: 37.5em) {
    .breakout-bg.bg.alternate-two .columns {
        position: absolute;
        left: 20%;
        top: 50%;
        z-index: 100;
        width: 50%;
        margin: 0;
        padding: 20px;
        background: rgba(0,40,72,.7);
        height: fit-content;
    }
    .breakout-bg.bg.alternate-two h1 {
        color: #fff !important;
        font-size: 3em;
    }
    .breakout-bg.bg.alternate-two p {
        font-size: larger;
    }
}


/* MAP */
.surround {
    padding: 1em;
    background-color: #002848;
    color: #fff;
}

/* INLINE CONTENT */

a.thumbnail.center {
    color: #002848;
}

.breakout-bg .thumbnail.active:after {
    content: " ";
    width: 0;
    height: 0;
    border-top: 20px solid rgba(0,0,0,.1);
    position: absolute;
    bottom: -20px;
    left: 0;
}

.breakout-bg .three.columns .thumbnail.active:after {
    border-left: 108px solid transparent;
    border-right: 108px  solid transparent;
}

.breakout-bg .four.columns .thumbnail.active:after {
    border-left: 140px solid transparent;
    border-right: 140px  solid transparent;
}

.breakout-bg.alternate .thumbnail.active {
    box-shadow: none;
}

.icon,
.thumbnail p {
    color:#002848;
}


/* FOOTER */
.breakout-bg.bg.alternate {
    background-color: #1f7a8c; /* For browsers that do not support gradients */
  background-image: linear-gradient(180deg, #528cc6, #1f7a8c);}

.breakout-bg.bg.alternate a  {
    color: #000;
    border-color: #000;
}

.breakout-bg.bg.alternate {
    color: #000;
}

.breakout-bg.bg.alternate h2 {
    color: #fff !important;
}

/* DETAILS */
#page details {
    margin:0.5em 0;
}

#page details summary{
    border-radius: 0.5em;
    border:0px; 
    box-shadow: none;
    background-color: #1f7a8c;
    color:#ffffff;
}
	
.breakout-bg.bg.alternate.inline-expand {
    background-color: transparent;
}

/* HIDE WELL IMAGE ON MOBILE */


@media only screen and (max-width: 37.5em) {
img.hide-on-mobile {
    display: none !important;
}
}
  