
.team-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Image Container */
.team-item .overflow-hidden {
    position: relative;
    overflow: hidden;
}

.team-item .overflow-hidden img {
    transition: transform 0.5s ease;
}

.team-item:hover .overflow-hidden img {
    transform: scale(1.1);
}

/* Default Text (Always Visible) */
.team-text {
    background: #fff;
    transition: all 0.3s ease;
}

.team-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-text span {
    font-size: 0.9rem;
}

/* Overlay Text (Shown on Hover) */
.team-text-overflow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 10;
}

.team-item:hover .team-text-overflow {
    transform: translateY(0);
}

.team-text-overflow h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.team-text-overflow p {
    font-size: 0.95rem;
}

/* Social Media Buttons */
.btn-square {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 50% !important;
}

.btn-square:hover {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-3px);
}

/* Hide default text on hover */
.team-item:hover .team-text {
    opacity: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .team-item .overflow-hidden img {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .team-item .overflow-hidden img {
        height: 350px;
    }

    .col-md-6 {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .team-text-overflow {
        position: static;
        transform: translateY(0) !important;
        margin-top: 1rem;
    }

    .team-item:hover .team-text {
        opacity: 1;
    }
}

/* Animation for WOW.js */
.wow {
    visibility: hidden;
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
