/* Keep the section menu layout when Hello Elementor applies its generic .sticky styles. */
#menu_anchors.lidery-expert-nav {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    gap: 0 3.6px;
    padding: 11px 0 1px;
    background: #fff;
}

#menu_anchors.lidery-expert-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #fff;
    box-shadow: 0 0 0 100vmax #fff;
    clip-path: inset(0 -100vmax);
}

#menu_anchors.lidery-expert-nav::after {
    content: "";
    position: absolute;
    inset: 10px 0 0;
    border-block: 1px solid #c2c2c2;
    pointer-events: none;
}

@media (min-width: 1180px) {
    #menu_anchors.lidery-expert-nav,
    #content > .yoast-breadcrumbs:has(+ #menu_anchors.lidery-expert-nav) {
        margin-inline: -20px;
    }
}

@media (max-width: 767px) {
    #menu_anchors.lidery-expert-nav {
        margin-inline: -10px;
    }
}

#menu_anchors.lidery-expert-nav a {
    position: relative;
    display: flex;
    padding: 7px 5px;
    color: #121a2a;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

#menu_anchors.lidery-expert-nav a:not(:last-child)::before {
    content: "";
    position: absolute;
    inset-inline-start: calc(100% + 1.3px);
    top: 10px;
    width: 1px;
    height: 14px;
    background: #333;
    pointer-events: none;
}

#menu_anchors.lidery-expert-nav a::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: #4779bc;
    opacity: 0;
}

#menu_anchors.lidery-expert-nav a:hover,
#menu_anchors.lidery-expert-nav a:focus-visible {
    color: #4779bc;
}

#menu_anchors.lidery-expert-nav a:hover::after,
#menu_anchors.lidery-expert-nav a:focus-visible::after {
    opacity: 1;
}

#content :is(#description, #video, #articles, #trainings) {
    scroll-margin-top: var(--expert-section-offset, 140px);
}

#trainings {
    margin-top: 32px;
}

#trainings .upcoming-events-ch-wrap {
    max-width: none;
    margin: 20px 0 0;
    padding: 0;
    justify-content: flex-start;
}

#trainings .upcoming-events {
    box-sizing: border-box;
    max-width: 100%;
}
