TOC Link text style

hi guys, I’m currently working on a new page with CMS and I have a sidebar with TOC. The problem is that the CMS is composed of Rich text which contains links, I need these links to be blue. But for the sidebar TOC I want to be black. the problem is that they share the same “All links” class. tried to add !important in the TOC style color code. Image below for reference. Anyone experienced this?