What an idiom is, and why they matter
An idiom is a fixed expression with a meaning of its own. You cannot translate it word by word, and you usually cannot change the words inside it: it is 'a piece of cake', never 'a slice of cake', when you mean something easy.
They matter because native speakers use them constantly without noticing. A host family saying 'I'm just popping out' or a teacher saying 'let's crack on' is using everyday idiom, not slang. Understanding them comes first; using them yourself can wait.