/* General Bio List Styles */

.BDK-department:nth-of-type(odd) .profile-pic-wrapper {
    background-color: #94B7B3;
}

.BDK-department:nth-of-type(even) .profile-pic-wrapper {
    background-color: #F0ECE4;
}

.BDK-department:not(:last-child) {
	border-bottom: 1px solid #E0D8C7;
	padding-bottom: 24px;
}
.BDK-department.active-dept {
	border-bottom: none;
}

.BDK-bio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.BDK-bio {
    flex: 0 0 calc((100% - 3 * 16px) / 4);
    transition: transform 0.3s ease-in-out;
}

.profile-pic-wrapper {
    overflow: hidden;
	background-color: #94B7B3;
}

.profile-pic {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.BDK-bio:hover .profile-pic {
    transform: scale(1.08);
}

.profile-info {
	display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 16px 0px;
    text-align: left;
	color: #1E293B;
	
}

.BDK-department h2 {
    padding: 40px 0px 40px;
    font-size: 30px;
    font-weight: 700;
}

.BDK-team-items div:first-child h2,
.BDK-department.active-dept h2 {
    padding: 0px 0px 40px;
}

.profile-info h3 {
	font-family: "Public Sans";
    font-size: 24px;
	line-height: 1.2em;
	font-weight: 500;
	color: #1E293B;
    padding: 0;
}

.profile-info span {
    display: inline-block;
}

.profile-info p {
    line-height: 24px;
	font-weight: 400;
	margin: 4px 0px;
}
.profile-info .telephone,
.profile-info .email {
	display: flex;
}
.profile-info .telephone a,
.profile-info .email a {
    display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1E293B !important;
    transition: 0.3s;
	font-weight: 400;
	padding: 2px 0px;
	line-height: 24px;
}

.profile-info .telephone a::before {
    content: "";
	display: inline-block;
    background-image: url(../images/icon-telefon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
}

.profile-info .email a::before {
    content: "";
	display: inline-block;
    background-image: url(../images/icon-email.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
}
.profile-info .telephone a:hover,
.profile-info .email a:hover {
	background: #E7E67A;
}

/* Bio Filter */
.filter-team-buttons .nav > ul > li span {
	display: none;
}
.filter-team-buttons {
	padding-top: 0;
	margin-bottom: 56px;
}

.filter-team-buttons .nav {
	display: flex;
	list-style: none;
}

.filter-team-buttons .nav > ul > li {
	font-size: 24px;
	color: #05373C;
	font-weight: 600;
	position: relative;
}

.filter-team-buttons .nav ul {
	list-style: none;
	padding: 0px;
	margin: 0px;
}

.filter-team-buttons .nav ul ul {
	position: relative;
    display: flex;
	flex-wrap: wrap;
    gap: 8px;
    visibility: visible;
    opacity: 1;
    transition: 0.3s;
    background: transparent;
    z-index: -1;
    width: 100%;
    border: none;
    box-shadow: none;
	margin-top: 16px;
}

.filter-team-buttons .nav ul ul li {
	line-height: 1.3em;
	padding: 0px;
}

.filter-team-buttons .nav ul > li:hover ul {
	opacity: 1;
	z-index: 2;
}

.filter-team-buttons .nav a {
	font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #1E293B;
    line-height: 1em;
    background-color: #E0D8C7;
    padding: 6px 12px;
    border: 1px solid #E0D8C7;
}

.filter-team-buttons .nav ul ul li a:hover {
	background-color: #F0ECE4;
	opacity: 1;
}

.filter-team-buttons .nav a.active {
	background-color: #F0ECE4;
}


/* Responsive Styles */
@media (max-width: 980px) {
    .BDK-bio {
        flex: 0 0 calc((100% - 1 * 16px) / 2);
        background-color: transparent;
    }

	/* Bio Filter */
	.filter-team-buttons {
		padding-top: 0;
		margin-bottom: -36px;
	}
	.filter-team-buttons .nav > ul > li.show span {
        display: block;
        position: absolute;
        right: 0px;
        top: -11px;
        font-weight: 300;
        transform: scale(1, 0.7);
        color: #375f63;
        background: #fff;
        z-index: 1;
        padding: 15px 5px;
    }
	    
    .filter-team-buttons .nav > ul > li {
        font-size: 20px;
    }

    .filter-team-buttons .nav ul ul {
        opacity: 0 !important;
        z-index: -1 !important;
    }

    .filter-team-buttons .nav > ul > li.show ul,
    .filter-team-buttons .nav > ul > li.show.hide ul {
        opacity: 1 !important;
        z-index: 1 !important;
    }

    .filter-team-buttons {
        margin-bottom: 20px;
    }
	.filter-team-buttons .nav {
		display: flex;
		flex-wrap: wrap;
		padding-left: 0;
		margin-bottom: 0;
		list-style: none;
		justify-content: right;
	}

	.filter-team-buttons .nav > ul > li {
		font-size: 20px;
		font-weight: 600;
		position: relative;
		padding-right: 28px;
	}

	.filter-team-buttons .nav > ul > li:after {
		content: "";
		background-image: url(../images/red-arrow.svg);
		background-repeat: no-repeat;
		width: 26px;
		height: 17px;
		background-size: 100%;
		position: absolute;
		transform: rotate(90deg);
		right: 0px;
		top: 4px;
	}

	.filter-team-buttons .nav ul {
		list-style: none;
		padding: 0px;
		margin: 0px;
	}

	.filter-team-buttons .nav ul ul {
		position: absolute;
		display: flex;
		flex-direction: column;
		opacity: 0;
		transition: 0.3s;
		background: rgba(255, 255, 255, 0.9);
		padding: 0px;
		z-index: -1;
		width: 264px;
		right: 0;
		text-align: right;
		top: 25px;
		border: none;
		box-shadow: none;
	}

	.filter-team-buttons .nav ul ul li {
		line-height: 1.3em;
		padding: 0px;
	}

	.filter-team-buttons .nav ul > li:hover ul {
		opacity: 1;
		z-index: 2;
	}

	.filter-team-buttons .nav a {
		font-size: 14px;
		font-weight: 600;
		margin-right: 0;
		margin-bottom: 15px;
		text-decoration: none;
		line-height: 1em;
	}

}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {

    .BDK-department h2 {
        font-size: 20px;
		padding: 24px 0px 24px;
    }

    .BDK-bio-list {
        display: flex;
        flex-direction: column;
    }

    .BDK-bio {
        display: flex;
        max-height: 140px;
        overflow: hidden;
    }
	.BDK-bio a {
		font-size: 14px;
	}
    .BDK-bio .profile-pic-wrapper {
        width: 38%;
    }

    .BDK-bio .profile-pic {
        height: auto;
        min-height: 140px;
    }

    .BDK-bio .profile-info {
		display: flex;
		flex-direction: column;
		justify-content: center;
        width: 62%;
        padding: 0px 0px 0px 10px;
        text-align: left;
    }
	.profile-info p {
		margin: 5px 0px;
		line-height: 14px;
		font-size: 14px;
	}

    .BDK-bio .profile-info h3 {
        font-size: 18px;
    }
	.single-bio .profile-info h3 {
		font-size: 18px !important;
	}

    .BDK-bio .profile-info span {
        display: inline-block;
    }
}

/* Single Bio */

.BDK-bio.single-bio .profile-pic-wrapper {
	display: flex;
	justify-content: center;
}
.BDK-bio.single-bio .profile-pic-wrapper .profile-pic {
	max-width: 416px;
	max-height: 416px;
}
	


/* .single-bio .profile-info h3 {
	font-size: 26px;
} */

@media (min-width: 768px) {
    .bio .single-bio {
        display: flex;
        flex-direction: row;
        max-height: 480px;
        overflow: hidden;
        width: 100%;
    }

    .bio .single-bio .profile-pic-wrapper {
        width: 65%;
    }

    .bio .single-bio .profile-pic {
        height: auto;
    }

    .bio .single-bio .profile-info {
        width: 35%;
        padding: 30px;
        text-align: left;
    }

    .bio .single-bio .profile-info h3 {
        font-size: 28px;
    }
}
