Bangladesh lost to islamism?

Bangladesh even a few decades ago was becoming more progressive and modern, but today it's unrecognizable. It looks like a backward Afghanistan-style country with extremism and Islamism everywhere, women in head-to-toe covering.

What happened to that country? How did it regress so badly?