1. She can cook for herself and that makes her more independent, (ability)
=) Her ability to cook for herself makes her more independent.
2. We were very impressed when we saw that she tried very hard to overcome difficulties, (effort)
=) We were very impressed by her effort to overcome difficulties.