:root {
    --num-blue: #10428C;
    --num-soft: #F5F7FA;
    --num-card: #EFF3F8;
    --num-footer: #154D9F;
    --num-blue-dark: #0a3474;
    --num-ink: #202833;
    --num-muted: #66707d;
    --num-line: #d8e0ea;
    --num-green: #23b84a;
    --num-gold: #f2ae00;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../font/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../font/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../font/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../font/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    margin-bottom: 0;
    color: var(--num-ink);
    background: var(--num-soft);
    font-family: 'Montserrat';
}

.site-header {
    position: relative;
    top: 0;
    z-index: 1000;
    background: transparent;
    border: 0;
}

.header-wrapper {
    width: 100%;
    margin: 0;
    border-bottom: 2px solid #CFD7DF;
}

.site-header .navbar {
    min-height: 68px;
    padding: 0;
    background: #fff !important;
}

.header-shell {
    width: 100%;
    min-height: 68px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
    box-sizing: border-box;
}

.navbar-brand.brand-lockup {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px;
    margin: 0;
    padding: 0;
    text-decoration: none;
    white-space: normal !important;
    flex-shrink: 0;
}

.brand-symbol {
    width: 48px;
    flex: 0 0 48px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    transform: translateY(6.5px);
}

.brand-university,
.brand-system {
    color: #10428C;
    font-size: 12px;
}

.brand-university {
    font-weight: 600;
    letter-spacing: 0.1px;
}

.brand-system {
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    min-width: 0;
}

.site-header .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 0;
    min-width: 0;
}

.main-nav-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0;
}

.main-nav-list > .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link-custom {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 0 20px !important;
    color: #2f3742;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.site-header .menu-icon {
    width: 24px;
    height: 24px;
}

.site-header i.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.menu-text {
    position: relative;
    padding-left: 12px;
    color: inherit;
    font-size: 16px;
    font-weight: 500;
}

.menu-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 18px;
    background: #dbe4ef;
    transform: translateY(-50%);
}

.site-header .nav-link-custom,
.site-header .nav-link-custom .menu-text,
.site-header .nav-link-custom .menu-icon {
    transition: color .18s ease, filter .18s ease;
}

.site-header .nav-link-custom:hover img.menu-icon,
.site-header .nav-link-custom:focus img.menu-icon,
.site-header .nav-link-custom.nav-link-active img.menu-icon {
    filter: brightness(0) saturate(100%) invert(23%) sepia(37%) saturate(2811%) hue-rotate(188deg) brightness(88%) contrast(96%);
}

.site-header .nav-link-custom:hover,
.site-header .nav-link-custom:hover .menu-text,
.site-header .nav-link-custom:hover .menu-icon,
.site-header .nav-link-custom:focus,
.site-header .nav-link-custom:focus .menu-text,
.site-header .nav-link-custom:focus .menu-icon {
    color: #10428C !important;
}

.site-header .nav-link-custom.nav-link-active,
.site-header .nav-link-custom.nav-link-active .menu-text,
.site-header .nav-link-custom.nav-link-active .menu-icon {
    color: #10428C !important;
}

.site-header .nav-link-custom.nav-link-active .menu-text {
    font-size: 18px;
    font-weight: 600;
    padding-left: 0;
    margin-left:12px;
}

.site-header .nav-link-custom.nav-link-active .menu-text::before {
    display: none;
}

.site-header .nav-link-custom.nav-link-active .menu-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -16px;
    height: 2px;
    background: #10428C;
}

.login-btn {
    min-width: 84px;
    height: 32px;
    padding: 0 16px;
    border-radius: 8px;
    background: #00A2FF;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    text-decoration: none;
    white-space: nowrap;
}

.login-btn:hover,
.login-btn:focus {
    background: #0092e6;
    color: #fff;
}

.login-icon-btn {
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid #10428C;
    border-radius: 50%;
    background: #fff;
    color: #10428C;
}

.login-icon-btn:hover,
.login-icon-btn:focus {
    border-color: #10428C;
    background: #edf4ff;
    color: #10428C;
}

.login-icon-btn i {
    font-size: 18px;
    line-height: 1;
}

.profile-menu-dropdown .login-icon-btn {
    border-color: #00A2FF;
    background: #00A2FF;
    color: #fff;
}

.profile-menu-dropdown .login-icon-btn:hover,
.profile-menu-dropdown .login-icon-btn:focus {
    border-color: #00A2FF;
    background: #00A2FF;
    color: #fff;
}

.profile-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.login-icon-active {
    position: relative;
    color: #10428C;
}

.login-icon-active::after {
    display: none;
}

.profile-menu-dropdown .dropdown-toggle::after {
    display: none;
}

.profile-dropdown-menu {
    min-width: 200px;
    margin-top: 18px;
    padding: 8px;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border-radius: 10px;
    color: #243042;
    font-size: 14px;
    font-weight: 500;
}

.profile-dropdown-item i {
    color: #10428C;
}

.profile-dropdown-item:hover,
.profile-dropdown-item:focus {
    background: #eef3fb;
    color: #10428C;
}

.mobile-nav-backdrop {
    display: none;
}

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:focus {
    box-shadow: none;
}

.mobile-menu-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: #6b7280;
    border-radius: 999px;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #6b7280;
    border-radius: 999px;
}

.mobile-menu-icon::before {
    top: -6px;
}

.mobile-menu-icon::after {
    top: 6px;
}

@media (max-width: 1199.98px) {
    .site-header .navbar {
        min-height: 60px;
    }

    .header-shell {
        min-height: 60px;
        padding: 0 12px;
        gap: 10px;
        position: relative;
    }

    .brand-symbol {
        flex: 0 0 40px;
    }

    .header-actions {
        gap: 8px;
        position: static;
    }

    .mobile-menu-btn {
        display: inline-flex;
        order: 2;
    }

    .login-btn {
        order: 1;
        min-width: 84px;
        height: 32px;
        padding: 0 14px;
        font-size: 13px;
    }

    .site-header .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none !important;
        flex-basis: 100%;
        width: 100%;
        margin: 0;
        padding: 0 12px 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        z-index: 1001;
    }

    .site-header .navbar-collapse.show {
        display: block !important;
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 60px 0 0;
        display: none;
        border: 0;
        padding: 0;
        background: rgba(15, 23, 42, 0.14);
        z-index: 999;
    }

    .mobile-nav-backdrop.is-active {
        display: block;
    }

    .main-nav-list {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
    }

    .main-nav-list > .nav-item {
        width: 100%;
    }

    .menu-text::before {
        display: none;
    }

    .nav-link-custom {
        width: 100%;
        min-height: 48px;
        padding: 12px 0 !important;
        justify-content: flex-start;
        border-bottom: 1px solid #eef2f7;
    }

    .main-nav-list > .nav-item:last-child .nav-link-custom {
        border-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .header-shell {
        min-height: 64px;
        padding: 0 10px;
        gap: 8px;
    }

    .mobile-nav-backdrop {
        inset: 64px 0 0;
    }

    .navbar-brand.brand-lockup {
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .brand-symbol {
        width: 34px;
        flex: 0 0 34px;
    }

    .brand-text {
        min-width: 0;
        line-height: 1.15;
    }

    .brand-university {
        font-size: 10px;
        font-weight: 700;
        line-height: 1.15;
    }

    .brand-system {
        font-size: 10px;
        font-weight: 500;
        line-height: 1.15;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 6px;
        margin-left: 6px;
    }

    .login-btn {
        min-width: auto;
        height: 30px;
        padding: 0 12px;
        font-size: 12px;
        flex: 0 0 auto;
    }

    .mobile-menu-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        flex: 0 0 34px;
        padding: 0;
    }

    .profile-dropdown-menu {
        margin-top: 12px;
        min-width: 184px;
        z-index: 1003;
    }

    .login-icon-active::after {
        bottom: -15px;
    }

    .mobile-menu-icon,
    .mobile-menu-icon::before,
    .mobile-menu-icon::after {
        width: 16px;
    }

    .mobile-menu-icon::before {
        top: -5px;
    }

    .mobile-menu-icon::after {
        top: 5px;
    }
}

