@media (max-width: 768px) {
    /* Highlights the current page */
    .current-menu-item > a {
        font-weight: bolder;
    }

    /* Hides submenus by default */
    .html_av-submenu-hidden #av-burger-menu-ul li ul {
        display: none;
    }

    /* Displays submenus when the menu item has 'open' class */
    #av-burger-menu-ul li.open > ul.sub-menu {
        display: block;
    }

    /* Provides better visual feedback for open menu items */
    #av-burger-menu-ul li.open > a {
        font-weight: bold;
        color: #0073aa;
    }

    /* Background color for current page item */
    .current_page_item {
        background-color: #008099;
    }
	
	.current-section > a {
    background-color: #008099 !important; 
    padding: 6px 12px 0px 12px;
    border-radius: 4px;
}
	
	.top-menu {
    display: grid;
    background-color: #0A426F; /* #003865 */
}

    .top-menu a {
	text-transform: none !important;
    }
	
    .top-menu-first {
        border-top: 2px solid white; /* Vitt streck ovanför första elementet */
    }

    .top-menu-last {
        border-bottom: 2px solid white; /* Vitt streck under sista elementet */
    }
    
     /* Add a 2px border under the last item in the top menu */
    .top-menu  {
        border-bottom: 2px solid white !important; /* Adjust the color as needed */
    }

}


@media (min-width: 769px) {.top-menu {display:none;} }

/* Add chevron icon to menu items with class 'dropdown_ul_available' */
#top .main_menu .menu > li.dropdown_ul_available > a {
    position: relative; /* Ensure the pseudo-element is positioned relative to the link */
    padding-right: 20px; /* Increase space for the icon */
}

#top .main_menu .menu > li.dropdown_ul_available > a:after {
    content: "\e873"; /* Use the Entypo Fontello 'down-open' icon's Unicode */
    font-family: 'entypo-fontello'; /* Ensure the correct icon font is used */
    font-size: 14px; /* Adjust size for visibility */
    color: inherit; /* Match the text color of the menu */
    position: absolute;
    right: 5px; /* Position the icon */
    top: 50%; /* Move the icon slightly down for better alignment */
    transform: translateY(-50%); /* Center vertically */
    pointer-events: none; /* Prevent interaction with the icon */
    padding-left: 8px; /* Add spacing between text and icon */
}

.av-main-nav li {
    padding-left: 6px !important;
}
