Refactored header and footer styles