.carrousel-videos-edu {
    padding: 50px 0;
    text-align: center;
    background: #f9fafb;
}

.carrousel-videos__titulo-modulo {
    font-size: 2.6rem;
    color: #012F53;
    font-weight: 250;
    margin-bottom: 45px;
}

.carrousel-videos__main {
    width: 90%;
    max-width: 900px;
    margin: 0 auto 30px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carrousel-videos__main iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.carrousel-videos__slider {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    height: 250px;
    margin: auto;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
}

.carrousel-videos__item {
    flex: 0 0 180px;
    height: 240px;
    cursor: pointer;
    scroll-snap-align: center;
    opacity: 0.9;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carrousel-videos__item-titulo-contenedor {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #ffffff;
}

.carrousel-videos__item.active {
    transform: translateY(-3px);
    opacity: 1;
}

/* Miniatura */
.carrousel-videos__thumb {
    width: 300px;
    height: 367px;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carrousel-videos__item:hover {
    transform: scale(1.02);
}

.carrousel-videos__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.carrousel-videos__thumb:hover .carrousel-videos__overlay {
    opacity: 1;
}

.carrousel-videos__play {
    font-size: 1.6rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carrousel-videos__item-titulo {
    font-size: 1.2rem;
    color: #222;
    text-align: center;
    font-weight: 300;
    line-height: 1.3;
    transition: color 0.2s ease;
    padding: 10px;
}

.carrousel-videos__item:hover .carrousel-videos__item-titulo {
    color: #0052cc;
    /* Azul institucional sobrio */
}

/* Responsive */
@media (max-width: 768px) {
    .carrousel-videos__titulo-modulo {
        font-size: 2rem;
    }

    .carrousel-videos__item {
        flex: 0 0 140px;
        height: 170px;
        width: 250px;
    }

    .carrousel-videos__item-titulo {
        font-size: 1rem;
    }

    .carrousel-videos__thumb{
        width: 250px;
    }
}

@media (max-width: 481px) {
    .carrousel-videos__titulo-modulo {
        font-size: 1.8rem;
    }

    .carrousel-videos__item {
        height: 160px;
        width: 200px;
    }

    .carrousel-videos__item-titulo {
        font-size: 0.9rem;
    }

    .carrousel-videos__thumb{
        width: 200px;
    }
}