When Did Pride Become A Virtue Instead of A Sin?

For several millennia in Western civilization, pride was considered a sin. In fact, it's the worst of the seven deadly sins, which are greed, envy, wrath, lust, gluttony, sloth, and pride.
There are, of course, different kinds of pride. We say that we are proud about the accomplishments of our children or grandchildren. We say that we are proud of our team or our school. These are the healthy kinds of pride.