/* Team Carousel Widget */
.team-carousel-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.team-carousel-track-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 30px 0;
    margin: -30px 0;
}

.team-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.team-carousel-slide {
    flex: 0 0 33.333%;
    padding: 20px 10px;
    box-sizing: border-box;
    transition: opacity 0.4s ease;
}

/* Card */
.team-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    transform-origin: center center;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.team-carousel-slide.is-center .team-card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Card Title */
.team-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* Card Description */
.team-card-desc {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
    flex: 1;
}

.team-card-desc ul {
    margin: 0;
    padding-left: 18px;
}

.team-card-desc li {
    margin-bottom: 4px;
}

/* Divider */
.team-card-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

/* Avatar */
.team-card-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.team-card-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Name & Position */
.team-card-info {
    text-align: center;
}

.team-card-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.team-card-position {
    display: inline;
    font-size: 13px;
}

/* Navigation Arrows */
.team-carousel-prev,
.team-carousel-next {
    flex-shrink: 0;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.team-carousel-prev:hover,
.team-carousel-next:hover {
    opacity: 0.6;
}

.team-carousel-prev svg,
.team-carousel-next svg {
    width: 32px;
    height: 32px;
}

.team-carousel-prev img,
.team-carousel-next img {
    width: 32px;
    height: 32px;
}

/* Dots */
.team-carousel-dots {
    flex-basis: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.team-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.team-carousel-dot.is-active {
    background-color: #333;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 991px) {
    .team-carousel-wrapper {
        display: block;
    }

    .team-carousel-prev,
    .team-carousel-next {
        display: none;
    }

    .team-carousel-dots {
        display: none;
    }

    .team-carousel-track-wrapper {
        overflow: visible;
        padding: 0;
        margin: 0;
    }

    .team-carousel-track {
        display: flex;
        flex-direction: column;
        transform: none !important;
        transition: none;
    }

    .team-carousel-slide {
        flex: none;
        width: 100%;
        padding: 10px 0;
    }

    .team-carousel-slide .team-card {
        transform: none !important;
    }
}
