/* =========================================================
   MNMA PROFESSIONAL NAVIGATION
========================================================= */

.mnma-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 1000;
    font-family: "Segoe UI", Arial, sans-serif;
}


/* =========================================================
   NAVBAR
========================================================= */

.mnma-navbar {
    width: 100%;
    background: #ffffff;
}

.mnma-navbar-inner {
    width: 98%;
    max-width: 1500px;
    min-height: 54px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 2px;
}


/* =========================================================
   NAV LINKS
========================================================= */

.mnma-nav-link,
.mnma-nav-home {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;

    padding: 0 13px;

    border: 0;
    background: transparent;

    color: #1f2937;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: .15px;

    text-decoration: none;

    cursor: pointer;

    white-space: nowrap;

    transition:
        color .2s ease,
        background-color .2s ease;
}


/* Home */

.mnma-nav-home {
    width: 48px;
    padding: 0;
    color: #334155;
}

.mnma-nav-home i {
    font-size: 18px;
}


/* =========================================================
   CHEVRON
========================================================= */

.mnma-nav-link i {
    margin-left: 7px;
    font-size: 10px;
    color: #64748b;

    transition: transform .2s ease;
}


/* =========================================================
   HOVER
========================================================= */

.mnma-nav-link:hover,
.mnma-nav-home:hover {
    color: #1e3a8a;
    background: #f8fafc;
    text-decoration: none;
}

.mnma-nav-link:hover i {
    color: #1e3a8a;
}


/* =========================================================
   ACTIVE UNDERLINE
========================================================= */

.mnma-nav-item > .mnma-nav-link::after,
.mnma-navbar-inner > .mnma-nav-link:not(.mnma-nav-home)::after {

    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 3px;

    background: #1e3a8a;

    transform: translateX(-50%);

    transition: width .2s ease;
}

.mnma-nav-item:hover > .mnma-nav-link::after,
.mnma-navbar-inner > .mnma-nav-link:not(.mnma-nav-home):hover::after {
    width: 70%;
}


/* =========================================================
   DROPDOWN
========================================================= */

.mnma-dropdown {
    position: relative;
}


/* Dropdown menu */

.mnma-dropdown-menu {
    position: absolute;

    top: calc(100% + 1px);
    left: 50%;

    width: 245px;

    transform:
        translateX(-50%)
        translateY(8px);

    background: #ffffff;

    border: 1px solid #dbe2ea;

    border-radius: 0 0 6px 6px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, .14);

    padding: 6px 0;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}


/* Show */

.mnma-dropdown:hover > .mnma-dropdown-menu,
.mnma-dropdown:focus-within > .mnma-dropdown-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   DROPDOWN LINKS
========================================================= */

.mnma-dropdown-menu > a,
.mnma-submenu > a {

    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    min-height: 42px;

    padding: 10px 15px;

    box-sizing: border-box;

    color: #334155;

    font-family: "Segoe UI", Arial, sans-serif;

    font-size: 13px;
    font-weight: 500;
    text-align: left;

    text-decoration: none;

    transition:
        background-color .18s ease,
        color .18s ease,
        padding-left .18s ease;
}


.mnma-dropdown-menu > a:hover,
.mnma-submenu > a:hover {

    background: #f1f5f9;

    color: #1e3a8a;

    padding-left: 19px;

    text-decoration: none;
}


/* External link icon */

.mnma-dropdown-menu a .fa-external-link {
    font-size: 9px;
    margin-left: 8px;
    color: #94a3b8;
}


/* =========================================================
   SUBMENU
========================================================= */

.mnma-submenu {
    position: relative;
}


/* Arrow */

.mnma-submenu > a > i {
    font-size: 10px;
    color: #64748b;
}


/* Submenu */

.mnma-submenu-menu {

    position: absolute;

    top: -7px;
    left: calc(100% + 1px);

    width: 230px;

    background: #ffffff;

    border: 1px solid #dbe2ea;

    border-radius: 6px;
    text-align:left;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, .14);

    padding: 6px 0;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translateX(-6px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}


.mnma-submenu:hover > .mnma-submenu-menu,
.mnma-submenu:focus-within > .mnma-submenu-menu {

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
}


/* Submenu links */

.mnma-submenu-menu a {

    display: block;

    padding: 10px 15px;

    color: #334155;

    font-size: 13px;

    text-decoration: none;

    transition:
        background-color .18s ease,
        color .18s ease,
        padding-left .18s ease;
}


.mnma-submenu-menu a:hover {

    background: #f1f5f9;

    color: #1e3a8a;

    padding-left: 19px;

    text-decoration: none;
}


/* =========================================================
   WIDE ICT MENU
========================================================= */

.mnma-dropdown-wide {
    width: 235px;
}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 1000px) {

    .mnma-navbar-inner {
        justify-content: flex-start;
        overflow-x: auto;

        scrollbar-width: thin;

        padding: 0 6px;
    }

    .mnma-nav-link,
    .mnma-nav-home {
        flex: 0 0 auto;
    }

    .desktop-only {
        display: none !important;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .mnma-navbar-inner {
        min-height: 48px;
    }

    .mnma-nav-link,
    .mnma-nav-home {
        min-height: 48px;
    }

    .mnma-nav-link {
        padding: 0 10px;
        font-size: 11px;
    }

    .mnma-nav-home {
        width: 42px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.mnma-nav-link:focus-visible,
.mnma-nav-home:focus-visible,
.mnma-dropdown-menu a:focus-visible {

    outline: 2px solid #2563eb;
    outline-offset: -2px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mnma-nav-link,
    .mnma-nav-home,
    .mnma-dropdown-menu,
    .mnma-submenu-menu,
    .mnma-dropdown-menu > a,
    .mnma-submenu-menu a {
        transition: none;
    }
}

.mnma-dropdown.is-open > .mnma-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}

.mnma-dropdown.is-open > .mnma-dropdown-toggle i {
    transform: rotate(180deg);
}

/* =========================================================
   ACADEMIC UNITS MEGA MENU
========================================================= */

.mnma-dropdown {
    position: relative;
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.mnma-dropdown .academic-mega-menu {
    position: absolute;

    top: calc(100% + 8px);
    left: 50%;

    width: min(1050px, 90vw);

    transform: translateX(-50%) translateY(10px);

    padding: 0;

    background: #ffffff;

    text-align: left;

    border: 1px solid #dbe3ef;
    border-radius: 8px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.14),
        0 4px 12px rgba(15, 23, 42, 0.06);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 99999;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}


/* =========================================================
   SHOW MENU
========================================================= */

.mnma-dropdown:hover .academic-mega-menu,
.mnma-dropdown:focus-within .academic-mega-menu,
.mnma-dropdown.is-open .academic-mega-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


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

.academic-mega-grid {

    display: grid;

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

    padding: 24px;

    gap: 0;
}


/* =========================================================
   FACULTY COLUMN
========================================================= */

.academic-faculty {

    padding: 0 22px;

    min-width: 0;

    border-right:
        1px solid #e5e7eb;
}

.academic-faculty:first-child {
    padding-left: 0;
}

.academic-faculty:last-child {

    padding-right: 0;

    border-right: none;
}


/* =========================================================
   FACULTY TITLE
========================================================= */

.academic-faculty-title {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    min-height: 48px;

    color: #1e3a8a;

    text-decoration: none;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.4;

    transition:
        color .2s ease;
}

.academic-faculty-title i {

    flex: 0 0 auto;

    margin-top: 2px;

    color: #dc2626;

    font-size: 16px;
}

.academic-faculty-title:hover {

    color: #dc2626;

    text-decoration: none;
}


/* =========================================================
   SMALL FACULTY DIVIDER
========================================================= */

.academic-divider {

    width: 40px;

    height: 2px;

    margin:
        12px 0 12px;

    background: #1e3a8a;

    border-radius: 2px;
}


/* =========================================================
   DEPARTMENTS
========================================================= */

.academic-departments {

    display: flex;

    flex-direction: column;

    gap: 2px;
}


/* =========================================================
   DEPARTMENT
========================================================= */

.academic-department {

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 7px 6px;

    color: #475569;

    text-decoration: none;

    border-radius: 5px;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 12.5px;

    font-weight: 500;

    line-height: 1.35;

    transition:
        color .2s ease,
        background-color .2s ease,
        padding-left .2s ease;
}

.academic-department:hover {

    color: #1e3a8a;

    background: #f1f5f9;

    padding-left: 10px;

    text-decoration: none;
}


/* =========================================================
   DEPARTMENT NUMBER
========================================================= */

.department-number {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    width: 23px;
    height: 23px;

    background: #eff6ff;

    color: #1e3a8a;

    border-radius: 50%;

    font-size: 10px;

    font-weight: 700;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.academic-department:hover .department-number {

    background: #1e3a8a;

    color: #ffffff;
}


/* =========================================================
   FOOTER
========================================================= */

.academic-mega-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 11px 24px;

    background: #f8fafc;

    border-top: 1px solid #e5e7eb;

    color: #64748b;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 12px;

    font-weight: 600;
}

.academic-mega-footer span {

    display: flex;

    align-items: center;

    gap: 7px;
}

.academic-mega-footer span i {

    color: #1e3a8a;

    font-size: 14px;
}

.academic-mega-footer a {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #1e3a8a;

    text-decoration: none;

    font-weight: 700;

    transition:
        color .2s ease,
        gap .2s ease;
}

.academic-mega-footer a:hover {

    color: #dc2626;

    gap: 10px;

    text-decoration: none;
}