> The more educated the masses are, the more likely it is that they vote for governments that have the long term interests in mind
Consider: Globally, the masses are more and better educated than at any other point in history. More people than ever have a higher-level education, and people have access to more information than ever before, more easily than ever before, and for free! There has never been a better time to be a thinking human, we're surrounded by knowledge and education.
If that's still not enough, it might be worth considering that maybe it's not an education thing. Maybe it really is just human nature to think short term, and not some bad government maximization route. Consider how that short-term thinking shows up everywhere: In people's diets, in people's elected governments, in people's finances, and so on.
Maybe it's not something we can just wish away with education. Maybe it's just... humans being human.
You can -dictate- long-term thinking and long-term policies. But from a democratic perspective, the candidate that promises short-term wins will obviously beat the candidate that says "endure now for long-term gain".