.k24-header-navigation {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 70px;
    gap: 18px;
    padding-inline: 84px 72px;
}

.k24-header-navigation.justify-content-center {
    justify-content: center;
}

.k24-header-navigation.justify-content-start {
    justify-content: flex-start;
}

.k24-header-navigation__drawer-trigger {
    flex: 0 0 auto;
}

.k24-header-navigation .main-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.k24-header-navigation .search-button {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
}

.header-style-1 .k24-header-navigation__drawer-trigger {
    position: absolute;
    inset-inline-start: 0;
}

.header-style-2 .k24-header-navigation,
.header-style-3 .k24-header-navigation {
    padding-inline-start: 0;
}

.k24-site-navigation {
    display: block;
    width: 100%;
}

.k24-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.k24-menu--desktop-root {
    display: flex;
    align-items: stretch;
    justify-content: inherit;
    gap: 6px;
}

.k24-menu--desktop-root > .k24-menu__item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.k24-menu__item-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.k24-menu__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #0d2340;
    text-decoration: none;
}

.k24-menu__link:hover,
.k24-menu__link:focus-visible {
    color: var(--color-primary);
}

.k24-menu__link-icon,
.k24-menu__toggle .k24-icon,
.k24-nav-trigger__icon .k24-icon,
.k24-drawer-action .k24-icon,
.k24-drawer-social .k24-icon,
.k24-drawer__close .k24-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.k24-menu__link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.k24-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #41536a;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.k24-menu__toggle:hover,
.k24-menu__toggle:focus-visible,
.k24-nav-trigger:hover,
.k24-nav-trigger:focus-visible,
.k24-drawer__close:hover,
.k24-drawer__close:focus-visible {
    background: rgba(14, 35, 64, 0.08);
    color: var(--color-primary);
}

.k24-menu__toggle:focus-visible,
.k24-nav-trigger:focus-visible,
.k24-drawer__close:focus-visible,
.k24-menu__link:focus-visible,
.k24-drawer-action:focus-visible,
.k24-drawer-language:focus-visible,
.k24-drawer-social:focus-visible {
    outline: 2px solid rgba(239, 63, 72, 0.35);
    outline-offset: 2px;
}

.k24-menu__item.is-open > .k24-menu__item-row .k24-menu__toggle,
.k24-menu__item:focus-within > .k24-menu__item-row .k24-menu__toggle,
.k24-menu__item:hover > .k24-menu__item-row .k24-menu__toggle {
    color: var(--color-primary);
}

.k24-menu__item.is-open > .k24-menu__item-row .k24-menu__toggle .k24-icon {
    transform: rotate(180deg);
}

.k24-menu--desktop-root > .k24-menu__item > .k24-menu__item-row > .k24-menu__link {
    padding: 24px 6px 24px 14px;
    font-family: var(--font-header), sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
}

.k24-menu--desktop-root > .k24-menu__item.current-menu-item > .k24-menu__item-row > .k24-menu__link {
    color: var(--color-primary);
}

.k24-menu--desktop-sub {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-start: 0;
    min-width: 220px;
    padding: 10px;
    border: 1px solid rgba(13, 35, 64, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(8, 22, 44, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
}

.k24-menu--desktop-sub .k24-menu__item + .k24-menu__item {
    border-top: 1px solid rgba(13, 35, 64, 0.06);
}

.k24-menu--desktop-sub .k24-menu__link {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: normal;
}

.k24-menu--desktop-sub .k24-menu__link:hover,
.k24-menu--desktop-sub .k24-menu__link:focus-visible {
    background: rgba(14, 35, 64, 0.05);
}

.k24-menu--desktop-sub .k24-menu__item {
    position: relative;
}

.k24-menu__item:hover > .k24-menu--desktop-sub,
.k24-menu__item:focus-within > .k24-menu--desktop-sub,
.k24-menu__item.is-open > .k24-menu--desktop-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.k24-menu--desktop-sub .k24-menu--desktop-sub {
    top: -10px;
    inset-inline-start: calc(100% + 10px);
}

.k24-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(13, 35, 64, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #0d2340;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.k24-nav-trigger__label {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

body.canvas-opened {
    overflow: hidden;
}

#sidebar-wrapper.offcanvas-sidebar {
    width: min(420px, 100vw);
    inset-block: 0;
    inset-inline-start: 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: 0 22px 60px rgba(8, 22, 44, 0.22);
    visibility: hidden;
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.28s ease, visibility 0.28s ease;
    z-index: 2000;
}

#sidebar-wrapper.offcanvas-sidebar.position-right {
    inset-inline-start: auto;
    inset-inline-end: 0;
    transform: translateX(calc(100% + 24px));
}

[dir=rtl] #sidebar-wrapper.offcanvas-sidebar {
    transform: translateX(calc(100% + 24px));
}

[dir=rtl] #sidebar-wrapper.offcanvas-sidebar.position-right {
    transform: translateX(calc(-100% - 24px));
}

body.canvas-opened #sidebar-wrapper.offcanvas-sidebar {
    visibility: visible;
    transform: translateX(0);
}

#sidebar-wrapper .sidebar-inner {
    padding: 0;
}

.k24-drawer {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    max-height: 100dvh;
}

.k24-drawer__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 24px 22px;
    border-bottom: 1px solid rgba(13, 35, 64, 0.08);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.k24-drawer__eyebrow {
    margin: 0 0 6px;
    color: #617186;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.k24-drawer__title {
    margin: 0;
    color: #0d2340;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.k24-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(13, 35, 64, 0.05);
    color: #0d2340;
    cursor: pointer;
}

.k24-drawer__body {
    display: grid;
    gap: 18px;
    padding: 20px 24px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.k24-drawer__section {
    display: grid;
    gap: 12px;
}

.k24-drawer__section--widgets {
    padding-top: 8px;
    border-top: 1px solid rgba(13, 35, 64, 0.08);
}

.k24-menu--drawer-root,
.k24-menu--drawer-sub {
    display: grid;
    gap: 8px;
}

.k24-menu--drawer-root > .k24-menu__item,
.k24-menu--drawer-sub > .k24-menu__item {
    border: 1px solid rgba(13, 35, 64, 0.08);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.k24-menu--drawer-root > .k24-menu__item > .k24-menu__item-row,
.k24-menu--drawer-sub > .k24-menu__item > .k24-menu__item-row {
    padding: 6px;
}

.k24-menu--drawer-root > .k24-menu__item > .k24-menu__item-row > .k24-menu__link,
.k24-menu--drawer-sub > .k24-menu__item > .k24-menu__item-row > .k24-menu__link {
    flex: 1 1 auto;
    min-height: 48px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
    white-space: normal;
}

.k24-menu--drawer-sub {
    padding: 0 14px 14px;
}

.k24-menu--drawer-sub .k24-menu__item {
    border-radius: 14px;
    background: rgba(13, 35, 64, 0.03);
}

.k24-menu--drawer-sub .k24-menu__link {
    font-size: 14px;
    font-weight: 600;
}

.k24-menu--drawer-sub .k24-menu__toggle {
    margin-inline-end: 6px;
}

.k24-drawer-extras {
    display: grid;
    gap: 12px;
}

.k24-drawer-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(13, 35, 64, 0.08);
    border-radius: 20px;
    background: rgba(247, 249, 252, 0.85);
}

.k24-drawer-card__title {
    margin: 0;
    color: #0d2340;
    font-size: 14px;
    font-weight: 700;
}

.k24-drawer-action-list,
.k24-drawer-language-list,
.k24-drawer-socials {
    display: grid;
    gap: 8px;
}

.k24-drawer-action,
.k24-drawer-language,
.k24-drawer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    color: #0d2340;
    text-decoration: none;
    background: #fff;
}

.k24-drawer-social span {
    font-size: 14px;
    font-weight: 600;
}

.k24-drawer-action:hover,
.k24-drawer-language:hover,
.k24-drawer-social:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 991.98px) {
    .k24-header-navigation {
        min-height: 70px;
        padding-inline: 52px 52px;
        justify-content: center;
    }

    .k24-header-navigation__drawer-trigger {
        position: absolute;
        inset-inline-start: 0;
    }

    .k24-nav-trigger {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        justify-content: center;
        padding: 0;
    }

    .k24-nav-trigger__label {
        display: none;
    }

    .k24-header-navigation .search-button {
        inset-inline-end: 0;
    }
}

@media (max-width: 767.98px) {
    .k24-drawer__header,
    .k24-drawer__body {
        padding-inline: 18px;
    }
}

/* ==========================================================================
   Header style-4 — Dark editorial ribbon
   ========================================================================== */
.header-style-4 {
    --h4-bg: #0d2340;
    --h4-accent: #DC2626;
    --h4-text: #f0f4f8;
    --h4-muted: rgba(240,244,248,.55);
    --h4-height: 80px;
    --h4-logo-h: 32px;
}

.header-style-4__ribbon {
    background: var(--h4-bg);
    border-bottom: 1px solid var(--h4-accent);
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
}

.header-style-4__inner {
    display: flex;
    align-items: center;
    height: var(--h4-height);
    padding-inline: 20px;
    gap: 16px;
    max-width: 1440px;
    margin-inline: auto;
}

.header-style-4__trigger {
    flex-shrink: 0;
}

/* Override the nav trigger colours inside the dark ribbon */
.header-style-4 .k24-nav-trigger {
    color: var(--h4-text);
    border-color: rgba(240,244,248,.2);
}
.header-style-4 .k24-nav-trigger:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}
.header-style-4 .k24-nav-trigger__label {
    color: var(--h4-text);
}

.header-style-4__brand {
    flex-shrink: 0;
}

.header-style-4__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-style-4__logo-img {
    height: var(--h4-logo-h);
    width: auto;
    /* Lighten the logo on dark bg via mix-blend or filter */
    filter: brightness(0) invert(1);
}

.header-style-4__logo-text {
    font-family: var(--font-header, sans-serif);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.header-style-4__nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.header-style-4__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-inline-start: auto;
}

/* Dark nav link overrides */
.header-style-4 .k24-menu--dark .k24-menu__link {
    color: var(--h4-text);
    font-size: 13px;
    font-weight: 600;
}
.header-style-4 .k24-menu--dark .k24-menu__link:hover,
.header-style-4 .k24-menu--dark .k24-menu__link:focus-visible,
.header-style-4 .k24-menu--dark .k24-menu__item.current-menu-item > .k24-menu__item-row > .k24-menu__link {
    color: var(--h4-accent);
}
.header-style-4 .k24-menu--dark .k24-menu__toggle {
    color: var(--h4-muted);
}
.header-style-4 .k24-menu--dark .k24-menu__toggle:hover {
    background: rgba(255,255,255,.1);
    color: var(--h4-text);
}

/* Search button override */
.header-style-4 .search-button button,
.header-style-4 .search-button a {
    color: var(--h4-text);
}
.header-style-4 .search-button button:hover,
.header-style-4 .search-button a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

/* Mobile logo inside the ribbon */
.header-style-4 .logo-mobile,
.header-style-4 .logo-tablet {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   Drawer style-2 — Two-panel
   ========================================================================== */
.k24-drawer--two-panel .k24-drawer__body--two-panel {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    flex: 1;
    gap: 0;
}

.k24-drawer-panel {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px 20px;
}

.k24-drawer-panel--menu {
    flex: 0 0 55%;
    border-inline-end: 1px solid rgba(13,35,64,.08);
}

.k24-drawer-panel--stories {
    flex: 1 1 auto;
    background: #f7f8fc;
    padding: 16px 16px;
}

.k24-drawer-panel__heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #64748b;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(13,35,64,.08);
}
.k24-drawer-panel__heading .k24-icon {
    font-size: 14px;
    color: #DC2626;
}

.k24-drawer-panel__extras {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(13,35,64,.08);
}

.k24-drawer-stories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.k24-drawer-story {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding: 8px;
    transition: background .15s ease;
}
.k24-drawer-story:hover {
    background: rgba(13,35,64,.05);
}

.k24-drawer-story--featured .k24-drawer-story__media {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 4px;
}
.k24-drawer-story--featured .k24-drawer-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.k24-drawer-story__title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #0d2340;
}
.k24-drawer-story:not(.k24-drawer-story--featured) {
    flex-direction: row;
    align-items: flex-start;
}
.k24-drawer-story:not(.k24-drawer-story--featured) .k24-drawer-story__body {
    flex: 1;
}
.k24-drawer-story:not(.k24-drawer-story--featured)::before {
    content: "";
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #DC2626;
    margin-top: 7px;
    flex-shrink: 0;
}

.k24-drawer-story__meta {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Compact menu list inside the two-panel drawer */
.k24-drawer--two-panel .k24-menu--drawer-root > .k24-menu__item > .k24-menu__item-row > .k24-menu__link {
    font-size: 14px;
    font-weight: 600;
    padding-block: 9px;
}

@media (max-width: 640px) {
    .k24-drawer--two-panel .k24-drawer__body--two-panel {
        flex-direction: column;
    }
    .k24-drawer-panel--menu {
        flex: none;
        border-inline-end: none;
        border-bottom: 1px solid rgba(13,35,64,.08);
        max-height: 50vh;
    }
    .k24-drawer-panel--stories {
        flex: none;
    }
}

[dir=rtl] .k24-header-navigation .main-nav {
    text-align: right;
}

[dir=rtl] .k24-menu--desktop-root > .k24-menu__item > .k24-menu__item-row > .k24-menu__link {
    padding-inline: 14px 6px;
}

[dir=rtl] .k24-menu--desktop-sub {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

[dir=rtl] .k24-menu--desktop-sub .k24-menu--desktop-sub {
    inset-inline-start: auto;
    inset-inline-end: calc(100% + 10px);
}
