/* ==========================================================================
   MNLU HEADER BUILDER — NAVY & GOLD DESIGN SYSTEM
   Colours are overridden per-site via CSS custom properties (Header Builder
   settings page pushes an inline :root block — see mnlu-header-plugin.php)
   ========================================================================== */
:root {
    --navy-dark: #001124;
    --navy-primary: #002147;
    --gold-accent: #E5A93C;
    --gold-hover: #C5902B;
}

.mnlu-header, .mnlu-header * {
    box-sizing: border-box;
}

/* Lets the Elementor "Stretch Full Width" widget option break out of the
   page's boxed content column so the header spans the full browser width. */
.mnlu-header-elementor-stretch {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.mnlu-header {
    background-color: #f8f9fa;
    color: #333;
    font-family: Arial, sans-serif;
}

.mnlu-header .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* --------------------------------------------------------------------------
   TIER 1: DARK NAVY UTILITY TOP BAR
   -------------------------------------------------------------------------- */
.mnlu-header .top-utility-bar {
    background-color: var(--navy-dark);
    padding: 8px 0;
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 1px solid rgba(229, 169, 60, 0.2);
}

.mnlu-header .top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.mnlu-header .contact-info a {
    color: #ffffff;
    font-size: 14.5px;
    margin-right: 25px;
    text-decoration: none;
    font-weight: bold;
}

.mnlu-header .contact-info i {
    color: var(--gold-accent);
    margin-right: 8px;
}

.mnlu-header .utility-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mnlu-header .utility-links a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
}

.mnlu-header .utility-links a:hover {
    color: var(--gold-accent);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   TIER 2: BRANDING LAYER & SEARCH
   -------------------------------------------------------------------------- */
.mnlu-header .branding-main-tier {
    background-color: #ffffff;
    padding: 20px 0;
}

.mnlu-header .branding-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.mnlu-header .identity-area {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.mnlu-header .logo-wrapper {
    display: block;
    min-width: 75px;
}

.mnlu-header .university-logo {
    height: 85px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.mnlu-header .university-logo:hover {
    transform: scale(1.06);
}

/* Logo entrance animations, selectable in Header Builder settings */
.mnlu-header .mnlu-logo-anim-fade-scale {
    animation: mnluLogoFadeScale 0.7s ease both;
}

.mnlu-header .mnlu-logo-anim-fade-down {
    animation: mnluLogoFadeDown 0.7s ease both;
}

.mnlu-header .mnlu-logo-anim-pulse-loop {
    animation: mnluLogoPulse 3s ease-in-out infinite;
}

@keyframes mnluLogoFadeScale {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes mnluLogoFadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes mnluLogoPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    .mnlu-header .mnlu-logo-anim-fade-scale,
    .mnlu-header .mnlu-logo-anim-fade-down,
    .mnlu-header .mnlu-logo-anim-pulse-loop,
    .mnlu-header .university-logo {
        animation: none;
        transition: none;
    }
}

.mnlu-header .text-branding h1 {
    font-family: 'Times New Roman', Times, serif;
    color: var(--navy-primary);
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
}

.mnlu-header .address-line {
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
    color: #444444;
    font-style: italic;
    line-height: 1.3;
}

.mnlu-header .establishment-line {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12.5px;
    color: #333333;
    font-style: italic;
    line-height: 1.3;
}

.mnlu-header .search-form {
    display: flex;
    align-items: center;
    border: 2px solid var(--navy-primary);
    border-radius: 25px;
    overflow: hidden;
    width: 310px;
    max-width: 100%;
    background-color: #fff;
}

.mnlu-header .search-form input {
    border: none;
    padding: 8px 16px;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.mnlu-header .search-form button {
    background-color: var(--navy-primary);
    border: none;
    color: #ffffff;
    padding: 9px 18px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.mnlu-header .search-form button:hover {
    background-color: var(--gold-accent);
    color: var(--navy-dark);
}

/* --------------------------------------------------------------------------
   TIER 3: RECOGNITION STRIP
   -------------------------------------------------------------------------- */
.mnlu-header .recognition-sub-bar {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
    font-family: 'Times New Roman', Times, serif;
}

.mnlu-header .recognition-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--navy-primary);
    font-weight: bold;
    font-style: italic;
    font-size: 15px;
}

.mnlu-header .recognition-flex a,
.mnlu-header .recognition-flex span {
    color: var(--navy-primary);
    text-decoration: none;
}

.mnlu-header .recognition-flex a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   TIER 4: NAVIGATION BAR — TABS, SUBTABS, SUB-SUBTABS (unlimited depth)
   -------------------------------------------------------------------------- */
.mnlu-header .navigation-main-bar {
    background-color: var(--navy-primary);
    padding: 0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    border-bottom: 4px solid var(--gold-accent);
    position: relative;
    transition: box-shadow 0.25s ease;
}

/* Sticky-on-scroll effect: nav bar pins to the top and gains depth once the
   page scrolls past the branding row. Toggled by mnlu-header.js. */
.mnlu-header .navigation-main-bar.mnlu-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 16px rgba(0,0,0,0.28);
    animation: mnluSlideDown 0.28s ease;
}

@keyframes mnluSlideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* Dropdown open/close fade+slide effect */
.mnlu-header .dropdown-menu {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.mnlu-header .menu-item:hover > .dropdown-menu,
.mnlu-header .menu-item.mnlu-open > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mnlu-header .sub-dropdown {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.mnlu-header .dropdown-item:hover > .sub-dropdown,
.mnlu-header .dropdown-item.mnlu-open > .sub-dropdown {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

@media (max-width: 950px) {
    .mnlu-header .dropdown-menu,
    .mnlu-header .sub-dropdown {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

.mnlu-header .navigation-main-bar .container {
    position: relative;
}

.mnlu-header .mnlu-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 14px 15px;
    cursor: pointer;
}

.mnlu-header .nav-menu-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
}

.mnlu-header .menu-item {
    position: relative;
    flex: 0 1 auto;
    text-align: center;
}

.mnlu-header .menu-item > a {
    display: block;
    color: #ffffff;
    padding: 14px 10px;
    font-size: 11.5px;
    font-weight: bold;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.1px;
    white-space: nowrap;
    transition: all 0.2s;
}

.mnlu-header .menu-item > a:hover,
.mnlu-header .menu-item.mnlu-open > a {
    background-color: var(--gold-accent);
    color: var(--navy-dark);
}

.mnlu-header .menu-item i {
    font-size: 9px;
    margin-left: 2px;
    vertical-align: middle;
    color: rgba(255,255,255,0.7);
}

.mnlu-header .menu-item > a:hover i,
.mnlu-header .menu-item.mnlu-open > a i {
    color: var(--navy-dark);
}

/* First-level dropdown */
.mnlu-header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    list-style: none;
    min-width: 260px;
    max-width: 340px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: block;
    z-index: 999;
    border-top: 3px solid var(--gold-accent);
    margin: 0;
    padding: 0;
}

.mnlu-header .menu-item:last-child > .dropdown-menu {
    left: auto;
    right: 0;
}

.mnlu-header .dropdown-menu .dropdown-item {
    position: relative;
}

.mnlu-header .dropdown-menu li > a {
    display: block;
    color: var(--navy-primary);
    padding: 11px 15px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    border-bottom: 1px solid #eee;
    font-weight: normal;
    text-align: left;
    white-space: normal;
}

.mnlu-header .dropdown-menu li > a:hover {
    background-color: #f8f9fa;
    color: var(--gold-hover);
    padding-left: 20px;
}

/* Nested dropdowns (subtabs, sub-subtabs...) open to the right of the parent */
.mnlu-header .sub-dropdown {
    top: -3px;
    left: 100%;
    border-top: 3px solid var(--gold-accent);
}

.mnlu-header .dropdown-item.menu-item-has-children > a::after {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    margin-left: 8px;
    color: #aaa;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1150px) {
    .mnlu-header .menu-item > a {
        padding: 14px 6px;
        font-size: 11px;
    }
}

@media (max-width: 950px) {
    .mnlu-header .mnlu-mobile-toggle {
        display: block;
    }
    .mnlu-header .navigation-main-bar .container {
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    .mnlu-header .nav-menu-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .mnlu-header .nav-menu-list.mnlu-nav-open {
        display: flex;
    }
    .mnlu-header .menu-item {
        width: 100%;
        text-align: left;
    }
    .mnlu-header .menu-item > a {
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 12px 15px;
        font-size: 13px;
        white-space: normal;
    }
    .mnlu-header .dropdown-menu,
    .mnlu-header .sub-dropdown,
    .mnlu-header .menu-item:last-child > .dropdown-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        background-color: rgba(0,0,0,0.15);
        box-shadow: none;
        border-top: none;
    }
    .mnlu-header .dropdown-menu li > a {
        color: #ffffff;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding-left: 28px;
    }
    .mnlu-header .sub-dropdown li > a {
        padding-left: 42px;
    }
    .mnlu-header .dropdown-item.menu-item-has-children > a::after {
        color: rgba(255,255,255,0.6);
    }
}

@media (max-width: 768px) {
    .mnlu-header .top-bar-flex,
    .mnlu-header .branding-flex,
    .mnlu-header .recognition-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .mnlu-header .identity-area {
        flex-direction: column;
    }
}
