/*
|--------------------------------------------------------------------------
| Learning Content Core
| Dynamic Lesson Sidebar
|--------------------------------------------------------------------------
*/


.lcc-learning-sidebar {
    width: 100%;
    font-size: 15px;
    line-height: 1.45;
}


/*
|--------------------------------------------------------------------------
| Sidebar Header
|--------------------------------------------------------------------------
*/

.lcc-sidebar-header {
    padding: 14px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}


.lcc-sidebar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.65;
}


.lcc-sidebar-class {
    margin-top: 3px;
    font-size: 20px;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Details / Summary
|--------------------------------------------------------------------------
*/

.lcc-learning-sidebar details > summary {
    list-style: none;
    cursor: pointer;
}


.lcc-learning-sidebar details > summary::-webkit-details-marker {
    display: none;
}


/*
|--------------------------------------------------------------------------
| Subject
|--------------------------------------------------------------------------
*/

.lcc-subject {
    margin: 0;
    border-bottom: 1px solid #eeeeee;
}


.lcc-subject-title {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 11px 14px;

    font-weight: 700;

    user-select: none;
}


.lcc-subject-title:hover {
    background: #f7f7f7;
}


/*
|--------------------------------------------------------------------------
| Chapter
|--------------------------------------------------------------------------
*/

.lcc-chapters {
    padding: 0 8px 6px 24px;
}


.lcc-chapter {
    margin: 0;
}


.lcc-chapter-title {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 8px;

    font-size: 14px;
    font-weight: 600;
}


.lcc-chapter-title:hover {
    background: #f7f7f7;
}


/*
|--------------------------------------------------------------------------
| Arrow
|--------------------------------------------------------------------------
*/

.lcc-arrow {
    width: 13px;
    height: 13px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


.lcc-arrow span {
    width: 0;
    height: 0;

    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;

    transition: transform 0.2s ease;
}


details[open] > summary .lcc-arrow span {
    transform: rotate(90deg);
}


/*
|--------------------------------------------------------------------------
| Lessons
|--------------------------------------------------------------------------
*/

.lcc-lessons {
    list-style: none;

    margin: 0;
    padding: 0 0 6px 28px;
}


.lcc-lesson {
    margin: 0;
    padding: 0;
}


.lcc-lesson a {
    display: block;

    padding: 6px 9px;

    text-decoration: none;

    border-left: 2px solid transparent;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}


.lcc-lesson a:hover {
    background: #f5f5f5;
}


/*
|--------------------------------------------------------------------------
| Current Lesson
|--------------------------------------------------------------------------
*/

.lcc-lesson.is-current a {
    font-weight: 700;

    border-left-color: currentColor;

    background: #f5f5f5;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .lcc-sidebar-header {
        padding: 12px 14px;
    }


    .lcc-sidebar-class {
        font-size: 18px;
    }


    .lcc-subject-title {
        padding: 12px;
    }


    .lcc-chapters {
        padding-left: 18px;
    }


    .lcc-lessons {
        padding-left: 22px;
    }

}