Here "darkness" is a metaphor that represents the people's lack of understanding. Here "hearts" is a metonym for a person's mind or inner being. Alternate translation: "they became unable to understand what God wanted them to know" (See: [[rc://en/ta/man/translate/figs-metaphor]] and [[rc://en/ta/man/translate/figs-metonymy]])