I read some about red giants and so far I understand red giants become exhausted of burning hydrogen in the core, so then start hydrogen burning at shell and may or may not be burning helium in the core, in the meantime.
I know when stars start burning heavier atoms the nuclear energy against the gravitation becomes weaker and stars start to collapse. But why red giants get bigger while burning helium or just hydrogen burning shell ? If it was gaining energy it would not become red, what makes it to expand then ?