/* =====================================
   Global fixed header
===================================== */
.site-navigation-row:empty {
    display: none !important;
}
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1050;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 3px 18px rgba(23, 43, 68, 0.12);
}

body {
    padding-top: 132px;
}

/* =====================================
   Main header row
===================================== */

.site-header-main {
    height: 84px;
    background: #375d81;
    transition: height 0.25s ease;
}

.site-header-main > .container {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 30px;
}

.site-header .navbar-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    margin: 0;
}

.site-header .navbar-brand {
    display: flex;
    height: 84px;
    align-items: center;
    margin: 0 !important;
    padding: 9px 0;
}

.site-header .navbar-brand img {
    display: block;
    width: auto;
    max-width: 165px;
    max-height: 62px;
    object-fit: contain;
    transition:
        max-width 0.25s ease,
        max-height 0.25s ease;
}

/* =====================================
   Search and social area
===================================== */

.site-header-tools {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-search-form {
    position: relative;
    width: 100%;
    max-width: 650px;
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
}

.site-search-form .form-group {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

.site-search-form .form-control {
    display: block;
    width: 100% !important;
    height: 48px;
    padding: 10px 55px 10px 18px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    color: #29333d;
    font-size: 16px;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.site-search-form .form-control::placeholder {
    color: #9299a2;
}

.site-search-form .form-control:focus {
    border-color: #6946ff;
    box-shadow: 0 0 0 4px rgba(105, 70, 255, 0.15);
    outline: none;
}

.site-search-button {
    position: absolute;
    top: 50%;
    right: 5px;
    display: flex;
    width: 44px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #426f99;
    font-size: 19px;
    transform: translateY(-50%);
}

.site-search-button:hover,
.site-search-button:focus {
    background: #eef3f8;
    color: #6946ff;
    outline: none;
}

/* =====================================
   Social icons
===================================== */

.site-social-links {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.site-social-links a {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.site-social-links a:hover,
.site-social-links a:focus {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* =====================================
   Navigation row
===================================== */

.site-navigation-row {
    height: 48px;
    overflow: visible;
    border-bottom: 1px solid #e4e8ed;
    background: #ffffff;
    transition:
        height 0.25s ease,
        opacity 0.2s ease,
        transform 0.25s ease;
}

.site-navigation-row .container,
.site-navigation-row .navbar-collapse {
    height: 100%;
}

.site-navigation-row .navbar-collapse {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.site-main-menu {
    display: flex;
    float: none !important;
    height: 100%;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-main-menu > li {
    display: flex;
    align-items: stretch;
}

.site-main-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 28px;
    color: #344250;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.site-main-menu > li > a::after {
    position: absolute;
    right: 20px;
    bottom: 0;
    left: 20px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #6946ff;
    content: "";
    opacity: 0;
    transform: scaleX(0.5);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.site-main-menu > li > a:hover,
.site-main-menu > li > a:focus,
.site-main-menu > .active > a {
    background: #f7f8fb;
    color: #6946ff;
}

.site-main-menu > li > a:hover::after,
.site-main-menu > li > a:focus::after,
.site-main-menu > .active > a::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-main-menu .caret {
    margin-left: 7px;
}

/* =====================================
   Article dropdown
===================================== */

.site-main-menu .dropdown-menu {
    min-width: 230px;
    padding: 8px;
    border: 1px solid #e2e6ec;
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(28, 43, 62, 0.14);
}

.site-main-menu .dropdown-menu > li > a {
    padding: 10px 13px;
    border-radius: 7px;
    color: #344250;
    font-size: 14px;
}

.site-main-menu .dropdown-menu > li > a:hover,
.site-main-menu .dropdown-menu > li > a:focus {
    background: #f0edff;
    color: #6946ff;
}

@media (min-width: 768px) {
    .site-navigation-row .navbar-collapse.collapse {
        display: block !important;
    }

    .site-main-menu .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* =====================================
   Compact desktop header after scroll
===================================== */

.site-header.is-compact .site-header-main {
    height: 66px;
}

.site-header.is-compact .navbar-brand {
    height: 66px;
}

.site-header.is-compact .navbar-brand img {
    max-width: 145px;
    max-height: 49px;
}

.site-header.is-compact .site-search-form .form-control {
    height: 44px;
}

.site-header.is-compact .site-navigation-row {
    height: 0;
    border: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.site-header.is-compact .site-navigation-row .dropdown-menu {
    display: none;
}

/* =====================================
   Hamburger button
===================================== */

.site-header .navbar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 10px 9px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9px;
    background: transparent;
}

.site-header .navbar-toggle .icon-bar {
    width: 22px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #ffffff;
}

.site-header .navbar-toggle:hover,
.site-header .navbar-toggle:focus {
    background: rgba(255, 255, 255, 0.14);
}

/* =====================================
   Tablet
===================================== */

@media (min-width: 768px) and (max-width: 991px) {
    .site-header-main > .container {
        gap: 22px;
    }

    .site-header .navbar-brand img {
        max-width: 135px;
    }

    .site-search-form {
        max-width: none;
    }

    .site-social-links {
        display: none;
    }

    .site-main-menu > li > a {
        padding-right: 20px;
        padding-left: 20px;
        font-size: 14px;
    }
}

/* =====================================
   Mobile
===================================== */

@media (max-width: 767px) {
    body {
        padding-top: 116px;
    }

    .site-header-main {
        height: 116px;
        min-height: 116px;
        padding: 8px 0 10px;
    }

    .site-header-main > .container {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .site-header .navbar-header {
        display: flex;
        width: 100%;
        height: 48px;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
    }

    .site-header .navbar-brand {
        height: 48px;
        padding: 2px 0;
    }

    .site-header .navbar-brand img {
        max-width: 125px;
        max-height: 44px;
    }

    .site-header .navbar-toggle {
        display: block;
    }

    .site-header-tools {
        width: 100%;
        flex: 0 0 100%;
    }

    .site-search-form {
        width: 100%;
        max-width: none;
    }

    .site-search-form .form-control {
        height: 44px;
        padding: 8px 48px 8px 14px;
        border-radius: 10px;
        font-size: 14px;
    }

    .site-search-button {
        right: 3px;
        width: 40px;
        height: 38px;
        font-size: 17px;
    }

    .site-social-links {
        display: none;
    }

    /*
     * Mobile navigation opens underneath the fixed header.
     */
    .site-navigation-row {
        height: auto;
        border: 0;
        background: transparent;
    }

    .site-navigation-row .container {
        height: auto;
        padding: 0;
    }

    .site-navigation-row .navbar-collapse {
        max-height: calc(100vh - 116px);
        margin: 0;
        padding: 8px;
        overflow-y: auto;
        border: 0;
        border-top: 1px solid #e3e7ec;
        background: #ffffff;
        box-shadow: 0 12px 22px rgba(22, 38, 56, 0.14);
    }

    .site-main-menu {
        display: block;
        height: auto;
    }

    .site-main-menu > li {
        display: block;
        border: 0;
    }

    .site-main-menu > li > a {
        display: block;
        margin-bottom: 2px;
        padding: 13px 15px;
        border-radius: 8px;
        font-size: 15px;
    }

    .site-main-menu > li > a::after {
        display: none;
    }

    .site-main-menu .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0 0 5px;
        padding: 5px;
        border: 0;
        border-radius: 8px;
        background: #f5f6f9;
        box-shadow: none;
    }

    .site-main-menu .dropdown-menu > li > a {
        padding: 11px 18px;
    }

    /*
     * Keep the mobile search header visible during scrolling.
     */
    .site-header.is-compact .site-header-main {
        height: 116px;
    }

    .site-header.is-compact .navbar-brand {
        height: 48px;
    }

    .site-header.is-compact .navbar-brand img {
        max-width: 125px;
        max-height: 44px;
    }

    .site-header.is-compact .site-navigation-row {
        height: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}
/* =====================================
   Inline header navigation
===================================== */

/* Header now has one row on desktop */
body {
    padding-top: 84px;
}

.site-header-tools {
    flex-wrap: nowrap;
}

.site-search-form {
    min-width: 260px;
    max-width: 620px;
}

/* Desktop inline navigation */
.site-inline-navigation {
    flex-shrink: 0;
    height: auto !important;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.site-inline-navigation .site-main-menu {
    display: flex;
    float: none !important;
    height: auto;
    align-items: center;
    margin: 0;
}

.site-inline-navigation .site-main-menu > li {
    display: block;
}

.site-inline-navigation .site-main-menu > li > a {
    display: flex;
    height: 44px;
    align-items: center;
    padding: 0 15px;
    border-radius: 9px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.site-inline-navigation .site-main-menu > li > a::after {
    display: none;
}

.site-inline-navigation .site-main-menu > li > a:hover,
.site-inline-navigation .site-main-menu > li > a:focus,
.site-inline-navigation .site-main-menu > .open > a {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.site-inline-navigation .caret {
    margin-left: 7px;
}

/* Inline dropdowns */
.site-inline-navigation .dropdown-menu {
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    min-width: 220px;
    padding: 7px;
    border: 1px solid #e2e6ec;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 13px 30px rgba(25, 42, 61, 0.18);
}

.site-inline-navigation .dropdown-menu::before {
    position: absolute;
    top: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #e2e6ec;
    border-left: 1px solid #e2e6ec;
    background: #ffffff;
    content: "";
    transform: rotate(45deg);
}

.site-inline-navigation .dropdown-menu > li > a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #344250;
    font-size: 14px;
}

.site-inline-navigation .dropdown-menu > li > a:hover,
.site-inline-navigation .dropdown-menu > li > a:focus {
    background: #f0edff;
    color: #6946ff;
}

/* Keep desktop menu visible */
@media (min-width: 992px) {
    .site-inline-navigation.collapse {
        display: block !important;
    }

    .site-inline-navigation .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .site-header .navbar-toggle {
        display: none;
    }
}

/* After scrolling: hide menu and expand search */
@media (min-width: 992px) {
    .site-header.is-compact .site-inline-navigation {
        display: none !important;
    }

    .site-header.is-compact .site-search-form {
        max-width: 760px;
    }
}

/* =====================================
   Tablet
===================================== */

@media (min-width: 768px) and (max-width: 991px) {
    body {
        padding-top: 76px;
    }

    .site-header-main {
        height: 76px;
    }

    .site-header-main > .container {
        gap: 16px;
    }

    .site-header .navbar-header {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .site-header .navbar-brand {
        height: 76px;
    }

    .site-header .navbar-brand img {
        max-width: 125px;
        max-height: 52px;
    }

    .site-header .navbar-toggle {
        display: block;
        float: none;
    }

    .site-header-tools {
        position: relative;
    }

    .site-search-form {
        max-width: none;
    }

    .site-inline-navigation {
        position: absolute;
        top: 61px;
        right: 0;
        width: 280px;
        overflow: visible !important;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 14px 30px rgba(24, 40, 58, 0.18);
    }

    .site-inline-navigation:not(.in) {
        display: none !important;
    }

    .site-inline-navigation.in {
        display: block !important;
    }

    .site-inline-navigation .site-main-menu {
        display: block;
        padding: 8px;
    }

    .site-inline-navigation .site-main-menu > li > a {
        color: #344250;
    }

    .site-inline-navigation .site-main-menu > li > a:hover,
    .site-inline-navigation .site-main-menu > li > a:focus,
    .site-inline-navigation .site-main-menu > .open > a {
        background: #f0edff;
        color: #6946ff;
    }

    .site-inline-navigation .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 3px 0;
        padding: 4px;
        border: 0;
        background: #f6f7fa;
        box-shadow: none;
    }

    .site-inline-navigation .dropdown-menu::before {
        display: none;
    }
}

/* =====================================
   Mobile
===================================== */

@media (max-width: 767px) {
    body {
        padding-top: 116px;
    }

    .site-header-tools {
        position: relative;
        display: block;
    }

    .site-inline-navigation {
        position: absolute;
        top: 53px;
        right: 0;
        left: 0;
        width: 100%;
        overflow: visible !important;
        border-radius: 0 0 12px 12px;
        background: #ffffff;
        box-shadow: 0 15px 25px rgba(23, 39, 57, 0.2);
    }

    .site-inline-navigation:not(.in) {
        display: none !important;
    }

    .site-inline-navigation.in {
        display: block !important;
    }

    .site-inline-navigation .site-main-menu {
        display: block;
        padding: 8px;
    }

    .site-inline-navigation .site-main-menu > li {
        display: block;
    }

    .site-inline-navigation .site-main-menu > li > a {
        display: block;
        height: auto;
        padding: 13px 14px;
        color: #344250;
    }

    .site-inline-navigation .site-main-menu > li > a:hover,
    .site-inline-navigation .site-main-menu > li > a:focus,
    .site-inline-navigation .site-main-menu > .open > a {
        background: #f0edff;
        color: #6946ff;
    }

    .site-inline-navigation .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 2px 0 5px;
        padding: 5px;
        border: 0;
        background: #f5f6f9;
        box-shadow: none;
    }

    .site-inline-navigation .dropdown-menu::before {
        display: none;
    }
}
/* =====================================
   Mobile app-style header
===================================== */

.mobile-search-toggle {
    display: none;
}

@media (max-width: 767px) {
    body {
        padding-top: 60px;
    }

    .site-header-main,
    .site-header.is-compact .site-header-main {
        height: 60px;
        min-height: 60px;
        padding: 0;
    }

    .site-header-main > .container {
        position: relative;
        display: block;
        height: 60px;
        padding: 0;
    }

    /*
     * Mobile row:
     * menu | centered logo | search
     */
    .site-header .navbar-header {
        position: relative;
        z-index: 1080;
        display: grid;
        width: 100%;
        height: 60px;
        min-height: 60px;
        grid-template-columns: 52px 1fr 52px;
        align-items: center;
        margin: 0;
        background: #ffffff;
    }

    /* Left hamburger */
    .site-header .mobile-menu-toggle {
        position: relative;
        display: flex;
        width: 52px;
        height: 60px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #ffffff;
    }

    .site-header .mobile-menu-toggle .icon-bar {
        width: 21px;
        height: 2px;
        margin: 2px 0;
        background: #283746;
    }

    .site-header .mobile-menu-toggle:hover,
    .site-header .mobile-menu-toggle:focus {
        background: #f3f5f7;
    }

    /* Centered logo */
    .site-header .navbar-brand,
    .site-header.is-compact .navbar-brand {
        display: flex;
        width: 100%;
        height: 60px;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 7px 10px;
    }

    .site-header .navbar-brand img,
    .site-header.is-compact .navbar-brand img {
        width: auto;
        max-width: 180px;
        max-height: 46px;
    }

    /* Right search button */
    .mobile-search-toggle {
        display: flex;
        width: 52px;
        height: 60px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #6946ff;
        color: #ffffff;
        font-size: 19px;
    }

    .mobile-search-toggle:hover,
    .mobile-search-toggle:focus {
        background: #5734eb;
        color: #ffffff;
        outline: none;
    }

    .site-header-tools {
        position: static;
        display: block;
        width: 100%;
    }

    /*
     * Search panel opens below the header.
     */
    .site-search-form {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        z-index: 1060;
        width: 100%;
        max-width: none;
        margin: 0 !important;
        padding: 10px 12px !important;
        background: #426f99;
        box-shadow: 0 10px 20px rgba(20, 37, 55, 0.18);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;
    }

    .site-header.mobile-search-open .site-search-form {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-search-form .form-control {
        height: 44px;
        padding: 8px 47px 8px 14px;
        border-radius: 9px;
        font-size: 14px;
    }

    .site-search-button {
        right: 15px;
        width: 40px;
        height: 38px;
    }

    /*
     * Menu drawer slides from left to right.
     */
    .site-inline-navigation,
    .site-inline-navigation.collapse {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1070;
        display: block !important;
        width: 285px;
        height: 100vh !important;
        max-height: none;
        margin: 0;
        padding: 70px 10px 20px;
        overflow-x: hidden;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        box-shadow: 12px 0 28px rgba(20, 35, 52, 0.2);
        opacity: 1;
        visibility: hidden;
        transform: translateX(-105%);
        transition:
            transform 0.28s ease,
            visibility 0.28s ease;
    }

    .site-inline-navigation.in {
        visibility: visible;
        transform: translateX(0);
    }

    .site-inline-navigation .site-main-menu {
        display: block;
        padding: 0;
    }

    .site-inline-navigation .site-main-menu > li {
        display: block;
        margin-bottom: 4px;
    }

    .site-inline-navigation .site-main-menu > li > a {
        display: block;
        height: auto;
        padding: 13px 14px;
        border-radius: 8px;
        color: #2f3c49;
        font-size: 15px;
    }

    .site-inline-navigation .site-main-menu > li > a:hover,
    .site-inline-navigation .site-main-menu > li > a:focus,
    .site-inline-navigation .site-main-menu > .open > a {
        background: #f0edff;
        color: #6946ff;
    }

    .site-inline-navigation .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 3px 0 7px;
        padding: 5px;
        border: 0;
        border-radius: 8px;
        background: #f5f6f9;
        box-shadow: none;
    }

    .site-inline-navigation .dropdown-menu::before {
        display: none;
    }
}
/* Final mobile header position correction */
@media (max-width: 767px) {
    body {
        padding-top: 60px !important;
    }

    .site-header,
    .site-header-main,
    .site-header.is-compact .site-header-main {
        height: 60px !important;
        min-height: 60px !important;
    }

    .site-header-main > .container {
        position: relative;
        width: 100%;
        height: 60px !important;
        min-height: 60px !important;
        margin: 0;
        padding: 0;
    }

    .site-header .navbar-header {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        display: block !important;
        width: 100%;
        height: 60px !important;
        min-height: 60px !important;
        margin: 0 !important;
        padding: 0;
        background: #ffffff;
    }

    /* Menu fixed on the left */
    .site-header .mobile-menu-toggle {
        position: absolute !important;
        top: 0;
        left: 0;
        z-index: 3;
        display: flex !important;
        float: none !important;
        width: 52px;
        height: 60px;
    }

    /* Logo fixed in the center */
    .site-header .navbar-brand,
    .site-header.is-compact .navbar-brand {
        position: absolute !important;
        top: 0;
        right: 52px;
        left: 52px;
        z-index: 1;
        display: flex !important;
        float: none !important;
        width: auto !important;
        height: 60px !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 6px 10px;
    }

    .site-header .navbar-brand img,
    .site-header.is-compact .navbar-brand img {
        display: block;
        width: auto;
        max-width: 175px;
        max-height: 46px;
        margin: 0 auto;
    }

    /* Search fixed on the right */
    .site-header .mobile-search-toggle {
        position: absolute !important;
        top: 0;
        right: 0;
        z-index: 3;
        display: flex !important;
        float: none !important;
        width: 52px;
        height: 60px;
        background: #6946ff;
    }

    .site-header-tools {
        position: static !important;
        width: 100%;
        height: 0;
        margin: 0;
        padding: 0;
    }

    /* Search panel remains hidden until clicked */
    .site-search-form {
        top: 60px;
    }
}
/* Fix desktop inline menu creating empty white area */
@media (min-width: 992px) {
    .site-header {
        height: 66px !important;
        min-height: 66px !important;
        background: transparent;
    }

    .site-header-main {
        height: 66px !important;
        min-height: 66px !important;
    }

    .site-header-tools {
        height: 66px;
        align-items: center;
    }

    .site-inline-navigation,
    .site-inline-navigation.collapse {
        display: flex !important;
        width: auto !important;
        height: 44px !important;
        min-height: 0 !important;
        flex: 0 0 auto;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .site-inline-navigation .site-main-menu {
        display: flex !important;
        width: auto !important;
        height: 44px !important;
        min-height: 0 !important;
        flex-wrap: nowrap;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /*
     * Remove Bootstrap clearfix elements that can create
     * an additional line inside a flex menu.
     */
    .site-inline-navigation .site-main-menu::before,
    .site-inline-navigation .site-main-menu::after {
        display: none !important;
        content: none !important;
    }

    .site-inline-navigation .site-main-menu > li {
        display: block;
        height: 44px;
        margin: 0;
    }

    .site-inline-navigation .site-main-menu > li > a {
        height: 44px;
    }
}
/* =====================================
   Drawer header and social links
===================================== */

.mobile-drawer-header {
    display: none;
}

/* Compact social links on desktop */
.header-social-links {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 5px;
    margin-left: 9px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.header-social-links a {
    display: flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.header-social-links a:hover,
.header-social-links a:focus {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Hide drawer close button on desktop */
@media (min-width: 992px) {
    .mobile-drawer-header {
        display: none !important;
    }

    .site-inline-navigation {
        display: flex !important;
        align-items: center;
    }
}

/* Tablet and mobile drawer */
@media (max-width: 991px) {
    .site-inline-navigation,
    .site-inline-navigation.collapse {
        display: flex !important;
        flex-direction: column;
        padding: 0 0 20px !important;
    }

    /* Drawer title and close button */
    .mobile-drawer-header {
        display: flex;
        width: 100%;
        min-height: 61px;
        flex-shrink: 0;
        align-items: center;
        justify-content: space-between;
        order: 1;
        padding: 0 14px 0 18px;
        border-bottom: 1px solid #e7eaee;
        background: #ffffff;
    }

    .mobile-drawer-header strong {
        color: #283746;
        font-size: 18px;
        font-weight: 700;
    }

    .mobile-menu-close {
        display: flex;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f0edff;
        color: #6946ff;
        font-size: 17px;
    }

    .mobile-menu-close:hover,
    .mobile-menu-close:focus {
        background: #6946ff;
        color: #ffffff;
        outline: none;
    }

    /* Social icons appear below the drawer header */
    .header-social-links {
        width: 100%;
        justify-content: center;
        order: 2;
        gap: 9px;
        margin: 0;
        padding: 15px 12px;
        border-left: 0;
        border-bottom: 1px solid #e7eaee;
        background: #ffffff;
    }

    .header-social-links a {
        width: 34px;
        height: 34px;
        border: 1px solid #e1e5ea;
        border-radius: 50%;
        background: #f6f7f9;
        color: #426f99;
        font-size: 14px;
    }

    .header-social-links a:hover,
    .header-social-links a:focus {
        background: #6946ff;
        color: #ffffff;
        transform: none;
    }

    /* Navigation links appear under social icons */
    .site-inline-navigation .site-main-menu {
        width: 100%;
        order: 3;
        padding: 10px !important;
    }
}
/* Mobile/tablet drawer overlay */
.site-menu-overlay {
    display: none;
}

@media (max-width: 991px) {
    .site-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1040;
        display: block;
        background: rgba(15, 24, 35, 0.58);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open .site-menu-overlay {
        opacity: 1;
        visibility: visible;
    }
}
/* Keep header and drawer above the dark overlay */
.site-header {
    z-index: 1050 !important;
}

@media (max-width: 991px) {
    .site-inline-navigation,
    .site-inline-navigation.collapse {
        z-index: 1070 !important;
        background: #ffffff !important;
    }
}
/* Keep desktop menu and social links visible after scrolling */
@media (min-width: 992px) {
    .site-header.is-compact .site-inline-navigation {
        display: flex !important;
        width: auto !important;
        height: 44px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .site-header.is-compact .site-main-menu {
        display: flex !important;
    }

    .site-header.is-compact .header-social-links {
        display: flex !important;
    }

    .site-header.is-compact .site-search-form {
        max-width: 620px;
    }
}
/* Correct desktop logo sizing and prevent overlap */
@media (min-width: 992px) {
    .site-header .navbar-header {
        flex: 0 0 190px !important;
        width: 190px !important;
    }

    .site-header .navbar-brand {
        width: 155px !important;
        margin-right: 35px !important;
        overflow: hidden;
    }

    .site-header #logo,
    .site-header #logo img {
        display: block !important;
        width: 155px !important;
        height: auto !important;
        max-width: 155px !important;
        max-height: none !important;
    }
}

/* Mobile logo */
@media (max-width: 991px) {
    .site-header #logo,
    .site-header #logo img {
        display: block !important;
        width: 145px !important;
        height: auto !important;
        max-width: 145px !important;
        max-height: none !important;
    }
}
/* Keep desktop navbar dropdown open while moving the cursor */
@media (min-width: 768px) {
    .navbar .dropdown {
        position: relative;
    }

    .navbar .dropdown-menu {
        top: 100%;
        margin-top: 0;
    }

    .navbar .dropdown:hover > .dropdown-menu,
    .navbar .dropdown:focus-within > .dropdown-menu,
    .navbar .dropdown.open > .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Invisible bridge between the button and menu */
    .navbar .dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 330px;
        height: 18px;
    }

    .navbar .dropdown-menu {
        z-index: 1050;
    }
}
/* Recently viewed search panel */
.recent-search-panel[hidden] {
    display: none !important;
}

.recent-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 480px;
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(19, 39, 62, 0.18);
    z-index: 9999;
}
.recent-search-advanced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    margin-top: 15px;
    color: #fff;
    background: #26384b;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.recent-search-advanced:hover,
.recent-search-advanced:focus {
    color: #fff;
    background: #3d668b;
    text-decoration: none;
}

.recent-search-advanced i {
    font-size: 13px;
}

.recent-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 5px 10px;
}

.recent-search-heading strong {
    color: #26384a;
    font-size: 15px;
}

.recent-search-heading button {
    padding: 3px 7px;
    border: 0;
    background: transparent;
    color: #6d98c3;
    font-size: 12px;
}

.recent-device-list {
    display: grid;
    gap: 4px;
    max-height: 340px;
    overflow-y: auto;
}

.recent-device-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 7px 9px;
    border-radius: 9px;
    color: #26384a;
    text-decoration: none;
}

.recent-device-item:hover,
.recent-device-item:focus {
    background: #f2f6fa;
    color: #26384a;
    text-decoration: none;
}

.recent-device-item img {
    width: 48px;
    height: 54px;
    flex: 0 0 auto;
    object-fit: contain;
}

.recent-device-information {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.recent-device-information strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-device-information small {
    margin-top: 3px;
    color: #84909c;
    font-size: 12px;
}

.recent-device-empty {
    padding: 25px 10px;
    color: #89939d;
    text-align: center;
}

@media (max-width: 767px) {
    .recent-search-panel {
        top: calc(100% + 6px);
        max-height: calc(100vh - 145px);
        border-radius: 10px;
    }

    .recent-device-list {
        max-height: calc(100vh - 225px);
    }
}
.site-search-form {
    position: relative;
}
@media (max-width: 767px) {
    .recent-search-panel {
        top: calc(100% + 7px);
        padding: 14px;
        max-height: 70vh;
        border-radius: 10px;
    }

    .recent-search-advanced {
        min-height: 44px;
        margin-top: 12px;
    }
}
.navbar-brand,
.navbar-brand:focus,
.navbar-brand:active,
.navbar-brand:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}