
.team-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-bottom: 4px solid var(--theme-color);
}

.team-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-bottom-color: var(--highlight-color); 
}

.img-wrapper {
    width: 100%;
    overflow: hidden;
    height: 300px; 
    position: relative;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.6s ease;
}

.team-card:hover img {
    transform: scale(1.08); 
}

.card-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.member-name a {
    text-decoration: none;
    color: inherit;
}

.team-card:hover .member-name {
    color: var(--theme-color);
}

.member-role {
    font-size: 0.85rem;
    color: var(--theme-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.member-role::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--highlight-color);
    margin: 8px auto 0;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-color);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.social-icons a:hover {
    background-color: var(--theme-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 79, 148, 0.3);
}

.social-icons a[href*="facebook"]:hover {
    background-color: #1877F2; 
}
.social-icons a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
}



@media (max-width: 767px) {
    .team-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-content {
        padding: 20px 15px;
    }
    
    .img-wrapper {
        height: 250px; 
    }
    
    .member-name {
        font-size: 1.1rem;
    }
}