/* Стилі для каруселі команди */
.team-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 70px;
}

.team-carousel-inner {
    overflow: hidden;
    width: 100%;
    position: relative;
    min-height: 400px; /* Мінімальна висота, щоб контент був видимий */
}

.team-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.team-carousel-track > [id^="team_"] {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex !important;
    visibility: visible !important;
}

/* Навігаційні кнопки */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: #fff;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-btn svg {
    color: #333;
}

/* Індикатори (dots) */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Адаптивність */
@media (max-width: 1024px) {
    .team-carousel-wrapper {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .team-carousel-wrapper {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 0;
    }
    
    .carousel-next {
        right: 0;
    }
    
    .carousel-dots {
        bottom: 10px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dot.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .team-carousel-wrapper {
        padding: 0 45px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-dots {
        bottom: 5px;
    }
}

/* Анімації */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.team-carousel-wrapper {
    animation: fadeIn 0.5s ease-in;
}