// Target parent wlement with ID for specificity #navbarSupportedContent { // Regular state .nav-item a { color: blue; } // Active state .nav-item.active a { color: red; } }