.our-teams-wrapper {
    margin: 3rem 0;
}

.team-member-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

/* Horizontal Layout Specific Styles */
.our-teams-wrapper.layout-horizontal .team-member-card {
    height: 220px;
}

.our-teams-wrapper.layout-horizontal .team-member-image-wrapper {
    border-radius: 15px 0 0 15px;
    height: 100%;
}

.our-teams-wrapper.layout-horizontal .team-member-image {
    object-fit: cover;
    transition: all 0.5s ease;
}

.our-teams-wrapper.layout-horizontal .team-member-card:hover .team-member-image {
    transform: scale(1.05);
}

/* Image Overlay Effects */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member-card:hover .image-overlay {
    opacity: 1;
}

/* Social Icons */
.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member-card:hover .social-overlay {
    opacity: 1;
}

.team-member-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.email {
    background: #6c757d;
}

.social-link:hover {
    transform: scale(1.15) translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Content Area Styles */
.team-member-name {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.team-member-position {
    font-size: 1rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member-department {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.team-member-bio {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #5d6d7e;
}

.team-member-contact {
    border-top: 1px solid #ecf0f1;
    padding-top: 0.75rem;
}

.team-member-social-content {
    margin-bottom: 1rem;
}

.team-member-social-content .team-member-social {
    justify-content: flex-start;
    gap: 8px;
}

.team-member-social-content .social-link {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .our-teams-wrapper.layout-horizontal .team-member-card {
        height: auto;
    }
    
    .our-teams-wrapper.layout-horizontal .team-member-image-wrapper {
        height: 200px;
        border-radius: 15px 15px 0 0;
    }
    
    .team-member-social-content {
        display: block !important;
        text-align: center;
    }
    
    .team-member-social-content .team-member-social {
        justify-content: center;
    }
    
    .team-member-name {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .team-member-position,
    .team-member-department {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .our-teams-wrapper.layout-horizontal .team-member-image-wrapper {
        height: 180px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.our-teams-wrapper .row {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card body alignment */
.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}