/**
 * 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:100%;
	/* display:block; */
	/* float:left; */
	/* padding:2% 2% 3% 2%; */
	margin:1%;   
	background-color: rgba(145,48,206,1);
}

.documentcontainer h4 , .documentcontainer h6, .documentcontainer p {
	color:white;
}

.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: 47.5% !important;
	/* float: left; */
}

.categoryfilter {
	margin-left: 5%;
	height: 46px;
}

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

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

.categoryfilter .select2-selection__rendered {
	line-height: 39px !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:44%;
	}
}

@media screen and (max-width: 767px) {
	.documentcontainer {
		width:96%;
	}
}

@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;
	}
}

/* Internal Document Library Shortcode */
.document-library .document-container {
    display: flex;
}

.document-library .document-container div {
    flex: 1;
}

a[data-tool-tip]{
    position: relative;
    text-decoration: none;
    color: black;
}

a[data-tool-tip]::after{
    content: attr(data-tool-tip);
    display: block;
    position: absolute;
    background-color: rgba(0,0,0,0.75);
    padding: 1em 3em;
    color: white;
    border-radius: 5px;
    font-size: 1em;
    bottom: 0;
    left: -80%;
    white-space: nowrap;
    transform: scale(0);
    transition: 
    transform ease-out 150ms,
    bottom ease-out 150ms;
}

a[data-tool-tip]:hover::after{
    transform: scale(1);
    bottom: 200%;
}