Fixed text alignment and header formatting