Text this: A computational framework for time-fractional diffusion equations via Bernstein polynomials