
/* ══ MEGA MENU ══ */
.mega {
    display: none;
    position: fixed;
    top: 85px; /* 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;
    border-top: 2px solid #FF2B5B;
}

/* 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;
}





/*Service Mega Menu*/

/* ---- Service Mega Menu Wrapper ---- */
.service-mega-parent {
    position: relative;
}

    .service-mega-parent > a {
        display: flex;
        align-items: center;
        gap: 4px;
        cursor: pointer;
    }

/* Chevron arrow icon */
.nav-arrow .chev {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    transition: transform 0.25s ease;
    vertical-align: middle;
}

.service-mega-parent:hover .nav-arrow .chev,
.service-mega-parent:focus-within .nav-arrow .chev {
    transform: rotate(180deg);
}

/* ---- Mega Menu Container ---- */
/*.service-mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 30px);
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    overflow: hidden;
    border-top: 3px solid #e8476a;
    flex-direction: row;
    animation: megaFadeIn 0.2s ease;
}*/

.service-mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 30px);
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    overflow: hidden;
    border-top: 3px solid #e8476a;
    flex-direction: row;
    animation: megaFadeIn 0.2s ease;
}

#svc-ct.open .service-mega-menu {
    display: flex;
}



@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.service-mega-parent:hover .service-mega-menu,
.service-mega-parent:focus-within .service-mega-menu {
    display: flex;
}

/* ---- LEFT PANEL — Stream List ---- */
.svc-mega-left {
    width: 250px;
    background: #0d1f3c;
    padding: 1rem 0;
    flex-shrink: 0;
}

.svc-left-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #e8476a;
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.3rem;
    font-family: 'Inter', sans-serif;
}

.svc-stream-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

    .svc-stream-item:hover {
        background: rgba(232, 71, 106, 0.2);
        border-left-color: #e8476a;
        transform: translateX(3px);
    }

        .svc-stream-item:hover .svc-stream-label {
            color: #ffffff;
            font-weight: 500;
        }

        .svc-stream-item:hover .svc-stream-icon {
            background: rgba(232, 71, 106, 0.35);
        }

    .svc-stream-item.svc-active {
        background: rgba(232, 71, 106, 0.22);
        border-left-color: #e8476a;
        transform: translateX(3px);
    }

.svc-stream-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.svc-stream-item.svc-active .svc-stream-icon {
    background: rgba(232, 71, 106, 0.35);
}

.svc-stream-label {
    font-size: 13px;
    color: #c9d3e8;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
    transition: color 0.15s, font-weight 0.1s;
}

.svc-stream-item.svc-active .svc-stream-label {
    color: #ffffff;
    font-weight: 500;
}

/* ---- CENTER PANEL — Service Cards ---- */
.svc-mega-center {
    flex: 1;
    padding: 1.2rem 1.4rem;
    background: #ffffff;
}

.svc-center-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #6b7280;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.svc-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.svc-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: #ffffff;
    transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

    .svc-card:hover,
    .svc-card.svc-card-active {
        border-color: #e8476a;
        background: #fff5f7;
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(232, 71, 106, 0.15);
    }

.svc-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.svc-card-code {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin-bottom: 2px;
}

.svc-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.svc-card:hover .svc-card-name,
.svc-card.svc-card-active .svc-card-name {
    color: #e8476a;
}

/* ---- RIGHT PANEL — Highlights ---- */
.svc-mega-right {
    width: 250px;
    background: #0d1f3c;
    padding: 1rem 0;
    flex-shrink: 0;
}

.svc-right-header {
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
}

.svc-right-service-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin-bottom: 2px;
}

.svc-right-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #6b7ea8;
    font-family: 'Inter', sans-serif;
}

.svc-right-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #e8476a;
    padding: 0 1rem 0.5rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.svc-module-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0.45rem 1rem;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    cursor: default;
}

    .svc-module-item:hover {
        background: rgba(232, 71, 106, 0.12);
        border-left-color: #e8476a;
    }

.svc-module-num {
    width: 20px;
    height: 20px;
    background: #e8476a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    margin-top: 1px;
    font-family: 'Inter', sans-serif;
}

.svc-module-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.svc-module-subs {
    list-style: none;
    padding: 0.2rem 1rem 0.2rem 2.6rem;
    margin: 0;
}

    .svc-module-subs li {
        font-size: 11px;
        color: #8da4c4;
        padding: 2px 0;
        font-family: 'Inter', sans-serif;
        position: relative;
    }

        .svc-module-subs li::before {
            content: "›";
            position: absolute;
            left: -12px;
            color: #5a7094;
        }








/*==================================================
    COURSES MEGA MENU
==================================================*/

#nav-courses-ct {
    position: relative;
}

#nav-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-top: 3px solid #ff0f7b;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 99999;
}

#nav-courses-ct:hover #nav-mega {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}




/*==================================================
    DROPDOWN
==================================================*/

#nav-mega {
    position: absolute;
    top: calc(100% + 28px);
    left: 303%;
    transform: translateX(-50%);
    width: 1100px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 0 0 10px 10px;
    border-top: 3px solid #ff0f7b;
    box-shadow: 0 20px 50px rgba(0,0,0,.16);
    overflow: hidden;
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, top .25s ease;
    z-index: 99999;
    max-height: 580px;
}

/*==================================================
    SHOW
==================================================*/

#nav-courses-ct:hover #nav-mega {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    /*    transform: translateX(-50%) translateY(0);*/
}

/*==================================================
    STICKY HEADER
==================================================*/
/*
.header.scrolled #nav-mega {
    top: calc(100% + 2px);
}*/

/*==================================================
    CONTENT
==================================================*/

.nav-mega-in {
    display: flex;
    width: 100%;
    max-height: 600px;
}

.nav-m-streams {
    width: 320px;
    background: #001a4d;
    color: #fff;
    padding: 25px;
}

.nav-m-courses {
    width: 780px;
    padding: 30px;
    background: #fff;
    overflow-y: auto;
}

.nav-c-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
}

.nav-cc {
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 18px;
    transition: .3s;
    background: #fff;
}

    .nav-cc:hover {
        border-color: #ff0f7b;
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
        transform: translateY(-3px);
    }




.header,
.header-wrapper,
.main-header,
.header-menu,
.header-menu ul {
    overflow: visible !important;
}




#nav-mega {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

    #nav-mega.show-mega {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }



/*==========================================
    LEFT STREAM PANEL
==========================================*/

.nav-m-streams {
    width: 320px;
    background: #071d57;
    color: #fff;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
}

    .nav-m-streams h5 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 22px;
        color: #fff;
        position: relative;
    }

        .nav-m-streams h5::after {
            content: "";
            width: 55px;
            height: 4px;
            background: #ff0f7b;
            border-radius: 50px;
            display: block;
            margin-top: 10px;
        }

/*==========================================
    STREAM LIST
==========================================*/

#nav-slist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 6px;
}

    /* Custom Scroll */

    #nav-slist::-webkit-scrollbar {
        width: 5px;
    }

    #nav-slist::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.25);
        border-radius: 20px;
    }

/*==========================================
    ITEM
==========================================*/
/*==========================================
    STREAM ITEM
==========================================*/

.nav-si {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: .25s;
    position: relative;
}

    .nav-si::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background: #ff0f7b;
        border-radius: 20px;
        transition: .25s;
    }

    .nav-si:hover {
        background: rgba(255,255,255,.08);
    }

        .nav-si:hover::before,
        .nav-si.nav-act::before {
            height: 70%;
        }

    .nav-si.nav-act {
        background: #ff0f7b;
    }

.nav-si-ico {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    font-size: 14px;
    flex-shrink: 0;
}

.nav-si.nav-act .nav-si-ico {
    background: #fff;
}

.nav-si-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    flex: 1;
}



.nav-m-streams {
    padding: 22px 18px;
}

    .nav-m-streams h5 {
        font-size: 22px;
        margin-bottom: 16px;
    }

        .nav-m-streams h5::after {
            width: 45px;
            height: 3px;
            margin-top: 8px;
        }




#nav-cgrid .nav-cc,
#nav-slist .nav-si {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    pointer-events: auto; /* make sure it's clickable */
    position: relative;
    z-index: 5; /* above slider arrows/overlays */
}

/* children must not swallow the click target */
.nav-cc .nav-cc-name,
.nav-si .nav-si-ico,
.nav-si .nav-si-name {
    pointer-events: none;
}

/* the mega menu panel itself */
.mega-menu, #nav-cgrid, #nav-slist {
    pointer-events: auto;
}

.nav-cc-highlight {
    animation: hl 2s ease;
}

@keyframes hl {
    from {
        background: #ffe9f3;
    }

    to {
        background: transparent;
    }
}


/* ========================================================
   MEGA MENU OVERRIDES (Prevents white-on-white text bugs)
   ======================================================== */

/* Force the course title and course names to be dark gray */
#nav-mega #nav-slbl,
#nav-mega .nav-cc-name {
    color: #212529 !important;
}

/* Ensure the text turns blue (or your brand color) on hover */
#nav-mega .nav-cc:hover .nav-cc-name {
    color: #0d6efd !important;
}


/* ========================================================
   MEGA MENU: Keep Icon and Text on the Same Line
   ======================================================== */

.nav-si {
    display: flex !important;
    flex-direction: row !important; /* Forces items side-by-side */
    align-items: center !important; /* Centers them vertically */
    gap: 12px; /* Adds space between the icon and the text */
    text-align: left;
}

/* Ensure the spans don't create their own line breaks */
.nav-si-ico,
.nav-si-name {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}
