/* Container for the image area */
.team-wrap {
    position: relative;
    overflow: hidden; /* Important: clips the overlay when it's outside */
    background-color: #2d7a44;
}

.team-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

/* The Overlay styling */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 122, 68, 0.85); /* Semi-transparent black */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Animation: Initial state is pushed up 100% */
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Action: Slide into view */
.team-wrap:hover .team-overlay {
    transform: translateY(0);
}

/* Style for the 'VIEW DETAILS' link to look like a button */
.btn-view-details {
    color: #fff !important;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view-details:hover {
    background: #fff;
    color: #000 !important;
}

/* Optional: Slight zoom on image when hovering */
.team-wrap:hover img {
    transform: scale(1.05);
}