Please put it at the first line of you custom css.
then check if it works else share the page url on which you are checking, i will check then by my self.
Moving the code in the style.css file made it work. Any idea how come?
You can close this topic.
thats great. nothing to worry about it.