/* Área do carrossel */
.carousel {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* o que corrige o problema */
    overflow: hidden;
}

.container-carrossel{
    color: white;
    text-align: center;
}

/* trilho com um card por vez */
.carousel .track {
    display: flex;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

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

/* cada card ocupa 100% da área visível */
.carousel .item {
    scroll-snap-align: center;
    min-width: 100%;
    width: 100%;
    padding: 2rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel blockquote {
    text-align: center;
    max-width: 80%;
}
.item p {
    font-weight: 200;
    font-style: italic;
}
.autor {
    display: flex;
    align-items: center;
    justify-self: center;
    color: #fff;
    gap: 5px;
    font-weight: 500;
}
.autor svg {
    height: 17px;
    width: auto;
}
/* BOTÕES */
.carousel .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 89, 138, .2);
    color: #00598a;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.carousel .nav:hover {
    background: #00598a;
    color: white;
}

/* Agora os botões estão dentro do container, SEM NEGATIVOS */
.carousel .prev {
    left: 10px;
}

.carousel .next {
    right: 10px;
}

/* INDICADORES */
.carousel .indicators {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
}

.carousel .dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
}

.carousel .dot.active {
    background: #00598a;
}
