/* Tutor LMS Carousel Widget Styles */
.tutor-lms-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tutor-carousel-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.tutor-carousel-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tutor-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.tutor-carousel-card {
    flex: 0 0 auto;
    position: relative;
    aspect-ratio: 16/9;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tutor-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tutor-course-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.tutor-course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutor-carousel-card:hover .tutor-course-overlay {
    opacity: 1;
}

.tutor-course-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.tutor-carousel-card:hover .tutor-course-content {
    transform: translateY(0);
}

.tutor-course-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tutor-progress-wrapper {
    margin-bottom: 15px;
}

.tutor-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tutor-progress-filled {
    height: 100%;
    background-color: #a9d818;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.tutor-progress-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tutor-continue-btn {
    background-color: #a9d818;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(169, 216, 24, 0.3);
    position: relative;
    overflow: hidden;
}

.tutor-continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tutor-continue-btn:hover::before {
    left: 100%;
}

.tutor-continue-btn:hover {
    background-color: #8bc616;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(169, 216, 24, 0.4);
}

.tutor-continue-btn:active {
    transform: translateY(0);
}

/* Navigation Arrows */
.tutor-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tutor-carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.tutor-carousel-prev {
    left: 10px;
}

.tutor-carousel-next {
    right: 10px;
}

/* Dots */
.tutor-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
}

.tutor-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutor-carousel-dot.active {
    background-color: #a9d818;
    transform: scale(1.2);
}

/* Loading State */
.tutor-carousel-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
    font-size: 16px;
}

.tutor-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #a9d818;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tutor-carousel-card {
        min-width: 280px;
    }
    
    .tutor-course-title {
        font-size: 16px;
    }
    
    .tutor-continue-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .tutor-carousel-wrapper {
        gap: 15px;
        padding: 0 10px;
    }
    
    .tutor-carousel-card {
        min-width: 250px;
    }
    
    .tutor-course-overlay {
        padding: 15px;
    }
    
    .tutor-course-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .tutor-continue-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .tutor-carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .tutor-carousel-prev {
        left: 5px;
    }
    
    .tutor-carousel-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .tutor-carousel-card {
        min-width: 220px;
    }
    
    .tutor-course-overlay {
        padding: 12px;
    }
    
    .tutor-course-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .tutor-progress-wrapper {
        margin-bottom: 12px;
    }
    
    .tutor-continue-btn {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 20px;
    }
    
    /* Hide navigation arrows on very small screens */
    .tutor-carousel-nav {
        display: none;
    }
}

/* High-DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .tutor-course-thumbnail {
        background-size: cover;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .tutor-carousel-wrapper,
    .tutor-carousel-card,
    .tutor-course-overlay,
    .tutor-course-content,
    .tutor-continue-btn,
    .tutor-carousel-nav {
        transition: none;
    }
    
    .tutor-loading-spinner {
        animation: none;
    }
}

/* Focus States for Accessibility */
.tutor-continue-btn:focus,
.tutor-carousel-nav:focus {
    outline: 2px solid #a9d818;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tutor-carousel-title {
        color: #ffffff;
    }
    
    .tutor-carousel-loading {
        color: #cccccc;
    }
}

/* Print Styles */
@media print {
    .tutor-lms-carousel-container {
        display: none;
    }
}