refactor of css for blog and main