Light at the End of the Tunnel

What does the idiom “Light at the End of the Tunnel” mean?

Definition:

A sign of hope after a long period of difficulties

For example:

“Lindsay has been having a lot of personal problems. But yesterday she said she’s seeing light at the end of the tunnel.”