Gender, Social Change, and Educational Attainment