/* 1. Layout Containers (Grid & Carousel)
   ------------------------------------------- */
.sifency-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.sifency-carousel-wrapper {
    position: relative;
}

.sifency-carousel-wrapper .swiper-slide {
    height: auto;
}


/* 2. The Team Member Card
   ------------------------------------------- */
.sifency-team-item {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* 4. The Image Area & The Hover Overlay
   ------------------------------------------- */
.sifency-team-item__image {
    position: relative;
}
.sifency-team-item__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.6);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.35s ease;
}
.sifency-team-item:hover .sifency-team-item__image::before {
    opacity: 1;
}
.sifency-team-item__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.sifency-team-item:hover .sifency-team-item__image img {
    transform: scale(1.05);
}
/* 5. The Content Area (Name & Position)
   ------------------------------------------- */
.sifency-team-item__content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sifency-team-item__name {
    margin: 0 0 5px;
    font-size: 1.3em;
    font-weight: 600;
}

.sifency-team-item__name a {
    text-decoration: none;
    color: #212529;
    transition: color 0.3s ease;
}
.sifency-team-item__name a:hover {
    color: var(--sifency-addons-themecolor);
}

.sifency-team-item__position {
    font-size: 0.9em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* 6. The "Reveal on Hover" Social Icons
   ------------------------------------------- */
.sifency-team-item__social {
    /* Position over the image */
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    
    /* Animation setup */
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 0.35s ease, transform 0.35s ease;
    
    /* Layout for the icons */
    display: flex;
    gap: 12px;
}

.sifency-team-item:hover .sifency-team-item__social {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Individual icon styling */
.sifency-team-item__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sifency-team-item__social a:hover {
    background-color: var(--sifency-addons-themecolor);
    transform: translateY(-3px);
}