<style>
.team-section {
    text-align: center !important;
}

.team-section h2,
.team-section .team-title {
    text-align: center !important;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* TEAM GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

/* TEAM CARD (scroll animation initial state) */
.team-card {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.team-card.show {
    opacity: 1;
    transform: translateY(0px);
}

.team-card:hover {
    transform: translateY(-7px);
}

/* CIRCULAR IMAGES */
.team-img {
    width: 160px;
    height: 160px;
    margin: auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e00909;
    background-color: #ffffff;
    transition: 0.3s ease;
}

.team-img:hover {
    background-color: #ffe5e5;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin: 15px 0 5px;
    font-size: 20px;
    font-weight: 600;
}

.role {
    color: #666;
    font-size: 14px;
}

/* RESPONSIVE */
@media(max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-img {
        width: 130px;
        height: 130px;
    }
}

/* POPUP BIO */
.bio-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: 9999;
    overflow-y: auto;
}

.bio-box {
    background: #fff;
    padding: 25px;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    position: relative;
    margin: auto;
    box-sizing: border-box;
}

.bio-box h3 {
    margin-bottom: 2px !important;
}

.bio-box p.role {
    margin-top: 0 !important;
}

.bio-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

@media(max-width: 576px) {
    .bio-box {
        padding: 20px;
        max-width: 90%;
    }
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}
</style>