.team-hero{
    text-align:center;
    padding:140px 10% 60px;
}

.team-hero h1{
    font-size:4rem;
}

.team-hero p{
    color:#94A3B8;
    margin-top:10px;
}

.team-section{
    padding:80px 10%;
}

.popup-bio-text{
white-space: pre-line;
}

.team-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.team-card{
    background:#1E293B;
    padding:20px;
    border-radius:20px;
    text-align:center;
    transition:.3s;
}

.team-card:hover{
    transform:translateY(-10px);
}

.team-card img{
    width:100%;
    height:350px;
    object-fit:contain;
    background:#0F172A;
}

.search-box{
    display:flex;
    justify-content:center;
    margin:30px 0;
}

.search-box input{

    width:400px;
    max-width:90%;

    padding:15px 20px;

    border:none;

    border-radius:50px;

    background:#1E293B;

    color:white;

    outline:none;
}

.team-filters{

    display:flex;
    justify-content:center;
    flex-wrap:wrap;

    gap:15px;

    padding:40px 10%;
}

.team-filter{

    border:none;

    background:#1E293B;

    color:white;

    padding:12px 25px;

    border-radius:50px;

    cursor:pointer;

    transition:.3s;
}

.team-filter:hover,
.team-filter.active{

    background:
    linear-gradient(
    135deg,
    #EC4899,
    #6D28D9
    );
}

.team-card{
    cursor:pointer;
}

.team-card.hide{
    display:none;
}

.member-modal{

    display:none;

    position:fixed;

    inset:0;

    background:
    rgba(0,0,0,.85);

    z-index:9999;
}

.member-modal.active{
    display:flex;
    justify-content:center;
    align-items:center;
}

.member-modal-content{

    width:90%;
    max-width:900px;

    background:#1E293B;

    border-radius:20px;

    padding:30px;

    display:grid;

    grid-template-columns:
    300px 1fr;

    gap:30px;
}

.member-modal-content img{

    width:100%;
    height:350px;

    object-fit:contain;
}

.close-modal{

    position:absolute;

    right:30px;

    top:20px;

    font-size:2rem;

    cursor:pointer;
}

#modalBio{
    margin-top:15px;
    line-height:1.8;
    white-space:pre-line;
}


@media(max-width:768px){

    .team-grid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .team-card{

    background:#1E293B;

    border-radius:20px;

    padding:20px;

    text-align:center;

    transition:.3s;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    height:400px;

}

    .team-card img{

    width:100%;

    height:300px;

    object-fit:cover;

    border-radius:15px;

    background:#0F172A;

}

.member-modal-content{

        width:95%;
        max-height:90vh;

        overflow-y:auto;

        grid-template-columns:1fr;

        text-align:center;

        padding:20px;
    }

    .member-modal-content img{

        width:100%;

        max-width:250px;

        height:auto;

        margin:0 auto;
    }

    #modalName{
        font-size:1.5rem;
        margin-top:15px;
    }

    #modalRole{
        font-size:1rem;
        margin-top:10px;
    }

    #modalBio{

        text-align:left;

        font-size:.95rem;

        line-height:1.6;

        margin-top:15px;
    }

    .close-modal{

        position:fixed;

        top:15px;
        right:20px;

        z-index:10000;
    }

}