.team-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.team-member {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.member-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.member-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.member-info {
    flex: 1;
    text-align: left;
}

.team-member h3 {
    color: #333;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.team-member .position {
    color: #666;
    font-size: 0.9rem;
    margin: 4px 0 0 0;
}

.member-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.follow-button {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #E1306C;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.follow-button::before {
    content: '\f16d';
    font-family: 'Font Awesome 5 Brands';
    font-size: 1rem;
}

.follow-button:hover {
    background: #C13584;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .team-grid {
        justify-content: center;
    }
    
    .team-member {
        flex: 0 1 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .team-member {
        flex: 0 1 100%;
    }
}
