It is my beleif that religion and legislation should not be confused. Religion is required for people to have faith in a higher power, but a country cannot be run based on the Quran or the Bible or the Geeta or the Torah. Legislation should be kept as secular as possible. The moment a country decides an "official religion" it automatically makes the members belonging to that religion "superior" and the others "inferior". That would already have divided the country and there will, in some form or other, exist mutual animosity between the members belonging to the "superior" religion and those belonging to the "inferior" religion. The spark already exists and it only requires an external agent to cause a full fire.
The worse is to choose a "state religion". In such a case the country does not even accept any other religion. The people belonging to other religions are not allowed to follw their faith openly and this causes more rebel. In suvh a country, religion is interspersed into everything; education, government, courts and millitary affairs.
A country that chooses a state religion in many ways resembles a structure made of a pack of cards. A slight wind is enough to collapse the entire structure. Replacing even a single card is not possible because that would mean a collapse of the entire structure. So nobody will risk such a thing.
In one way or the other every member of such a country operates from fear. The common man is afraid of voicing his opinion for fear of punishment. The people who hold the so-called "correct" interpretation of the scripture of the religion are not ready to relent for fear of loss of power. And then you have the government who is too scared to go againt the men of religion for fear of ridicule. So you have an entire system working under constant fear. Fear will never allow the mind to grow, it'll only make it agitated and narrow minded.
Since the citizens cannot take out the anger on their own system they take it out on other people. And it becomes a viscious cycle. It has to be broken somewhere. But where?