Longest Cycle above Erdős--Gallai Bound