




/* =====================================
   MINIMAL COURSE LIBRARY HERO
===================================== */
.library-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 260px;
    padding: 45px 0 35px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}











/* =========================================
   COURSE SECTION HEADING
========================================= */

.library-courses {
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-margin-top: 100px;
}

.courses-heading h2 {
    font-size: 27px;
}

.courses-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.browse-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    color: var(--accent-2);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s ease;
}

.browse-link:hover {
    color: var(--accent);
    gap: 13px;
}


/* =========================================
   CATEGORY NAVIGATION
========================================= */

.course-categories {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 15px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
}

.course-categories::-webkit-scrollbar {
    display: none;
}

.category-link {
    flex-shrink: 0;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s ease;
}

.category-link:hover {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--text);
}

.category-link.active {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    color: var(--accent);
}


/* =========================================
   COURSE GRID — FIVE COLUMNS
========================================= */

.course-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
}


/* =========================================
   COURSE CARD
========================================= */

.library-course {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
}

.library-course:hover {
    transform: translateY(-5px);
    border-color: var(--accent-border);
}

.course-image {
    position: relative;
    height: 155px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--surface-soft);
}

.course-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 9, 19, .68),
        transparent 65%
    );
    pointer-events: none;
}

.course-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.library-course:hover .course-image img {
    transform: scale(1.06);
}

.course-image-tag,
.course-image-number,
.coming-soon-label {
    position: absolute;
    z-index: 1;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
}

.course-image-tag {
    left: 12px;
    bottom: 12px;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 6px;
    background: rgba(10, 14, 25, .65);
    color: #fff;
    backdrop-filter: blur(8px);
}

.course-image-number {
    top: 12px;
    right: 12px;
    color: rgba(255,255,255,.8);
}

.coming-soon-label {
    top: 12px;
    left: 12px;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    background: rgba(10, 14, 25, .75);
    color: #fff;
}

.library-course-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em;
}

.library-course h3 {
    margin: 12px 0 7px;
    font: 600 15px/1.35 "Space Grotesk", sans-serif;
    letter-spacing: -.02em;
}

.library-course-body > p {
    min-height: 54px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.65;
}

.course-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 8px;
}

.course-progress {
    height: 5px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface-soft);
}

.course-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px var(--glow);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 15px;
}

.course-footer > span {
    color: var(--muted);
    font-size: 8px;
}

.course-footer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s ease;
}

.course-footer button:not(:disabled):hover {
    background: var(--accent);
    color: #08101d;
}

.course-footer button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.course-coming-soon {
    margin-top: 17px;
    padding: 10px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}





/* =========================================
   RESPONSIVE LAYOUT
========================================= */

/* Smaller desktops */
@media (max-width: 1200px) {

    .course-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .library-hero {
        grid-template-columns: 1.4fr .6fr;
        padding: 30px;
    }

    .course-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }



}

/* Mobile */
@media (max-width: 680px) {

    .library-page {
        padding: 24px 0 55px;
        gap: 38px;
    }

    .library-hero {
        min-height: auto;
        padding: 15px 0 25px;
    }

    .library-hero h1 {
        font-size: clamp(35px, 8vw, 46px);
    }

    .library-hero-copy > p {
        font-size: 12px;
    }

    .overview-card strong {
        font-size: 24px;
    }

    .courses-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .course-categories {
        gap: 5px;
    }

    .category-link {
        padding: 8px 10px;
        font-size: 9px;
    }

    /* Two course columns on mobile */
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .course-image {
        height: 125px;
    }

    .library-course-body {
        padding: 11px;
    }

    .library-course h3 {
        font-size: 13px;
    }

    .library-course-body > p {
        min-height: 65px;
        font-size: 9px;
    }

    .course-meta {
        font-size: 7px;
    }

    .course-details {
        font-size: 7px;
    }

    .course-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .course-footer button {
        width: 100%;
    }

}

/* Very small phones */
@media (max-width: 380px) {

    .library-hero h1 {
        font-size: 34px;
    }

    .overview-card {
        padding: 12px;
    }

    .overview-card strong {
        font-size: 21px;
    }

    .course-grid {
        gap: 8px;
    }

    .course-image {
        height: 105px;
    }

    .library-course-body {
        padding: 9px;
    }

    .library-course h3 {
        font-size: 12px;
    }

    .course-image-tag {
        left: 7px;
        bottom: 7px;
        font-size: 7px;
    }

}




/* =====================================
   NEXUS — LEARNING PROGRESS
===================================== */

.progress-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* HEADING */

.progress-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.progress-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.2px;
}

.progress-heading h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -1.2px;
    color: var(--text);
}

.progress-heading h2 span {
    color: var(--accent);
}

/* ACTIVITY STATUS */

.progress-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 10px var(--good);
}

/* MAIN STRIP */

.progress-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;

    background:
        linear-gradient(
            115deg,
            var(--surface-strong),
            var(--surface)
        );

    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* INDIVIDUAL METRICS */

.progress-metric {
    position: relative;
    min-width: 0;
    padding: 23px 25px 21px;
    transition: background 0.25s ease;
}

.progress-metric:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    right: 0;
    bottom: 22px;
    width: 1px;
    background: var(--line);
}

.progress-metric:hover {
    background: var(--accent-soft);
}

/* TOP LABEL */

.metric-top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 19px;
}

.metric-icon {
    color: var(--accent);
    font-size: 15px;
}

.metric-label {
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

/* NUMBER */

.metric-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(29px, 3vw, 38px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1.8px;
    font-variant-numeric: tabular-nums;
}

.metric-value small {
    color: var(--accent);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

.progress-metric p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

/* TABLET */

@media (max-width: 900px) {
    .progress-metric {
        padding: 20px 17px;
    }

    .metric-label {
        font-size: 7px;
    }

    .progress-metric p {
        font-size: 9px;
    }
}

/* MOBILE */

@media (max-width: 680px) {
    .progress-overview {
        gap: 16px;
    }

    .progress-heading {
        align-items: flex-start;
    }

    .progress-heading h2 {
        font-size: 23px;
    }

    .progress-status {
        font-size: 7px;
        padding-top: 17px;
    }

    .progress-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .progress-metric {
        padding: 19px 16px;
    }

    .progress-metric:nth-child(2)::after {
        display: none;
    }

    .progress-metric:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .metric-top {
        margin-bottom: 15px;
    }

    .metric-value {
        font-size: 32px;
    }

    .progress-metric p {
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    .progress-metric {
        padding: 16px 12px;
    }

    .metric-label {
        font-size: 6px;
        letter-spacing: 0.8px;
    }

    .metric-icon {
        font-size: 13px;
    }

    .metric-value {
        font-size: 28px;
    }
}


/* MOBILE */

@media (max-width: 680px) {
    .library-hero {
        min-height: auto;
        padding: 15px 0 25px;
    }

    .library-hero h1 {
        font-size: clamp(39px, 8vw, 48px);
        letter-spacing: -2px;
    }

    .library-hero-copy > p {
        max-width: 100%;
        font-size: 12px;
        line-height: 1.7;
    }
}

