Secular education and the logic of religion