/* =========================================================
   MAYOBA LEARNER DASHBOARD — MY COURSES
   STANDALONE PAGE

   Scoped exclusively to:
   .dashboard-learner-courses

   No sidebar
   No header / topbar
   No footer
   No unrelated dashboard styles
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

.dashboard-learner-courses {
    --navy: #0c2a7a;
    --navy2: #071c5e;
    --blue: #1e63ef;
    --ink: #12205c;
    --muted: #5f6f9a;
    --bg: #f3f7ff;
    --line: #dbe5f6;
    --white: #fff;
    --green: #10a56f;
    --purple: #7042eb;
    --orange: #ff7a24;
    --red: #e93e66;

    --shadow:
        0 10px 28px
        rgba(13, 41, 113, .08);

    --radius: 15px;

    margin: 0;
    padding: 0;

    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--ink);

    background:
        linear-gradient(
            180deg,
            #f7faff 0,
            #edf4ff 100%
        );

    font-size: 14px;
}


/* =========================================================
   BOX SIZING
   ========================================================= */

.dashboard-learner-courses *,
.dashboard-learner-courses *::before,
.dashboard-learner-courses *::after {
    box-sizing: border-box;
}


/* =========================================================
   BASE ELEMENTS
   ========================================================= */

.dashboard-learner-courses a {
    color: inherit;
    text-decoration: none;
}


.dashboard-learner-courses button,
.dashboard-learner-courses input,
.dashboard-learner-courses select,
.dashboard-learner-courses textarea {
    font: inherit;
}


.dashboard-learner-courses button {
    cursor: pointer;
}


.dashboard-learner-courses img {
    max-width: 100%;
}


.dashboard-learner-courses .icon {
    width: 22px;
    height: 22px;

    display: block;
}


/* =========================================================
   VISUALLY HIDDEN
   ========================================================= */

.dashboard-learner-courses .visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   MAIN
   ========================================================= */

.dashboard-learner-courses .main {
    width: 100%;

    min-height: 100vh;

    margin: 0;

    padding: 0;
}


.dashboard-learner-courses .content {
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    padding: 24px;
}


/* =========================================================
   PAGE HERO
   ========================================================= */

.dashboard-learner-courses .page-hero {
    min-height: 132px;

    height: auto;

    border-radius: 15px;

    overflow: hidden;

    position: relative;

    color: #fff;

    background:
        linear-gradient(
            100deg,
            #09266f,
            #10339a 60%,
            #1a49c6
        );

    display: flex;

    align-items: center;

    padding: 18px 34px;

    margin-bottom: 16px;

    box-shadow: var(--shadow);
}


.dashboard-learner-courses .page-hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 28, 94, .12),
            rgba(7, 28, 94, 0)
        );

    pointer-events: none;
}


.dashboard-learner-courses .page-hero.courses {
    background-image:
        linear-gradient(
            90deg,
            #07236b 0%,
            #0e3296 58%,
            rgba(14, 50, 150, .65) 100%
        ),
        url("/assets/dashboard-assets/banner-courses.png");

    background-repeat: no-repeat;

    background-size: cover;

    background-position: right center;
}


.dashboard-learner-courses .page-hero .hero-copy {
    position: relative;

    z-index: 2;

    max-width: 64%;

    padding: 3px 0;
}


.dashboard-learner-courses .page-hero h1 {
    font-size: 42px;

    line-height: 1.08;

    margin: 0 0 8px;

    letter-spacing: -.025em;
}


.dashboard-learner-courses .page-hero p {
    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            .9
        );

    font-size: 18px;

    line-height: 1.35;
}


.dashboard-learner-courses .hero-note {
    position: absolute;

    right: 28px;
    top: 24px;

    z-index: 3;

    font-family: cursive;

    font-size: 24px;

    line-height: 1.1;

    text-align: right;

    color: #fff;

    transform: rotate(-2deg);
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.dashboard-learner-courses .toolbar {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(330px, 1fr)
        auto
        220px;

    align-items: center;

    gap: 12px;

    margin: 8px 0 14px;
}


/* =========================================================
   TOP SEARCH FORM
   ========================================================= */

.dashboard-learner-courses .courses-top-search-form {
    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 8px;
}


/* =========================================================
   SEARCH BOX
   ========================================================= */

.dashboard-learner-courses .searchbox {
    height: 42px;

    min-width: 0;

    flex: 1 1 auto;

    border: 1px solid var(--line);

    border-radius: 10px;

    background: #fff;

    display: flex;

    align-items: center;

    padding: 0 14px;

    gap: 10px;

    color: #6878a0;

    box-shadow:
        0 2px 8px
        rgba(14, 41, 114, .025);

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.dashboard-learner-courses .searchbox:focus-within {
    border-color: #6a92ef;

    box-shadow:
        0 0 0 3px
        rgba(30, 99, 239, .10);
}


.dashboard-learner-courses .searchbox .icon {
    flex: 0 0 auto;

    width: 21px;

    height: 21px;
}


.dashboard-learner-courses .searchbox input {
    width: 100%;

    min-width: 0;

    border: 0;

    outline: 0;

    background: transparent;

    color: #263766;

    font-size: 14px;
}


.dashboard-learner-courses .searchbox input::placeholder {
    color: #8793ad;
}


/* =========================================================
   TOP SEARCH BUTTON
   ========================================================= */

.dashboard-learner-courses .courses-top-search-button {
    height: 42px;

    min-width: 90px;

    flex: 0 0 auto;

    padding-left: 18px;

    padding-right: 18px;
}


/* =========================================================
   FILTER TABS
   ========================================================= */

.dashboard-learner-courses .tabs {
    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 0;
}


.dashboard-learner-courses .tab {
    min-height: 42px;

    padding: 0 16px;

    border: 1px solid var(--line);

    border-radius: 10px;

    background: #fff;

    color: #23336d;

    font-weight: 700;

    font-size: 13px;

    white-space: nowrap;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


.dashboard-learner-courses .tab:hover {
    background: #f5f8ff;

    border-color: #cbd9f0;
}


.dashboard-learner-courses .tab:active {
    transform: translateY(1px);
}


.dashboard-learner-courses .tab.active {
    background: #0a2477;

    color: #fff;

    border-color: #0a2477;

    box-shadow:
        0 5px 14px
        rgba(10, 36, 119, .15);
}


/* =========================================================
   SORT
   ========================================================= */

.dashboard-learner-courses .sort {
    width: 100%;

    min-width: 0;
}


.dashboard-learner-courses .select {
    width: 100%;

    height: 42px;

    border: 1px solid var(--line);

    border-radius: 10px;

    padding: 0 13px;

    background: #fff;

    color: #25366d;

    font-weight: 600;

    outline: 0;

    cursor: pointer;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.dashboard-learner-courses .select:hover {
    border-color: #cbd9f0;
}


.dashboard-learner-courses .select:focus {
    border-color: #6a92ef;

    box-shadow:
        0 0 0 3px
        rgba(30, 99, 239, .10);
}


/* =========================================================
   GRID
   ========================================================= */

.dashboard-learner-courses .grid {
    display: grid;

    gap: 14px;
}


.dashboard-learner-courses .g2 {
    grid-template-columns:
        1.9fr
        1fr;
}


/* =========================================================
   LEARNING SUMMARY GRID
   ========================================================= */

.dashboard-learner-courses .summary-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}


/* =========================================================
   CARDS
   ========================================================= */

.dashboard-learner-courses .card {
    background: #fff;

    border: 1px solid #e0e8f6;

    border-radius: 14px;

    box-shadow:
        0 7px 20px
        rgba(14, 41, 114, .045);
}


.dashboard-learner-courses .panel {
    padding: 16px;
}


/* =========================================================
   SECTION SPACING
   ========================================================= */

.dashboard-learner-courses .section-spaced {
    margin-top: 14px;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.dashboard-learner-courses .section-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 10px;
}


.dashboard-learner-courses .section-title .left {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


.dashboard-learner-courses .section-title h2 {
    margin: 0;

    color: #112668;

    font-size: 21px;

    line-height: 1.2;
}


.dashboard-learner-courses .section-title p {
    margin: 3px 0 0;

    color: #6879a0;

    font-size: 12px;

    line-height: 1.45;
}


.dashboard-learner-courses .link {
    color: #0f54e8;

    font-size: 12px;

    font-weight: 750;

    white-space: nowrap;
}


.dashboard-learner-courses .link:hover {
    text-decoration: underline;
}


/* =========================================================
   ICON TILES
   ========================================================= */

.dashboard-learner-courses .tile-icon {
    width: 44px;

    height: 44px;

    border-radius: 12px;

    display: grid;

    place-items: center;

    flex: 0 0 44px;
}


.dashboard-learner-courses .blue {
    background: #e9f1ff;

    color: #1f65ef;
}


.dashboard-learner-courses .green {
    background: #e4f8ef;

    color: #0b9d6b;
}


.dashboard-learner-courses .purple {
    background: #efe8ff;

    color: #6f3eeb;
}


/* =========================================================
   COURSE ROWS
   ========================================================= */

.dashboard-learner-courses .course-row {
    display: grid;

    grid-template-columns:
        190px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 16px;

    padding: 14px;

    border: 1px solid #e1e9f6;

    border-radius: 12px;

    background: #fff;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.dashboard-learner-courses .course-row:hover {
    border-color: #cedbf0;

    box-shadow:
        0 6px 18px
        rgba(14, 41, 114, .05);
}


.dashboard-learner-courses .course-row img {
    width: 190px;

    height: 92px;

    object-fit: contain;

    border-radius: 10px;

    display: block;

    background: #f8faff;
}


.dashboard-learner-courses .course-row h3 {
    margin: 0 0 4px;

    color: #0b226a;

    font-size: 16px;

    line-height: 1.3;
}


.dashboard-learner-courses .course-row .meta {
    color: #6878a0;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.dashboard-learner-courses .progress {
    height: 7px;

    margin: 10px 0 5px;

    background: #e6ebf6;

    border-radius: 999px;

    overflow: hidden;
}


.dashboard-learner-courses .progress span {
    display: block;

    height: 100%;

    background: #2264ed;

    border-radius: 999px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.dashboard-learner-courses .btn {
    height: 42px;

    border-radius: 9px;

    border: 1px solid #1d5df0;

    background: #fff;

    color: #0e4bdc;

    padding: 0 22px;

    font-weight: 750;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    white-space: nowrap;

    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


.dashboard-learner-courses .btn:hover {
    box-shadow:
        0 5px 14px
        rgba(30, 93, 240, .10);
}


.dashboard-learner-courses .btn:active {
    transform: translateY(1px);
}


.dashboard-learner-courses .btn.primary {
    background:
        linear-gradient(
            135deg,
            #0a2577,
            #071c61
        );

    border-color: #0a2577;

    color: #fff;
}


.dashboard-learner-courses .btn.primary:hover {
    background:
        linear-gradient(
            135deg,
            #0d318f,
            #08236f
        );
}


.dashboard-learner-courses .btn .icon {
    width: 22px;

    height: 22px;

    flex: 0 0 auto;
}


/* =========================================================
   LEARNING SUMMARY
   ========================================================= */

.dashboard-learner-courses .stat-card {
    min-height: 86px;

    padding: 16px;

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}


.dashboard-learner-courses .stat-card .val {
    color: #0e246e;

    font-size: 25px;

    font-weight: 850;

    line-height: 1;
}


.dashboard-learner-courses .stat-card .sub {
    margin-top: 4px;

    color: #7583a5;

    font-size: 11px;
}


/* =========================================================
   RECOMMENDED COURSES
   ========================================================= */

.dashboard-learner-courses .recommend-card {
    display: grid;

    grid-template-columns:
        132px
        minmax(0, 1fr);

    gap: 12px;

    padding: 13px;

    border: 1px solid #e1e9f6;

    border-radius: 12px;

    background: #fff;
}


.dashboard-learner-courses .recommend-card + .recommend-card {
    margin-top: 10px;
}


.dashboard-learner-courses .recommend-card img {
    width: 132px;

    height: 107px;

    object-fit: contain;

    border-radius: 10px;

    display: block;

    background: #f8faff;
}


.dashboard-learner-courses .recommend-card h3 {
    margin: 2px 0 5px;

    color: #112668;

    font-size: 14px;

    line-height: 1.3;
}


.dashboard-learner-courses .recommend-card p {
    margin: 0 0 9px;

    color: #63739a;

    font-size: 11px;

    line-height: 1.35;
}


/* =========================================================
   FOCUS STATES
   ========================================================= */

.dashboard-learner-courses a:focus-visible,
.dashboard-learner-courses button:focus-visible,
.dashboard-learner-courses input:focus-visible,
.dashboard-learner-courses select:focus-visible {
    outline: 3px solid
        rgba(
            30,
            99,
            239,
            .18
        );

    outline-offset: 2px;
}


/* =========================================================
   RESPONSIVE — LARGE TABLET
   ========================================================= */

@media (max-width: 1250px) {

    .dashboard-learner-courses .content {
        padding-left: 18px;

        padding-right: 18px;
    }


    .dashboard-learner-courses .g2 {
        grid-template-columns: 1fr;
    }


    .dashboard-learner-courses .summary-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .dashboard-learner-courses .page-hero .hero-copy {
        max-width: 75%;
    }


    /*
    |--------------------------------------------------------------------------
    | TOOLBAR
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .toolbar {
        grid-template-columns:
            minmax(320px, 1fr)
            auto;

        align-items: center;
    }


    .dashboard-learner-courses .sort {
        grid-column: 1 / -1;

        width: 240px;

        justify-self: end;
    }


    .dashboard-learner-courses .tabs {
        flex-wrap: wrap;

        justify-content: flex-end;
    }

}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    /*
    |--------------------------------------------------------------------------
    | TOOLBAR
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .toolbar {
        grid-template-columns: 1fr;

        align-items: stretch;
    }


    .dashboard-learner-courses .courses-top-search-form {
        width: 100%;
    }


    .dashboard-learner-courses .tabs {
        width: 100%;

        justify-content: flex-start;
    }


    .dashboard-learner-courses .sort {
        grid-column: auto;

        width: 100%;

        justify-self: stretch;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .dashboard-learner-courses .content {
        padding: 16px;
    }


    /*
    |--------------------------------------------------------------------------
    | SEARCH
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .courses-top-search-form {
        width: 100%;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 8px;
    }


    .dashboard-learner-courses .searchbox {
        width: 100%;

        min-width: 0;
    }


    /*
    |--------------------------------------------------------------------------
    | TABS
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .tabs {
        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );

        gap: 8px;
    }


    .dashboard-learner-courses .tab {
        width: 100%;

        padding-left: 10px;

        padding-right: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | SORT
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .sort {
        width: 100%;

        min-width: 0;
    }


    /*
    |--------------------------------------------------------------------------
    | COURSE ROW
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .course-row {
        grid-template-columns: 1fr;
    }


    .dashboard-learner-courses .course-row img {
        width: 100%;

        height: 170px;

        object-fit: contain;
    }


    .dashboard-learner-courses .course-row .btn {
        width: 100%;
    }


    /*
    |--------------------------------------------------------------------------
    | HERO
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .page-hero h1 {
        font-size: 32px;
    }


    .dashboard-learner-courses .page-hero p {
        font-size: 15px;
    }


    .dashboard-learner-courses .hero-note {
        display: none;
    }

}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .dashboard-learner-courses .content {
        padding: 12px;
    }


    /*
    |--------------------------------------------------------------------------
    | HERO
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .page-hero {
        min-height: 120px;

        padding: 20px;
    }


    .dashboard-learner-courses .page-hero .hero-copy {
        max-width: 100%;
    }


    .dashboard-learner-courses .page-hero h1 {
        font-size: 30px;
    }


    .dashboard-learner-courses .page-hero p {
        font-size: 14px;
    }


    /*
    |--------------------------------------------------------------------------
    | SEARCH
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .courses-top-search-form {
        grid-template-columns: 1fr;
    }


    .dashboard-learner-courses .courses-top-search-button {
        width: 100%;
    }


    /*
    |--------------------------------------------------------------------------
    | TABS
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .tabs {
        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 8px;
    }


    .dashboard-learner-courses .tab {
        width: 100%;

        padding: 0 8px;

        font-size: 12px;
    }


    /*
    |--------------------------------------------------------------------------
    | PANEL
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .panel {
        padding: 14px;
    }


    /*
    |--------------------------------------------------------------------------
    | SECTION TITLE
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .section-title {
        align-items: flex-start;
    }


    .dashboard-learner-courses .section-title .left {
        align-items: flex-start;
    }


    .dashboard-learner-courses .section-title h2 {
        font-size: 19px;
    }


    .dashboard-learner-courses .link {
        font-size: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | SUMMARY
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .summary-grid {
        grid-template-columns: 1fr;
    }


    /*
    |--------------------------------------------------------------------------
    | COURSE ROW
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .course-row {
        padding: 12px;

        gap: 12px;
    }


    .dashboard-learner-courses .course-row img {
        height: 150px;

        object-fit: contain;
    }


    /*
    |--------------------------------------------------------------------------
    | RECOMMENDED COURSE
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .recommend-card {
        grid-template-columns: 1fr;
    }


    .dashboard-learner-courses .recommend-card img {
        width: 100%;

        height: 160px;

        object-fit: contain;
    }


    .dashboard-learner-courses .recommend-card .btn {
        width: 100%;
    }


    /*
    |--------------------------------------------------------------------------
    | SECTION TITLE BUTTON
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .section-title > .btn {
        padding-left: 13px;

        padding-right: 13px;

        font-size: 12px;
    }

}


/* =========================================================
   RESPONSIVE — EXTRA SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    /*
    |--------------------------------------------------------------------------
    | FILTERS
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .tabs {
        grid-template-columns: 1fr;
    }


    /*
    |--------------------------------------------------------------------------
    | HERO
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .page-hero h1 {
        font-size: 27px;
    }


    /*
    |--------------------------------------------------------------------------
    | SECTION TITLES
    |--------------------------------------------------------------------------
    */

    .dashboard-learner-courses .section-title {
        flex-wrap: wrap;
    }


    .dashboard-learner-courses .section-title > .btn {
        width: 100%;
    }

}