Leadership for learning. The relationships between school context, principal leadership and mediating variables