/* 
Theme Name: Youth United
Version: 1.0 
Description: Child theme for Understrap - A Bootstrap 4 theme 
Author: Pete McCabe for Digital Island
Author URI: http://www.digital-island.co.uk/
Template: wp-bootstrap-starter 
*/  

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,800');

html, body {
	font-family: 'Open Sans', sans-serif !important;
}

/* 
Bootstrap grid
*/ 

.container, 
.container .content-area {
	padding-left: 0px;
	padding-right: 0px;
	position: relative;
}

/* 
LOGO
*/ 

.yu-logo {
	position: absolute; 
	top: -11px; 
	left: 0px; 
	z-index: 10;
}	

.yu-logo img {
	/*
	 height: 137px; 
	 width: 290px; 
	 */
	width: 230px;
	height: auto;
}

/* 
Header and Nav
*/ 

.overlay {
	pointer-events: none;
	height: 100%;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	background-color: rgba(0,0,0,0);	
	-webkit-transition: background-color 0.3s ease-out;
    -moz-transition: background-color 0.3s ease-out;
    -o-transition: background-color 0.3s ease-out;
    transition: background-color 0.3s ease-out;    
    z-index: 21;
}

.overlay.open {
	background-color: rgba(0,0,0,0.8);   
}

header#masthead {
	/* background-color: transparent; /* #f7931d; */
	min-height: 100px;
	position: fixed;
	top: 0px;
	width: 100%;
	z-index: 20;
	box-shadow: none;
	padding: 0px;	
	background-color: rgba(0,0,0,0);	
}

header#masthead.scrolled {
	background-color: rgba(255,255,255,1);
}

.navbar-toggler:not(:disabled):not(.disabled) {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 0px;
}

.overlayNavIcon:focus, .overlayNavIcon:active, 
.navbar-toggler:focus, .navbar-toggler:active {
	outline: none !important;
	box-shadow: none !important;
}

#content.site-content {
	padding-top: 600px;
	padding-bottom: 0px;
}

body:not(.theme-preset-active) footer#colophon {
	background: #009edf;
	color: #fff;
}

.navbar {
	z-index: 30;
}

.navbar-dark .navbar-toggler {
	border: none;	
	padding: 0px;
}

.navbar-dark .navbar-toggler .navbar-toggler-icon {
	width: 60px;
	height: 60px;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
}

.navbar-toggler {
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
}

.navbar-dark .navbar-toggler-icon {
	background-image: url(img/nav/burger.jpg);
	
}

.yu-topHiddenNav {
	position: fixed;
	z-index: 2000000; 
	width: 100%;
}

.yu-topHiddenNav.open, 
.yu-topHiddenNav.open .container,
.yu-topHiddenNav.open .yu-dropdown-menu,  
.yu-topHiddenNav.open #mainNavContainer, 
.yu-topHiddenNav.open .yu-outerMainNav
{
	height: 100%;
}

.yu-dropdown-menu {
	position: relative;
	z-index: 40;
}

.yu-dropdown-menu .container {
	height: 100%;
}

.yu-dropdown-menu .container.navbar-collapse {
	width: 40%;
	position: absolute;
	top: 0px;
	right: 0px;	
	height: 100%;
}

.yu-dropdown-menu .container.navbar-collapse.close {
	position: relative;
	top: 0px;
	right: 0px;	
}

.fullHeight {
	height: 100%;
}

.yu-dropdown-menu .container.navbar-collapse .navbar-nav {
	
}

.navbar-nav .nav-link {
	color: #fff;
}

.navbar-nav .nav-link:hover {
	color: #000;
}

#yu-mainNav, .yu-outerMainNav {
	background: #f7931d;	
}

#mainNavContainer {
	display: inline-block;
	width: 0%;
	overflow: hidden;
	
}

#mainNavContainer.show {
	display: inline-block;
	width: 40%;
	-webkit-transition: width 0.1s ease-out;
    -moz-transition: width 0.1s ease-out;
    -o-transition: width 0.1s ease-out;
    transition: width 0.1s ease-out;
}

.collapsing {
    -webkit-transition: none;
    transition: none;
    /* display: none; */
    
    transition: height 0s;
}

button.collapsed {

}

#menu-primary-menu {
	margin-left: 30px;
	font-size: 90%;
}

#menu-primary-menu .separator {
	color: #fff;
	position: relative;
	top: -5px;
}

#menu-primary-menu .nav-link {
	padding: 0 0;
}

.overlayNavIcon {
	background-image: url(img/nav/close.jpg);
	background-image: url(img/nav/close.jpg);
    width: 70px;
    height: 70px;
    background-size: cover;
    border: none;
    position: relative;
    left: -60px;
    top: 10px;
    padding-top: 20px;
}

.yu-outerMainNav {
	margin-left: 60px;
}

#social-links {
	margin-left: 28px;
    padding-left: 0px;
    margin-top: 0px;
    position: absolute;
    top: 27px;
}

#social-links li {
	margin-right: 10px;
}

#social-links li, 
#social-links li a
{
	width: 33px;
	height: 33px;
	display: inline-block;
	background-size: cover;
}

#social-links li a.facebook { background-image: url(img/social/fb.png); }
#social-links li a.twitter { background-image: url(img/social/twitter.png); }
#social-links li a.instagram { background-image: url(img/social/instagram.png); }


/* 
Carousel
*/

.carousel {
	position: fixed;
	top: 0px;
	width: 100%;
	/*height: 400px;
	overflow: hidden;*/
}

.carousel-item {
	height: 600px;
	background-size: cover;
	background-position: top center;
}

.carousel-caption {
	left: 0px;
	right: 0px;
}

.carousel-caption .container {
	top: -40px;
}

.carousel-caption .box {
	text-align: left;
}

.carousel-caption .box h3 {
	background: #f7931d;	
	width: auto;
	display: inline-block;
	padding: 5px 10px;
	margin: 0px;
	font-weight: 700;
	font-size: 30px;
	color: #fff;
}

.carousel-control-next, .carousel-control-prev {
	background-image: url(img/carousel/arrow_back.png);
}

.carousel-control-next-icon {
	background-image: url(img/carousel/arrow_right.png);
}

.carousel-control-prev-icon {
	background-image: url(img/carousel/arrow_left.png);
}

.carousel-control-next-icon, .carousel-control-prev-icon {
	width: 44px;
	height: 86px;
}


/* 
Carousel animations
*/

.carousel-caption .box:first-child {
  animation-delay: 0.1s;
}

.carousel-caption .box:nth-child(2) {
  animation-delay: 0.2s;
}

.carousel-caption button {
  animation-delay: 1.5s;
}



/* 
Page general
*/

h1.entry-title {
	border-bottom: none;
}

.yu-bg
{
	width: 100%;
	background-color: #fff;
	position: relative;
}

.yu-bg.lined {	
	background-image: url(img/patterns/line_pattern.png);
}

.yu-bg.dotted {
	background-image: url(img/patterns/dot_pattern.png);
	margin-bottom: -50px;
}

.yu-bg.white {
	background-color: #fff;
}

.yu-upperblue {
	background-color: #009edf;
	font-weight: 700;
	font-size: 125%;
	color: #fff;
	padding: 20px 60px;
	text-align: center;
	position: relative;
	top: -50px;
	z-index: 15;
}

.yu-upperblue.reverse {
	background-color: #fff;
	color: #009edf;
}

.yu-upperblue.reverse p {
	margin-bottom: 0px;
}

#primary.content-area.upper {
	top: -50px;
	margin-bottom: -150px;
	position: relative;
	z-index: 5;
}

#primary.content-area header {

}

#primary.content-area .entry-content {
	margin-top: 0px;
	background: #fff;
}

#primary.content-area .entry-content.padded {
	padding: 60px;
}


/*
Home specific
*/

h3.title {
	color: #009edf;
	text-align: center;
	font-size: 160%;
	margin: 20px 0px;
	font-weight: 600;
}

.bloggers-section h3.title {
	margin: 60px 0px 20px 0px;
}

.socialise h3.title {
	margin-top: 80px;
	margin-bottom: 30px;
}

.list-top-posts {
	margin-left: 0px;
	margin-right: 0px;
}

.list-top-posts .nopad {
	padding-left: 0px;
	padding-right: 0px;
}	

.list-top-posts .pic img {
	width: 100%;
	height: auto;
}

.list-top-posts.box {
	width: 100%;
	height: 100%;
}

.burgandy {
	background-color: #ce0844;
}

.cyan {
	background-color: #b3daf6;
}

.yellow {
	background-color: #e4f064;
}

.orange {
	background-color: #f7931d;
}

.blue {
	background-color: #1499d7;
}

.list-top-posts.box .cta {
	font-size: 22px;
	font-weight: bold;
	color: #000;
	margin: 30px;
}

.list-top-posts.box .cta .copy {
	display: block;
}

.list-top-posts.box .cta .copy.lighter {
	font-weight: 300;
}

.list-top-posts.box .cta .link {
	color: #000;
	display: inline-block;
	background-color: #fff;
	padding: 4px 8px;
	margin-top: 5px;
}

.list-top-posts.box .cta .link:hover {
	text-decoration: none;
	background: rgba(255,255,255,0.5);
}

.load-more-surround {
	text-align: center;
}

.load-more-surround a.load-more {
	background: #1499d7;
	padding: 4px 8px;
	color: #fff;
	font-size: 25px;
	font-weight: 700;
	text-align: center;
	display: inline-block;
	position: relative;
	top: 10px;
	cursor:pointer;
}	

.load-more-surround a.load-more:hover {
	background: rgba(20,153,215,0.5);
}

.bloggers-section {
	padding-top: 100px;
}	

.list-top-posts.box.guest-bs {
	position: relative;
	top: -20px;
	padding: 10px;
}

.list-top-posts.box.guest-bs .cta .link {
	position: absolute;
	bottom: 25px;
}	

.list-top-posts.box .pic-bg {
	height: 300px;
	background-size: cover;
	background-position: center center
}

.list-top-posts.box.guest-bs .pic-bg {
	background-size: cover;
	height: 300px;
}

.list-top-posts.box.guest-bs .pic-bg.margin-right {
	margin-right: 5px;
}

.list-top-posts.box.guest-bs .pic-bg.margin-left {
	margin-left: 5px;
}

.desc-line {
	text-align: center;
}

.desc-line .orange {
	color: #fff;
	padding: 4px 8px;
	white-space: nowrap;
}

h4.follow-us-cta {
	font-size: 14px;
	text-align: center;
	font-weight: 700;
	margin: 20px 0px;
}

.follow-us-cta a {
	color: #009edf;
}


/* 
Staff / Trustees 
*/

.toggle-staff {
	display: inline-block;
	padding: 5px;
	background-image: url(img/patterns/line_pattern.png);
	margin: 25px 0px;
}

.toggle-staff .inner {

}

.toggle-staff .inner a {
	background: #1499d7;
	padding: 4px 8px;
	color: #fff;
	font-size: 25px;
	font-weight: 700;
	text-align: center;
	display: inline-block;
}

.toggle-staff .inner a.blue {
	background: #1499d7;
	color: #fff;
	margin-right: 5px;
}

.toggle-staff .inner a.white {
	background: #bcbdc1;
	color: #fff;
}

.entry-content.trustees {
	display: none;
}


/*
Contact page
*/

.contact-col {

}

.contact-col .inner {
	padding-right: 10px;
}

.contact-col:nth-child(3) .inner {
	padding-right: 0px;
}

.contact-col .inner h4 {
	color: #009edf;
	font-size: 14px;
	font-weight: 800;
}

.contact-col .inner p {
	font-size: 12px;
}

/*
Useful Contacts page
*/

.u-contact-col {

}

.u-contact-col .inner {
	padding-right: 10px;
	margin-bottom: 50px;
}

.u-contact-col:nth-child43) .inner {
	padding-right: 0px;
}

.u-contact-col .inner h4 {
	color: #009edf;
	font-size: 14px;
	font-weight: 800;
	margin-top: 20px;
}

.u-contact-col .inner p {
	font-size: 12px;
}

/*
Impact reports page
*/

.impact-rep-col-thumb {
	margin-bottom: 10px;
}

.impact-rep-col-thumb img {
	border: 1px solid #000;
}

.impact-rep-col-desc {
	margin-bottom: 20px;
}

.impact-rep-col-desc .inner {
	padding: 0px 20px 0px 20px;
	margin-bottom: 50px;
}

.impact-rep-col-desc .inner h4 {
	color: #009edf;
	font-size: 14px;
	font-weight: 800;
	margin-top: 20px;
}

.impact-rep-col-desc .inner p {
	font-size: 12px;
}

.inner a.weblink {
	background-color: #bcbdc1;
	color: #fff;
	padding: 2px 6px
}

.inner a.weblink:hover {
	text-decoration: none;
}


/*
Blog related
*/

.blog-post-buttons {
	margin-top: 50px;
}

.blog-post-buttons .button 
{
	display: inline-block;
	padding: 4px 8px;
	background-color: #1499d7;
	color: #fff;
}

.blog-post-buttons .button:hover
{
	background: rgba(20,153,215,0.5);
	text-decoration: none;
}

.blog-post-buttons .prev {
	float: left;
}

.blog-post-buttons .next {
	float: right;
}


/*
General
*/


.entry-content.sm-text {
	font-size: 12px;
}

/*
Instagram feed overrides
*/

/*
#sb_instagram .sbi_photo {
	min-height: 200px;
	max-height: 200px;
}
*/

/* 
Footer
*/

body:not(.theme-preset-active) footer#colophon {
	padding-top: 30px;
}

/*
Modal
*/

.modal-header {
	background-image: url(img/patterns/line_pattern.png);
	height: 90px;
	text-align: center;
	display: block;
	margin-bottom: 90px;
	position: relative;
	border-bottom: none;
}

.modal-content {
	border-radius: 0px;
}

.modal-title {
	width: 100%;
	color: #1499d7;
	font-weight: 800;
	font-size: 25px;
	line-height: 28px;
	text-align: center;
	margin-bottom: 10px;
}

.modal-hd-holder {
	width: 100%;
}

.modal-hd-surround {
	display: inline-block;
	padding: 10px;
	background-color: #fff;
	margin: 0 auto;
}

.modal-hd-shot {
	width: 150px;
	height: 150px;
	background-size: cover;	
}

.modal-header .close {
	position: absolute;
	top: 35px;
	right: 35px;
	display: block;
	background-image: url(img/modal/close.png);
	background-size: cover;
	width: 30px;
	height: 30px;
	opacity: 1;
}

.modal-body {
	padding-left: 50px;
	padding-right: 50px;	
}

.modal-body p {
	font-size: 12px;
}

/* 
Responsive
*/

@media (min-width: 1200px) {
	
	.navbar-expand-xl .navbar-toggler {
		display: block;
	}
	
	/* THIS IS WRONG - JUST FOR TESTING LAYOUT BUT WILL SCREW WITH DROP DOWN ABOVE 1200PX */
	.navbar-expand-xl .navbar-collapse {
		display: none !important;
	}
	
}

@media (min-width: 992px) {
	
	.list-top-posts.box.reverse .nopad:nth-child(1) {
		position relative;
		left: 50%;
	}

	.list-top-posts.box.reverse .nopad:nth-child(2) {
		position relative;
		right: 50%;
	}
	
	.list-top-posts.box .cta {
		height: 100%;		
	}
	
	.v-centred {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		width: 100%;
	}
	.v-centred .inner {
		padding-left: 30px;
		padding-right: 30px;
	}
	
}

@media (max-width: 960px) {

	#mainNavContainer.show {
		width: 60%;		
	}
	
}

@media (max-width: 576px) {

	.yu-logo img {
		width: 200px;
	}

	.carousel-control-prev, 
	.carousel-control-next {
		display: none; 
	}
	
	.navbar-toggler:not(:disabled):not(.disabled) {
		right: 10px;
	}
	
	h3.title {
		font-size: 200%;
	}
	
	.yu-upperblue {
		font-size: 150%;
	}
	
	.list-top-posts.box .cta, 
	.contact-col .inner, 
	.u-contact-col .inner, 
	.content-area .entry-content 
	{
		text-align: center;
	}
	
	
	.list-top-posts.box .cta {
		font-size: 25px;
		line-height: 27px;
	}
	
	.list-top-posts.box .cta .copy {
		margin-bottom: 10px;
	}
	
	.yu-upperblue {
		padding: 20px 20px;
	}
	
	.site-main.simple .entry-content {
		text-align: left;
	}
	
}

@media (min-width: 576px) {
	
	.modal-dialog {
		max-width: 650px;
	}
	
	.impact-rep-col-thumb img {
		margin-left: 10px;
	}
	
	
	.u-contact-col .inner .log-surround {
		height: 150px;
		overflow: hidden;
	}

}






