Deeply religious countries have a problem. They do not usually know how to treat women.
It is a strange fact of human culture that women were not seen as equals without question. but a function both of the desire of men to vie with each other for power, and the vaginocentric manner of their relationship to women. The demeaning of women down the ages by religious groups, sometimes while pretending to hold them in the highest esteem, is actually a weird side of the male mind. It only makes any sense when you compare the behaviour to other male animals but no sense at all to the humanist mind.
Which is why, of course, throughout the ages some men have cast such ideas away as the absurd, harmful and ridiculous misogynies they are.