Is Gender Animosity Taught, or Does It Develop Through Bad Relationships?

I recently had a conversation with a friend who pointed out how much of the animosity between men and women seems to be either taught by society or developed through repeated negative relationship experiences. It made me wonder—how much of our skepticism or distrust toward the opposite gender comes from what we’ve been conditioned to believe, and how much is the result of personal pain? Have others felt this way, and if so, how did you overcome it?