.header {
    background: linear-gradient(90deg, #025FDB 0%, #025FDB 35%, #0B3668 100%);
    position: fixed;
    top: 0;
    left: 0;
    max-width: 100%;
    width: 100%;
    height: 80px;
    z-index: 778;
}

.header .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1920px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.top-bar .search-bar {
    display: none;
    position: absolute;
    top: 70px;
    left: 35%;
    transform: translateX(-50%);
    z-index: 100;
    background: #F7F8FA;
    max-width: 748px;
    width: 100%;
    padding: 24px;
    border-radius: 0 0 8px 8px;
}

.top-bar .search-bar a {
    display: flex;
    position: absolute;
    /*top: 36px;*/
    /*left: 48px;*/
}

.top-bar .search-bar .search-bar_icon {
    display: flex;
    position: absolute;
    top: 36px;
    left: 48px;
}

.top-bar .search-bar svg {
    width: 24px;
    height: 24px;
}

.top-bar .search-bar input {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 24px;
    gap: 16px;
    max-width: 700px;
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    mix-blend-mode: normal;
    border: 1px solid var(--text-40);
    border-radius: 30px;
    transition: all 0.3s;
}

.top-bar .search-bar input::placeholder {
    font-size: 18px;
    line-height: 24px;
    color: #B5C0CC;
}

.top-bar .search-bar input:hover,
.top-bar .search-bar input:active,
.top-bar .search-bar input:focus {
    border: 1px solid #0068F5;
    box-shadow: 0px 0px 10px rgba(0, 104, 245, 0.12);
}

.top-bar_search {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    color: #fff;
    font-size: 16px;
    line-height: 150%;
    cursor: pointer;
}

a.top-bar_support {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    line-height: 150%;
}

.top-bar_lang {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    color: #fff;
    font-size: 16px;
    line-height: 150%;
}

.top-bar_lang select {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    line-height: 150%;
}

.top-bar_lang select option {
    color: #0C3058;
    font-size: 16px;
    line-height: 150%;
}

a.top-bar_phone {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    line-height: 150%;
}

a.top-bar_login {
    margin-left: 8px;
    margin-right: auto;
    padding: 6px 16px;
    background: transparent;
    color: var(--primary-color-20);
    border: 1px solid var(--primary-color-20);
    border-radius: 5px;
    cursor: pointer;
}

.main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.header__menu-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.header__menu-items > li {
    padding: 10px 9px;
    position: relative;
}

.header__menu-items a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-style: normal;
    font-variation-settings: "wght" 400;
    transition: font-variation-settings 0.3s;
    font-size: 16px;
    line-height: 150%;
    text-align: right;
    letter-spacing: -0.00711111px;
    color: #FFFFFF;
    mix-blend-mode: normal;
}

.header__menu-items > li:hover a {
    font-variation-settings: "wght" 500;
}

.menu-item-has-children > a::after {
    content: '';
    background-image: url("../../images/arrow.svg");
    width: 8px;
    height: 8px;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.header__menu-items > li.open a {
    font-variation-settings: "wght" 500;
}

.header .sub-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    background: #fff;
    z-index: 10;
    min-width: 276px;
    padding: 16px 0;
    border-radius: 0 0 8px 8px;
}

.header .sub-menu li {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 100%;
    width: 100%;
    padding: 16px 24px;
    background: #fff;
    transition: all 0.3s;
}

.header .sub-menu li:hover {
    background: #F2F7FE;
}

.header .sub-menu li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: var(--text-50);
    font-size: 16px;
    line-height: 150%;
    white-space: nowrap;
}

.header .sub-menu li a img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    white-space: nowrap;
}

.header .menu-item.open > .sub-menu {
    display: flex;
    max-width: 100%;
    width: 100%;
    min-width: max-content;
}

.header .menu-item.open > a::after {
    transform: rotate(-180deg);
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 24px;
    cursor: pointer;
    gap: 4px;
    z-index: 101;
}

.header__burger span {
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.logo {
    max-width: 111px;
    width: 100%;
    height: 56px;
    object-fit: contain;
}

.header .menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: none;
}

.header .menu-overlay.active {
    display: block;
}

.header .sub-menu {
    z-index: 100;
    position: absolute;
}

.search-results-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-height: 300px;
    padding-top: 20px;
    background: #F7F8FA;
    /*position: absolute;*/
    /*left: 0;*/
    /*z-index: 999;*/
    overflow-y: auto;
    color: #000;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.top-bar .search-bar .search-result-item a {
    color: #0068F5;
    text-decoration: none;
    position: relative;
}

.top-bar .search-bar .search-results-container > div {
    display: flex;
    flex-direction: column;
}

.top-bar .search-bar .search-results-container a {
    color: #0068F5;
    text-decoration: none;
    position: relative;
}

.top-bar .search-bar .search-results-container .no-results {
    display: flex;
    flex-direction: row;
    gap: 5px;
    background: red;
}
.search-page {
    margin-left: auto;
    margin-right: 0;
    max-width: 1125px;
    padding: 64px 170px 64px 40px;
}
.search-page .search-bar-wrapper .search-form {
    max-width: 901px;
    width: 100%;
    padding: 7px 0;
}
.search-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 68px;
}
.search-results-wrapper {
    flex: 1;
    margin-top: 0;
}
.search-filters {
    max-width: 327px;
    width: 100%;
}
.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}
.filter-parent-list > li > .filter-item .filter-name {
    font-weight: 600;
}
.filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: .75rem;
}
.filter-item input {
    margin-right: .5rem;
}
.filter-item input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    background-color: #0079FF;
    border-radius: 8px;
    position: relative;
    transition: background 0.2s ease;
}

.custom-checkbox::before {
    content: "-";
    color: white;
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.filter-item input[type="checkbox"]:checked + .custom-checkbox::before {
    content: "✔";
    font-size: 18px;
    font-weight: 500;
}
.filter-name {
    flex: 1;
}
.filter-count {
    margin-left: .3rem;
    color: #777;
}
.pagination {
    margin-top: 1rem;
    text-align: center;
}
.pagination button {
    margin: 0 .25rem;
    padding: .5rem .75rem;
}
.search-header {
    display: flex;
    justify-content: flex-start;
    gap: .5rem;
    margin-bottom: 1rem;
}
#category-select {
    max-width: 375px;
    width: 100%;
    min-width: 150px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-align: right;
    color: #687E97;
}

.search-bar-wrapper {
    text-align: center;
    margin-bottom: 32px;
}

.search-form {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #8E8EA9;
    border-radius: 30px;
    overflow: hidden;
}
.search-input {
    width: 100%;
    margin-right: 10px;
    padding: .5rem 1rem;
    border: none;
    outline: none;
    border-right: 1px solid #8E8EA9;
}
.category-select {
    border: none;
    padding: .5rem;
    outline: none;
}
.search-btn {
    display: flex;
    border: none;
    background: transparent;
    padding: .5rem 1rem;
    cursor: pointer;
}

.search-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.results-info {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    text-align: right;
    color: #0C3058;
}
.clear-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    min-width: 95px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid #B6C0CC;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #0068F5;
}

.result-item {
    margin-bottom: 1.5rem;
}
.result-title {
    margin: 0;
    font-size: 1.1rem;
}
.result-title > a {
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    color: #0068F5;
}
.result-excerpt {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-align: right;
    color: #687E97;
}
.result-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 16px;
    line-height: 24px;
    color: #0C3058;
}
.result-meta .meta-sep {
    margin: 0 .4rem;
}

.result-meta .meta-date {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-align: right;
    color: #687E97;
}

.result-meta .meta-type {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.result-buttons a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 0;
    text-align: center;
}
.pagination button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 .25rem;
    padding: 6px 12px;
    background: transparent;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    letter-spacing: -0.00948149px;
    color: #0C3058;
    border: none;
    outline: none;
    cursor: pointer;
}
.pagination button.active {
    background: #0C3058;
    border-radius: 8px;
    color: #fff;
}
.pagination button:disabled svg path {
    fill: #B6C0CC;
}

.search-bar-wrapper-mobile-filter {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    background: #0068F5;
    border-radius: 16px;
}

.search-filters .close-btn {
    display: none;
}

.search-filters .filters-overlay {
    display: none;
}

.lang-select-menu {
    display: none;
}

.lang-select-icon {
    cursor: pointer;
}



@media (max-width: 1810px) {
    .header__menu-items {
        gap: 10px;
    }
    .logo {
        max-width: 87px;
        height: 44px;
    }
    .header__menu-items a {
        font-size: 14px;
    }
    .top-bar {
        gap: 10px;
    }
    a.top-bar_phone {
        font-size: 14px;
    }
    a.top-bar_support {
        font-size: 14px;
    }
    .top-bar .search-bar {
        top: 64px;
    }
}

@media (max-width: 1700px) {
    .header__menu-items {
        gap: 10px;
    }
    .logo {
        max-width: 87px;
        height: 44px;
    }
    .header__menu-items a {
        font-size: 12px;
    }
    .top-bar {
        justify-content: flex-end;
        gap: 10px;
    }
    a.top-bar_phone {
        font-size: 12px;
    }
    a.top-bar_support {
        display: none;
    }
    .top-bar_search span {
        display: none;
    }
    a.top-bar_phone span {
        display: none;
    }
    .top-bar_lang select {
        display: none;
        position: absolute;
        bottom: 0;
    }
    .lang-select-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        z-index: 100;
        background: #F7F8FA;
        border-radius: 0 0 8px 8px;
    }
    .lang-select-menu.active ul {
        display: flex;
        flex-direction: column;
        min-width: max-content;
        padding: 24px;
    }
    .lang-select-menu.active ul li a {
        color: #000;
    }
    .header__menu-items-lang {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .header__menu-items-lang > li {
        padding: 10px 9px;
        position: relative;
    }
}

@media (max-width: 1280px) {
    .header {
        height: 64px;
    }
    .site-header {
        flex-direction: row-reverse;
        gap: 24px;
    }
    .menu-primary-menu-container {
        display: none;
    }
    .menu-primary-menu-arabic-container {
        display: none;
    }
    .top-bar {
        flex: 1;
    }
    a.top-bar_login {
        display: none;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .header__menu-items {
        flex-direction: column;
        gap: 0;
    }

    .header__menu-items > li {
        width: 100%;
    }

    .header__menu-items a {
        color: var(----text-50);
    }

    .sub-menu {
        position: static;
        box-shadow: none;
    }

    .sub-menu li a {
        padding-left: 32px;
    }

    .header__burger {
        display: flex;
    }

    .header__menu-items {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        width: 100%;
        padding: 20px;
        gap: 10px;
        display: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .header__menu-items.active {
        display: flex;
    }

    .header__burger.open span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }
    .header__burger.open span:nth-child(2) {
        opacity: 0;
    }
    .header__burger.open span:nth-child(3) {
        transform: rotate(-45deg) translateY(-9px);
    }
    .menu-overlay {
        display: none;
        /*opacity: 0;*/
        /*visibility: hidden;*/

    }
    .top-bar .search-bar {
        top: 56px;
        left: 50%;
        transform: translateX(-50%);
    }
    .search-page {
        padding: 16px;
    }
    .search-bar-wrapper {
        margin-bottom: 16px;
    }
    .search-page .search-bar-wrapper .search-form {
        max-width: 796px;
        width: 100%;
        padding: 7px 0;
    }
    .search-layout {
        gap: 24px;
        max-width: 796px;
        margin: 0 auto;
    }
    .search-filters {
        max-width: 222px;
        width: 100%;
    }
	.main-nav {
        gap: 0;
    }
}

@media screen and (max-width: 768px) {
    .header {
        height: 48px;
    }
    .header .container {
        padding: 0 19px 0 16px;
    }
    .logo {
        max-width: 100%;
        height: 32px;
    }
    .site-header {
        flex-direction: row-reverse;
        gap: 16px;
    }
    .header__burger {
        width: 18px;
        height: 12px;
        gap: 3px;
    }
    .header__burger span {
        height: 2px;
    }
    .top-bar .search-bar {
        top: 42px;
    }
    .search-page {
        padding: 0;
    }
    .search-page .search-layout {
        padding: 0 16px;
    }
    .search-layout {
        flex-direction: column;
    }
    #category-select {
        display: none;
    }
    .search-input {
        border-right: none;
    }
    .search-filters {
        display: none;
    }
    .search-filters.active {
        display: flex;
    }
    .search-bar-wrapper-mobile-filter {
        display: flex;
    }
    .search-bar-wrapper {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 16px;
        margin-bottom: 14px;
        padding: 24px 16px;
        border-bottom: 1px solid #E1E7F3;
        text-align: center;
    }

    .search-filters {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        background: #fff;
        padding: 20px;
        z-index: 1001;
        border-radius: 10px;
        display: none;
    }

    .search-filters .filters-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        display: none;
    }

    .search-filters.active {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        background: #FFFFFF;
        mix-blend-mode: normal;
        border: 1px solid #BBBBCB;
        border-radius: 30px;
    }

    .search-info-row {
        margin-bottom: 0;
        padding: 16px 24px;
        position: relative;
        z-index: 1001;
    }

    .filter-list {
        padding: 16px 24px;
        position: relative;
        z-index: 1001;
    }

    .search-filters .filters-overlay.active {
        display: block;
    }

    .search-filters .close-btn {
        display: flex;
        position: absolute;
        top: 16px;
        left: 24px;
        background: transparent;
        border: none;
        font-size: 20px;
        cursor: pointer;
        z-index: 1002;
    }

    .lang-select-menu.active {
        top: 42px;
    }
    .lang-select-menu.active ul {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        justify-content: flex-start;
        gap: 5px 10px;
    }
    .top-bar > span {
        display: block;
        width: 100%;
    }
}