/* ============================================
   TEAM SLIDER STYLES (No Desktop Controls)
   ============================================ */

.team-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0; /* No padding needed - no arrow buttons */
}

.team-slider {
    display: flex;
    align-items: stretch;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 32px;
}

.team-section {
    padding: 80px 0;
}

.team-slide {
    flex: 0 0 calc(33.333% - 21.333px); /* 3 slides visible - accounting for gap */
    min-width: 0;
}

.team-member-card {
    text-align: center;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
    border-color: #d1d3d6;
}

.team-member-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member-card:hover::after {
    opacity: 1;
}

.team-member-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

/* Slider Dots (Mobile Only) */
.slider-dots {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.slider-dot:hover {
    background: rgba(99, 102, 241, 0.6);
    transform: scale(1.2);
}

/* Member Image */
.member-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: clamp(260px, 26vw, 400px);
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.4s ease;
}

.team-member-card:hover .image-placeholder img {
    transform: scale(1.05);
}

/* Fallback for when no image is present */
.image-placeholder:not(:has(img)) {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 120px;
    font-weight: 700;
}

.team-info {
    padding: 20px 18px;
    position: relative;
    z-index: 1;
}

.team-member-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 700;
}

.role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.bio {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 968px) {
    .team-slide {
        flex: 0 0 calc(50% - 16px); /* 2 slides visible on tablet */
    }
    
    .member-image {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .team-slider {
        gap: 0; /* Remove gap on mobile */
    }
    
    .team-slide {
        flex: 0 0 100%; /* 1 slide visible on mobile */
        padding: 0 20px; /* Add padding to slide instead */
    }
    
    /* Show dots on mobile */
    .slider-dots {
        display: flex;
    }
    
    .member-image {
        height: 500px;
    }
    
    .team-info {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .team-slide {
        padding: 0 10px;
    }
    
    .member-image {
        height: 450px;
    }
    
    .team-member-card h3 {
        font-size: 22px;
    }
    
    .role {
        font-size: 14px;
    }
    
    .bio {
        font-size: 14px;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .team-slider {
        transition: none;
    }
    
    .slider-dot {
        transition: none;
    }
}