.header {
    height: 96px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}
.header.scrolled {
    background: rgb(0 0 0 / 50%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.header > .container {
    width: 100%;
}
.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header_menu {
    display: flex;
    align-items: center;
    position: relative;
}
.header_menu_search {
    padding: 0 18px;
    cursor: pointer;
}
.header_search_line {
    position: absolute;
    top: -150px;
    height: 48px;
    background-color: #0c142e;
    width: auto;
    z-index: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header_search_line.active {
    top: -10px;
    width: 100%;
}
/*.header_search_line .search-field {*/
/*    width: 100%;*/
/*}*/
.header_search_line .search-form {
    width: 100%;
}
/*.header_search_line .search-field {*/
/*    width: 400px;*/
/*}*/
.header_search_line > form > label:nth-child(2) {
    display: none;
}
.header_nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    list-style-type: none;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0px;
}
.menu-item a {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 28px;
    color: #FFFFFF;
    transition: all 0.3s ease-in-out;
    border-top: 3px solid transparent;
}
.menu-item a:hover {
    opacity: 0.85;
    transition: all 0.3s ease-in-out;
    border-top: 3px solid #FEBF1D;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}
.current-menu-item a {
    border-top: 3px solid #FEBF1D;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.header_btns {
    display: flex;
    gap: 10px;
}
.header_singup a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 0px;
    width: 102px;
    height: 48px;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    background: linear-gradient(121.58deg, #CB3AFC 5.55%, #7D32F1 102.26%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    border: 1px solid #CB3AFC;
    border-radius: 12px;
    opacity: 1;
}
.header_singup a:hover {
    opacity: 0.85;
    transition: all 0.3s ease-in-out;
}
.header_login a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 0px;
    gap: 4px;
    width: 88px;
    height: 48px;
    background: linear-gradient(121.58deg, #CB3AFC 5.55%, #7D32F1 102.26%);
    border-radius: 12px;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    transition: all 0.3s ease-in-out;
    opacity: 1;
}
.header_login a:hover {
    opacity: 0.85;
    transition: all 0.3s ease-in-out;
}
.header__burger {
    display: none;
}
.single-events #menu-item-26 a,
.single-products #menu-item-27 a,
.single-services #menu-item-28 a,
.single-diy #menu-item-29 a,
.single-communities #menu-item-30 a,
.single-divas #menu-item-31 a {
    border-top: 3px solid #FEBF1D;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}
.profile_section_image a img {
    width: 48px;
    height: 48px;
    border-radius: 100px;
    object-fit: cover;
}
.profile_section {
    display: flex;
    align-items: center;
}

/* Блок профілю */
.profile_section {
    position: relative;
}

/* Список публікацій */
.profile_listing {
    position: relative;
}

.profile_listing_list {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 175px;
    border-radius: 8px;
    background: rgb(36 33 59);
    border: 1px solid rgba(255, 255, 255, 0.1);

}
.profile_listing_item {
    border-bottom: 1px solid #ffffff2e;
}
.profile_listing_item:last-child {
    border-bottom: 1px solid transparent;
}

.profile_listing_btn:hover + .profile_listing_list,
.profile_listing_list:hover,
.profile_listing:hover .profile_listing_list {
    display: block;
}

.profile_listing_item a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
}

.profile_listing_item:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0px 0px 250px rgba(230, 74, 255, 0.2);
}

/* Секція зображення профілю */
.profile_section_image {
    position: relative;
}

.profile_links {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 150px;
    border-radius: 8px;
    background: rgb(36 33 59);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.singup:hover + .profile_links,
.profile_links:hover,
.profile_section_image:hover .profile_links {
    display: block;
}

.profile_links_item a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
}

.profile_links_item a:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0px 0px 250px rgba(230, 74, 255, 0.2);
}
.profile_links_item a.logout {

    color: #F95F5F;
}
.post-type-archive-events #menu-item-26 a,
.post-type-archive-products #menu-item-27 a,
.post-type-archive-services  #menu-item-28 a,
.post-type-archive-diy  #menu-item-29 a,
.post-type-archive-communities  #menu-item-30 a,
.post-type-archive-divas  #menu-item-31 a,
.page-id-333 #menu-item-25 a {
    border-top: 3px solid #FEBF1D;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}
#menu-item-posts {
    display: none;
}
.profile_listing_menu {
    display: none;
}
.profile_listing_menu.active {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    margin-top: 84px;
}
.page-id-333.logged-in .header {
    top: 16px;
}
.header_menu_create {
    display: none;
}


@media only screen and (max-width: 1200px) {
    .header_nav {
        gap: 16px;
    }


}
@media only screen and (max-width: 992px) {
    .header_menu_create {
        display: block;
        padding-right: 16px;
        padding-left: 16px;
        margin-bottom: 30px;
    }
    .create_post_menu {
        padding: 5px 0px;
    }
    .create_post_menu.active {
        height: auto;
    }
    .create_btn {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12px 0px;
        gap: 4px;
        width: 100%;
        height: 48px;
        background: linear-gradient(121.58deg, #CB3AFC 5.55%, #7D32F1 102.26%);
        border-radius: 12px;
        font-family: 'Poppins';
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        color: #FFFFFF;
        border: none;
        cursor: pointer;
        margin-bottom: 10px;
    }
    .create_btn span {
        margin-right: 5px;
        margin-left: 5px;
    }
    .create_post_menu {
        background: #FFFFFF0D;
        border-radius: 12px;
        padding-left: 10px;
        padding-right: 10px;
        display: none;
    }
    .create_post_menu.active {
        display: block;
    }
    .create_post_menu .profile_listing_item {
        text-align: center;
        font-size: 14px;
        padding: 7px;
        border-bottom: 1px solid #ffffff36;
    }
    .create_post_menu .profile_listing_item a {
        color: #FFFFFF;
        font-size: 16px;
    }
    .create_post_menu .profile_listing_item:last-child {
        border-bottom: 1px solid transparent;
    }
    .header_logo {
        width: 100%;
    }
    .logged-in .header_menu_search {
        padding: 0 16px;
        position: absolute;
        right: 110px;
        top: 50%;
        transform: translate(0, -42%);
    }
    .header_menu_search {
        padding: 0 16px;
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translate(0, -42%);
    }
    .header__burger {
        display: block;
        position: relative;
        width: 24px;
        height: 24px;
        /*position: absolute;*/
        z-index: 1000;
        right: 16px;
    }
    .header__burger:before {
        position: absolute;
        content: '';
        top: 0;
        right: 0;
        background-repeat: no-repeat;
        background-size: cover;
        background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 18H4M20 12H4M20 6H4' stroke='url(%23paint0_linear_2206_6012)' stroke-width='2' stroke-linecap='round'/%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_2206_6012' x1='6.0155' y1='5.28947' x2='20.9614' y2='17.539' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23CB3AFC'/%3E%3Cstop offset='1' stop-color='%237D32F1'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E%0A");
        width: 24px;
        height: 24px;
    }
    .header__burger:after {
        display: none;
        position: absolute;
        content: '';
        top: 0;
        right: 0;
        background-repeat: no-repeat;
        background-size: cover;
        background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6L6 18M18 18L6 6' stroke='url(%23paint0_linear_2206_7184)' stroke-width='2' stroke-linecap='round'/%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_2206_7184' x1='7.51163' y1='5.28947' x2='21.1119' y2='13.6495' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23CB3AFC'/%3E%3Cstop offset='1' stop-color='%237D32F1'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E%0A");
        width: 24px;
        height: 24px;
    }
    .header__burger.active:after {
        display: block;
    }
    .header__burger.active:before {
        display: none;
    }

    .header_nav {
        flex-direction: column;
        text-align: center;
    }
    .menu-primary-container {
        margin-bottom: 25px;
        /*height: 100%;*/
        display: flex;
        flex-direction: column-reverse;
    }
    .header_menu {
        display: none;
        flex-direction: column;
        padding: 30px 16px;
        position: relative;
    }
    .header_menu.active {
        display: block;
        position: absolute;
        background: #081023;
        width: 100%;
        /* height: calc(100vh + 180px); */
        height: 100vh;
        z-index: 10;
        top: 85px;
        left: 0;
        overflow-x: scroll;
         padding-bottom: 100px;
        padding-left: 0;
        padding-right: 0;
        /* padding-top: 100px;*/
    }
    .header_btns {
        justify-content: center;
        margin-bottom: 60px;
    }
    body.lock {
        overflow: hidden;
    }
    .menu-item {
        margin-bottom: 10px;
    }
    .menu-item:last-child {
        margin-bottom: 0px;
    }
    .menu-item a {
        padding: 8px 0px;
        gap: 8px;
        font-family: 'Poppins';
        font-style: normal;
        font-weight: 600;
        font-size: 24px;
        line-height: 24px;
        color: #FFFFFF;
        transition: all 0.3s ease-in-out;
    }
    .menu-item a:hover {
        opacity: 0.85;
        transition: all 0.3s ease-in-out;
    }
    .header_login a,
    .header_singup a {
        width: 166px;
    }
    .header_search_line.active {
        top: 22px;
        width: 92%;
        z-index: 9999;
    }
    .header_search_line .search-form label {
        flex: 0 0 100%;
        width: 100%;
    }
    .header_search_line {
        min-height: 75px;
    }
    .header_search_line .search-form {
        flex-direction: column;
        height: 40px;
    }
    .header_search_line .search-field {
        padding-left: 38px;
    }
    .page-id-333 .header_menu_search {
        top: 35%;
        height: 50px;
    }
    .header__inner .profile_section {
        width: 55px;
    }
    .header__inner .header__burger {
        right: 0px;
        width: 55px;
    }
    .profile_links {
        right: 0;
    }
    .profile_links {
        width: 201px;
    }
    .singup:hover + .profile_links, .profile_links:hover, .profile_section_image:hover .profile_links {
        display: flex;
        flex-direction: column-reverse;
    }
    .profile_listing_btn {
        display: none !important;
    }
    .profile_listing_list {
        box-shadow: none;
        z-index: 1000;
        width: 100%;
        border: 0px solid rgba(255, 255, 255, 0.1);
        display: block;
        position: relative;
        background: #0c122a;
        height: 100%;
        padding-top: 80px;
    }
    .profile_links {
        display: none !important;
    }
    .profile_links.active {
        display: flex !important;
    }
    #menu-item-posts {
        font-family: 'Poppins';
        font-style: normal;
        font-weight: 600;
        font-size: 24px;
        line-height: 28px;
        color: #FFFFFF;
        display: none;
    }
    .logged-in .menu-item-posts {
        display: block !important;
    }
    .profile_listing_list .profile_listing_item {
        margin-bottom: 15px;
    }
    .profile_listing_list .profile_listing_item a {
        text-align: center;
        font-family: 'Poppins';
        font-style: normal;
        font-weight: 600;
        font-size: 24px;
        line-height: 28px;
        color: #FFFFFF;
    }
    .profile_listing_close {
        position: absolute;
        top: 20px;
        left: 10px;
        z-index: 1111;
        display: flex;
        justify-content: flex-start;
        /*margin-bottom: 50px;*/
    }
    .profile_listing_close a {
        font-size: 18px !important;
        font-weight: 400 !important;
    }
    .profile_listing_list_desktop {
        display: none !important;
    }

}


@media only screen and (max-height: 620px) {
    .header_menu.active {
        padding-bottom: 100px;
    }
}
@media only screen and (max-width: 1024px) {
    .header {
        height: 70px;
    }
    .header_logo {
        width: 100px;
    }
    .header__logo-img {
        width: 100px;
    }
    .menu-item {
        margin-bottom: 10px;
    }
    .menu-item a {
        font-size: 20px;
        line-height: 10px;
    }
    .header_menu.active {
        top: 60px;
    }
}
@media only screen and (max-width: 399px) {
    .menu-primary-container {
        margin-bottom: 40px;
    }
    .menu-item {
        margin-bottom: 15px;
    }
}