/* =====================================================
   SINGLE COURSE HEADER
===================================================== */

.single-course .course-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.single-course .course-title {
    font-size: 2rem;
    margin: 0;
}

.single-course .lessons-toggle {
    margin: 0;
}

@media (max-width: 767px) {
    .single-course .course-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================
   LESSONS PANEL
===================================================== */

.single-course .lessons-panel {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;

    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    overflow-y: auto;

    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;

    padding: 18px 16px 22px;
}

.single-course .lessons-panel.open {
    transform: translateY(0);
}

/* Desktop: slide from right */
@media (min-width: 768px) {
    .single-course .lessons-panel {
        width: min(44vw, 640px);
        left: auto;
        right: 0;
        transform: translateX(100%);
    }

    .single-course .lessons-panel.open {
        transform: translateX(0);
    }
}

.single-course .lessons-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.10);
}

/* ✅ FIX 1: align the X perfectly in the circle */
.single-course .lessons-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.9);
    color: rgba(0,0,0,0.85);
    font-size: 26px;
    cursor: pointer;

    /* alignment fixes */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

/* =====================================================
   LESSON CARDS (PANEL)
===================================================== */

.single-course .lessons-panel .lessons-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.single-course .lessons-panel .lesson-card {
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.single-course .lessons-panel .lesson-card a {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

