﻿/* =========================================================
   CUI REDESIGNED GLOBAL NAVIGATION
========================================================= */

/* =========================================================
   FLOATING NAVBAR
========================================================= */

.floating-nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 76px);
    max-width: 1380px;
    min-height: 76px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 26px;
    box-shadow: 0 12px 35px rgba(15, 45, 58, 0.10), 0 2px 8px rgba(15, 45, 58, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 9999;
    transition: top .3s ease, padding .3s ease, box-shadow .3s ease, width .3s ease;
}


    /* Scrolled */

    .floating-nav.scrolled {
        top: 9px;
        padding-top: 7px;
        padding-bottom: 7px;
        box-shadow: 0 18px 50px rgba(15, 45, 58, 0.15);
    }


    /* =========================================================
   NAVBAR CONTAINER
========================================================= */

    .floating-nav .container,
    .floating-nav .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }


/* =========================================================
   LOGO / BRAND
========================================================= */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 !important;
    margin-right: 28px;
    text-decoration: none;
    flex-shrink: 0;
}


    .navbar-brand img {
        max-height: 48px;
        width: auto;
        object-fit: contain;
    }


.logo-title {
    margin: 0;
    color: #063b4d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}


.navbar-brand small {
    display: block;
    margin-top: 5px;
    color: #647985;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar-nav {
    align-items: center;
    gap: 2px;
}


.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 15px !important;
    border-radius: 13px;
    color: #263d47 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease, background .25s ease, transform .25s ease;
}


    /* Hover background */

    .nav-link:hover {
        color: #087f8c !important;
        background: #eef8f8;
        transform: translateY(-1px);
    }


    /* Active */

    .nav-link.active {
        color: #063b4d !important;
        background: #eef7f8;
    }


    /* Bottom indicator */

    .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 5px;
        width: 0;
        height: 2px;
        border-radius: 10px;
        background: #e3b33d;
        transform: translateX(-50%);
        transition: width .25s ease;
    }


    .nav-link:hover::after,
    .nav-link.active::after {
        width: 24px;
    }


/* =========================================================
   NAVBAR ACTIONS
========================================================= */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}


/* =========================================================
   ADMISSION STATUS
========================================================= */

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1px solid #bfeadd;
    border-radius: 50px;
    background: #effbf7;
    color: #07986b;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}


    .status-pill::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #0aa875;
        box-shadow: 0 0 0 4px rgba(10,168,117,.08);
    }


/* =========================================================
   APPLY BUTTON
========================================================= */

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    background: #063b4d;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(6,59,77,.15);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}


    .apply-btn:hover {
        background: #087f8c;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(8,127,140,.20);
    }


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.nav-link.dropdown-toggle::after {
    position: static;
    width: auto;
    height: auto;
    margin-left: 7px;
    border: 0;
    content: "\f107";
    font-family: "Font Awesome 7 Pro", "Font Awesome 6 Free";
    font-size: 9px;
    font-weight: 900;
    color: #82939b;
    transform: none;
    background: none;
}


.nav-link.dropdown-toggle:hover::after {
    width: auto;
}


/* =========================================================
   MEGA MENU BASE
========================================================= */

.mega-dropdown {
    position: relative;
}


.mega-menu {
    position: absolute;
    top: calc(100% + 13px);
    left: 50%;
    width: 760px;
    padding: 0;
    border: 1px solid #e4edef;
    border-top: 3px solid #e3b33d;
    border-radius: 22px !important;
    background: #fff;
    box-shadow: 0 25px 70px rgba(15,45,58,.16), 0 5px 18px rgba(15,45,58,.06);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 10000;
}


/* Desktop hover */

@media (min-width: 992px) {

    .mega-dropdown:hover > .mega-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}


/* =========================================================
   MEGA MENU ARROW
========================================================= */

.mega-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 15px;
    height: 15px;
    background: #fff;
    border-left: 1px solid #e4edef;
    border-top: 1px solid #e4edef;
    transform: translateX(-50%) rotate(45deg);
    z-index: 2;
}


/* =========================================================
   MENU BRIDGE
========================================================= */

.mega-dropdown::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 150px;
    height: 18px;
    transform: translateX(-50%);
}


/* =========================================================
   MEGA HEADER
========================================================= */

.mega-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid #edf1f2;
    background: #fbfdfd;
}


    .mega-header span:first-child {
        color: #71838a;
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 2px;
        text-transform: uppercase;
    }


.badge-programs {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border: 1px solid #d7e9ed;
    border-radius: 30px;
    background: #eef7f8;
    color: #087f8c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .4px;
}


/* =========================================================
   MEGA MENU HEADINGS
========================================================= */

.mega-menu h6 {
    margin: 0 0 10px;
    color: #087f8c;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}


/* =========================================================
   MEGA MENU LINKS
========================================================= */

.mega-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    color: #334b55;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease, padding-left .2s ease;
}


    .mega-menu a::before {
        content: "\f105";
        font-family: "Font Awesome 7 Pro", "Font Awesome 6 Free";
        font-size: 8px;
        font-weight: 900;
        color: #b7c6ca;
        transition: color .2s ease;
    }


    .mega-menu a:hover {
        padding-left: 11px;
        color: #087f8c;
        background: #f3f9fa;
    }


        .mega-menu a:hover::before {
            color: #e3b33d;
        }


/* =========================================================
   MEGA FOOTER
========================================================= */

.mega-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 24px;
    border-top: 1px solid #edf1f2;
    background: #fafcfc;
}


    .mega-footer a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 0;
        color: #087f8c;
        font-size: 11px;
        font-weight: 800;
        text-decoration: none;
    }


        .mega-footer a:hover {
            padding-left: 0;
            background: none;
        }


        .mega-footer a::before {
            display: none;
        }


    .mega-footer small {
        color: #82939b;
        font-size: 10px;
    }


/* =========================================================
   CAMPUSES MENU
========================================================= */

.campuses-menu {
    width: 700px;
}


.campus-card {
    height: 100%;
    padding: 13px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}


    .campus-card:hover {
        background: #f5fafb;
        border-color: #e0edef;
        transform: translateY(-2px);
    }


.campus-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 7px;
    background: #eaf6f7;
    color: #087f8c;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .8px;
    text-transform: uppercase;
}


.campus-card h5 {
    margin: 0 0 4px;
    color: #163b49;
    font-size: 16px;
    font-weight: 800;
}


.campus-card p {
    margin: 0;
    color: #71838a;
    font-size: 11px;
    line-height: 1.5;
}


.campuses-menu .mega-header {
    padding: 18px 22px;
}


.campuses-menu .mega-footer {
    padding: 15px 22px;
}


/* =========================================================
   RESEARCH MENU
========================================================= */

.research-menu {
    width: 760px;
}


.research-highlight {
    height: 100%;
    padding: 26px;
    border-radius: 17px;
    background: linear-gradient( 135deg, #063b4d, #087f8c );
    color: #fff;
}


    .research-highlight small {
        color: rgba(255,255,255,.68);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
    }


    .research-highlight h4 {
        margin: 12px 0 9px;
        color: #fff;
        font-size: 20px;
        font-weight: 800;
    }


    .research-highlight p {
        margin: 0;
        color: rgba(255,255,255,.76);
        font-size: 11px;
        line-height: 1.7;
    }


.research-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 9px 15px;
    border-radius: 10px;
    background: #fff;
    color: #063b4d !important;
    font-size: 10px !important;
    font-weight: 800;
    text-decoration: none;
}


    .research-btn:hover {
        padding-left: 15px !important;
        background: #f3f8f9 !important;
    }


/* =========================================================
   ADMISSIONS MENU
========================================================= */

.admission-menu {
    width: 850px;
}


.admission-highlight {
    height: 100%;
    padding: 27px;
    border-radius: 17px;
    background: linear-gradient( 135deg, #07556b, #087f8c );
    color: #fff;
}


    .admission-highlight small {
        color: rgba(255,255,255,.70);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
    }


    .admission-highlight h4 {
        margin: 12px 0 9px;
        color: #fff;
        font-size: 20px;
        font-weight: 800;
    }


    .admission-highlight p {
        margin: 0;
        color: rgba(255,255,255,.78);
        font-size: 11px;
        line-height: 1.7;
    }


.admission-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 10px 17px;
    border-radius: 10px;
    background: #fff;
    color: #07556b !important;
    font-size: 10px !important;
    font-weight: 800;
    text-decoration: none;
}


    .admission-btn:hover {
        padding-left: 17px !important;
        background: #f3f8f9 !important;
    }


/* =========================================================
   STUDENT MENU
========================================================= */

.student-menu {
    width: 850px;
}


.student-highlight {
    height: 100%;
    padding: 27px;
    border-radius: 17px;
    background: linear-gradient( 135deg, #237e5a, #0c6950 );
    color: #fff;
}


    .student-highlight small {
        color: rgba(255,255,255,.70);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
    }


    .student-highlight h4 {
        margin: 12px 0 9px;
        color: #fff;
        font-size: 20px;
        font-weight: 800;
    }


    .student-highlight p {
        margin: 0;
        color: rgba(255,255,255,.78);
        font-size: 11px;
        line-height: 1.7;
    }


.student-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 10px 17px;
    border-radius: 10px;
    background: #fff;
    color: #19704f !important;
    font-size: 10px !important;
    font-weight: 800;
    text-decoration: none;
}


    .student-btn:hover {
        padding-left: 17px !important;
        background: #f4f8f6 !important;
    }


/* =========================================================
   ABOUT MENU
========================================================= */

.about-menu {
    width: 880px;
}


.about-highlight {
    height: 100%;
    padding: 27px;
    border-radius: 17px;
    background: linear-gradient( 135deg, #063b4d, #07566b );
    color: #fff;
}


    .about-highlight small {
        color: rgba(255,255,255,.70);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
    }


    .about-highlight h4 {
        margin: 12px 0 9px;
        color: #fff;
        font-size: 20px;
        font-weight: 800;
    }


    .about-highlight p {
        margin: 0;
        color: rgba(255,255,255,.78);
        font-size: 11px;
        line-height: 1.7;
    }


    .about-highlight h5 {
        margin: 15px 0 0;
        color: #e3b33d;
        font-size: 25px;
        font-weight: 850;
    }


.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 10px 17px;
    border-radius: 10px;
    background: #fff;
    color: #063b4d !important;
    font-size: 10px !important;
    font-weight: 800;
    text-decoration: none;
}


    .about-btn:hover {
        padding-left: 17px !important;
        background: #f3f8f9 !important;
    }


/* =========================================================
   PAGE OVERLAY
========================================================= */

.page-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4,35,45,.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 9990;
}


    .page-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 991.98px) {

    .floating-nav {
        top: 10px;
        left: 10px;
        transform: none;
        width: calc(100% - 20px);
        max-width: none;
        min-height: 64px;
        padding: 9px 13px;
        border-radius: 20px;
    }


        .floating-nav.scrolled {
            top: 7px;
            padding: 7px 13px;
        }


    .navbar-brand {
        margin-right: 0;
    }


        .navbar-brand img {
            max-height: 42px;
        }


    .logo-title {
        font-size: 16px;
    }


    .navbar-brand small {
        font-size: 12px;
    }


    /* Mobile menu */

    .navbar-collapse {
        position: relative;
        margin-top: 12px;
        padding: 13px;
        width: 100%;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        border: 1px solid #e6eef0;
        border-radius: 17px;
        background: #fff;
        box-shadow: 0 15px 40px rgba(15,45,58,.12);
    }


    .navbar-nav {
        width: 100%;
        align-items: stretch;
        gap: 2px;
    }


    .nav-link {
        width: 100%;
        min-height: 46px;
        padding: 12px 13px !important;
        justify-content: space-between;
        border-radius: 11px;
        font-size: 13px;
        white-space: normal;
    }


        .nav-link::after {
            display: none;
        }


        .nav-link.dropdown-toggle::after {
            display: inline-block;
            margin-left: auto;
            content: "\f107";
            font-family: "Font Awesome 7 Pro", "Font Awesome 6 Free";
            font-size: 10px;
            font-weight: 900;
            background: none;
        }


    /* Actions */

    .navbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #edf1f2;
    }


    .status-pill,
    .apply-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }


    /* =====================================================
       MOBILE MEGA MENU
    ===================================================== */

    .mega-dropdown {
        position: relative;
    }


        .mega-dropdown .mega-menu {
            position: static !important;
            display: none;
            width: 100% !important;
            max-width: 100% !important;
            max-height: 55vh;
            margin: 5px 0 9px !important;
            padding: 0 !important;
            border: 1px solid #e4edef !important;
            border-top: 2px solid #e3b33d !important;
            border-radius: 14px !important;
            background: #fff !important;
            box-shadow: 0 8px 22px rgba(15,45,58,.08) !important;
            overflow-y: auto;
            overflow-x: hidden;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: none !important;
            transition: none;
        }


        .mega-dropdown.mobile-open > .mega-menu {
            display: block !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }


        .mega-menu::before,
        .mega-dropdown::after {
            display: none !important;
        }


    .mega-menu .mega-header {
        position: sticky;
        top: 0;
        z-index: 20;
        padding: 13px 15px !important;
        background: #fbfdfd;
    }


        .mega-menu .mega-header span:first-child {
            font-size: 8px;
            letter-spacing: 1.5px;
        }


    .mega-menu .badge-programs {
        padding: 5px 9px;
        font-size: 8px;
    }


    .mega-menu .container-fluid {
        padding: 13px !important;
    }


    .mega-menu .row {
        margin: 0;
    }


        .mega-menu .row > [class*="col-"] {
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 !important;
            margin-bottom: 10px;
        }


    .mega-menu h6 {
        margin: 11px 0 5px !important;
        font-size: 8px !important;
        letter-spacing: 1.5px !important;
    }


    .mega-menu a {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }


        .mega-menu a:hover {
            padding-left: 10px !important;
        }


    .mega-menu .mega-footer {
        position: relative;
        padding: 13px 15px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }


    /* Highlight blocks */

    .mega-menu .research-highlight,
    .mega-menu .admission-highlight,
    .mega-menu .student-highlight,
    .mega-menu .about-highlight {
        height: auto !important;
        margin-top: 8px;
        padding: 19px !important;
        border-radius: 14px;
    }


    .research-highlight h4,
    .admission-highlight h4,
    .student-highlight h4,
    .about-highlight h4 {
        font-size: 18px;
    }


    .research-highlight p,
    .admission-highlight p,
    .student-highlight p,
    .about-highlight p {
        font-size: 11px;
        line-height: 1.65;
    }


    /* Campus */

    .campuses-menu .campus-card {
        padding: 10px !important;
    }


        .campuses-menu .campus-card h5 {
            font-size: 15px;
        }


        .campuses-menu .campus-card p {
            font-size: 11px;
        }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .floating-nav {
        width: calc(100% - 14px);
        left: 7px;
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 18px;
    }


    .logo-title {
        font-size: 14px;
    }


    .navbar-brand small {
        font-size: 11px;
        letter-spacing: 0;
    }


    .navbar-brand img {
        max-height: 38px;
    }


    .navbar-toggler {
        padding: 7px 9px;
        border: 1px solid #dce8eb;
        border-radius: 9px;
        color: #063b4d;
    }


        .navbar-toggler:focus {
            box-shadow: 0 0 0 3px rgba(8,127,140,.10);
        }


    .navbar-collapse {
        padding: 10px;
        border-radius: 15px;
    }


    .nav-link {
        font-size: 12px;
        padding: 11px !important;
    }


    .status-pill {
        font-size: 11px;
        padding: 10px 15px;
    }


    .apply-btn {
        font-size: 11px;
        padding: 11px 16px;
    }
}


/* =========================================================
   MOBILE MEGA MENU SCROLLBAR
========================================================= */

@media (max-width: 991.98px) {

    .mega-dropdown .mega-menu::-webkit-scrollbar {
        width: 4px;
    }


    .mega-dropdown .mega-menu::-webkit-scrollbar-track {
        background: #f1f5f6;
    }


    .mega-dropdown .mega-menu::-webkit-scrollbar-thumb {
        background: #b9cbd0;
        border-radius: 10px;
    }


        .mega-dropdown .mega-menu::-webkit-scrollbar-thumb:hover {
            background: #087f8c;
        }
}


/* =========================================================
   ABOUT MENU: "Our Legacy" figures as stacked rows
   (three columns overlapped in the narrow panel)
========================================================= */

.about-highlight .about-stats {
    display: grid;
    gap: 0;
    margin-top: 18px;
}

    .about-highlight .about-stats > div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
        border-top: 1px solid rgba(255,255,255,.12);
    }

    .about-highlight .about-stats strong {
        color: #e5b83d;
        font-size: 20px;
        font-weight: 800;
        line-height: 1;
    }

    .about-highlight .about-stats span {
        color: rgba(255,255,255,.75);
        font-size: 12px;
        font-weight: 600;
    }