header {
    background-color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 12;
    overflow: hidden;
}

body.no-scroll {
    overflow: hidden;
}

.admin-bar header {
    top: 32px;
}

@media ( max-width: 782px ) {
    .admin-bar header {
        top: 46px;
    }

    #wpadminbar {
       position: fixed;
    }
}

.wp-block-template-part {
    background-color: transparent;
}

.custom-header {
    background-color: white;
    border: 1px solid #D0E1EA;
    border-radius: 0 0 12px 12px ;
    height: 80px;
    box-sizing: border-box;
    transition: height 0.3s ease-in-out;
}

.custom-header .main-nav-container {
    border-bottom: 1px solid #E1E4E5;
}

.custom-header .site-logo {
    display: flex;
    align-items: center;
}

.custom-header .site-logo img {
    width: 152px;
    height: 76px;
}

.main-nav-container .global-container-wide {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.custom-header .main-nav {
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px 40px;
    height: 100%;
    list-style-type: none;
    margin-block-start: 0;
    margin-block-end: 0;
    margin: auto 0;
}

.custom-header .main-nav li {
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    padding: 25px 0;
    text-align: center;
    cursor: pointer;
    user-select: none;
}


.custom-header .main-nav li.active,
.custom-header .main-nav li:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.custom-header .main-nav-add {
    min-width: fit-content;
    padding: 25px 0;
    display: flex;
    gap: 0 24px;
}

.custom-header form {
    position: relative;
    display: flex;
}

.custom-header button {
    position: absolute;
    right: 0;
    height: 100%;
    width: 24px;
    background-color: #EFEFEF;
    border-radius: 5px;
    border: none;
    padding: 0;
}

.custom-header button svg {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.language svg {
    margin-right: 10px;
    width: 20px;
    height: 16px;
}

.custom-header .main-nav-add input {
    height: 22px;
    padding: 4px 6px;
    border-radius: 5px;
    border: none;
    outline: none;
}

.custom-header .main-nav-add p {
    margin: auto 0;
    cursor: pointer;
}

.custom-header .language {
    display: inline-flex;
    align-items: center;
    gap: 0 5px;
}

.custom-header .language p.active,
.custom-header .language:hover p {
    text-decoration: underline;
}

.second-menu-nav {
    height: calc( 100% - 82px );
    position: relative;
}

.second-menu-nav-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0.3s ease-in-out, opacity 0.4s ease-in-out;
}

.second-menu-nav-items.visible {
    opacity: 1;
    visibility: initial;
}

.second-menu-nav-items .content {
    max-width: 1030px;
    height: fit-content;
    margin: 0 auto;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
}

.second-menu-nav-items .content.language.global-container-wide {
    max-width: 1240px;
}


.second-menu-nav-items .content.language {
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.second-menu-nav-items .content.language svg {
    width: 18px;
    height: 14px;
    margin-right: 10px;
}


.submenu-left,
.submenu-post,
.submenu-nav {
    display: flex;
    flex-direction: column;
    width: 260px;
}

.submenu-left .title {
    font-size: 32px;
    line-height: 32px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 14px;
}

.submenu-left .description {
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 24px 0;
}

.submenu-post .post-img-container {
    padding-bottom: 66%;
    margin-bottom: 10px;
}

.submenu-post .post-img-container a,
.submenu-post .post-img-container img {
    border-radius: 5px;
}


.submenu-post .tags {
    display: flex;
    gap: 0 4px;
    margin-bottom: 5px;
}

.submenu-post .tags .category,
.submenu-post .tags svg {
    width: 22px;
    height: 22px;
}

.submenu-post .title {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 900;
    line-height: 24px;
}

.submenu-post .excerpt {
    font-size: 16px;
    line-height: 22px;
}

.submenu-post .time-to-read {
    display: none;
}

.submenu-nav a {
    width: fit-content;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.submenu-nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.submenu-nav a svg {
    margin-right: 10px;
}



.mobile-nav-toggle {
    height: 40px;
    width: 40px;
    margin: auto 0;
    display: none;
}

.mobile-nav-toggle .circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
}

.mobile-nav-toggle .circle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate( 50%, 50% );
}

.mobile-nav-toggle .circle svg.hidden {
    display: none;
}

.mobile-nav-overlay {
    background-color:rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.mobile-nav-overlay.visible {
    display: initial;
}

.mobile-nav-overlay .mobile-menu {
    max-width: 450px;
    height: 100%;
    background-color: white;
    padding-top: 78px;
}

.admin-bar .mobile-nav-overlay .mobile-menu {
    max-width: 450px;
    height: 100%;
    background-color: white;
    padding-top: 110px;
}

@media (max-width: 782px) {
    .admin-bar .mobile-nav-overlay .mobile-menu {
        padding-top: 124px;
    }
}


.mobile-menu {
    overflow-x: scroll;
}

.mobile-menu .mobile-menu-content {
    padding: 40px 20px 200px 20px;
}

.mobile-menu-content input {
    width: 100%;
    padding: 10px 6px;
    border-radius: 5px;
    border: none;
    outline: none;
}

.mobile-menu-accordion {
    border-bottom: 1px solid #E1E4E5;
    overflow: hidden;
    height: 62px;
    transition: height 0.3s ease-in-out;
}


.mobile-menu-accordion .accordion-content {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.mobile-menu-accordion.opened .accordion-content {
    opacity: 1;
}

.mobile-menu-accordion .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 20px 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
}

.mobile-menu-accordion .language {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 30px;
}

.mobile-menu-accordion .language a {
    width: 49%;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.mobile-menu-accordion.opened .title {
    font-weight: 600;
}

.mobile-menu-accordion .title p  {
    font-weight: 600;
    margin: 0;
}

.mobile-menu-accordion .title .globe {
    transform: translateY(2px);
}

.mobile-menu-accordion .title .arrow {
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-accordion.opened .title .arrow {
    transform: rotate(180deg);
}

.mobile-menu-accordion .title .arrow path {
    transition: fill 0.3s ease-in-out;
}

.mobile-menu-accordion.opened .title .arrow path {
    fill: #7AB2DC;
}

.mobile-menu-accordion .description {
    margin-top: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}

.mobile-menu-accordion .main-btn-nav,
.mobile-menu-accordion .submenu-nav {
    margin-bottom: 30px;
}

@media ( max-width: 1200px ) {
    .custom-header {
        border: none;
        background-color: transparent;
    }

    .custom-header .main-nav-container {
        position: relative;
        z-index: 5;
        background-color: white;
        border: 1px solid #D0E1EA;
        border-radius: 0 0 12px 12px;
    }

    .custom-header .main-nav,
    .custom-header .main-nav-add,
    .second-menu-nav-items {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

}
