/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 /* Style the list */
ul.tab {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Float the list items side by side */
ul.tab li {float: left; width: auto; text-align: center;}

/* Style the links inside the list items */
ul.tab li a {
    display: inline-block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
}

/* Change background color of links on hover */
ul.tab li a:hover {
	background-color: #efefef;
}

/* Create an active/current tablink class */
ul.tab li a:focus, ul.tab.active {
	background-color: #ffffff;
}

.documentlibrary .portfolio-container {
	display: flex;
    flex-direction: row;
	flex-wrap: wrap;
	height: auto !important;
	visibility: visible;
}

.documentcontainer {
    width: calc(50% - 20px);
	/*width:100%;*/
	/* display:block; */
	/* float:left; */
	/* padding:2% 2% 3% 2%; */
	/*margin:1%;   */
	background-color: #edf3f7;
	padding: 40px 30px;
	color: rgba(49,50,51,1);
    margin: 0 10px 20px 10px !important;
}

.documentcontainer h4 , .documentcontainer h6, .documentcontainer p {
	color: rgba(132,137,145,1);
}

.documentcontainer h4, .documentcontainer h6 {
	text-align:center;
}

.documentcontainer h6, .documentcontainer p {
	line-height:20px;
	margin-bottom:20px;
}

.documentcontainer h4 {
	margin-bottom:0px;
	line-height:30px;
	font-size: 18px;
}

.documentcontainer p {
	height:100px;
	overflow:hidden;
	text-overflow:ellipsis;
}

.categorysearch input {
	border: 1px solid #aaa !important;
	border-radius: 4px !important;
}

.categorysearch, .categoryfilter {
	width: 100%;
	/*width: 47.5% !important;*/
	/* float: left; */
}

.categoryfilter {
	margin-left: 5%;
	width: 100%;
	/*height: 46px;*/
}

.categoryfilter .select2.select2-container {
	width: 100%;
}

.categoryfilter .select2-selection {
	height: 39px !important;
}

.categoryfilter .select2-selection__rendered {
	line-height: 50px !important;
}

.branch-media-block {
	width: 50%;
    float: right;
    padding-left: 30px;
    padding-bottom: 30px;
}

.branch-media-block .branch-image {
	margin-bottom: 30px;
	text-align: center;
}

.branch-media-block .tatsu-module {
	margin-bottom: 30px;
}

.branches-list {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	max-width: 1160px;
	margin: 15px auto 0;
	padding: 0 20px 0;
	border-bottom: 1px solid #888;
}

.branches-list p {
	width: auto;
	padding: 0 10px 0;
	color: #888;
}

.servicing-areas-list li {
	margin-bottom: 0px;
}

.team-wrap .team-description {
	text-align: left;
}

.team-shortcode-wrap .designation {
	font-style: italic;
}

.testimonial-quote {
	font-size: 52px;
}

@media screen and (max-width: 959px) and (min-width: 768px) {
	.documentcontainer {
		width: 100%;
	}
}

@media screen and (max-width: 767px) {
	.documentcontainer {
		width:100%;
	}
	.ema-library {
	    flex-direction: column;
	}
	.ema-library .filter-results {
	    margin-bottom: 60px;
	}
}

@media screen and (max-width: 980px) {
	ul.tab {
		width: 100% !important;
	}
	.portfolio {
		margin-top:10px;
	} 
	.filtertabs {
		display: none;
		float: left;
		width: 100% !important;
		margin-bottom: 0px;
	}
	li.filtertabs {
		border-bottom: 1px solid #888;
	}
	.filtertabs:last-child {
		border-bottom: none !important;
	}
	.filtertabs a {
		width: 100% !important;
		padding: 10px 0px !important;
	}
	.mobilefilter {
		display: block;
	}

}

@media only screen and (min-width: 641px){
	.gform_wrapper .top_label li.gfield.gf_left_half, .gform_wrapper .top_label li.gfield.gf_right_half {
		margin-top: 0px !important;
		margin-bottom: 0px !important;
	}
}

.branch-grid-state {
  	width: 50%;
	margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
	.branch-grid-state {
/* 		width: 100%; */
		margin-bottom: 40px;
	}
}

.ema-library {
    display: flex;
}

.ema-library .filter-results {
    padding-right: 50px;
    flex: 15;
}

.ema-library .filter-results ul {
    padding-left: 0;
}

.ema-library .filter-results h4 {
    margin-bottom: 30px;
}

.ema-library .filter-results li { 
    list-style-type: none;
    margin-bottom: 0 !important;
    line-height: 1.8;
    font-size: .9em;
}

.ema-library .library {
    flex: 85;
}

.ema-library .library .filters {
    margin-bottom: 60px;
}

.filterable .select2-selection.select2-selection--single,
.filterable input {
    background: #2293D7;
    border-radius: 20px !important;
    border: none !important;
    height: 50px !important;
}

.filterable .select2-container--default .select2-selection--single {
    border: none;
}

.filterable .select2-selection__rendered,
.filterable .select2-selection__placeholder, 
.filterable input::placeholder, 
.filterable input {
    color: white !important;
}

.filterable .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent !important;
}

.filterable .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
}

.ema-library .filter-results .current-menu-item {
    padding-left: 10px;
}

.ema-library .filter-results .current-menu-item a {
    color: #313233;
}
