.team-section {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.team-header {
    margin-bottom: 40px;
}

.team-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 8px;
}

.team-header p {
    font-size: 16px;
    color: #718096;
    max-width: 450px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 25px;
}

.team-member-card {
    background-color: #F7F8FC;
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.team-member-card:hover {
    box-shadow: 0 6px 20px rgba(112, 130, 131, 0.40);
    transition: box-shadow 0.3s ease-in-out;

}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.member-intro {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.member-details .name-role {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.member-details .name {
    font-weight: 600;
    color: #2D3748;
}

#team-email {
    font-size: 20px;
    margin-top: 4px;
}
.member-details .role-divider,
.member-details .role-text {
    font-size: 0.9em;
    /* Slightly smaller for role */
    color: #718096;
    /* Medium Gray for role */
}

.member-details .role-divider {
    margin: 0 4px;
}


.social-links {
    display: flex;
    gap: 12px;
    margin-top: 2px;
    /* Align with top of name if avatar is slightly larger */
}

.social-links a {
    color: #A0AEC0;
    /* Light Gray for icons */
    text-decoration: none;
    display: inline-block;
}

.social-links a:hover {
    color: #7C3AED;
    /* Purple on hover */
}

.social-icon {
    width: 20px;
    height: 20px;
}

.member-bio p {
    font-size: 14px;
    line-height: 1.6;
    color: #4A5568;
    /* Gray for bio text */
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-header h2 {
        font-size: 24px;
    }

    .team-header p {
        font-size: 15px;
    }

    .member-details .name-role {
        font-size: 14px;
    }

    .member-bio p {
        font-size: 13px;
    }
}