Third-body perturbed apsidal motion in eclipsing binaries