/**
 * ST Team Carousel — Frontend Styles
 *
 * CSS puro, sem dependências externas.
 * Projetado para funcionar dentro de seções do Elementor
 * sem conflitar com estilos do tema ou de outros plugins.
 *
 * @version 1.1.0
 */

/* ═══════════════════════════════════════════════
 * Wrapper — se adapta ao container do Elementor
 * ═══════════════════════════════════════════════ */
.st-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    font-family: inherit;
}

.st-carousel-wrapper *,
.st-carousel-wrapper *::before,
.st-carousel-wrapper *::after {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════
 * Trilha do Carrossel
 * ═══════════════════════════════════════════════ */
.st-carousel-track {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 2rem 1.5rem;

    /* Esconde scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.st-carousel-track::-webkit-scrollbar {
    display: none;
}

/* ═══════════════════════════════════════════════
 * Card
 * ═══════════════════════════════════════════════ */
.st-carousel-card {
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    background-color: var(--st-card-color, #3b9f4a);
    scroll-snap-align: start;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Imagem do membro */
.st-carousel-card__image {
    width: 100%;
    height: 340px;
    overflow: hidden;
    background-color: #e2e8f0;
    line-height: 0;
}

.st-carousel-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100%;
    border: none;
    box-shadow: none;
}

.st-carousel-card:hover .st-carousel-card__image img {
    transform: scale(1.05);
}

/* Espaço verde inferior */
.st-carousel-card__spacer {
    height: 70px;
    width: 100%;
}

/* Caixa branca com nome e função */
.st-carousel-card__info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #ffffff;
    padding: 0.75rem 0.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.st-carousel-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--st-card-color, #3b9f4a);
    line-height: 1.2;
    margin: 0 0 2px 0;
    padding: 0;
}

.st-carousel-card__role {
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.2;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════════════
 * Botões de Navegação
 * ═══════════════════════════════════════════════ */
.st-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: none; /* Hidden by default, shown on md+ */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.st-carousel-btn:hover {
    color: var(--st-card-color, #3b9f4a);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.st-carousel-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 159, 74, 0.4);
}

/* Botões DENTRO do container (não para fora) */
.st-carousel-btn--left {
    left: 8px;
}

.st-carousel-btn--right {
    right: 8px;
}

.st-carousel-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
 * Instrução Mobile
 * ═══════════════════════════════════════════════ */
.st-carousel-hint {
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

/* ═══════════════════════════════════════════════
 * Responsivo
 * ═══════════════════════════════════════════════ */
@media (min-width: 768px) {
    /* Mostra botões no desktop */
    .st-carousel-btn {
        display: flex;
    }

    /* Esconde dica de swipe no desktop */
    .st-carousel-hint {
        display: none;
    }
}
