.team-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-modal-content {
    background: white;
    max-width: 1100px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-modal-close {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
}

.team-modal-body {
    display: flex;
    flex-direction: row;
}

.team-modal-left img {
    width: 100%;
    height: 500px !important;
    object-fit: cover !important;
}

.team-modal-right {
    flex: 1;
}

.team-modal-left {
    width: 40%;
}

.team-modal-right {
    width: 60%;
    padding: 10px;
    height: 500px;
    overflow-x: auto;
}

#teamModalName {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    font-weight: 600;
    color: black;
}

strong {
    color: #383838;
}

@media (min-width: 992px) {
    .custom-col-5 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
        position: relative !important;
    }
}

.titledest {
    background-color: #ffffffc2;
    width: 100%;
}


.open-team-modal {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.open-team-modal img {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.open-team-modal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #53565A;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.open-team-modal:hover img {
    transform: scale(1.1);
}

.open-team-modal:hover::after {
    opacity: 0.5;
}

.teamname {
    color: black;
    font-size: 15px;
    font-weight: 700;
}

/*  */


#teamModalBio p strong:first-child {
    display: block;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    border-left: 4px solid #FEBE3F;
    padding-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;

}

#teamModalBio ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

#teamModalBio ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: #444;
    margin-left: 20px;
}

#teamModalBio ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #FEBE3F;
    border-radius: 50%;
}

#teamModalBio p {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: #444;
    padding-right: 1.4rem;
}


#teamModalBio p {
    text-align: justify;
}

.team-modal-right {
    background-image: linear-gradient(40deg, #ffffff 50%, #FEBE3F 100%) !important;
}

/* media popup */

@media (max-width: 768px) {
    .team-modal-body {
        flex-direction: column;
    }

    .team-modal-content {
        margin: 20px;
    }

    .team-modal-left {
        width: 100%;
        display: none;
    }

    .team-modal-right {
        width: 100%;
        padding: 10px;
        max-height: 500px;
        overflow-x: auto;
    }

    .team-modal-left img {
        width: 100%;
        height: 400px !important;
        object-fit: cover !important;
    }
}

/*  */
.close {
    float: right;
    font-size: 40px;
    color: black;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    background-color: transparent;
    border: 0;
}