/* Premium Team Grid */
.tst-team-grid{
    display:grid;
    gap:38px 20px;
    width:100%;
    margin:0 auto;
}
.tst-team-grid.tst-cols-1{grid-template-columns:1fr}
.tst-team-grid.tst-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tst-team-grid.tst-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tst-team-grid.tst-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tst-team-grid.tst-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.tst-team-grid.tst-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}

.tst-team-card{
    min-width:0;
    position:relative;
    overflow:hidden;
    text-align:center;
    font-family:inherit;
    background:#fff;
    border:1px solid #e5e8ef;
    border-radius:16px;
    box-shadow:0 5px 18px rgba(24,42,78,.06);
    padding:10px 10px 18px;
    transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}

.tst-team-card:before{
    content:"";
    position:absolute;
    top:0;
    left:18px;
    right:18px;
    height:3px;
    border-radius:0 0 8px 8px;
    background:#24386f;
    opacity:.9;
}

.tst-team-card:hover{
    transform:translateY(-7px);
    border-color:#d4dbea;
    box-shadow:0 16px 34px rgba(24,42,78,.13);
}

.tst-team-photo{
    display:block;
    position:relative;
    aspect-ratio:1/1;
    overflow:hidden;
    border:1px solid #e1e4ea;
    border-radius:11px;
    background:#f5f7fa;
    margin:0;
}

.tst-team-photo:after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(255,255,255,.03) 55%,rgba(20,36,70,.08) 100%);
    opacity:0;
    transition:opacity .3s ease;
    pointer-events:none;
}

.tst-team-photo img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s cubic-bezier(.2,.7,.2,1);
}

.tst-team-card:hover .tst-team-photo img{transform:scale(1.045)}
.tst-team-card:hover .tst-team-photo:after{opacity:1}

.tst-team-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    height:100%;
    color:#777;
    font-size:14px;
}

.tst-team-content{
    padding:17px 7px 0;
}

.tst-team-designation{
    display:block;
    min-height:20px;
    font-size:12px;
    line-height:1.45;
    font-weight:600;
    letter-spacing:.35px;
    color:#6a7280;
    margin-bottom:6px;
}

.tst-team-name{
    margin:0!important;
    font-size:20px!important;
    line-height:1.3!important;
    font-weight:700!important;
    color:#24386f;
    letter-spacing:-.15px;
}

.tst-team-name a{
    color:inherit;
    text-decoration:none;
    transition:color .25s ease;
}

.tst-team-name a:hover{color:#182a55}

.tst-team-role{
    margin:8px auto 0;
    max-width:95%;
    font-size:13px;
    line-height:1.5;
    color:#727987;
}

.tst-no-team{padding:30px 0}

@media(max-width:1100px){
    .tst-team-grid.tst-cols-5,.tst-team-grid.tst-cols-6{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:800px){
    .tst-team-grid.tst-cols-3,.tst-team-grid.tst-cols-4,.tst-team-grid.tst-cols-5,.tst-team-grid.tst-cols-6{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:24px 14px;
    }
    .tst-team-card{border-radius:13px;padding:8px 8px 15px}
    .tst-team-content{padding-top:14px}
    .tst-team-name{font-size:18px!important}
}

@media(max-width:480px){
    .tst-team-grid.tst-cols-2,.tst-team-grid.tst-cols-3,.tst-team-grid.tst-cols-4,.tst-team-grid.tst-cols-5,.tst-team-grid.tst-cols-6{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:18px 10px;
    }
    .tst-team-card{padding:6px 6px 12px;border-radius:11px;box-shadow:0 4px 14px rgba(24,42,78,.06)}
    .tst-team-card:before{left:12px;right:12px;height:2px}
    .tst-team-photo{border-radius:8px}
    .tst-team-content{padding:11px 2px 0}
    .tst-team-designation,.tst-team-role{font-size:11px;line-height:1.4}
    .tst-team-name{font-size:16px!important;line-height:1.28!important}
    .tst-team-role{margin-top:6px}
}
