/* Estilos gerais */
.team-container {
    width: 100%;
    height: 800px; /* Aumentado para acomodar cards maiores */
}

.team-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

h1 {
    display: inline-block;
    margin-right: 20px;
    color: #211E7E;
    text-align: center;
    font-family: Montserrat;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: normal; 
}

.header-divider {
    display: inline-block;
    width: 80%; 
    height: 20px;
    background-color: #211E7E;
}

.team-main {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
}

.member-image-large {
    display: flex;
    justify-content: center;
    margin-left: 30px;
    margin-right: 10%;
    width: 400px; /* Aumentado */
    height: 500px; /* Aumentado */
    background-color: #2E71B9;
    border-radius: 30px 30px 0px 0px;
    position: relative;
    overflow: hidden;
}

.member-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px 30px 0px 0px;
}

.member-description-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 30px;
    margin-right: 10%;
    width: 400px; /* Aumentado */
    height: 100px; /* Aumentado */
    border-radius: 0px 0px 30px 30px;
    background: #211E7E;
}

.member-description-large h2 {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 18px; /* Aumentado */
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.member-description-large span {
    color: #FFF;
    font-family: Montserrat;
    font-size: 16px; /* Aumentado */
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.carousel-wrapper {
    width: 100%; /* Ajustado para 100% da largura */
    overflow: hidden; /* Esconde o conteúdo que está fora da área visível */
    position: relative;
    margin: auto;
}

.carousel-items {
    display: flex; /* Alinha os itens em uma linha horizontal */
    transition: transform 0.5s ease-in-out; /* Suaviza a transição */
}

.carousel-item {
    flex: 0 0 calc(33.33% - 10px); /* Ajustado para mostrar 3 itens por vez, ocupando 1/3 do container, menos a margem */
    max-width: calc(33.33% - 10px); /* Ajustado para mostrar 3 itens por vez, ocupando 1/3 do container, menos a margem */
    margin-right: 10px; /* Espaço de 10px entre os cards */
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box; /* Garante que padding e border sejam inclusos no width */
}

.member-image-small {
    width: 100%; /* Ajustado para preencher o item flexível */
    height: 500px; /* Aumentado */
    background-color: #2E71B9;
    border-radius: 15px 15px 0px 0px;
    overflow: hidden;
    position: relative;
}

.member-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0px 0px;
}

.member-description-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ajustado para preencher o item flexível */
    height: 100px; /* Aumentado */
    border-radius: 0px 0px 15px 15px;
    background: #211E7E;
}

.member-description-small h2 {
    color: #FFF;
    text-align: center;
    font-family: Montserrat;
    font-size: 18px; /* Aumentado */
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.member-description-small span {
    color: #FFF;
    font-family: Montserrat;
    font-size: 16px; /* Aumentado */
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev-control {
    left: 0;
}

.next-control {
    right: 0;
}

/* Responsividade para tablets */
@media (max-width: 1500px) and (min-width: 769px) {
    .team-container,
    .team-main,
    .member-image-large,
    .member-description-large,
    .carousel-wrapper {
        display: none;
    }
}    

/* Responsividade para celulares */
@media (max-width: 768px) {
    .team-container,
    .team-main,
    .member-image-large,
    .member-description-large,
    .carousel-wrapper {
        display: none;
    }
}
