Old and new inequalities in educational attainment