Change text in one div while hovering another element - Custom code

I added custom code on my website to change the text “Work” with another word while hovering. At the moment it changes just while I hover over the text itself, instead, I need the text “Work” to change while I hover over one of the cards at the bottom of the page.
How can I fix the code in order to change text while hovering over another element?
Thank you a lot!