/* General Bio List Styles */
.BDK-bio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.BDK-bio {
    flex: 0 0 calc(25% - 18.75px);
    background-color: #f0ece4;
    transition: transform 0.3s ease-in-out;
}

.profile-pic-wrapper {
    overflow: hidden;
}

.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 {
    padding: 18px 14px;
    text-align: center;
}

.BDK-department h2 {
    padding: 25px 0px 20px;
    font-size: 40px;
    font-weight: 900;
}

.BDK-team-items div:first-child h2 {
    padding: 0px 0px 20px;
}

.profile-info h3 {
    font-size: 26px;
    padding: 0;
}

.profile-info span {
    display: block;
}

.profile-info p {
    margin: 5px 0 10px;
    line-height: 16px;
}

.profile-info .telephone {
    padding: 0px 0px 5px;
}

.profile-info .telephone::before {
    content: "";
    background-image: url(../images/icons-telefon.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    vertical-align: middle;
}

.profile-info .email::before {
    content: "";
    background-image: url(../images/icon-mail.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    vertical-align: middle;
    margin-top: 4px;
}

.BDK-bio a {
    color: rgba(25, 25, 25, 1);
    transition: 0.3s;
}

.BDK-bio a:hover {
    color: rgba(255, 95, 103, 0.92);
}

/* Responsive Styles */
@media (max-width: 980px) {
    .BDK-bio {
        flex: 0 0 calc(50% - 12.5px);
        background-color: #f0ece4;
    }
}

/* Bio Filter */
.filter-team-buttons {
    padding-top: 0;
    margin-bottom: -36px;
}

.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: 25px;
    font-weight: 700;
    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;
    opacity: 0;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    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 > ul > li span {
    display: none;
}

.filter-team-buttons nav a {
    font-size: 16px;
    font-weight: 700;
    margin-right: 0;
    margin-bottom: 15px;
    text-decoration: none;
    color: #000;
    line-height: 1em;
}

.filter-team-buttons .nav ul ul li a:hover {
    background-color: transparent;
    opacity: 0.7;
}

.filter-team-buttons nav a.active {
    border-bottom: 4px solid #ff5f67;
}

/* 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) {
    .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;
    }

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

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

    .BDK-bio {
        display: flex;
        max-height: 140px;
        overflow: hidden;
    }

    .BDK-bio .profile-pic-wrapper {
        width: 38%;
    }

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

    .BDK-bio .profile-info {
        width: 62%;
        padding: 15px;
        text-align: left;
    }

    .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 */

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