/* BERA SOFTWARE HEADER SCROLLSPY V1 */

/* Desktop primary navigation only */
@media (min-width: 992px) {

    .bera-software-header nav a {
        color: #ffffff !important;
        border-bottom-color: transparent !important;
        text-decoration-color: transparent !important;
    }

    .bera-software-header nav a::after,
    .bera-software-header nav a::before {
        border-bottom-color: transparent !important;
    }

    .bera-software-header nav a.bera-software-scrollspy-active {
        color: #ff7924 !important;
        border-bottom-color: #ff7924 !important;
        text-decoration-color: #ff7924 !important;
    }

    .bera-software-header nav a.bera-software-scrollspy-active::after {
        border-bottom-color: #ff7924 !important;
    }

    .bera-software-header nav a:hover,
    .bera-software-header nav a:focus-visible {
        color: #ff954f !important;
    }
}


/* BERA SOFTWARE SCROLLSPY ACTIVE RESET V2 */

@media (min-width: 992px) {

    /* Reset WordPress default current-menu styles */
    .bera-software-header nav a,
    .bera-software-header nav li.current-menu-item > a,
    .bera-software-header nav li.current_page_item > a,
    .bera-software-header nav li.current-menu-ancestor > a,
    .bera-software-header nav li.current_page_ancestor > a {
        color: #ffffff !important;
        text-decoration: none !important;
        border-bottom-color: transparent !important;
    }

    /* Reset underline pseudo-elements */
    .bera-software-header nav a::after,
    .bera-software-header nav li.current-menu-item > a::after,
    .bera-software-header nav li.current_page_item > a::after {
        background-color: transparent !important;
        border-color: transparent !important;
        opacity: 0 !important;
    }

    /* Apply active colour to only the ScrollSpy-selected link */
    .bera-software-header nav a.bera-software-scrollspy-active,
    .bera-software-header nav li.current-menu-item > a.bera-software-scrollspy-active {
        color: #ff7924 !important;
        border-bottom-color: #ff7924 !important;
    }

    .bera-software-header nav a.bera-software-scrollspy-active::after {
        background-color: #ff7924 !important;
        border-color: #ff7924 !important;
        opacity: 1 !important;
    }

    .bera-software-header nav a:hover {
        color: #ff954f !important;
    }
}


/* BERA SOFTWARE DESKTOP MENU ACTIVE FIX V3 */

@media (min-width: 992px) {

    /* All navigation items start as inactive */
    .bera-software-desktop-menu > li > a,
    .bera-software-desktop-menu > li.current-menu-item > a,
    .bera-software-desktop-menu > li.current-menu-ancestor > a,
    .bera-software-desktop-menu > li.current_page_item > a {
        color: #ffffff !important;
        text-decoration: none !important;
    }

    /* Remove default WordPress active underlines */
    .bera-software-desktop-menu > li > a::after,
    .bera-software-desktop-menu > li.current-menu-item > a::after,
    .bera-software-desktop-menu > li.current-menu-ancestor > a::after,
    .bera-software-desktop-menu > li.current_page_item > a::after {
        background: #ff7924 !important;
        border-color: transparent !important;
        transform: scaleX(0) !important;
        opacity: 0 !important;
    }

    /* Only the current ScrollSpy item is highlighted */
    .bera-software-desktop-menu > li > a.bera-software-scrollspy-active {
        color: #ff7924 !important;
    }

    .bera-software-desktop-menu > li > a.bera-software-scrollspy-active::after {
        transform: scaleX(1) !important;
        opacity: 1 !important;
    }

    /* Preserve hover feedback without marking all items active */
    .bera-software-desktop-menu > li > a:hover,
    .bera-software-desktop-menu > li > a:focus-visible {
        color: #ff954f !important;
    }
}


/* BERA SOFTWARE MOBILE SCROLLSPY V4 */

@media (max-width: 991px) {

    /* Reset WordPress current-item highlighting */
    .bera-software-mobile-menu > li > a,
    .bera-software-mobile-menu > li.current-menu-item > a,
    .bera-software-mobile-menu > li.current-menu-ancestor > a,
    .bera-software-mobile-menu > li.current_page_item > a {
        color: #ffffff !important;
        border-color: transparent !important;
        text-decoration: none !important;
    }

    /* Only current section should appear active */
    .bera-software-mobile-menu > li > a.bera-software-scrollspy-active {
        color: #ff822e !important;
        border-left: 3px solid #ff822e !important;
        padding-left: 12px;
        background: rgba(255,125,35,.07);
    }

    .bera-software-mobile-menu > li > a:hover,
    .bera-software-mobile-menu > li > a:focus-visible {
        color: #ff9a52 !important;
    }
}