.site-header {
    background: #ffffff;
    border-bottom: 1px solid #dddddd;
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.site-header__logo {
    display: block;
    width: 20.8333%;
    max-width: 190px;
    padding: 30px 10px 30px 0;
    line-height: 0;
    flex-shrink: 0;
    /* Pushes the search/toggle/nav group to the right without a wrapper element —
       everything after the logo shares the remaining space via this one gap. */
    margin-right: auto;
}

.site-header__logo img {
    width: 100%;
    height: auto;
}

/* Search */

.site-header__search {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search_label {
    display: none;
}

.site-header__search-icon {
    display: flex;
    align-items: center;
    padding: 10px 9px;
    cursor: pointer;
    color: #0a0a0a;
    font-size: 16px;
}

.site-header__search-form {
    display: flex;
    position: absolute;
    top: auto;
    bottom: 35px;
    right: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 1s ease 1s, opacity 1s ease 1s;
}

.site-header__search:hover .site-header__search-form {
    width: 222px;
    opacity: 1;
    transition: width 1s ease 0.25s, opacity 1s ease 0.25s;
}

.site-header__search-form input[type="text"] {
    border: 1px solid #535f6d;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 20px;
    width: 150px;
}

.site-header__search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #699f00;
    border-radius: 0 4px 4px 0;
    padding: 6px 12px;
    font-size: 14px;
    color: #ffffff;
    background-color: #7ab800;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.site-header__search-submit:hover {
    background-color: #588500;
    border-color: #416100;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile toggle */

.site-header__toggle {
    display: none;
}

.site-header__toggle_mobile {
    display: none;
}

/* Nav / menu */

.site-header__nav {
    flex-shrink: 0;
}

.site-header__nav_mobile {
    flex-shrink: 0;
}

.site-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__menu_mobile {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__menu::after {
    content: '';
    display: table;
    clear: both;
}

.site-header__menu_mobile::after {
    content: '';
    display: table;
    clear: both;
}

.site-header__menu-item {
    float: left;
    position: relative;
}

.site-header__menu-link {
    display: block;
    padding: 20px 16px 30px;
    color: #333333;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.site-header__menu-item:hover {
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.4);
    border-radius: 4px 4px 0 0;
}

.site-header__menu .sub-menu {
    list-style: none;
    margin: -1px 0 0;
    padding: 0 0 5px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 20em;
    white-space: nowrap;
    background: #ffffff;
    border-bottom: 2px solid #7ab800;
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-out;
}

.site-header__menu_mobile .sub-menu {
    list-style: none;
    margin: -1px 0 0;
    padding: 0 0 5px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 20em;
    white-space: nowrap;
    background: #ffffff;
    border-bottom: 2px solid #7ab800;
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-out;
}

/* Descendant (not direct-child) selector: hovering a top-level item reveals every
   nested level inside it at once, matching the old theme's ".menu-item:hover .sub-menu"
   — not a "hover again to drill into the next level" interaction. */
.site-header__menu-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
}

.site-header__menu .sub-menu .site-header__menu-item {
    float: none;
}

.site-header__menu_mobile .sub-menu .site-header__menu-item {
    float: none;
}

.site-header__menu .sub-menu .site-header__menu-link {
    padding: 10px 12px;
    color: #7ab800;
    font-weight: 700;
    line-height: 1.35em;
}

.site-header__menu_mobile .sub-menu .site-header__menu-link {
    padding: 10px 12px;
    color: #7ab800;
    font-weight: 700;
    line-height: 1.35em;
}

.site-header__menu .sub-menu .sub-menu {
    position: relative;
    top: auto;
    left: auto;
    box-shadow: none;
    border-bottom: 0;
    background: transparent;
    min-width: 0;
    padding-left: 12px;
}

.site-header__menu_mobile .sub-menu .sub-menu {
    position: relative;
    top: auto;
    left: auto;
    box-shadow: none;
    border-bottom: 0;
    background: transparent;
    min-width: 0;
    padding-left: 12px;
}

.site-header__menu .sub-menu .sub-menu .site-header__menu-link {
    padding: 5px 24px;
    color: #535f6d;
    font-weight: 400;
}

.site-header__menu_mobile .sub-menu .sub-menu .site-header__menu-link {
    padding: 5px 24px;
    color: #535f6d;
    font-weight: 400;
}

.site-header__menu .sub-menu .sub-menu .site-header__menu-link:hover {
    color: #000000;
}

.site-header__menu_mobile .sub-menu .sub-menu .site-header__menu-link:hover {
    color: #000000;
}

@media (min-width: 768px) {
    .site-header__logo { width: 25%; }
    .site-header__search { margin-top: 94px; }
    .site-header__nav { margin-top: 104px; }

    .site-header__nav {
        display: block;
    }
    .site-header__nav_mobile {
        display: none;
    }
    .site-header__toggle {
        display: block;
    }
    .site-header__toggle_mobile {
        display: none;
    }
}

@media (min-width: 992px) {
    .site-header__logo { width: 20.8333%; }
    .site-header__search { margin-top: 128px; }
    .site-header__nav { margin-top: 114px; }
}

@media (min-width: 1200px) {
    .site-header__logo { width: 16.6667%; }
}

/* Mobile (<=767px) */

@media (max-width: 767px) {
    .site-header {
        border-bottom: 3px solid #7ab800;
    }

    .site-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        gap: 10px;
    }

    .site-header__logo {
        width: 30%;
        margin-right: 0;
        padding: 15px 0;
    }

    .site-header__toggle_mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        background-color: #7ab800;
        border-radius: 5px;
        cursor: pointer;
        border: none;
        margin-left: 50px;
    }

    .site-header__toggle_mobile:before {
        content: "Menü";
        position: absolute;
        right: 50px;
        font-size: 14px;
        color: #444444;
    }

    .site-header__toggle_mobile>svg {
        width: 22px;
        height: auto;
        fill: #ffffff;
    }

    .site-header__search {
        width: 40%;
        margin-top: unset;
    }

    .site-header__search-icon {
        display: none;
    }

    .site-header__search-form {
        position: relative;
        top: auto;
        bottom: auto;
        right: auto;
        width: 100%;
        opacity: 1;
        overflow: visible;
        transition: none;
    }

    .site-header__search-form input[type="text"] {
        width: 100%;
        border-radius: 4px;
        border-right: 1px solid #535f6d;
        padding-right: 36px;
    }

    .site-header__search-submit {
        position: absolute;
        right: 1px;
        top: 1px;
        bottom: 1px;
        width: 34px;
        padding: 0;
        border: none;
        border-radius: 4px;
        background: transparent;
        color: #0a0a0a;
    }

    .site-header__nav {
        flex-basis: 100%;
        width: 100%;
        margin-top: 0;
    }

    .site-header__nav_mobile {
        flex-basis: 100%;
        width: 100%;
        margin-top: 0;
    }

    .site-header__menu {
        max-height: 0;
        overflow: hidden;
        width: 100%;
        background: #ffffff;
        transition: max-height 0.5s ease;
    }

    .site-header__menu_mobile {
        max-height: 0;
        overflow: hidden;
        width: 100%;
        background: #ffffff;
        transition: max-height 0.5s ease;
    }

    .site-header__menu_mobile>.site-header__menu-item {
        margin-bottom: 50px;
    }

    .site-header__menu_mobile>.site-header__menu-item:after {
        content: " ";
        width: 100%;
        height: 5px;
        position: absolute;
        bottom: -25px;
        background: url(../../assets/images/separator-horizontal.png) repeat-x left bottom;
    }

    .site-header__menu_mobile>.site-header__menu-item:last-child:after {
        display: none;
    }

    .site-header__nav.is-open .site-header__menu {
        max-height: 2000px;
    }

    .site-header__nav_mobile.is-open .site-header__menu_mobile {
        max-height: 2000px;
    }

    .site-header__menu-item {
        float: none;
        width: 100%;
    }

    .site-header__menu-item:hover {
        box-shadow: none;
    }

    .site-header__menu-link {
        padding: 4px 16px;
        background-color: #ffffff;
        color: #7ab800;
        font-weight: 700;
        font-size: 18px;
        /* border-bottom: 1px solid #eeeeee; */
    }

    /* First-level submenus are always expanded (no accordion) on mobile — matching
       the old theme's actual behavior, not a hover/tap interaction. */
    .site-header__menu .sub-menu {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        height: auto;
        overflow: visible;
        box-shadow: none;
        border-bottom: 0;
        padding: 0 0 0 15px;
        min-width: 0;
        white-space: normal;
    }

    .site-header__menu_mobile .sub-menu {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        height: auto;
        overflow: visible;
        box-shadow: none;
        border-bottom: 0;
        padding: 0 0 0 15px;
        min-width: 0;
        white-space: normal;
    }

    .site-header__menu .sub-menu .site-header__menu-link {
        color: #333333;
        font-weight: 400;
        padding: 6px 16px 6px 16px;
        border-bottom: 0;
    }

    .site-header__menu_mobile .sub-menu .site-header__menu-link {
        color: #333333;
        font-weight: 400;
        padding: 6px 16px 6px 16px;
        border-bottom: 0;
        font-size: 16px;
    }

    /* Second-level submenus are hidden entirely on mobile, same as the old theme. */
    .site-header__menu .sub-menu .sub-menu {
        display: none;
    }

    .site-header__menu_mobile .sub-menu .sub-menu {
        display: none;
    }

    .site-header__nav {
        display: none;
    }
    .site-header__nav_mobile {
        display: block;
    }
}

/* Subheader */

.site-subheader {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.site-subheader__holder {
    position: relative;
    width: 100%;
    margin: 0px auto 10px;
    padding: 35px 0 25px;
    text-align: center;
    box-shadow: 0 15px 15px -22px rgba(1, 1, 1, 0.6);
}

.site-subheader__logo {
    display: inline-block;
    width: 390px;
    max-width: 80%;
    height: auto;
}

@media (max-width: 767px) {
    .site-subheader__logo {
        width: 70%;
    }
}
