:root {
    --color-primary: #003865;
    --color-yellow: #FFC400;
    --color-gray: #D8E5EB;
}

/* Header styles */
body.admin-bar .header-nav {
    top: 55px;
}

.header-nav {
    position: fixed;
    top: 10px;
    left: 50%;
    max-width: 1367px;
    width: 100%;
    transform: translateX(-50%);
    color: white;
    z-index: 999;
}

.header-nav.full-width {
    max-width: 100%;
}

.header-nav a {
    white-space: nowrap;
}

.header-nav a:focus {
    outline: none !important;
}

.header-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 14px;
    background-color: var(--color-primary);
    width: fit-content;
    height: 38px;
    border-radius: 10px 10px 0 0;
    padding: 0 33px;
}

.header-top .links {
    display: flex;
    gap: 1rem;
}

.header-top .links ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    list-style: none;
}

.header-top .links ul li a {
    color: var(--color-gray);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.header-top .links ul li a:hover {
    color: #FFF;
}

.header-top a:last-child {
    margin-right: 0;
}

.highlight-ukr {
    color: #FFC107 !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: 20px;
}

.highlight-ukr::before {
    content: "";
    display: block;
    width: 20px;
    height: 19px;
    background-image: url("/wp-content/themes/astra-child/images/ukr.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-right: 10px;
}

/* Navigation styles */
.nav-bar {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    height: 80px;
    overflow: visible !important;
}

.nav-bar .logo {
    font-size: 24px;
    font-weight: bold;
    border-radius: 0 0 0 10px;
    overflow: hidden;
    min-width: 100px;
}

.nav-bar .logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 25px;
    height: 100%;
    background-color: var(--color-primary);
}

.nav-bar .logo a img {
    max-width: 120px;
    min-width: 80px;
    width: 100%;
}

.nav-bar .main-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    border-radius: 0 10px 10px 0;
    background: rgba(0, 56, 101, 0.90);
    padding-right: 24px;
    margin-left: -1px;
}

.nav-bar .menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 20px;
    gap: 20px;
}

.nav-bar .menu li a {
    display: inline-block;
    position: relative;
    color: var(--color-gray);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.nav-bar .menu > li > a {
    padding: 3px 0;
}

.nav-bar .menu > li > a::before {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFF;
    transition: transform 0.25s ease-out;
    transform-origin: bottom right;
}

.nav-bar .menu > li > a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom right;
}

.nav-bar .menu li a:hover {
    color: #FFF;
}

.nav-bar .menu li.menu-item-has-children > a::after,
.m-nav-content li.menu-item-has-children > a::after {
    content: '';
    width: 10px;
    height: 15px;
    background-image: url("/wp-content/themes/astra-child/images/arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 10px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-bar .menu li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.m-nav-content li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

.nav-bar .submenu {
    position: absolute;
    top: 85px;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    list-style: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: calc(100% + 149px);
    max-width: 1367px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1001;
}

.nav-bar .fix-blur {
    position: absolute;
    width: calc(100% - 149px);
    height: 100%;
    backdrop-filter: blur(10px);
    z-index: -1;
    display: block;
}

.nav-bar .submenu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
}

.nav-bar .menu li.menu-item-has-children {
    display: flex;
}

.nav-bar .menu li.menu-item-has-children li.menu-item-has-children {
    flex-direction: column;
    height: auto;
}

.nav-bar .menu li.menu-item-has-children .submenu.open {
    opacity: 1;
    visibility: visible;
}

.nav-bar .menu li.menu-item-has-children.active > a::before {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(1);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFF;
    transition: transform 0.25s ease-out;
    transform-origin: bottom right;
}

.nav-bar .menu li.menu-item-has-children.active > a {
    color: #fff;
}

.nav-bar .submenu .submenu-label {
    display: none;
    font-size: 30px;
    font-weight: 300;
}

.nav-bar .main-nav .group-display .submenu .nav-list > .sub-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: auto;
    column-gap: clamp(20px, 5vw, 70px);
}

.grid-col2 .nav-list > .sub-links {
    grid-template-rows: auto;
}

.grid-col2 .nav-list .sub-links .grid-first-el {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.nav-bar .nav-list {
    position: relative;
    width: 100%;
    padding: 25px 10px 25px 45px;
    box-sizing: border-box;
    background: rgba(0, 56, 101, 0.80);
}

.nav-bar .nav-list::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgb(0 56 101 / 53%);
}

.nav-bar .podcast-banner .nav-list {
    width: 50%;
}

.nav-bar .nav-list .sub-links > .has-submenu > a:hover {
    color: inherit !important;
    cursor: default !important;
}

.nav-bar .nav-list .sub-links > .has-submenu > a::after {
    display: none;
}

.nav-bar .nav-list .sub-links > .has-submenu > a {
    font-weight: bold;
    color: #FFF;
}

.nav-bar .full-width .nav-list {
    width: 100%;
}

.nav-bar .submenu-highlight {
    width: 50%;
    background: rgba(0, 56, 101, 0.80);
}

.nav-bar .link-groups {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.nav-bar .submenu .link-group label {
    margin: 35px 0 20px;
    display: inline-block;
    font-weight: 700;
}

.nav-bar .submenu .link-group {
    padding: 0 10px 40px 35px;
    width: fit-content;
    height: fit-content;
}

.nav-bar .submenu .sub-links {
    list-style: none;
    margin: 0;
    padding: 0 10px 0 0;
}

.nav-bar .main-nav .submenu .sub-links .sub-links {
    padding: 20px 0 0;
}

.nav-bar .submenu .link-group .sub-links {
    padding: 0 0 20px 0;
}

.nav-bar .submenu .sub-links li {
    margin-bottom: 20px;
}

.nav-bar .submenu .sub-links .menu-item.top-item {
    position: absolute;
    top: 30px;
}

.nav-bar .submenu .sub-links li:last-child {
    margin-bottom: 0;
}

.nav-bar .submenu .sub-links li a {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    width: fit-content;
    text-wrap: auto;
}

.nav-bar .submenu .sub-links li a:hover {
    color: #FFC107;
}

.nav-bar .submenu .submenu-highlight {
    position: relative;
    display: none;
    align-items: flex-end;
    /*background-color: var(--color-primary);*/
    /*background-image: url("/wp-content/themes/astra-child/images/podcast-bg.webp");*/
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    mix-blend-mode: lighten;
    justify-content: center;
    gap: 20px;
}

.nav-bar .podcast-banner .submenu-highlight {
    display: flex;
}

.nav-bar .podcast-banner .submenu-highlight.position_c,
.nav-bar .submenu .submenu-highlight.position_c > a {
    align-items: center;
}

.nav-bar .submenu .submenu-highlight img {
    width: 100%;
    max-width: 400px;
}

.nav-bar .submenu .submenu-highlight h2 {
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    color: #fff;
}

.nav-bar .submenu .submenu-highlight a {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    text-decoration: underline;
    transition: all 0.3s;
}

.nav-bar .submenu .submenu-highlight > a {
    display: flex;
    justify-content: center;
    align-items: end;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-left: 10%;
    padding-right: 10%;
}

.nav-bar .submenu .submenu-highlight a:hover {
    text-decoration: none;
}

.nav-bar .submenu .submenu-highlight .podcast-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.nav-bar .submenu .submenu-highlight .podcast-info a img {
    width: fit-content;
    margin-right: 5px;
}

.nav-bar .actions {
    display: flex;
    align-items: center;
}

.nav-bar .actions .language,
.nav-bar .actions .search {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    font-weight: 700;
}

.nav-bar .actions .search img {
    min-width: 20px;
}

.nav-bar .actions .language::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("/wp-content/themes/astra-child/images/icon-earth.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-right: 5px;
}

.nav-bar .actions a.book-a-demo {
    display: flex;
    align-items: center;
    background-color: var(--color-yellow);
    color: var(--color-primary);
    border: none;
    border-radius: 5px;
    font-family: HelveticaBold, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    height: 50px;
    padding: 0 30px;
    transition: all 0.3s;
    text-decoration: none;
    margin-left: 20px;
    max-width: 170px;
    text-wrap: auto;
    line-height: normal;
    text-align: center;
}

.nav-bar .actions a.book-a-demo:hover {
    background-color: #e0a800;
}

li.new-item > a {
    border-radius: 5px;
    background: #0082CF;
    color: #FFF !important;
    font-weight: bold !important;
    padding-left: 5px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

li.new-item > a::after {
    content: 'NEW';
    border-radius: 5px;
    color: #0082CF;
    background: #FFF;
    font-weight: bold;
    margin-left: 10px;
    padding: 0 5px;
}

li.new-item > a:hover {
    background: rgba(0, 130, 207, 0);
    color: #e0a800 !important;
}

.mobile-nav-container li.new-item > a {
    padding: 1px 0 3px 5px;
}

.mobile-nav-container li.new-item > a::after {
    padding: 1px 5px;
}

.main-nav .menu > li > a {
    font-weight: bold !important;
}

.main-nav .mobile-nav-btn {
    display: none;
    width: 30px;
    height: 30px;
    background-image: url("/wp-content/themes/astra-child/images/menu-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

@media screen and (max-width: 1268px) {
    .header-nav {
        max-width: 96%;
    }

    .main-nav .mobile-nav-btn {
        display: inline-block;
    }

    .nav-bar .menu {
        display: none;
    }

    .nav-bar .main-nav {
        justify-content: end;
    }

    .main-nav .actions .search {
        display: none;
    }

    .header-nav .nav-bar {
        overflow: hidden;
        height: 70px;
    }

    .nav-bar .actions a.book-a-demo {
        height: 45px;
        padding: 0 10px;
    }

    .highlight-ukr {
        margin-left: 0;
    }

    .nav-bar .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        min-width: 95px;
    }

    .nav-bar .actions a.book-a-demo {
        margin-left: 5px;
    }

    .nav-bar .main-nav {
        align-items: center;
        gap: 20px;
    }

    .header-nav .header-top {
        display: none;
    }

    .header-nav .nav-bar {
        border-radius: 10px;
    }

    .nav-bar .logo a {
        border-radius: 10px 0 0 10px;
        overflow: hidden;
    }
}

@media screen and (max-width: 768px) {
    .nav-bar .logo a img {
        min-width: 70px;
    }

    .nav-bar .fix-blur {
        width: calc(100% - 90px);
        right: 0;
        border-radius: 20px;
        overflow: hidden;
    }
}

.m-nav-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    height: calc(100% - 30px);
}

.m-nav-content .top-part {
    margin-top: 20px;
}

.mobile-nav-container img.logo {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100px;
}

.mobile-nav-container {
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #002d5db0;
    backdrop-filter: blur(30px);
    display: none;
    flex-direction: column;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    box-sizing: border-box;
}

.mobile-nav-container.active {
    display: flex;
}

.mobile-nav-container .close-m-nav {
    margin-right: 10px;
    align-self: flex-end;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.m-nav-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.m-nav-content ul li {
    margin: 10px 0 20px;
    width: fit-content;
}

.m-nav-content .top-part > ul > li > a {
    font-weight: 700 !important;
}

.m-nav-content ul li a {
    text-decoration: none;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    color: var(--color-gray);
}

.m-nav-content ul li.menu-item-has-children > a {
    display: flex;
    width: fit-content;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.m-nav-content ul li.menu-item-has-children ul {
    display: none;
    padding-left: 20px;
}

.m-nav-content ul li.menu-item-has-children.open > ul {
    display: block;
    opacity: 1;
}

.m-nav-content .top-part ul ul {
    display: none;
}

.m-nav-content .search-container {
    position: relative;
    margin-top: auto;
    padding: 10px 0 0;
    display: flex;
    align-items: center;
}

.m-nav-content .search-container input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border-bottom: none;
    background-color: #ffffff12;
    border-top: 0;
    border-right: 0;
    border-left: 0;
}

.m-nav-content .search-container input::placeholder {
    font-weight: bold;
    opacity: 0.5;
    color: #fff;
}

.m-nav-content .search-container .search-icon {
    position: absolute;
    top: 14px;
    right: 5px;
    padding: 5px;
    cursor: pointer;
}

.m-nav-content .top-part {
    overflow-y: auto;
    margin-right: -15px;
}

.m-nav-content .top-part::-webkit-scrollbar {
    width: 6px;
}

.m-nav-content .top-part::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.m-nav-content .top-part::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.m-nav-content .top-part {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-gray);
}

.m-nav-content li a:hover {
    color: #fff;
}

.m-nav-content .menu-item-has-children.open > a {
    color: #fff;
    font-weight: 700;
}

.m-nav-content form.search-form {
    position: relative;
    width: 100%;
}

.m-nav-content form.search-form input.search-submit {
    display: none;
}

.m-nav-content form.search-form button.search-submit.ast-search-submit {
    padding: 5px 10px;
    background: transparent;
    position: absolute;
    top: 3px;
    right: 0;
    font-size: 20px;
    color: #899eb4;
}