
/* Estilos gerais para todos os carrosseis */
.custom-carousel-wrapper {
    position: relative;
    width: 100%;
}

.custom-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.custom-carousel .carousel-item {
    flex: 0 0 calc(25% - 10px); /* Default: 4 banners por linha */
    margin-right: 10px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: center;
    position: relative;
}

.custom-carousel .carousel-item img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s, filter 0.3s;
}

.custom-carousel .carousel-item:hover img {
    filter: brightness(0.8);
    transform: scale(1.05);
}

.custom-carousel .carousel-item.grayscale img {
    filter: grayscale(100%);
}

.custom-carousel-wrapper .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.custom-carousel-wrapper .arrow.left {
    left: -20px;
}

.custom-carousel-wrapper .arrow.right {
    right: -10px;
}

.custom-carousel-wrapper .arrow i {
    font-size: 20px;
}

.custom-carousel-wrapper .arrow:hover {
    background-color: rgba(255, 255, 255, 0.295);
    color: black;
}

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

.custom-carousel .lock-icon,
.custom-carousel .hourglass-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
}

.custom-carousel .lock-icon,
.custom-carousel .hourglass-icon {
    color: #4a4a4a;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.hide-comments {
    display: none !important;
}

/* Mobile: 2 cards por linha */
@media (max-width: 768px) {
    .custom-carousel .carousel-item {
        flex: 0 0 calc(50% - 10px);
    }
    .custom-carousel-wrapper .arrow.left {
        left: -15px;
    }
    .custom-carousel-wrapper .arrow.right {
        right: -5px;
    }
}

/* Estilos específicos para carrossel de aulas */
.lesson-carousel-wrapper .lesson-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.lesson-carousel-wrapper .lesson-carousel .carousel-item {
    flex: 0 0 auto;
    width: 230px;
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.lesson-carousel-wrapper .lesson-carousel .carousel-item img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}