/**
 * LearnDash Elementor Lessons - Stylesheet
 * Version: 1.0.0
 */

/* Main container */
.ld-course-lessons-list {
    max-width: 100%;
	font-family: "yekanbakh"
}

/* Header section */
.ld-lessons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.ld-lessons-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.ld-lessons-count {
    font-size: 12px;
    color: #f7f7f7;
}

/* Lessons list */
.ld-lessons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ld-lesson-item {
    margin-bottom: 10px;
	padding: 10px;
    transition: all 0.3s ease;
}

.ld-lesson-item:last-child {
    margin-bottom: 0;
}

.ld-lesson-link {
    display: flex;
    align-items: center;
	gap: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.ld-lesson-link:hover {
    background: #03002B01;
    border-left-color: #4a90e2;
    transform: translateX(5px);
}

.ld-lesson-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-right: 10px;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    background: #FF9B26;
    border-radius: 50%;
}

.ld-lesson-title {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.ld-lesson-status {
    margin-left: 15px;
    font-size: 18px;
    color: #4caf50;
    font-weight: bold;
}

/* Completed lesson styling */
.ld-lesson-item.completed .ld-lesson-link {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.ld-lesson-item.completed .ld-lesson-number {
    background: #4caf50;
    color: #fff;
}

.ld-lesson-item.completed .ld-lesson-title {
    color: #2e7d32;
}

/* Incomplete lesson styling */
.ld-lesson-item.incomplete .ld-lesson-link {
    border-left-color: #e0e0e0;
}

/* Error and empty states */
.ld-lessons-error,
.ld-lessons-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-radius: 6px;
    margin: 20px 0;
}

.ld-lessons-error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive design */
@media (max-width: 768px) {
    .ld-course-lessons-list {
        padding: 15px;
    }
    
    .ld-lessons-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ld-lessons-title {
        font-size: 20px;
    }
    
    .ld-lesson-link {
        padding: 12px 15px;
    }
    
    .ld-lesson-number {
        min-width: 25px;
        height: 25px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .ld-lesson-title {
        font-size: 14px;
    }
}
