﻿
/* ══ MEGA MENU ══ */
.mega {
    display: none;
    position: fixed;
    top: 120px; /* adjust according to navbar */
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 99999;
    border: 2px solid red !important;
}

#ct {
    position: relative;
}


@keyframes mDrop {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

#ct.open .mega {
    display: block;
}

#ct {
    position: relative;
}


.header-menu ul > li.open .mega {
    display: block;
}


.mega-in {
    max-width: 1700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    min-height: 480px
}

/* col1 streams */
.m-streams {
    background: #071B63;
    padding: 20px 0;
    border-right: 1px solid rgba(0,201,228,.1)
}

    .m-streams h5, .m-courses h5, .m-mods h5 {
        padding: 0 18px 10px;
        font-size: .65rem;
        letter-spacing: .13em;
        text-transform: uppercase;
        color: var(--cyan);
        font-weight: 700
    }

.m-courses h5, .m-mods h5 {
    padding: 0 0 12px
}

.si {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(232,237,248,.78);
    border-left: 3px solid transparent;
    transition: background .14s,color .14s,border-color .14s
}

    .si:hover, .si.act {
        background: rgba(0,201,228,.08);
        color: var(--cyan);
        border-left-color: var(--cyan)
    }

.si-ico {
    font-size: .95rem;
    flex-shrink: 0
}

.si-name {
    flex: 1;
    line-height: 1.3
}

.si svg {
    opacity: .35;
    flex-shrink: 0
}

.si:hover svg, .si.act svg {
    opacity: 1
}

/* col2 courses */
.m-courses {
    padding: 20px 20px;
    overflow-y: auto;
    max-height: 560px;
    background: #f5f7fe
}

    .m-courses h5 span {
        color: var(--navy);
        font-weight: 800
    }

.c-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 8px
}

.cc {
    padding: 12px 13px;
    border-radius: 8px;
    background: #fff;
    border: 1.5px solid #dde3f5;
    cursor: pointer;
    transition: border-color .18s,box-shadow .18s,background .18s
}

    .cc:hover, .cc.act {
        border-color: var(--crimson);
        box-shadow: 0 4px 18px rgba(232,0,61,.11);
        background: #fff5f7
    }

.cc-code {
    font-size: .85rem;
    font-weight: 800;
    color: var(--crimson);
    letter-spacing: .06em;
    margin-bottom: 4px
}

.cc-name {
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.35;
    font-weight: 500
}

/* col3 modules */
.m-mods {
    background: var(--navy-mid);
    border-left: 1px solid rgba(0,201,228,.1);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 560px
}

.m-sel {
    font-size: .83rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0,201,228,.14);
    padding-bottom: 11px
}

.mod-item {
    border-radius: 8px;
    border: 1px solid rgba(0,201,228,.12);
    margin-bottom: 8px;
    overflow: hidden
}

.mod-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    cursor: pointer;
    background: rgba(255,255,255,.05);
    transition: background .15s
}

    .mod-hd:hover {
        background: rgba(0,201,228,.07)
    }

.mod-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    font-weight: 800;
    color: #fff
}

.mod-ttl {
    font-size: .79rem;
    color: var(--off);
    font-weight: 500;
    flex: 1
}

.mod-arr {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2.2;
    transition: transform .22s;
    flex-shrink: 0
}

.mod-item.open .mod-arr {
    transform: rotate(180deg)
}

.mod-bd {
    display: none;
    padding: 6px 12px 10px 43px;
    background: rgba(255,255,255,.03)
}

.mod-item.open .mod-bd {
    display: block
}

.mod-bd ul {
    list-style: none
}

    .mod-bd ul li {
        font-size: .72rem;
        color: var(--muted);
        line-height: 1.55;
        padding: 3px 0;
        border-bottom: 1px solid rgba(255,255,255,.04);
        display: flex;
        align-items: flex-start;
        gap: 6px
    }

        .mod-bd ul li::before {
            content: "›";
            color: var(--cyan);
            font-size: .85rem;
            flex-shrink: 0;
            margin-top: 1px
        }




.chev {
    width: 20px;
    height: 20px;
    margin-left: 6px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    vertical-align: middle;
}

.si {
    color: rgba(255,255,255,.85);
    border-left: 3px solid transparent;
}

    .si:hover,
    .si.act {
        background: rgba(0,201,228,.12);
        color: #00C9E4;
        border-left: 3px solid #00C9E4;
    }


.m-streams h5 {
    color: #00C9E4;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

.m-courses {
    background: #F5F7FC;
}

.cc.act {
    border: 2px solid #FF2B5B;
    background: #FFF8FA;
    box-shadow: 0 8px 24px rgba(255,43,91,.12);
}

.m-mods {
    background: #11277A;
    color: white;
}
.m-sel {
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.mod-item {
    background: rgba(255,255,255,.04);
    border: none;
    border-radius: 10px;
}
.mod-hd {
    background: rgba(255,255,255,.05);
}

    .mod-hd:hover {
        background: rgba(0,201,228,.08);
    }
.mod-num {
    width: 24px;
    height: 24px;
    background: #FF2B5B;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.mod-ttl {
    color: #fff;
    font-weight: 500;
}
.mod-bd ul li {
    color: rgba(255,255,255,.75);
}
.mega {
    border-top: 2px solid #FF2B5B;
}
.si {
    cursor: pointer;
}

.mod-ttl {
    font-size: 16px;
}

.m-streams h5,
.m-courses h5,
.m-mods h5 {
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}