This is from a webpage :
According to Harper Lee’s novel, To Kill a Mockingbird, courage is trying your hardest even if you know you have no chance of succeeding, making the right choice despite the potential consequences, and facing your fears.
I wonder what part of speech 'hardest' is here.