corrected assumption there would be only one course_formats record per course with numsections
cleaned up and normalized css for bootstrap themes