.carousel-card {
    width: 100%;
    margin: 0px auto;
    padding: 16px 7%;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin-top: 0;
}

.carousel-title {
    text-align: justify;
    font-size: 16px;
    font-weight: 600;
    color: #181818;
    margin-bottom: 12px;
    opacity: 1;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
}

.slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    touch-action: pan-y;
}

/* Radios invisíveis */
.slider input[type=radio] {
    display: none;
}

/* Slides */
.slides {
    position: relative;
    padding: 0;
}

.overflow {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.slides .inner {
    width: calc(100% * 4); /* 6 slides */
    height: clamp(300px, 50vw, 700px);
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* Slide individual */
.slides .slide {
    width: calc(100% / 4);
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* Overlay no rodapé */
.slides .slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0)
    );

    opacity: 0.85;
    transition: opacity 0.4s ease;
    pointer-events: none;
    will-change: opacity;
}

.testemunhos iframe { 
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Imagens */
.registros .slide_1 { background-image: url(../IMG/2021.JPG); }
.registros .slide_2 { background-image: url(../IMG/2022.jpg); }
.registros .slide_3 { background-image: url(../IMG/2023.jpg); }
.registros .slide_4 { background-image: url(../IMG/2025.jpg); }

.formaturas .slide_1 { background-image: url(../IMG/2021.jpeg); }
.formaturas .slide_2 { background-image: url(../IMG/2022.jpg); }
.formaturas .slide_3 { background-image: url(../IMG/2023.jpg); }
.formaturas .slide_4 { background-image: url(../IMG/2024.jpeg); }
.formaturas .slide_5 { background-image: url(../IMG/2025.jpeg); }

/* Bullets */
.bullets {
    margin-top: 12px;
    text-align: center;
}

.bullets label {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: #ccc;
    margin: 0 6px;
    transition: background-color 0.4s ease, transform 0.3s ease;
}

.carousel-arrow {
    display: none;
}

@media (min-width: 900px) {

    .testemunhos h1 {
        margin-top: -2rem;
    }

    /* Sections alinhadas ao layout da página */
    section.testemunhos,
    section.registros,
    section.formaturas {
        padding: 0 6%;
        padding-top: 4rem;
    }
    section.formaturas {
        padding-bottom: 2rem;
    }

    /* Caixa externa do carrossel */
    .carousel-card {
        width: 100%;
        padding: 4rem 10%;
        background: #f2f5f781;
        border-radius: 15px;
        box-shadow: none;
    }

    .carousel-title {
        font-size: 2.5rem;
    }

    /* Estrutura do slider */
    .slider,
    .overflow {
        width: 100%;
        max-width: 100%;
        margin: 0;
        position: relative;
    }

    .slides .slide {
        width: calc(100.07% / 4);
        border-radius: 0;
    }

    /* Bullets */
    .bullets {
        display: block;
        margin-top: 2rem;
    }

    /* Setas */
    .carousel-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%) translateZ(0);
        width: 56px;
        height: 56px;
        padding: 0;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 20;
        user-select: none;
        transition: background 0.3s ease, transform 0.2s ease;
    }

    .carousel-arrow i {
        font-size: 2.2rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .carousel-arrow.left {
        left: -64px;
    }

    .carousel-arrow.right {
        right: -64px;
    }

    .carousel-arrow.left i {
        transform: translateX(-2px);
    }

    .carousel-arrow.right i {
        transform: translateX(2px);
    }

    .carousel-arrow:hover {
        background: #820101;
    }

    /* animação vai para o ícone */
    .carousel-arrow i {
        transition: transform 0.2s ease;
    }

    .carousel-arrow.left:hover i {
        transform: translateX(-2px) scale(1.15);
    }

    .carousel-arrow.right:hover i {
        transform: translateX(2px) scale(1.15);
    }

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

