Democratic Struggle, Institutional Reform, and State Resilience in the