/* Slider Container */
.lessons {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.lessons::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.lessons {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Individual Lesson Cards */
.lesson {
    flex: 0 0 300px;
    min-width: 300px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lesson {
        flex: 0 0 calc(100vw - 3rem);
        min-width: calc(100vw - 3rem);
    }

    .lessons {
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .lesson {
        flex: 0 0 calc(100vw - 2.5rem);
        min-width: calc(100vw - 2.5rem);
    }

    .lessons {
        padding: 0.5rem;
    }
}

/* Optional: Add some visual feedback for scrollable area */
.lessons::after {
    content: '';
    flex: 0 0 1px;
    min-width: 1px;
}

/* Smooth transition for images */
.lesson-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Optional: Add padding to container for better edge visibility */
#about-us {
    overflow: hidden;
}

.about-us-describtion-wrapper {
    margin-bottom: 2rem;
}