.team-box,
.team-box1 {
    justify-content: center
}

.team-box1,
.team-box2 {
    display: flex;
    gap: 40px
}

#team-title {
    color: var(--text-secondary);
    margin-top: 100px;
    text-align: center;
    margin-bottom: 80px
}

.team-box {
    display: flex;
    width: 100%;
    flex-direction: column
}

.team-box1 {
    margin-bottom: 20px
}

.team-box2 {
    justify-content: center;
    margin: 30px
}

.member-info {
    padding: 10px;
    text-align: center;
    background-color: var(--bg-secondary);
    border-radius: 0 0 20px 20px;
    font-family: var(--font-body)
}

.member-name {
    margin: 8px 0 4px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-heading)
}

.member-role {
    margin: 0;
    font-size: .9rem;
    color: var(--text-tertiary);
    font-family: var(--font-body)
}

.member:hover .member-info {
    background-color: var(--bg-hover)
}

.member:hover .member-name {
    color: var(--color-primary)
}

.member:hover .member-role {
    color: var(--text-secondary)
}

.member img {
    width: 15rem;
    height: 15rem;
    border-radius: 30px;
    object-fit: cover;
    object-position: center;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out
}

.member:hover img {
    transform: scale(1.05);
    margin-top: -30px
}

@media (max-width:992px) {
    #team-title {
        margin-top: 80px;
        margin-bottom: 60px;
        font-size: 2rem
    }

    .team-box1,
    .team-box2 {
        gap: 30px;
        margin-bottom: 25px
    }

    .member img {
        width: 12rem;
        height: 12rem
    }
}

@media (max-width:768px) {
    #team-title {
        margin-top: 60px;
        margin-bottom: 40px;
        font-size: 1.8rem;
        padding: 0 15px
    }

    .team-box1,
    .team-box2 {
        flex-direction: column;
        gap: 25px;
        margin: 20px 15px
    }

    .member {
        width: 100%;
        max-width: 300px;
        margin: 0 auto
    }

    .member img {
        width: 100%;
        max-width: 250px;
        height: 250px
    }

    .member-info {
        padding: 8px
    }

    .member-name {
        font-size: 1rem
    }

    .member-role {
        font-size: .85rem
    }

    .member:hover img {
        margin-top: -20px
    }
}

@media (max-width:480px) {
    #team-title {
        margin-top: 50px;
        margin-bottom: 30px;
        font-size: 1.5rem;
        padding: 0 10px
    }

    .team-box1,
    .team-box2 {
        margin: 15px 10px;
        gap: 20px
    }

    .member img {
        max-width: 200px;
        height: 200px
    }

    .member-name {
        font-size: .95rem
    }

    .member-role {
        font-size: .8rem
    }
}
