Nicola Sturgeon, SNP education spokesperson