/* --- Modern Responsive Team Section --- */

.team .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    /* Even gap between cards */
}

.team .member {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s, transform 0.3s;
    width: 260px;
    min-width: 220px;
    max-width: 100%;
    margin: 0;
    padding: 0 0 24px 0;
}

.team .member:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-6px) scale(1.03);
}

.team .member-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f4f4f4;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team .member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
}

.team .member-info {
    width: 100%;
    text-align: center;
    padding: 18px 12px 0 12px;
}

.team .member-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #222;
}

.team .member-info span {
    font-size: 0.98rem;
    color: #008DD2;
    font-weight: 500;
    display: block;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .team .row {
        gap: 20px;
    }
    .team .member {
        width: 45vw;
        min-width: 180px;
        max-width: 320px;
    }
}

@media (max-width: 767px) {
    .team .row {
        gap: 16px;
    }
    .team .member {
        width: 90vw;
        min-width: 140px;
        max-width: 100%;
    }
    .team .member-info {
        padding: 14px 6px 0 6px;
    }
}


/* Mentors and Associates Fixes */


/* Make associate images square */

.associate-img {
    height: 0;
    padding-bottom: 100%;
    /* Creates a square aspect ratio */
    position: relative;
    overflow: hidden;
}

.associate-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}