ok, then you can manage the behavior of the sub-categories only. However, when only a main category is open and shall be marked, then you would need to add also .qa-nav-cat-list .qa-nav-cat-selected. When you open a sub-category, the class then applies to both the parent and sub-category. How can this be solved?