/* Set base font size for rem calculations */
/* Critical site chrome: layout, topbar, navbar, footer, offcanvas shell.
   Non-critical styles: custom.css (deferred). */
html {
    font-size: 14px;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    /* font-size: .8rem; */
    margin: 0;
}

/* ######################### Wrapp(e)r ######################### */
#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.central-div {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

}

/* ######################### Main ######################### */
#main {
    flex: 1;
    padding: 150px 1.25rem 0 1.25rem;
}

/* #main .central-div {
    background-color: #fff;
} */

/* ######################### TopBar ######################### */
/* Direct child of body (not inside #wrapper flex) â€” required for iOS Safari fixed stacking */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    box-shadow: 0 5px 6px rgba(15, 34, 58, .12);
    /* Above #navbar (1030) and its menus (up to 1036), below offcanvas-backdrop (1040) */
    z-index: 1037;
}

#topbar .central-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#topbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

#topbar .icons {
    display: flex;
    gap: 0.9375rem;
    align-items: center;
}

#topbar .topbar-action,
#topbar .topbar-icon-btn {
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #22324d;
    border-radius: 999px;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#topbar .topbar-action {
    padding: 0 0.75rem;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

#topbar .topbar-icon-btn {
    width: 2.45rem;
    padding: 0;
}

#topbar .topbar-action-icon {
    font-size: 1.3rem;
    line-height: 1;
}

#topbar .topbar-action-links {
    border-color: rgba(0, 87, 183, 0.35);
    background: rgba(0, 87, 183, 0.07);
    color: #004494;
}

#topbar .topbar-action:hover,
#topbar .topbar-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 34, 58, 0.12);
    border-color: rgba(0, 87, 183, 0.35);
    color: #0057b7;
}

#topbar .topbar-action:focus-visible,
#topbar .topbar-icon-btn:focus-visible {
    outline: 2px solid rgba(0, 87, 183, 0.45);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    #topbar .topbar-action {
        width: 2.45rem;
        padding: 0;
    }

    #topbar .topbar-action-icon {
        font-size: 1.25rem;
    }
}

/* ######################### NavBar ######################### */
/* Direct child of body (not inside #wrapper flex) â€” required for iOS Safari fixed stacking */
/* Î Î»Î®ÏÎµÏ‚ Ï€Î»Î¬Ï„Î¿Ï‚, Î¶Ï‰Î·ÏÏŒ Î±Î»Î»Î¬ ÏƒÎ¿Î²Î±ÏÏŒ gradient (Ï„Î¼Î·Î¼Î±Ï„Î¹ÎºÎ¬ Ï‡ÏÏŽÎ¼Î±Ï„Î±) */
#navbar {
    position: fixed;
    top: 70px;
    height: 60px;
    width: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(
        105deg,
        #001f3d 0%,
        #003366 28%,
        #0a4a7a 55%,
        #0057b7 88%,
        #1a6ec9 100%
    );
    box-shadow: 0 6px 24px rgba(0, 31, 61, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    z-index: 1030;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    /* ÎšÎµÎ½ÏŒ Î¼ÎµÏ„Î±Î¾Ï trigger ÎºÎ±Î¹ dropdown */
    --navbar-dd-gap: 2px;
    --navbar-submenu-gap: 6px;
    --navbar-submenu-bridge: 10px;
    --navbar-mega-gap: 1px;
    --navbar-mega-bridge: 12px;
}

#navbar .central-div {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: space-between;
    position: relative;
    flex: 1;
    min-width: 0;
}

#navbar .nav {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

#navbar .nav-item {
    margin-right: .35rem;
    position: relative;
}

#navbar .nav-item.dropdown {
    padding-bottom: var(--navbar-dd-gap);
}

#navbar .nav-item.is-mega {
    position: static;
    padding-bottom: var(--navbar-dd-gap);
}

#navbar .nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

#navbar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

#navbar .nav-link-main {
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

#navbar .nav-link i,
#navbar .nav-link span {
    margin-right: 8px;
    /* Î ÏÎ¿ÏƒÎ¸Î­Ï„ÎµÎ¹ ÎºÎµÎ½ÏŒ Î±Î½Î¬Î¼ÎµÏƒÎ± ÏƒÏ„Î¿ ÎµÎ¹ÎºÎ¿Î½Î¯Î´Î¹Î¿ ÎºÎ±Î¹ Ï„Î¿ ÎºÎµÎ¯Î¼ÎµÎ½Î¿ */
}

#navbar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Optical alignment so "ÎˆÏÎµÏ…Î½Î±" matches dropdown items */
#navbar .nav-link-research {
    position: relative;
    top: -1px;
}

/* Optical alignment so "Î‘ÏÏ‡Î¹ÎºÎ®" matches dropdown items */
#navbar .nav-link-home {
    position: relative;
    top: -1px;
}

#navbar .nav-item.dropdown:hover > .nav-link,
#navbar .nav-item.dropdown:focus-within > .nav-link,
#navbar .nav-item.dropdown.is-hover-open > .nav-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Bridge directly under trigger to avoid hover dead zone */
#navbar .nav-item.dropdown > .nav-link.dropdown-toggle {
    position: relative;
}

#navbar .nav-item.dropdown > .nav-link.dropdown-toggle::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * (var(--navbar-dd-gap) + 12px));
    height: calc(var(--navbar-dd-gap) + 12px);
    background: transparent;
}

/* Î’Î­Î»Î¿Ï‚ dropdown ÏƒÎµ Î±Î½Î¿Î¹Ï‡Ï„ÏŒ Ï‡ÏÏŽÎ¼Î± Ï€Î¬Î½Ï‰ ÏƒÏ„Î¿ ÏƒÎºÎ¿ÏÏÎ¿ navbar */
#navbar .dropdown-toggle::after {
    border-top-color: rgba(255, 255, 255, 0.88) !important;
}

/* ÎšÎ¿Ï…Î¼Ï€Î¯ hamburger / shortcuts ÎºÎ¹Î½Î·Ï„Î¿Ï Ï€Î¬Î½Ï‰ ÏƒÏ„Î¿ Î­Î½Ï„Î¿Î½Î¿ Ï†ÏŒÎ½Ï„Î¿ */
#navbar .btn-outline-secondary {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.06);
}

#navbar .btn-outline-secondary:hover,
#navbar .btn-outline-secondary:focus {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
    background-color: rgba(255, 255, 255, 0.18);
}

#navbar .navbar-mobile-shortcuts {
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    margin-left: auto;
    padding-left: 0.75rem;
}

#navbar .navbar-mobile-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

#navbar .navbar-mobile-shortcut i {
    font-size: 1.15rem;
    line-height: 1;
}

#navbar .navbar-mobile-shortcut__e {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.02em;
    font-family: Georgia, "Times New Roman", serif;
}

/* Icon-only only on very narrow phones */
@media (max-width: 575.98px) {
    #navbar .navbar-mobile-shortcuts {
        gap: 0.85rem;
        padding-left: 1rem;
    }

    #navbar .navbar-mobile-shortcut {
        width: 2.45rem;
        height: 2.45rem;
        padding: 0;
        border-radius: 999px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    #navbar .navbar-mobile-shortcut {
        width: auto;
        height: auto;
        padding: 0.4rem 0.75rem;
        border-radius: 8px;
    }

    #navbar .navbar-mobile-shortcut__label {
        font-size: 0.82rem;
        font-weight: 500;
        white-space: nowrap;
    }
}

#navbar .dropdown-menu {
    display: block;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    list-style: none;
    margin: 0;
    min-width: 10rem;
    z-index: 1035;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

/* Î¥Ï€Î¿Î¼ÎµÎ½Î¿Ï (Î ÏÎ¿ÏƒÏ‰Ï€Î¹ÎºÏŒ, Î£Ï€Î¿Ï…Î´Î­Ï‚ Îº.Î»Ï€.) â€” Î¼Î¹ÎºÏÏŒ ÎºÎµÎ½ÏŒ ÎºÎ¬Ï„Ï‰ Î±Ï€ÏŒ Ï„Î¿ trigger */
#navbar .dropdown-menu:not(.mega-menu) {
    top: calc(100% + var(--navbar-submenu-gap));
    margin-top: 0;
    border-radius: 10px;
}

#navbar .dropdown-menu:not(.mega-menu)::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--navbar-submenu-bridge));
    left: 0;
    right: 0;
    height: var(--navbar-submenu-bridge);
    background: transparent;
}

#navbar .nav-item.dropdown:hover > .dropdown-menu,
#navbar .nav-item.dropdown:focus-within > .dropdown-menu,
#navbar .nav-item.dropdown.is-hover-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* -------- Mega menu (Î¤Î¼Î®Î¼Î±) -------- */
#navbar .mega-menu {
    padding: 0;
    margin-top: 0;
    top: calc(100% + var(--navbar-mega-gap));
    left: 1.25rem;
    right: 1.25rem;
    width: auto;
    min-width: 0;
    max-width: none;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1036;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Î‘ÏŒÏÎ±Ï„Î· Î³Î­Ï†Ï…ÏÎ± ÏƒÏ„Î¿ ÎºÎµÎ½ÏŒ ÎºÎ¬Ï„Ï‰ Î±Ï€ÏŒ Ï„Î· Î¼Ï€Î¬ÏÎ± â€” Ï‡Ï‰ÏÎ¯Ï‚ Î½Î± Î±Î½ÎµÎ²Î¬Î¶ÎµÎ¹ Î¿Ï€Ï„Î¹ÎºÎ¬ Ï„Î¿ panel */
#navbar .mega-menu::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--navbar-mega-bridge));
    left: 0;
    right: 0;
    height: var(--navbar-mega-bridge);
    background: transparent;
}

/* Ensure offcanvas overlays the navbar/menus */
.offcanvas {
    z-index: 1050;
}

.offcanvas-backdrop {
    z-index: 1040;
}

/* Î ÎµÏÎ¹ÎµÏ‡ÏŒÎ¼ÎµÎ½Î¿ mega menu: ÎºÎ¿Î¹Î½ÏŒ desktop + drawer (ÏŒÏ‡Î¹ Î¼ÏŒÎ½Î¿ #navbar) */
.mega-menu .mega-menu-inner {
    padding: 1.25rem 1.5rem 1.35rem;
    background: #ffffff;
}

.mega-menu .mega-menu-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6c757d;
    margin-bottom: 0.65rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e9ecef;
}

.mega-menu .mega-menu-heading-accent {
    color: #0057b7;
    border-bottom-color: rgba(0, 87, 183, 0.2);
}

.mega-menu .mega-menu-spotlight-note {
    font-size: 0.75rem;
    color: #868e96;
    margin: -0.25rem 0 0.75rem;
    line-height: 1.35;
}

.mega-menu .mega-menu-link,
.mega-menu .mega-menu-link:visited {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.2rem;
    border-radius: 10px;
    text-decoration: none !important;
    color: #212529;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.mega-menu .mega-menu-link:hover,
.mega-menu .mega-menu-link:focus-visible {
    background: #fff;
    border-color: #e9ecef;
    box-shadow: 0 4px 14px rgba(15, 34, 58, 0.07);
    color: #0057b7;
    outline: none;
}

.mega-menu .mega-menu-link:active {
    background: #f0f4f8;
    color: #004494;
}

.mega-menu .mega-menu-link.is-active {
    background: rgba(0, 87, 183, 0.07);
    border-color: rgba(0, 87, 183, 0.15);
    color: #0057b7;
}

.mega-menu .mega-menu-link.is-active .mega-menu-link-title {
    color: #0057b7;
}

.mega-menu .mega-menu-link-icon {
    font-size: 1.35rem;
    color: #0057b7;
    opacity: 0.9;
    line-height: 1.2;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

.mega-menu .mega-menu-link-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
    color: inherit;
    text-decoration: none !important;
}

.mega-menu .mega-menu-link-desc {
    display: block;
    font-size: 0.72rem;
    color: #868e96;
    font-weight: 400;
    margin-top: 0.15rem;
    line-height: 1.35;
    text-decoration: none !important;
}

.mega-menu .mega-menu-link:hover .mega-menu-link-desc,
.mega-menu .mega-menu-link:focus-visible .mega-menu-link-desc {
    color: #495057;
}

.mega-menu .mega-menu-link-compact {
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.2rem;
    position: relative;
    padding-right: 2rem;
}

.mega-menu .mega-menu-external {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #adb5bd;
    flex-shrink: 0;
    pointer-events: none;
}

.mega-menu .mega-menu-link:hover .mega-menu-external,
.mega-menu .mega-menu-link:focus-visible .mega-menu-external {
    color: #0057b7;
}

.mega-menu .mega-menu-col-spotlight {
    background: rgba(0, 87, 183, 0.04);
    border-radius: 12px;
    padding: 0.85rem 0.85rem 0.65rem;
    margin: -0.35rem -0.35rem -0.35rem 0;
    border: 1px solid rgba(0, 87, 183, 0.1);
}

@media (max-width: 991.98px) {
    .mega-menu .mega-menu-col-spotlight {
        margin: 0;
    }
}

/* Links column: compact document links (mega menu, right column) */
.mega-menu .mega-menu-col-links {
    background: rgba(0, 87, 183, 0.04);
    border: 1px solid rgba(0, 87, 183, 0.12);
    border-radius: 12px;
    padding: 0.85rem 0.85rem 0.65rem;
    margin: -0.35rem -0.35rem -0.35rem 0;
}

.mega-menu .mega-menu-link--document {
    align-items: center;
}

.mega-menu .mega-menu-link--document .mega-menu-link-icon {
    font-size: 1.15rem;
}

.mega-menu .mega-menu-link--document .mega-menu-link-title {
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .mega-menu .mega-menu-col-links {
        margin: 0.75rem 0 0;
    }
}

#navbar .dropdown-item-rich {
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin: 0.1rem 0;
}

#navbar .dropdown-item-rich.active {
    color: #0057b7 !important;
    background-color: rgba(0, 87, 183, 0.08) !important;
}

/* Î ÏÎ¿ÏƒÏ‰Ï€Î¹ÎºÏŒ -> Î”Î¹Î¿Î¯ÎºÎ·ÏƒÎ·: Î¾ÎµÏ‡Ï‰ÏÎ¹ÏƒÏ„ÏŒ highlight */
#navbar .dropdown-item-rich.admin-highlight {
    border: 1px solid rgba(0, 87, 183, 0.18);
    background-color: rgba(0, 87, 183, 0.04);
}

#navbar .dropdown-item-rich.admin-highlight:hover {
    background-color: rgba(0, 87, 183, 0.08);
    color: #0057b7;
}

#navbar .dropdown-item-rich.admin-highlight.active {
    color: #0057b7 !important;
    background-color: rgba(0, 87, 183, 0.12) !important;
    border-color: rgba(0, 87, 183, 0.35);
}

#navbar .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

#navbar .dropdown-item:hover {
    color: #007bff;
    background-color: #f0f0f0;
    /* Î‘Î»Î»Î±Î³Î® background ÏŒÏ„Î±Î½ Î³Î¯Î½ÎµÏ„Î±Î¹ hover */
}

/* ######################### NavBar-Vertical ######################### */
#navbar-vertical {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
}

#navbar-vertical .nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

#navbar-vertical .nav-item {
    margin-bottom: 0.25rem;
}

#navbar-vertical .nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a1d21;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

#navbar-vertical .nav-link span[class^="ri-"] {
    margin-right: 10px;
    font-size: 1.15rem;
    color: #0057b7;
    flex-shrink: 0;
}

#navbar-vertical .nav-link:hover {
    color: #0057b7;
    background-color: #f0f4f8;
}

#navbar-vertical .nav-link.active {
    color: #0057b7;
    background-color: rgba(0, 87, 183, 0.08);
    border: 1px solid rgba(0, 87, 183, 0.2);
}

#navbar-vertical .dropdown-menu {
    display: none;
    position: static;
    float: none;
    background-color: #ffffff;
    border: 1px solid #e8ecf1;
    box-shadow: 0 6px 24px rgba(15, 34, 58, 0.08);
    padding: 0.5rem;
    list-style: none;
    margin: 0.35rem 0 0.5rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1;
    border-radius: 12px;
}

#navbar-vertical .nav-item.dropdown.is-open > .dropdown-menu {
    display: block !important;
}

#navbar-vertical .nav-item.dropdown:not(.is-open) > .dropdown-menu {
    display: none !important;
}

#navbar-vertical .dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.75rem;
    clear: both;
    font-weight: 500;
    font-size: 0.9rem;
    color: #212529;
    text-align: inherit;
    white-space: normal;
    background-color: transparent;
    border: 0;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

#navbar-vertical .dropdown-item:hover,
#navbar-vertical .dropdown-item:focus-visible {
    color: #0057b7;
    background-color: #f0f4f8;
    outline: none;
}

#navbar-vertical .nav-item.is-mega {
    position: relative;
}

#navbar-vertical .nav-item.dropdown.is-mega::before {
    display: none;
}

#navbar-vertical .mega-menu {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-top: 0.35rem;
    transform: none;
    border-radius: 12px !important;
}

#navbar-vertical .mega-menu-inner {
    padding: 0.85rem 0.75rem 1rem;
}

#navbar-vertical .mega-menu-col-spotlight {
    margin: 0.75rem 0 0;
    padding: 0.75rem;
}

#navbar-vertical .mega-menu-col-links {
    margin: 0.75rem 0 0;
    padding: 0.75rem;
}

#navbar-vertical .nav-link-main {
    font-weight: 600;
    font-size: 0.9375rem;
}

#navbar-vertical .dropdown-item-rich.active {
    color: #0057b7 !important;
    background-color: rgba(0, 87, 183, 0.08) !important;
}

#navbar-vertical .dropdown-item-rich span[class*="ri-"] {
    color: #0057b7;
    font-size: 1.05rem;
    flex-shrink: 0;
}

#navbar-vertical .nav-link.dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
}

#navbar-vertical .nav-link.dropdown-toggle::after {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

#navbar-vertical .nav-item.dropdown.is-open > .nav-link.dropdown-toggle::after {
    transform: rotate(-180deg);
}

/* -------- Offcanvas (Î¼Î¹ÎºÏÎ­Ï‚ Î¿Î¸ÏŒÎ½ÎµÏ‚) -------- */
#offcanvasNavbar.nav-offcanvas.offcanvas,
.nav-offcanvas.offcanvas {
    width: min(100vw - 1rem, 380px);
    max-width: 100%;
    border-right: none;
    box-shadow: 8px 0 40px rgba(15, 34, 58, 0.18);
}

.nav-offcanvas-header {
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
}

.nav-offcanvas-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.nav-offcanvas-header .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.nav-offcanvas-body {
    background: #f1f4f8;
}

.nav-offcanvas-inner {
    padding: 0.75rem 0.85rem 1.25rem;
}

.nav-offcanvas-list {
    gap: 0.15rem;
}

#offcanvasNavbar .mega-menu .row {
    margin-left: 0;
    margin-right: 0;
    --bs-gutter-x: 0.5rem;
}

#offcanvasNavbar .mega-menu .row > * {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

#offcanvasNavbar .mega-menu-col {
    margin-bottom: 0.25rem;
}

#offcanvasNavbar .mega-menu .mega-menu-link-title {
    word-break: break-word;
    hyphens: auto;
}

/* Î£Ï„Î¿ drawer Ï„Î± dropdown labels ÎµÎ¯Î½Î±Î¹ <span> Î¼Îµ pointer-events:none (ÏŒÏ€Ï‰Ï‚ ÏƒÏ„Î¿ desktop)Â· ÎµÎ´ÏŽ Ï€ÏÎ­Ï€ÎµÎ¹ Î½Î± Î´Î­Ï‡Î¿Î½Ï„Î±Î¹ ÎºÎ»Î¹Îº */
#offcanvasNavbar .nav-item.dropdown .dropdown-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ######################### Footer ######################### */

#footer {
    margin-top: 1.25rem;
    color: #d8e2ef;
    background: linear-gradient(180deg, #003366 0%, #0b3f78 100%);
    max-width: 100%;
    overflow-x: clip;
}

#footer .central-div {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.footer-main {
    background: transparent;
    border: 0;
    padding: 3.2rem 0 2.8rem;
}

.footer-main-grid.row.g-3 {
    gap: 0;
}

.footer-main-grid > [class*="col-"] {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.footer-section {
    padding-right: 0.75rem;
    width: 100%;
}

.footer-brand {
    width: 100%;
}

.footer-title {
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
    margin: 0 0 1.05rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(173, 203, 236, 0.28);
    letter-spacing: 0.01em;
}

.footer-brand__logo {
    display: inline-block;
    margin-bottom: 0.8rem;
}

.footer-brand__logo img {
    max-height: 52px;
    width: auto;
    opacity: 0.95;
}

.footer-brand__text {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.45;
    max-width: 20rem;
    margin-bottom: 1.05rem;
    font-size: 0.9rem;
}

.footer-kv-list,
.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-kv-list li,
.footer-link-list li {
    margin-bottom: 0.72rem;
    line-height: 1.6;
    color: #d8e2ef;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-kv-list li:last-child,
.footer-link-list li:last-child {
    margin-bottom: 0;
}

.footer-kv-list li span,
.footer-link-list li span {
    color: #f5f8fc;
    font-weight: 700;
    margin-right: 0.35rem;
}

.footer-link-list a {
    color: #d8e2ef;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-link-list--links li {
    margin-bottom: 0.48rem;
}

.footer-bottom {
    min-height: 3rem;
    background: transparent;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(173, 203, 236, 0.24);
}

.footer-bottom .central-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 10px;
    color: #d7e4f5;
    font-size: 0.82rem;
}

@media (max-width: 767.98px) {
    #footer .central-div {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 0.85rem;
    }

    .footer-main {
        padding-top: 2rem;
        padding-bottom: 1.65rem;
    }

    .footer-main-grid.row.g-3 {
        gap: 0;
    }

    .footer-main-grid > [class*="col-"] + [class*="col-"] {
        margin-top: 1.35rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(173, 203, 236, 0.22);
    }

    .footer-section {
        padding-right: 0;
    }

    .footer-brand__text {
        max-width: none;
        margin-bottom: 0.9rem;
    }

    .footer-kv-list li,
    .footer-link-list li {
        margin-bottom: 0.85rem;
    }

    .footer-kv-list li span,
    .footer-link-list li span {
        display: block;
        margin-right: 0;
        margin-bottom: 0.2rem;
        font-size: 0.8rem;
        letter-spacing: 0.02em;
    }

    .footer-link-list a {
        display: inline-block;
        line-height: 1.45;
    }

    .footer-bottom .central-div {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0.85rem 1rem 1rem;
        gap: 0.35rem;
    }
}


/* ######################### OffCanvas shell (critical widths) ######################### */
#offcanvasDetails,
#offcanvasNavbar,
#offcanvasInfo {
    width: 300px;
}

#offcanvasLinks {
    width: 330px;
}

