body:not(.header-is-fixed) #header > .container {
    border-bottom: 1px solid #000;
}
body.page-id-2 #header > .container,
body.page-id-31 #header > .container,
body.page-id-2127 #header > .container,
body.page-id-14607 #header > .container,
body.page-id-22998 #header > .container,
body.page-id-23097 #header > .container,
body.page-id-28341 #header > .container,
body.page-id-23135 #header > .container {
    border-bottom: none;
}

#header .pull-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
#header .pull-right ul {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#header .pull-right ul li {
    width: 20px;
    height: 20px;
    padding: 10px;
    cursor: pointer;
    position: relative;
    box-sizing: content-box;
}
#header .pull-right ul li::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #F7F6F9 transparent;
    transform: rotate(0deg) translateX(-50%);
    position: absolute;
    bottom: -9px;
    left: 50%;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#header .pull-right ul li.active::after {
    visibility: visible;
    opacity: 1;
}
#header .pull-right ul li.icon-search::after {
    bottom: -17px;
}

#header .pull-right ul li svg {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    color: #000;
    transition: opacity 0.3s ease-in-out;
}
#header .pull-right ul li.icon-search svg:last-child,
#header .pull-right ul li.icon-notifications svg:last-child {
    visibility: hidden;
    opacity: 0;
}
#header .pull-right ul li.icon-search.active svg:first-child,
#header .pull-right ul li.icon-notifications.active svg:first-child {
    visibility: hidden;
    opacity: 0;
}
#header .pull-right ul li.icon-search.active svg:last-child,
#header .pull-right ul li.icon-notifications.active svg:last-child {
    visibility: visible;
    opacity: 1;
}

.header-notifications {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 4px;
    position: absolute;
    top: 64px;
    left: 50%;
    z-index: -1;
    transform: translateX(-50%);
    border-radius: 10px;
    background: #F7F6F9;
    box-shadow: 0 59px 17px 0 rgba(0, 0, 0, 0.00), 0 38px 15px 0 rgba(0, 0, 0, 0.00), 0 21px 13px 0 rgba(0, 0, 0, 0.02), 0 9px 9px 0 rgba(0, 0, 0, 0.03), 0 2px 5px 0 rgba(0, 0, 0, 0.03);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}
.header-notifications.active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}
.header-notifications ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}
ul.recent-posts-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 6px;
    background: #fff;
}
ul.recent-posts-list li img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

ul.recent-posts-list li .post-tag {
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: #000;
}
ul.recent-posts-list li .post-tag.event {
    background-color: #FF795A;
}

ul.recent-posts-list li .post-title {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0;
}
ul.recent-posts-list li .post-title a {
    color: #000 !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: -0.14px;
    margin: 0;
    padding: 0;
}

.header-notifications .read-all-news {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.header-search-form {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 12px 4px;
    position: absolute;
    top: 72px;
    left: 50%;
    z-index: -1;
    transform: translateX(-50%);
    border-top: 1px solid #F7F6F9;
    border-bottom: 1px solid #000;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}
.header-search-form.active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.header-search-form .search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}
.search-form label {
    display: block;
    width: 18px;
    height: 18px;
    color: #60646C;
}
.search-form:hover label {
    color: #000;
}
.search-form .search-field {
    width: calc(100% - 132px);
    height: 48px;
    padding: 0;
    border: 0;
    color: #000;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}
.search-form .search-field::-webkit-input-placeholder {
    color: #60646C !important;
}
.search-form .search-field:-moz-placeholder {
    color: #60646C !important;
    opacity: 1 !important;
}
.search-form .search-field::-moz-placeholder {
    color: #60646C !important;
    opacity: 1 !important;
}
.search-form .search-field:-ms-input-placeholder {
    color: #60646C !important;
}
.search-form .search-field::placeholder {
    color: #60646C !important;
}
.search-form .search-submit {
    display: block;
    width: 90px;
    height: 40px;
    padding: 12px 20px;
    border-radius: 4px;
    background: #F7F6F9;
    color: #60646C;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}
.search-form .search-submit:hover {
    color: #fff;
    background:  #60646C;
}

@media screen and (max-width: 1799px) {
    .header-notifications,
    .header-search-form {
        max-width: 1160px;
    }
}

@media screen and (max-width: 1160px) {
    .header-notifications,
    .header-search-form {
        max-width: 960px;
    }
}

@media screen and (max-width: 767px) {
    .t7-main-header {
        height: auto !important;
    }
    .t7-logo {
        margin: 16px 0 !important;
    }
}
