.learndash-category-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.learndash-category-carousel {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.carousel-item {
    position: relative;
    flex: 0 0 calc(100% / 3);
    /* Ajuste dinámico para el número de elementos */
    box-sizing: border-box;
    padding: 10px;
    transition: all 0.3s ease;
}

.course-thumbnail {
    position: relative;
    width: 300px !important;
    height: 300px !important;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    /*     border: 2px solid #ccc; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-thumbnail::after {
    content: '';
    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    z-index: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semi-transparente */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 5;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.course-title {
    position: absolute;
    font-family: 'Fira Sans', sans-serif;
    color: #ffff !important;
    font-size: 16px;
    position: absolute;
    text-align: center;
    margin-top: -40px;
    margin-left: 20px;
    font-weight: 500;
    border-left: 3px solid #00A6E3;
    padding-left: 3px;
    z-index: 8;

}

/* Estilos para las flechas de navegación */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Centra tanto vertical como horizontalmente */
    font-size: 1em;
    color: #fff;
    width: 30px;
    /* Ajusta el tamaño del círculo según sea necesario */
    height: 30px;
    /* Ajusta el tamaño del círculo según sea necesario */
    cursor: pointer;
    z-index: 10;
    background: #00A6E3;
    border-radius: 50%;
    /* Asegura que sea un círculo perfecto */
    display: flex;
    justify-content: center;
    /* Centra el contenido horizontalmente */
    align-items: center;
    /* Centra el contenido verticalmente */
}

.carousel-arrow.right {
    position: absolute;
    right: 0px;
    /* Ajustar según el diseño */
}

.carousel-arrow.disabled {
    display: none;
    /* Oculta flechas cuando están deshabilitadas */
}

/* Responsividad */
@media (max-width: 900px) {
    .carousel-item {
        flex: 0 0 50%;
    }

    .course-thumbnail {
        position: relative;
        margin: 0px auto;
        width: 90% !important;
        height: auto !important;
    }
}

@media (max-width: 600px) {
    
  .learndash-category-carousel {
    display: flex;
    overflow-x: auto; /* Allows horizontal scrolling */
    transition: transform 0.3s ease-in-out;
    width: 100%;
}
    .carousel-item {
         flex: 0 0 calc(100% / var(--items-to-show, 1));
box-sizing: border-box;
    }

    .course-thumbnail {
        position: relative;
        margin: 0px auto;
        width: 90% !important;
        height: auto !important;
    }

    .course-title {
        position: absolute;
        font-family: 'Fira Sans', sans-serif;
        color: #ffff !important;
        font-size: 16px;
        position: absolute;
        text-align: center;
        margin-top: -40px;
        margin-left: 35px;
        font-weight: 500;
        border-left: 3px solid #00A6E3;
        padding-left: 3px;
        z-index: 8;

    }

}
