The country’s religious rulers are struggling to bridge the gap between their priorities and the expectations of a young society.