/*
Theme Name: 	SBEnrc
Description: 	The SBEnrc website theme!
Version: 		2.0
Author: 		Niche Studio
*/


/* facetwp */
body.category .facetwp-filters,
body.archive .facetwp-filters{
	margin-top:-140px;
}
body.category-resources .facetwp-filters,
body.category-toolbox-resources .facetwp-filters{
	margin-top:-200px;
}
.facetwp-facet {
	margin-bottom: 0px !important;
}
.facetwp-radio {
	display: inline-block;
	margin-right: 15px;
	background-image:none !important;
	padding: 8px 20px;
	border-radius: none;

}

.no-post-holder + .panel-default {
	display:none;
	visibility: hidden;
}
.no-post-holder{
	flex-grow: 1;
}
body.category-resources .facetwp-radio.view-all{
	padding-left: 20px;
}
.facetwp-radio:hover,
.facetwp-radio.checked,
.facetwp-radio a,
.facetwp-radio a:hover {
	background-color: none;
	color: black;
	text-decoration: none;
}

.facetwp-radio a.bold,
.facetwp-radio a.bold:hover,
.facetwp-radio.checked {
	font-weight: bold;
}

.facetwp-counter {
	display: none;
}

.facetwp-facet.facetwp-facet-current_projects{
	margin-left: initial;
}
.facetwp-facet.facetwp-facet-current_projects .facetwp-radio{
	margin-bottom: 4px;
}
.facetwp-facet.facetwp-facet-current_projects .facetwp-radio[data-value="1"]{
	color: #79797c;
}
.facetwp-facet.facetwp-facet-current_projects .facetwp-radio[data-value="0"]{
	color: #D8DB55;
}



.flex-parent-four-columns .d-flex{
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	margin-top:15px;
}

/* grid */
.flex-parent-four-columns > .d-flex div,
.flex-parent-five-columns > .d-flex > div{
	margin: 0 1rem 2rem;
}

/* facetwp */
.facetwp-filter-holder{
	display: flex;
	flex-direction: column;
	margin-bottom:15px;
	align-items: center;
	text-align: left;
	background-color: #fff;
    border-radius: 4px;
}

.facetwp-filter-holder > .facetwp-radio,
.facetwp-facet.facetwp-facet-category.facetwp-type-radio,
.facetwp-facet.facetwp-facet-current_projects{
	align-self: flex-start;
}

.facetwp-filter-holder .facetwp-radio.ceo{
	display:none;
	visibility: hidden;
}

body.about .facetwp-filter-holder{
	flex-direction: row;
	flex-wrap: wrap;
}


/* archive */
body.archive .overlay{
	background-color: rgba(134, 230, 51, 0.1);
}
.bg-white{
	background-color: #fff;
	border-radius: 4px;
}
.title-container,
.page-title-wrapper {
	-webkit-background-size: cover !important;
 	-moz-background-size: cover !important;
 	-o-background-size: cover !important;
	 background-size: cover !important;
	height:200px;
	background-color: #6CA93F;
	position: relative;
}

.title-container::after,
.page-title-wrapper::after {
	content: "";
	background: url(img/icon-white.svg) center no-repeat;
	background-size: cover;
	opacity: 0.1;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	z-index: 0;   
}

.title-container h1 {
	color: #fff;
	font-size: 90px;
	margin: 0;
}

.packery-block .item {
	background: #fff;
	/* border-bottom: 2px solid #6c6c6f; */
	overflow: hidden;
	display: block;
	z-index: 1;
}

.packery-block .item{
	border-radius: 4px;	
	background-color: #FFFFFF;	
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.15);
	padding:13px;
}

.packery-block .item .thumbnail-wrapper img {
	width: 100%;
	object-fit: cover;
}


.packery-block .item .inner {
	padding: 10px;
	font-size: 14px;
	color: #000;
	line-height: 1.4em;
}

.packery-block .item .inner h2 {
	font-size: 15px;
	line-height: 1.4em;
}

.packery-block .item .inner h2.strong{
	font-weight: bold;
}

.packery-block .item .inner h2 strong{
	display:block;
}

.packery-block .item .section-colour {
	height: 8px;
	background: url('img/cat-overlay.png') repeat-y center left;
}

.item:hover a.post-link,
.item a.post-link,
.news-holder:hover a.post-link,
.news-holder a.post-link  {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	z-index: 99;
	left: 0;
	display: block;
	z-index: 999;
}

/* grid */
.flex-parent-four-columns .d-flex,
.flex-parent-five-columns .d-flex {
	margin-left: -1rem;
	margin-right: -1rem;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	flex-direction: row;
}

.flex-parent-four-columns .d-flex > div,
.flex-parent-five-columns .d-flex > div{
	-webkit-box-flex: 0;
	   -ms-flex: 0 0 calc(50% - 1rem*2);
	flex: 0 0 calc(50% - 1rem*2);
	width: calc(50% - 1rem*2);
}

.sb-well{
	border-radius: 4px;	
	background-color: #FFFFFF;	
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.15);
	padding:15px;
}

.title-container h2.white {
	color: white;
}

.paretners-total-holder .image-ratio-holder img,
body.post-type-archive-partner .flex-parent-four-columns .item .thumbnail-wrapper.image-ratio-holder img,
.footer-gallery .sb-well .image-ratio-holder img{
	object-fit: contain;
}

.flex-parent-even-height{
	display: flex;
    flex-wrap: wrap;
}
.flex-even-height-item{
	margin-bottom: 15px;
}
.flex-even-height-item .sb-well{
	height:100%;
}

/* resources */
/* toolbox-resources */

.resource-table th, .resource-table td{
	font-size: 12px;
}
body.category-resources .title-container,
body.category-toolbox-resources .title-container{
	background-color: #447394;
}
body.category-resources .panel-default,
body.category-toolbox-resources .panel-default{
	background: transparent;
	border:none;
	box-shadow: none;
}
body.category-resources .panel-default .panel-body,
body.category-toolbox-resources .panel-default .panel-body{
	padding: 15px 0;
}

body.category-toolbox-resources p {
	font-size: 14px;
	word-break: break-all;
}

.toolbox-linktype-kid {
	text-transform: capitalize;
	font-style: italic;
}

.btn-primary {
    color: #ffffff;
    background-color: #6CA93F;
    border-color: #6CA93F;
    background-image: none;
}

.search-holder input {
    height: 34px;
}


.resource-table tr th{
	border:none;
	color:#fff;
	font-size: 16px;
	font-weight: bold;
	border-top: transparent !important;
}
.resource-table tr.item{
	background-color: #fff;
	border-bottom: 1px solid #F2F2F2;
}
/* .resource-table tr.item:hover{
	background-color: rgba(230,238,223, 0.6);
} */
.resource-table tr.item td{
	padding: 20px 10px;
}
.green-bar-bottom{
	
	background-color: rgba(134, 230, 51, 0.1);
}
.green-bar-flex-parent{
	display:flex;
	flex-direction: row;
	align-items: center;
	padding: 10px;
}
.sb-list-group .sb-well{
	margin: 5px 0;
}
.green-bar-flex-parent .download-btn{
	margin-left:auto;
}

/* about us new */
.image-ratio-holder{
	position: relative; 
	padding-bottom: 70%;
	overflow: hidden;
	max-width: 100%;
	height: auto;
}

.embed-container iframe,
.embed-container object,
.embed-container embed,
.image-ratio-holder img { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sb-well.people .image-ratio-holder img { 
	object-position: center 20%;
}

.our-people-title-wrap + .facetwp-filters .facetwp-filter-holder .facetwp-radio.ceo {
    display: block;
    visibility: visible;
}

body.about div.wrapper-bg-gray {
	background-color: #E6E6E6;
}
body.about .section-menu-cont{
	margin-top:0;
}
body.about .packery-block .item .inner h2.strong{
	margin:0;
}
body.about .content-wrap p{
	font-size: 14px;
}
.about-first-panel{
	color: white;
}
.about-first-panel p{
	font-size: 18px;
	line-height: 26px;
}
.page-title-wrapper.about-first-panel h3.small{
	font-size: 20px;
}
.content-wrap{
	padding: 30px 0;
	position: relative;
}
p.title-role{
	margin: 10px 0 5px;
}
h3.people-name{
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 18px;
	font-weight: 600;
}

body.single #title-wrap {
	display:flex;
	align-items: center;
}

body.single #title-wrap h1#post-heading {
	margin: 0;
}

body.post-type-archive-partner .facetwp-template .item h2.strong {
	display:none;
	visibility: hidden;
}

/* single page */
body.single  .page-title-wrapper{
	padding: 38px 0;	
}
body.single .featured-thumb img {
	max-height: 450px;
    width: 100%;
    object-fit: contain;
}

.doc-author-holder{
	padding: 30px 0;
}
.downloading-holder > h3:first-child{
	font-size:20px;
}
.downloading-holder h4{
	font-size: 14px;
	margin-top:20px;
}

.author-holder-whole{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin: 0 -15px;
}
.author-holder{
	flex-basis:calc(50% - 30px);
	width:calc(50% - 30px);
	padding: 15px;
	margin: 15px;
}

.author-holder img{
	width:100%;
}
.author-holder p{
	word-break: break-all;
}
.author-holder h4 SPAN{
	font-size: 14px;
	font-weight: normal;
	color: black !important;
}

p:blank,
p:empty {
	display: none;
}

.linked-post-flex-parent{
	padding: 30px 0;
	display: flex;
    flex-wrap: wrap;
}
.linked-post-flex-parent > article{
	flex-basis: calc(20% - 20px);
    width: calc(20% - 20px);
    flex: 1 1 auto;
    margin: 0 10px;
}
.linked-posts-holder{
	padding: 30px 0;
}

/* contact page */
.bg-grey-light{
	background-color: #E6E6E6;
}
.btn-directions{
	color: #00a0ff;
	display: flex;
    align-items: center;
}
.btn-directions:hover,
.btn-directions:active,
.btn-directions:focus{
	color: black;
}
.btn-directions:before{
	content: '';
	width: 18px;
	height: 18px;
	display: inline-block;
	position: relative;
	background: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg version='1.1' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!--Generated by IJSVG (https://github.com/curthard89/IJSVG)--%3E%3Cpath d='M12,0.006c-4.411,0 -8,3.588 -8,8c0,4.244 7.273,15.307 7.583,15.775c0.092,0.139 0.249,0.225 0.417,0.225c0.168,0 0.324,-0.085 0.417,-0.225c0.31,-0.468 7.583,-11.531 7.583,-15.775c0,-4.411 -3.589,-8 -8,-8Zm0,11.5c-1.93,0 -3.5,-1.571 -3.5,-3.5c0,-1.929 1.57,-3.5 3.5,-3.5c1.93,0 3.5,1.571 3.5,3.5c0,1.929 -1.57,3.5 -3.5,3.5Z' fill='%2300a0ff'%3E%3C/path%3E%3Cpath fill='none' d='M0,0h24v24h-24Z'%3E%3C/path%3E%3C/svg%3E");	
}

.btn-directions:hover:before,
.btn-directions:active:before,
.btn-directions:focus:before{
	background: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg version='1.1' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!--Generated by IJSVG (https://github.com/curthard89/IJSVG)--%3E%3Cpath d='M12,0.006c-4.411,0 -8,3.588 -8,8c0,4.244 7.273,15.307 7.583,15.775c0.092,0.139 0.249,0.225 0.417,0.225c0.168,0 0.324,-0.085 0.417,-0.225c0.31,-0.468 7.583,-11.531 7.583,-15.775c0,-4.411 -3.589,-8 -8,-8Zm0,11.5c-1.93,0 -3.5,-1.571 -3.5,-3.5c0,-1.929 1.57,-3.5 3.5,-3.5c1.93,0 3.5,1.571 3.5,3.5c0,1.929 -1.57,3.5 -3.5,3.5Z' fill='%23000'%3E%3C/path%3E%3Cpath fill='none' d='M0,0h24v24h-24Z'%3E%3C/path%3E%3C/svg%3E");	
}

.btn-call{
	margin: 24px 0 32px;
}

.wpcf7-submit{
	
}



@media screen and (min-width: 576px) {
	
	.image-ratio-holder-long{
		padding-bottom: 90%;
	}
	/* facetwp */
	.resource-filter-left{
		display: flex;
		align-items: center;
		flex-direction: row;
		flex-grow: 1;
	}
	.tool-dropdown,
	.tool-sub-dropdown,
	.tool-link-type {
		flex-grow: 1;
	}
	.tool-dropdown select option {
		display:none;
	}
	.tool-dropdown select option[value=assessment],
	.tool-dropdown select option[value=planning],
	.tool-dropdown select option[value=procurement-delivery],
	.tool-dropdown select option[value=engagement],
	.tool-dropdown select option[value=maintenance-management] {
		display:block;

	}
	
	.tool-sub-dropdown select option[value=assessment],
	.tool-sub-dropdown select option[value=planning],
	.tool-sub-dropdown select option[value=procurement-delivery],
	.tool-sub-dropdown select option[value=engagement],
	.tool-sub-dropdown select option[value=maintenance-management] {
		display:none;

	}
	.resource-filter-right{
		margin-left: auto;
		padding-right: 20px;
		padding-left: auto;
	}

	.resource-filter-right select {
		border:none;
		font-weight: bold;
	}
	

	.tool-dropdown select,
	.tool-sub-dropdown select,
	.tool-link-type select{
		border:none;
		font-weight: bold;
		width: 90%;
		
	}
	body.category-resources .facetwp-radio{
		padding:10px;
		margin:0;
	}


}

.resource-filter-right{
	padding-left: 20px;
}

@media screen and (min-width: 768px){
	
}


@media screen and (min-width: 992px) {
		/* toolbox category */
		td.toolbox-category-kid {
			width: 150px;
		}
		
		td.toolbox-contact-kid {
			width: 200px;
			word-break: break-word;
		}
	
		.search-holder input.facetwp-search{
			width: 100%;	
		}
	
		.chalice-holder{
			position: absolute;
			right: 0;
			width: 33%;
		}
		
		.facetwp-filter-holder{
			display: flex;
			align-items: center;
			flex-direction: row;
		}
		.facetwp-filter-holder > .facetwp-radio,
		.facetwp-facet.facetwp-facet-category.facetwp-type-radio,
		.facetwp-facet.facetwp-facet-current_projects{
			align-self: center;
		}
	/* footer */
	.footer-row-social .container{
		flex-direction: row;
	}
	.footer-social-holder{
		margin-left: auto;
	}
	#footer-partners {
		padding:83px 0 50px 0;
	}
	#footer-partners h2{
		padding-top: 30px;
		padding-bottom:30px;
	}
	.partner-block .btn-default{
		margin-top:30px;
	}
	/* about page */
	.content-wrap{
		padding: 80px 0;
	}

	/* toolbox category */
	td.toolbox-category-kid {
		width: 150px;
	}
	
	td.toolbox-contact-kid {
		width: 200px;
		word-break: break-word;
	}

	.search-holder input.facetwp-search{
		width: 100%;	
	}

	.chalice-holder{
		position: absolute;
		right: 0;
		width: 33%;
	}
	
	.facetwp-filter-holder{
		display: flex;
		align-items: center;
		flex-direction: row;
	}
	.facetwp-filter-holder > .facetwp-radio,
	.facetwp-facet.facetwp-facet-category.facetwp-type-radio,
	.facetwp-facet.facetwp-facet-current_projects{
		align-self: center;
	}
	/* .facetwp-facet.facetwp-facet-current_projects{
		margin-left: auto;
	} */

	.header-bg{	
		padding: 30px 10px;
	}
	.header-bg .flex-parent{
		display:flex;
		flex-direction: row;
		align-items: flex-start;
	}

	.title-container,
	.page-title-wrapper {
		padding: 38px 0; 
	}

	ul#menu-main-menu>li.search{
		display:block;
	}
	.flex-parent{
		display:flex;
		flex-direction: row;
		/* align-items: center; */
	}

	.header-bg .flex-parent > div.flex-pull-right{
		margin-left:auto;
		padding-right:0;
	}


	
	
	/* contact page */
	.contact-page-holder{
		padding: 100px 0 145px;
	}
	.contact-page-holder p{
		font-size: 14px;
	}
	.btn-call{
		display:none;
	}

	/* footer */
	.footer-row-social .container{
		flex-direction: row;
	}
	.footer-social-holder{
		margin-left: auto;
	}
	#footer-partners {
		padding:83px 0 50px 0;
	}
	#footer-partners h2{
		padding-bottom:30px;
		margin-bottom:0;
		margin-top:0;
	}
	.partner-block .btn-default{
		margin-top:30px;
	}
	/* about page */
	.content-wrap{
		padding: 80px 0;
	}

	/* single page */
	body.single  .page-title-wrapper{
		padding: 57px 0 45px 0;	
	}
	.doc-author-holder{
		padding: 95px 0;
	}
	.linked-posts-holder{
		padding: 59px 0 69px;
	}
	.featured-thumb-holder{
		position: absolute;
		width: 33%;
		z-index: 999;
		top: 0;
		left: 67%;
		margin-top: 179px;
		max-height: 450px;
	}
	.flex-parent-fifty{
		margin: 0 -15px;
	}
	.flex-parent-fifty > div{
		flex-basis: 50%;
		width:50%;
		padding: 0 15px;
	}
	.flex-parent-fifty > div:first-child:last-child{
		flex-basis: 100%;
		width:100%;
		padding: 0 15px;
	}

	/* grid */
	.flex-parent-four-columns .d-flex > div{
		-webkit-box-flex: 0;
   		-ms-flex: 0 0 calc(25% - 1rem*2);
		flex: 0 0 calc(25% - 1rem*2);
		width: calc(25% - 1rem*2);
	}
	.flex-parent-five-columns .d-flex > div{
		-webkit-box-flex: 0;
   		-ms-flex: 0 0 calc(20% - 1rem*2);
		flex: 0 0 calc(20% - 1rem*2);
		width: calc(20% - 1rem*2);
	}
	.image-ratio-holder-long{
		padding-bottom: 120%;
	}

	/* Resources page */
	body.category-resources .title-container,
	body.category-toolbox-resources .title-container{
		height: 240px;
	}
}

.header-bg .flex-parent > div.logo-child a img{
	max-width: 65%;
	max-width: 200px;
}

@media screen and (max-width: 1500px){
	.header-bg .flex-parent > div{
		padding-right: 20px;
	}
	
	.header-bg .flex-parent > div.logo-child{
		flex:2;
	}
	.header-bg .flex-parent > div.slogan-child{
		flex:4;
	}
	.header-bg .flex-parent > div.top-menu-child{
		flex:6;
	}
}

.contact-page-holder iframe{
	width: 100%;
	height: auto;
	min-height: 185px;
	margin: 15px 0;
}

@media screen and (min-width: 1600px){
	.chalice-holder{
		margin-top: 179px;
	}
	
}

@media screen and (min-width: 1600px){
	.header-bg .flex-parent > div{
		padding-right: 65px;
	}
}

@media screen and (max-width: 991px) {
	body > div{
		z-index:0;
	}
	.sb-top-menu{
		position: fixed;
		bottom: 0;
		background-color: rgba(255,255,255,0.8);
		border-top: 3px solid #6CA93F;
		width: 100%;
		left: 0;
		z-index: 10100;
		-ms-flex-order: 20;
		order: 20;
	}

	#menu-main-menu{
		display: flex;
    	flex-direction: row;
		justify-content: space-evenly;
		margin: 15px 0;
	}
	.header-bg .flex-parent > div.logo-child{
		padding-bottom:25px;
		display: flex;
		flex-direction: row;
    	justify-content: space-between;
    	align-items: center;
	}
	
	.header-bg .flex-parent > div.slogan-child{
		width:90%;
	}
	.intro-video-child{
		padding-top:30px;
	}
	.home.category-intros .top-section {
		text-align: center;
	}
	.ceo-msg-wrapper{
		text-align: center;
	}
	.ceo-msg-content-wrapper h2{
		padding: 44px 0 20px;
		margin:0;
	}
	.featured-initiatives-block .featured-title{
		margin-bottom:30px;
		text-align: center;
	}
	.home.category-intros .top-section {
		padding-top: 15px;
	}
	/* about */
	.page-title-wrapper .col-md-8{
		padding-top:30px;
		padding-bottom:30px;
	}
	/* footer */
	.partner-block h2{
		padding-top:60px;
	}
	.footer-row-social h2.stay{
		margin-top:53px;
	}
	body{
		margin-bottom: 60px;
	}
	
}

@media screen and (max-width: 767px) {
	.header-bg .flex-parent > div.slogan-child h2{
		padding-bottom:25px;
	}
	ul#menu-main-menu-1 {
		padding-top: 25px;
	}
	
}

/* small mobile */
@media screen and (max-width: 450px) {
	.packery-block .completed-marker, 
	.packery-block .uncompleted-marker,
	.packery-block .category-marker{
		display:block;
		width:100%;
		margin-left:0;
		margin-bottom:2px;
	}

}