/* Team Component Styles */

.team {
    border-top: 1px solid var(--color-primary-lightest);
}

.team-header {
    text-align: center;
    margin-bottom: var(--spacing-16);
}

.team-carousel {
    margin-bottom: var(--spacing-8);
    position: relative;
}

.team-members {
    display: grid;
    gap: var(--spacing-16);
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.team-member {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.team-member.show {
    opacity: 1;
    transform: translateY(0);
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: var(--spacing-4);
    object-fit: cover;
}

.team-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    color: var(--color-primary);
    margin-bottom: var(--spacing-2);
}

.team-position {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-tight);
    color: var(--color-primary-light);
}

.team-navigation {
    display: flex;
    justify-content: center;
    gap: var(--spacing-4);
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    transform: scale(1);
}

.nav-arrow:hover {
    background-color: var(--color-gray-50);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.nav-arrow:disabled:hover {
    background-color: transparent;
    transform: scale(1);
    box-shadow: none;
}

.nav-arrow-img {
    width: 20px;
    height: 20px;
}

/* Desktop: 6 persons in one line */
@media (min-width: 1200px) {
    .team-members {
        height: 216px;
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Tablet: 6 persons in 2 lines (3x2) */
@media (min-width: 768px) and (max-width: 1199px) {
    .team-members {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

/* Mobile: 4 persons in 2 lines (2x2) */
@media (max-width: 767px) {
    .team-members {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: var(--spacing-8);
        min-height: 300px;
    }
    
    .team-member {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .team-avatar {
        width: 80px;
        height: 80px;
    }
    
    .team-name {
        font-size: var(--font-size-xs);
    }
    
    .team-position {
        font-size: 10px;
    }
}