.team-outer-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(to bottom, white 50%, #f5f5f5 50%);
    z-index: 20;
    padding: 120px 0;
}

.team-sectionmodern {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.header-teammodern {
    width: 50%;
    margin: auto;
    text-align: center;
    margin-bottom: 60px;
}

.title-center {
    font-size: 40px;
    font-weight: 600;
    color: #024248;
    line-height: 1.2;
    margin-bottom: 10px;
}

.header-teammodern p {
    font-size: 1.5rem;
    color: #333840;
    max-width: 800px;
    margin: 0 auto;
}

.team-containermodern {
    position: relative;
    padding: 0;
    max-width: 1142px;
    margin: auto;
}

.team-row-wrapper {
    width: 100%;
    padding: 0 40px;
    overflow: hidden;
    position: relative;
}

.team-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0;
    -ms-overflow-style: none;  /* Esconde scrollbar no IE e Edge */
    scrollbar-width: none;  /* Esconde scrollbar no Firefox */
    /* Configuração para mostrar parcialmente os cards adjacentes */
    width: calc(100% + 160px);
    margin: 0 -80px;
    padding: 0 80px;
}

/* Esconde scrollbar no Chrome e Safari */
.team-row::-webkit-scrollbar {
    display: none;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* Por padrão, escondemos a seta esquerda */
.arrow-left {
    left: -30px;
    display: none;
}

.arrow-right {
    right: -30px;
}

.arrow svg {
    width: 20px;
    height: 20px;
}

.team-membermodern {
    flex: 0 0 auto;
    width: 270px;
    margin-bottom: 20px;
}

.member-photo {
    width: 100%;
    height: 320px;
    background-color: #f5f5f5;
    margin-bottom: 13px;
    object-fit: cover;
    border-radius: 20px;
}

.member-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #434A54;
}

.member-role {
    font-size: 16px;
    color: #434A54;
    padding-bottom: 20px;
}

/* Estilos responsivos para mobile */
@media (max-width: 768px) {
    .team-outer-wrapper {
        padding: 60px 0;
    }
    
    .header-teammodern {
        width: 90%;
        margin-bottom: 40px;
    }
    
    .title-center {
        font-size: 30px;
    }
    
    .header-teammodern p {
        font-size: 1.1rem;
    }
    
    .team-row-wrapper {
        padding: 0 20px;
    }
    
    .team-row {
        /* Melhorar a experiência de swipe para mobile */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 15px;
        width: calc(100% + 80px);
        margin: 0 -40px;
        padding: 0 40px;
    }
    
    .team-membermodern {
        width: 240px;
        scroll-snap-align: center;
    }
    
    .member-photo {
        height: 280px;
    }
    
    /* Escondendo completamente as setas em mobile */
    .arrow {
        display: none !important;
    }
}