/* =====================================================
   TEAM WRAPPER
===================================================== */

.huse-team-wrapper{
    width:100%;
    box-sizing:border-box;
}


/* TEAM FILTER BUTTONS */
/* 
.team-filters{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:14px !important;
    margin-bottom:35px !important;
}

.team-filter{
    padding:10px 24px !important;
    background:#0e1a33 !important;
    color:#ffffff !important;
    border:1px solid #0e1a33 !important;
    border-radius:30px !important;
    font-size:14px !important;
    font-weight:600 !important;
    cursor:pointer !important;
    transition:all .25s ease !important;
    position:relative !important;
}

/* Hover – switch style */
/* .team-filter:hover{
    background:#ffffff !important;
    color:#0e1a33 !important;
}

/* Active – hover style + underline */
/* .team-filter.active{
    background:#ffffff !important;
    color:#0e1a33 !important;
}

.team-filter.active::after{
    content:"" !important;
    position:absolute !important;
    left:20% !important;
    right:20% !important;
    bottom:6px !important;
    height:2px !important; */
/*     background:#0e1a33 !important; */ */
/* } */ 
/* =====================================================
   GRID (FULLY RESPONSIVE)
===================================================== */

.team-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:30px;
}


/* =====================================================
   CARD
===================================================== */

.team-card{
    background:#f5f5f5;
    border-radius:12px;
    padding:15px;
    cursor:pointer;
    transition:all .3s ease;
}

.team-card:hover{
    transform:translateY(-6px);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}


/* =====================================================
   HEADER
===================================================== */

.team-header{
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
    margin-bottom:15px;
}

.team-header h3{
    margin:0;
    font-size:18px;
    font-weight:600;
}

.team-header p{
    margin:5px 0 0;
    font-size:14px;
    color:#777;
}


/* =====================================================
   IMAGE WRAPPER (STABLE RATIO)
===================================================== */

.team-photo{
    width:100%;
    aspect-ratio:3/4;
    overflow:hidden;
    margin-bottom:30px;   /* fixed space between image & text */
}

.team-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:10px;
    display:block;
}


/* =====================================================
   POPUP BACKDROP
===================================================== */

.team-popup{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    display:none;

    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,0.7);

    z-index:99999;

    padding:30px;
    box-sizing:border-box;
}

.team-popup.active{
    display:flex;
}


/* =====================================================
   POPUP BOX
===================================================== */

.team-popup-inner{
    background:#fff;
    width:100%;
    max-width:900px;

    border-radius:14px;

    padding:30px;

    position:relative;

    display:flex;
    gap:30px;

    align-items:center;
}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.team-popup-close{
    position:absolute;
    top:15px;
    right:18px;

    font-size:28px;
    line-height:1;

    cursor:pointer;
    color:#333;
}

.team-popup-close:hover{
    color:#000;
}


/* =====================================================
   POPUP LEFT (IMAGE)
===================================================== */

.popup-left img{
    width:240px;
    max-width:100%;
    border-radius:12px;
    display:block;
}


/* =====================================================
   POPUP RIGHT (CONTENT)
===================================================== */

.popup-right{
    flex:1;
}


/* =====================================================
   POPUP HEADER
===================================================== */

.popup-header{
    margin-bottom:15px;
}

.popup-header h3{
    margin:0;
    font-size:26px;
    font-weight:600;
}

.popup-header p{
    margin:5px 0 0;
    font-size:15px;
    color:#777;
}


/* =====================================================
   POPUP CONTENT
===================================================== */

#popup-content{
    line-height:1.6;
    font-size:15px;
    color:#333;
}


/* =====================================================
   TABLET
===================================================== */

@media(max-width:1024px){

    .team-popup-inner{
        max-width:95%;
        padding:20px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:768px){

    .team-popup-inner{
        flex-direction:column;
        text-align:center;
        padding:20px;
        max-height:90vh;
        overflow-y:auto;
    }

    .popup-left img{
        width:160px;
        margin-bottom:15px;
    }

    .popup-header h3{
        font-size:20px;
    }

    #popup-content{
        font-size:14px;
    }

    .team-filters{
        justify-content:center;
    }

    .team-filter{
        font-size:13px;
        padding:8px 16px;
    }

}


/* =====================================================
   HIDE FILTERED CARDS
===================================================== */

.team-card.team-hide{
    display:none !important;
}