/* Team section — bir xil rasm stili va hover effektlari */


/* Qo'shing: base.html head qismiga yoki custom-school.css ichiga import qiling:
 */

.team-items .team-item {
    border-radius: 12px;
    overflow: visible;
}


/* Kvadrat 1:1 konteyner — rasm har doim kvadrat va object-fit:cover yordamida kesiladi */

.team-photo-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 ratio */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    background: #f8f9fa;
}


/* Rasmni qoplash */

.team-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease, filter .35s ease;
    display: block;
}


/* Ozgina zoom hoverda */

.team-item:hover .team-photo {
    transform: scale(1.06);
    filter: saturate(1.06);
}


/* Social tugmalar overlay holati */

.team-social {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translate(-50%, 12px);
    display: flex;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all .28s ease;
}


/* Ko'rinishdagi tugmalar */

.team-social .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}


/* Hover qilinsa social tugmalar ko'rinadi */

.team-item:hover .team-social {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}


/* Captain (ism va lavozim) */

.team-caption {
    border-radius: 0 0 12px 12px;
    margin-top: 12px;
}


/* Matnlarni markazlashtirish va kichik stil tweaklar */

.team-caption h5 {
    font-weight: 600;
    margin-bottom: 4px;
}

.team-caption span {
    color: #6c757d;
    font-size: .875rem;
}


/* Mobil uchun kichik o'zgartirishlar */

@media (max-width: 576px) {
    .team-photo-wrap {
        padding-top: 100%;
        border-radius: 10px;
    }
    .team-social {
        bottom: 8px;
    }
}


/* Agar siz border-radius: 50% (doira) xohlasangiz, quyidagi qatorlarni almashtiring:
.team-photo-wrap { padding-top: 100%; border-radius: 50%; }
.team-caption { border-radius: 50%; display:none; } 
*/