~のに苦労する (have a hard time doing)
grammar1 sentence
The pattern [verb-dictionary-form]+のに+苦労する, meaning 'have a hard time doing X / struggle to do X.' The ~のに here is the purpose marker ('in order to'), and 苦労する ('struggle, have a hard time') describes the difficulty. Common construction for describing arduous tasks.
End of results — 1 loaded.