Three empirical essays on gender equality and education