Alternating Hover Color of Links in a Collection List


I have a collection list that is full of link blocks that are just the title of each project in the form of a heading.
I want to make it so that when I hover over every other link it turns blue, and every other link it turns red.

I was reading this forum to try to figure out the code, but didn’t have any luck adapting it: Collection list - color every other item

I’m thinking there’s some logic around nth-child but I can’t seem to get that to apply to the link-blocks. Does this only work for collection items directly? And if so, can anyone think of another way to go about alternating hover colors for links in a collection list?