* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {
    --navy: #071e58;
    --navy-2: #0c3278;
    --gold: #f2b705;

    --bg: #f4f6fb;
    --surface: #ffffff;

    --text: #172033;
    --muted: #667085;

    --border: #e2e7f0;

    --success-bg: #ecfdf3;
    --success-border: #abefc6;
    --success-text: #067647;

    --error-bg: #fff4f4;
    --error-border: #fecaca;
    --error-text: #b42318;

    --shadow:
        0 12px 32px
        rgba(7, 30, 88, .08);
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        "Rubik",
        Arial,
        Helvetica,
        sans-serif;

    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


button:disabled {
    cursor: wait;
    opacity: .72;
}



/* =========================
   HEADER
   ========================= */


.header {
    background: var(--navy);
    color: #fff;
    padding: 18px 24px;
}


.header-content {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns:
        1fr auto 1fr;

    align-items: center;
    gap: 20px;
}


.header-logo {
    display: flex;
    align-items: center;
}


.header-logo-left {
    justify-content: flex-start;
}


.header-logo-right {
    justify-content: flex-end;
}


.header-logo img {
    width: 82px;
    height: 82px;

    object-fit: contain;
    display: block;
}


.header-title {
    border: 0;
    background: transparent;
    color: #fff;
    text-align: center;
}


.header-title h1 {
    font-size: 29px;
    font-weight: 800;
    margin-bottom: 6px;
}


.header-title p {
    font-size: 15px;

    color:
        rgba(
            255,
            255,
            255,
            .82
        );
}



/* =========================
   MAIN
   ========================= */


.container {
    max-width: 1100px;
    margin: auto;

    padding:
        38px
        20px
        52px;

    min-height:
        calc(
            100vh - 180px
        );
}


.view {
    display: none;
}


.view.active {
    display: block;
}



/* =========================
   WHITE SECTIONS
   ========================= */


.search-box,
.home-section,
.page-heading {
    background: var(--surface);

    border:
        1px solid
        var(--border);

    border-radius: 20px;

    box-shadow:
        var(--shadow);
}



/* =========================
   SEARCH
   ========================= */

/* =========================
   GLOBAL STICKY SEARCH
   ========================= */

.global-search-wrapper {
    position: sticky;
    top: 12px;
    z-index: 1000;
    margin-bottom: 30px;
}

.global-search-wrapper .search-box {
    margin-bottom: 0;
}
.search-box {
    padding: 26px;
    margin-bottom: 30px;
}


.search-copy h2,
.section-heading h2,
.page-heading h2 {
    font-size: 27px;
    color: var(--navy);

    margin:
        5px 0 7px;
}


.search-copy p,
.section-heading p,
.page-heading p {
    color: var(--muted);
    line-height: 1.55;
}


.eyebrow {
    display: inline-block;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: #8b6b00;
}


.course-search-input {
    width: 100%;
    margin-top: 18px;

    padding:
        15px 17px;

    border:
        1px solid
        #cfd7e6;

    border-radius: 12px;

    background: #fbfcff;
    color: var(--text);

    outline: none;
}


.course-search-input:focus {
    border-color:
        var(--navy-2);

    box-shadow:
        0 0 0 3px
        rgba(
            12,
            50,
            120,
            .10
        );
}


.search-results {
    margin-top: 20px;
}


.search-results-header {
    margin-bottom: 12px;
    color: var(--muted);
}


.search-results-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.search-result-card {
    padding: 18px;

    border:
        1px solid
        var(--border);

    border-radius: 14px;

    background: #fff;

    display: flex;
    flex-direction: column;
}


.search-result-code,
.course-code {
    font-weight: 800;
    color: var(--navy);
}


.search-result-title {
    margin-top: 5px;
    font-weight: 650;
}


.search-result-meta {
    margin:
        8px 0 14px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.45;

    flex: 1;
}


.no-results {
    color: var(--muted);

    padding:
        10px 0;
}



/* =========================
   HOME
   ========================= */


.home-section {
    padding: 28px;
    margin-bottom: 30px;
}


.section-heading {
    margin-bottom: 20px;
}



/* =========================
   SEMESTERS
   ========================= */


.semester-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;
}


.semester-card {
    min-height: 180px;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    justify-content:
        space-between;

    padding: 24px;

    border:
        1px solid
        #dbe3f2;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f7f9fd
        );

    text-align: left;

    transition:
        .2s ease;
}


.semester-card:hover,
.level-card:hover,
.programme-card:hover,
.switch-card:hover {
    transform:
        translateY(-3px);

    border-color:
        #b7c6e2;

    box-shadow:
        0 12px 26px
        rgba(
            7,
            30,
            88,
            .10
        );
}


.semester-number {
    color: var(--gold);

    font-size: 30px;
    font-weight: 900;
}


.semester-name {
    color: var(--navy);

    font-size: 22px;
    font-weight: 800;
}


.semester-action,
.level-action {
    color: var(--muted);

    font-size: 13px;
    font-weight: 650;
}



/* =========================
   GRIDS
   ========================= */


.switch-grid,
.level-grid,
.programme-grid,
.course-grid,
.module-files-grid {
    display: grid;
    gap: 16px;
}



/* =========================
   SWITCH
   ========================= */


.switch-grid {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}


.switch-card {
    min-height: 120px;

    padding: 18px;

    border:
        1px solid
        var(--border);

    border-radius: 15px;

    background: #fff;

    text-align: left;

    display: flex;
    flex-direction: column;

    justify-content:
        space-between;

    transition:
        .2s ease;
}


.switch-name {
    color: var(--navy);

    font-weight: 800;
    line-height: 1.3;
}



/* =========================
   BACK BUTTON
   ========================= */


.back-btn {
    margin-bottom: 18px;

    padding:
        10px 14px;

    border: 0;
    border-radius: 10px;

    background: #eaf0fb;

    color: var(--navy);

    font-weight: 700;
}


.back-btn:hover {
    background: #dfe8f8;
}



/* =========================
   PAGE HEADING
   ========================= */


.page-heading {
    padding:
        24px 26px;

    margin-bottom: 22px;
}



/* =========================
   LEVELS
   ========================= */


.level-grid {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}


.level-card {
    min-height: 160px;

    padding: 22px;

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    background: #fff;

    display: flex;
    flex-direction: column;

    align-items:
        flex-start;

    justify-content:
        space-between;

    text-align: left;

    transition:
        .2s ease;
}


.level-number {
    font-size: 34px;
    font-weight: 900;

    color: var(--gold);
}


.level-title {
    font-size: 18px;
    font-weight: 800;

    color: var(--navy);
}



/* =========================
   PROGRAMMES
   ========================= */


.programme-grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}


.programme-card {
    min-height: 140px;

    padding: 20px;

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    background: #fff;

    text-align: left;

    transition:
        .2s ease;
}


.programme-card h3 {
    color: var(--navy);

    font-size: 17px;
    line-height: 1.35;

    margin-bottom: 10px;
}


.programme-card p {
    color: var(--muted);

    margin-bottom: 18px;
}


.programme-card span {
    color: #8b6b00;

    font-size: 13px;
    font-weight: 700;
}



/* =========================
   COURSES
   ========================= */


.course-grid {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}


.course-card {
    min-height: 150px;

    padding: 20px;

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    background: #fff;

    display: flex;
    flex-direction: column;
}


.course-code {
    font-size: 17px;
    margin-bottom: 8px;
}


.course-title {
    flex: 1;

    font-weight: 650;
    line-height: 1.45;

    margin-bottom: 18px;
}


.open-btn {
    align-self: flex-start;

    border: 0;
    border-radius: 9px;

    padding:
        10px 14px;

    background:
        var(--navy);

    color: #fff;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .4px;

    transition:
        background .15s ease,
        transform .15s ease;
}


.open-btn:hover:not(:disabled) {
    background:
        var(--navy-2);

    transform:
        translateY(-1px);
}



/* =========================
   MODULE RESULTS
   ========================= */


.module-files-grid {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}


.module-file-card {
    min-height: 145px;

    padding: 20px;

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    background: #fff;

    box-shadow:
        var(--shadow);

    display: flex;
    flex-direction: column;
}


.module-file-number {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    align-self: flex-start;

    min-width: 64px;
    min-height: 31px;

    margin-bottom: 12px;

    padding:
        6px 10px;

    border-radius: 999px;

    background: #fff7d6;

    color: #775900;

    font-size: 12px;
    font-weight: 800;
}


.module-file-title {
    flex: 1;

    color: var(--text);

    font-weight: 650;
    line-height: 1.45;

    margin-bottom: 18px;

    overflow-wrap: anywhere;
}


.module-file-card .open-btn {
    margin-top: auto;
}



/* =========================
   MODULE STATUS / ERRORS
   ========================= */


.module-message {
    grid-column:
        1 / -1;

    padding: 20px;

    border-radius: 14px;

    line-height: 1.55;
}


.module-message strong {
    display: block;

    margin-bottom: 5px;
}


.module-message-error {
    background:
        var(--error-bg);

    border:
        1px solid
        var(--error-border);

    color:
        var(--error-text);
}


.module-message-success {
    background:
        var(--success-bg);

    border:
        1px solid
        var(--success-border);

    color:
        var(--success-text);
}



/* =========================
   LOADING
   ========================= */


.loading-module {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}


.loading-module::after {
    content: "";

    width: 11px;
    height: 11px;

    border:
        2px solid
        rgba(
            255,
            255,
            255,
            .45
        );

    border-top-color: #fff;

    border-radius: 50%;

    animation:
        module-spin .7s
        linear infinite;
}


@keyframes module-spin {
    to {
        transform:
            rotate(360deg);
    }
}



/* =========================
   FOOTER
   ========================= */


.footer {
    padding:
        22px 20px 30px;

    text-align: center;

    color: var(--muted);

    font-size: 13px;
}



/* =========================
   ACCESSIBILITY
   ========================= */


button:focus-visible,
input:focus-visible {
    outline:
        3px solid
        rgba(
            242,
            183,
            5,
            .55
        );

    outline-offset: 3px;
}



/* =========================
   TABLET
   ========================= */


@media (max-width: 900px) {

    .switch-grid,
    .level-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .programme-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}



/* =========================
   MOBILE
   ========================= */


@media (max-width: 600px) {

    .header {
        padding: 14px 12px;
    }


    .header-content {
        grid-template-columns:
            62px 1fr 62px;

        gap: 8px;
    }


    .header-logo img {
        width: 56px;
        height: 56px;
    }


    .header-title h1 {
        font-size: 20px;
        line-height: 1.2;
    }


    .header-title p {
        font-size: 12px;
        line-height: 1.3;
    }


    .container {
        padding:
            28px
            15px
            42px;
    }


    .search-box,
    .home-section,
    .page-heading {
        border-radius: 16px;
    }


    .search-box,
    .home-section {
        padding: 20px;
    }


    .page-heading {
        padding: 20px;
    }


    .search-copy h2,
    .section-heading h2,
    .page-heading h2 {
        font-size: 23px;
    }


    .semester-grid,
    .switch-grid,
    .level-grid,
    .programme-grid,
    .course-grid,
    .search-results-grid,
    .module-files-grid {
        grid-template-columns:
            1fr;
    }


    .semester-card {
        min-height: 145px;
        padding: 20px;
    }


    .level-card {
        min-height: 135px;
    }


    .module-file-card {
        min-height: 130px;
    }


    .open-btn {
        min-height: 42px;

        padding:
            11px 15px;
    }

}

 .cloud-group-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cloud-unit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.cloud-unit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid #d9e1ef;
}

.cloud-unit-label {
    font-weight: 700;
    color: #0b245c;
}

.cloud-unit-button {
    width: auto;
    min-width: 105px;
    padding: 10px 16px;
}    



