/**
 * Clinical — منطقة الطالب (my-courses وغيرها)
 */
.cl-student-area.cl-lms-bridge .cl-student-page > .container {
    max-width: 1120px !important;
}

.cl-student-page .profile-banner-area,
.cl-student-page .profile-banner-area-container {
    display: none;
}

.cl-student-page .gradient-border {
    background: linear-gradient(135deg, var(--cl-teal), var(--cl-navy-mid));
    padding: 2px;
    border-radius: var(--cl-radius);
}

.cl-student-page .course-sideBar {
    background: var(--cl-white);
    border-radius: calc(var(--cl-radius) - 2px);
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.cl-student-page .course-sideBar .profile-info {
    padding: 1.25rem 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.cl-student-page .course-sideBar .profile-info .photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(13, 148, 136, 0.2);
}

.cl-student-page .course-sideBar .profile-info .name {
    font-size: var(--cl-fs-h4) !important;
    font-weight: 700 !important;
    color: var(--cl-navy) !important;
    margin: 0.75rem 0 0.25rem;
    font-family: inherit !important;
}

.cl-student-page .course-sideBar .profile-info .email {
    font-size: var(--cl-fs-xs) !important;
    color: var(--cl-text-muted) !important;
    font-family: inherit !important;
}

.cl-student-page .course-sideBar .upload-new a {
    font-size: var(--cl-fs-xs) !important;
    color: var(--cl-teal) !important;
}

.cl-student-page .couses-tab-list li a {
    font-size: var(--cl-fs-sm) !important;
    font-weight: 600 !important;
    color: var(--cl-navy) !important;
    font-family: inherit !important;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.cl-student-page .couses-tab-list li a i {
    width: 1.25rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--cl-text-muted);
    flex-shrink: 0;
}

.cl-student-page .couses-tab-list li.active a i,
.cl-student-page .couses-tab-list li a:hover i {
    color: var(--cl-teal);
}

.cl-student-sidebar__group-label {
    font-size: var(--cl-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cl-text-muted);
    margin: 0.75rem 1rem 0.35rem;
}

.cl-student-sidebar__avatar-wrap {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

/* تحديد صريح لصورة الأفاتار مباشرة عبر غلافها، بدل الاعتماد على تسلسل أصناف الأجداد
   (.cl-student-page .course-sideBar ...) الذي قد يتغيّر مع تطوّر بنية الصفحات ويكسر التنسيق. */
.cl-student-sidebar__avatar-wrap img.photo,
.cl-student-sidebar__avatar-wrap .photo {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(13, 148, 136, 0.2);
    background: var(--cl-bg-soft, #f1f5f9);
}

.cl-student-sidebar__avatar-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cl-teal);
    color: var(--cl-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid var(--cl-white);
    text-decoration: none;
    transition: background 0.2s ease;
}

.cl-student-sidebar__avatar-btn:hover {
    background: var(--cl-teal-light);
    color: var(--cl-white);
}

.cl-student-page .course-sideBar .profile-info .photo {
    width: 88px;
    height: 88px;
}

.cl-student-sidebar__cta {
    border-top: 1px solid rgba(15, 39, 68, 0.08);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.cl-student-page .couses-tab-list li.active a,
.cl-student-page .couses-tab-list li a:hover {
    background: rgba(13, 148, 136, 0.1);
    color: var(--cl-teal) !important;
}

.cl-student-page .couses-tab-list {
    padding: 0.75rem;
    list-style: none;
    margin: 0;
}

.cl-student-page .couses-tab-list li {
    margin-bottom: 0.25rem;
}

.cl-student-page .g-title {
    font-size: var(--cl-fs-h1) !important;
    font-weight: 800 !important;
    color: var(--cl-navy) !important;
    font-family: inherit !important;
}

.cl-student-page .progress {
    height: 8px;
    border-radius: 999px;
    background: var(--cl-bg-muted);
}

.cl-student-page .progress-bar {
    background: linear-gradient(90deg, var(--cl-teal), var(--cl-teal-light));
    border-radius: 999px;
}

.cl-student-page .single-progress h5,
.cl-student-page .single-progress p {
    font-size: var(--cl-fs-sm) !important;
    font-family: inherit !important;
    color: var(--cl-navy) !important;
}

.cl-student-page .eBtn.learn-btn {
    background: linear-gradient(135deg, var(--cl-teal) 0%, var(--cl-teal-light) 100%) !important;
    border: none !important;
    color: var(--cl-white) !important;
    border-radius: 999px !important;
    font-size: var(--cl-fs-btn) !important;
    font-weight: 700 !important;
    font-family: inherit !important;
}

.cl-student-page .class-status span {
    font-size: var(--cl-fs-xs) !important;
    font-family: inherit !important;
}

.cl-student-page .cl-my-course-card {
    display: flex;
    flex-direction: column;
}

.cl-student-page .cl-my-course-card .card-body.entry-details {
    flex: 1 1 auto;
}

.cl-student-page .cl-my-course-card__footer {
    margin-top: auto;
    padding-top: 1rem;
}

.cl-student-page .cl-my-course-card__footer .learn-btn {
    margin-top: 0 !important;
}

.cl-student-page .badge.bg-success {
    background-color: var(--cl-teal) !important;
}

.cl-student-page .badge.cl-access-badge,
.cl-student-page .class-status .badge.cl-access-badge {
    background-color: rgba(15, 39, 68, 0.08) !important;
    color: var(--cl-navy) !important;
    border: 1px solid rgba(15, 39, 68, 0.14);
    font-weight: 600;
    font-size: var(--cl-fs-xs) !important;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.cl-student-page .class-status .badge.bg-success:not(.cl-access-badge) {
    background-color: rgba(13, 148, 136, 0.12) !important;
    color: var(--cl-teal) !important;
    border: 1px solid rgba(13, 148, 136, 0.22);
    font-weight: 600;
}

.cl-student-page .entry-pagination {
    margin-top: 1.5rem;
}

/* LMS bridge buttons (student area) */
.cl-student-area .ol-btn-primary {
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    background: linear-gradient(135deg, var(--cl-teal), var(--cl-teal-light));
    font-weight: 600;
    font-size: var(--cl-fs-btn);
    color: var(--cl-white) !important;
    border: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cl-student-area .ol-btn-primary:hover,
.cl-student-area .ol-btn-primary:focus {
    color: var(--cl-white) !important;
    opacity: 0.92;
}

.cl-student-area .ol-btn-outline-secondary {
    border: 1px solid rgba(15, 39, 68, 0.15);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background: var(--cl-white);
    color: var(--cl-navy) !important;
    font-weight: 600;
    font-size: var(--cl-fs-btn);
}

.cl-student-area .ol-btn-outline-secondary:hover {
    border-color: rgba(13, 148, 136, 0.35);
    color: var(--cl-teal) !important;
}

.cl-student-sidebar__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--cl-radius);
    border: 1px solid rgba(15, 39, 68, 0.12);
    background: var(--cl-white);
    color: var(--cl-navy);
    font-weight: 700;
    font-size: var(--cl-fs-sm);
    box-shadow: 0 4px 14px rgba(15, 39, 68, 0.06);
}

.cl-student-sidebar__mobile-toggle-caret {
    transition: transform 0.2s ease;
    opacity: 0.65;
}

.cl-student-sidebar-offcanvas {
    --bs-offcanvas-width: min(320px, 88vw);
    z-index: 1055;
}

.cl-student-sidebar-offcanvas__header {
    border-bottom: 1px solid rgba(15, 39, 68, 0.08);
    padding: 1rem 1.1rem;
}

.cl-student-sidebar-offcanvas__header .offcanvas-title {
    font-weight: 800;
    color: var(--cl-navy);
    font-size: var(--cl-fs-sm);
}

.cl-student-sidebar-offcanvas .course-sideBar {
    border-radius: 0;
    box-shadow: none;
}

.cl-student-shell__row {
    align-items: flex-start;
}

@media (min-width: 768px) {
    .cl-student-shell__row {
        display: flex;
        flex-wrap: wrap;
    }

    .cl-student-sidebar-col {
        flex: 0 0 auto;
        width: 33.333333%;
        max-width: 33.333333%;
    }

    .cl-student-shell__content,
    .cl-courses-page__content {
        flex: 0 0 auto;
        width: 66.666667%;
        max-width: 66.666667%;
    }
}

@media (min-width: 992px) {
    .cl-student-sidebar-col {
        width: 25%;
        max-width: 25%;
    }

    .cl-student-shell__content,
    .cl-courses-page__content {
        width: 75%;
        max-width: 75%;
    }
}

/* LMS bridge cards (goals, dashboard stats) */
.cl-student-area .ol-card {
    background: var(--cl-white);
    border: 1px solid rgba(15, 39, 68, 0.08);
    border-radius: var(--cl-radius);
    box-shadow: 0 4px 18px rgba(15, 39, 68, 0.04);
}

.cl-student-area .ol-card .title {
    color: var(--cl-navy);
    font-weight: 600;
}

.cl-student-area .ol-card .sub-title {
    color: var(--cl-teal);
    font-weight: 800;
    font-size: 1.25rem;
}

.cl-student-area .btn-primary {
    background: linear-gradient(135deg, var(--cl-teal), var(--cl-teal-light));
    border: none;
    font-weight: 600;
    color: var(--cl-white);
}

.cl-student-area .btn-primary:hover {
    opacity: 0.92;
    background: linear-gradient(135deg, var(--cl-teal), var(--cl-teal-light));
    color: var(--cl-white);
}

/* Message panel inside clinical shell */
.cl-student-area .message-panel {
    background: var(--cl-white);
    border-radius: var(--cl-radius);
    border: 1px solid rgba(15, 39, 68, 0.08);
    min-height: 420px;
}

.cl-student-area .message-panel .welcome-msg {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .cl-student-area .message-panel .col-lg-4.border-end {
        border-end: none !important;
        border-bottom: 1px solid rgba(15, 39, 68, 0.08);
    }
}

/* Educational goals cards */
.cl-goals-grid {
    display: grid;
    gap: 1rem;
}

.cl-goal-card {
    border: 1px solid rgba(15, 39, 68, 0.1);
    border-radius: 14px;
    background: #fff;
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow: 0 6px 20px rgba(15, 39, 68, 0.04);
}

.cl-goal-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cl-goal-card__heading {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cl-goal-card__kind {
    display: inline-flex;
    width: fit-content;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 39, 68, 0.06);
    color: var(--cl-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cl-goal-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cl-navy);
    line-height: 1.35;
}

.cl-goal-card__badge {
    flex-shrink: 0;
    margin-inline-start: auto;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.cl-goal-card__badge.is-active {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

.cl-goal-card__badge.is-done {
    background: rgba(13, 148, 136, 0.14);
    color: #0f766e;
}

.cl-goal-card__summary {
    margin: 0 0 0.9rem;
    color: var(--cl-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cl-goal-card__progress {
    margin-bottom: 1rem;
}

.cl-goal-card__progress-label {
    font-size: 0.8rem;
    color: var(--cl-text-muted);
}

.cl-goal-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
}

.cl-goal-card__meta > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    background: rgba(15, 39, 68, 0.03);
    font-size: 0.85rem;
    color: var(--cl-text-muted);
}

.cl-goal-card__meta strong {
    color: var(--cl-navy);
    font-weight: 700;
}

.cl-goal-card__notes {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 39, 68, 0.08);
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .cl-goal-card__meta {
        grid-template-columns: 1fr;
    }

    .cl-goal-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .cl-goal-card__badge {
        margin-inline-start: 0;
        align-self: flex-start;
    }
}

