:root {
    --tej-header-navy: #0D2B45;
    --tej-header-white: #FFFFFF;
    --tej-header-blue: #2EA3FF;
    --tej-header-soft: #F3F6F9;
    --tej-header-gray: #6B7280;
    --tej-header-dark: #111827;
}

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

.tej-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--tej-header-navy);
    color: var(--tej-header-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.tej-header-bar {
    min-height: 75px;
    background: var(--tej-header-navy);
}

.tej-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(100% - 48px, 1240px);
    min-height: 75px;
    margin: 0 auto;
}

.tej-site-brand {
    display: grid;
    flex: 0 0 225px;
    gap: 3px;
    color: var(--tej-header-white);
    line-height: 1;
    text-decoration: none;
}

.tej-site-brand__name {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: 0;
}

.tej-site-brand__name span {
    color: var(--tej-header-blue);
}

.tej-site-brand__tagline {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25;
}

.tej-header-divider {
    width: 1px;
    height: 42px;
    margin-left: 2px;
    margin-right: 4px;
    background: rgba(255, 255, 255, 0.18);
}

.tej-header-navigation-group {
    display: contents;
}

.tej-primary-navigation {
    flex: 0 1 auto;
    min-width: 0;
}

.tej-primary-navigation .main-nav > ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tej-primary-navigation .main-nav li {
    position: relative;
    margin: 0;
    list-style: none;
}

.tej-primary-navigation .main-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 9px;
    border-radius: 7px;
    color: var(--tej-header-white);
    font-size: 0.94rem;
    font-weight: 550;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.tej-primary-navigation .dropdown-menu-toggle {
    display: inline-flex;
    width: 11px;
    height: 11px;
}

.tej-primary-navigation .dropdown-menu-toggle svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.tej-primary-navigation .main-nav > ul > li:hover > a,
.tej-primary-navigation .main-nav > ul > li:focus-within > a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tej-header-white);
}

.tej-primary-navigation .main-nav > ul > li[class*="current-menu-"] > a {
    background: rgba(46, 163, 255, 0.22);
    box-shadow: inset 0 -2px 0 var(--tej-header-blue);
    color: var(--tej-header-white);
}

.tej-primary-navigation .sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    display: none;
    min-width: 190px;
    margin: 0;
    padding: 6px;
    border: 1px solid #E1E7EF;
    border-radius: 6px;
    background: var(--tej-header-white);
    box-shadow: 0 12px 24px rgba(15, 39, 64, 0.18);
    list-style: none;
}

.tej-primary-navigation .sub-menu .sub-menu {
    top: -8px;
    left: calc(100% + 5px);
}

.tej-primary-navigation li:hover > .sub-menu,
.tej-primary-navigation li:focus-within > .sub-menu {
    display: block;
}

.tej-primary-navigation .sub-menu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 4px;
    color: var(--tej-header-dark);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.tej-primary-navigation .sub-menu a:hover,
.tej-primary-navigation .sub-menu a:focus,
.tej-primary-navigation .sub-menu li[class*="current-menu-"] > a {
    background: var(--tej-header-soft);
    color: var(--tej-header-dark);
}

.tej-header-search-panel__form {
    display: flex;
    align-items: center;
    width: min(100%, 725px);
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: var(--tej-header-white);
}

.tej-header-search-panel__form input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #B9C2CC;
    outline: 0;
    background: var(--tej-header-white);
    color: var(--tej-header-dark);
    font: inherit;
}

.tej-header-search-panel__form input::placeholder {
    color: #6B7280;
    opacity: 1;
}

.tej-header-search-toggle,
.tej-header-menu-toggle,
.tej-header-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--tej-header-white);
    cursor: pointer;
}

.tej-header-search-panel__form button {
    flex: 0 0 112px;
    height: 48px;
    margin-left: 8px;
    border: 0;
    border-radius: 6px;
    background: #0E58B7;
    color: var(--tej-header-white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tej-header-search-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.tej-header-menu-toggle,
.tej-mobile-navigation-top,
.tej-header-search-panel {
    display: none;
}

.tej-header-search-toggle {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-left: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: #1B4B70;
    color: var(--tej-header-white);
}

.tej-header-search-toggle:hover,
.tej-header-search-toggle:focus {
    background: #245E89;
}

.tej-header-search-toggle svg {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    stroke: var(--tej-header-white);
    stroke-width: 2.4;
}

.tej-site-header.is-search-open .tej-header-search-panel {
    display: block;
    border-top: 1px solid #DCE4EC;
    background: #EDF7FF;
}

.tej-header-search-panel__inner {
    width: min(100% - 80px, 1040px);
    padding: 20px 0 10px;
    margin: 0 auto;
}

.tej-header-search-panel__label {
    display: block;
    width: min(100%, 725px);
    margin: 0 auto 5px;
    color: var(--tej-header-navy);
    font-size: 1rem;
    font-weight: 700;
}

@media (min-width: 801px) {
    .tej-site-header {
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .tej-site-brand__name {
        font-weight: 800;
        letter-spacing: -0.035em;
        line-height: 1;
    }

    .tej-site-brand:hover,
    .tej-site-brand:focus {
        color: var(--tej-header-white);
        text-decoration: none;
    }

    .tej-header-inner {
        gap: 22px;
    }

    .tej-header-divider {
        margin-left: 3px;
        margin-right: 6px;
    }

    .tej-site-brand__tagline {
        font-weight: 400;
        letter-spacing: 0;
        line-height: 1.2;
    }

    .tej-primary-navigation .main-nav > ul > li > a {
        font-weight: 600;
        letter-spacing: -0.01em;
        line-height: 1;
    }

    .tej-primary-navigation .sub-menu a {
        font-weight: 500;
    }

    .tej-header-bar,
    .tej-header-inner {
        min-height: 75px;
    }

    .tej-site-brand {
        gap: 6px;
    }

    .tej-site-brand__name {
        font-size: 1.8rem;
        line-height: 1.02;
    }

    .tej-site-brand__tagline {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .tej-header-divider {
        height: 36px;
    }

    .tej-primary-navigation .main-nav > ul > li > a {
        min-height: 40px;
        border-radius: 7px;
    }

    .tej-primary-navigation .main-nav > ul > li[class*="current-menu-"] > a {
        box-shadow: inset 0 -1px 0 var(--tej-header-blue);
    }

    .tej-header-search-panel__form input[type="search"],
    .tej-header-search-panel__form input[type="search"]:focus {
        margin: 0;
        border: 1px solid #B9C2CC !important;
        background: var(--tej-header-white) !important;
        box-shadow: none !important;
        color: var(--tej-header-dark) !important;
    }
}

@media (min-width: 1101px) {
    .tej-header-inner {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .tej-site-brand {
        flex: 0 0 225px;
    }

    .tej-header-divider {
        display: none;
    }

    .tej-header-navigation-group {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 0 1 auto;
    }

    .tej-header-search-toggle {
        margin-left: 0;
    }
}

.tej-site-header a:focus-visible,
.tej-site-header button:focus-visible,
.tej-site-header input:focus-visible {
    outline: 3px solid var(--tej-header-blue);
    outline-offset: 3px;
}

@media (max-width: 1100px) and (min-width: 801px) {
    .tej-header-inner {
        gap: 14px;
        width: min(100% - 40px, 1240px);
    }

    .tej-site-brand {
        flex-basis: 215px;
    }

    .tej-primary-navigation .main-nav > ul > li > a {
        gap: 5px;
        padding: 0 6px;
        font-size: 0.82rem;
    }

}

@media (max-width: 800px) {
    .tej-header-bar,
    .tej-header-inner {
        min-height: 75px;
    }

    .tej-header-inner {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 0;
        width: 100%;
        padding: 0 14px;
    }

    .tej-site-brand {
        justify-self: center;
        min-width: 0;
        flex-basis: auto;
        text-align: center;
    }

    .tej-site-brand__name {
        font-size: 1.9rem;
    }

    .tej-site-brand__tagline {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .tej-header-divider {
        display: none;
    }

    .tej-header-menu-toggle,
    .tej-header-search-toggle {
        display: inline-flex;
        width: 48px;
        height: 48px;
        border-radius: 5px;
    }

    .tej-header-menu-toggle {
        flex-direction: column;
        gap: 5px;
        grid-column: 1;
    }

    .tej-header-menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: currentColor;
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .tej-header-search-toggle {
        grid-column: 3;
    }

    .tej-header-search-toggle svg {
        display: block;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        stroke-width: 2.25;
    }

    .tej-site-header.is-menu-open .tej-header-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .tej-site-header.is-menu-open .tej-header-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .tej-site-header.is-menu-open .tej-header-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .tej-primary-navigation {
        position: absolute;
        top: 75px;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        background: var(--tej-header-navy);
        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
    }

    .tej-site-header.is-menu-open .tej-primary-navigation {
        display: block;
    }

    .tej-mobile-navigation-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
        padding: 0 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        color: #D6E8F5;
        font-size: 0.84rem;
        font-weight: 700;
    }

    .tej-header-menu-close {
        width: 40px;
        height: 40px;
        border-radius: 5px;
        font-size: 2rem;
        font-weight: 300;
        line-height: 1;
    }

    .tej-primary-navigation .main-nav > ul {
        display: block;
        padding: 8px 0 16px;
    }

    .tej-primary-navigation .main-nav > ul > li > a,
    .tej-primary-navigation .sub-menu a {
        min-height: 52px;
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
    }

    .tej-primary-navigation .main-nav > ul > li > a {
        justify-content: space-between;
    }

    .tej-primary-navigation .sub-menu,
    .tej-primary-navigation .sub-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.08);
        box-shadow: none;
    }

    .tej-primary-navigation .sub-menu a {
        padding-left: 38px;
        color: #D6E8F5;
        font-size: 0.93rem;
    }

    .tej-primary-navigation .sub-menu .sub-menu a {
        padding-left: 56px;
    }

    .tej-header-search-panel__inner {
        width: 100%;
        padding: 15px 14px 16px;
    }

.tej-header-search-panel__form {
        width: 100%;
    }

    .tej-header-search-panel__form input,
    .tej-header-search-panel__form button {
        height: 46px;
    }
}

@media (max-width: 390px) {
    .tej-header-inner {
        padding-right: 6px;
        padding-left: 6px;
    }

    .tej-site-brand__name {
        font-size: 1.82rem;
    }

    .tej-site-brand__tagline {
        font-size: 0.78rem;
    }
}
