/* --- Custom Team Card Wrapper --- */
.custom-team-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f8f8f8; /* Fallback background */
}

/* --- Image Styling --- */
.team-image {
    width: 100%;
    height: 420px; /* Adjust height to match your desired aspect ratio */
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; 
    display: block;
    /* Add this line for a smooth animation */
    transition: transform 0.5s ease;
}
.custom-team-card:hover .team-image img {
    /* Zooms the image in by 10% on hover */
    transform: scale(1.1); 
}
/* --- Info Overlay Container --- */
.team-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%; /* Controls how far across the image the boxes stretch */
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* --- White Name Box --- */
.team-name-box {
    background-color: #ffffff;
    padding: 15px 25px;
}

.team-name-box h3 {
    margin: 0;
    color: #111111;
    font-size: 20px;
    font-weight: 500;
}

/* --- Black Position Box --- */
.team-position-box {
    background-color: #151515; /* Very dark grey/black */
    padding: 12px 25px;
}

.team-position-box p {
    margin: 0;
    color: var(--color-3);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Swiper Navigation Adjustments --- */
.teamSwiper {
    padding-bottom: 60px; /* Space for arrows if they sit below */
}

.teamSwiper .swiper-button-next,
.teamSwiper .swiper-button-prev {
    color: #F26921; /* Theme color for arrows */
}