Pakistan and Afghanistan agree to maintain a ceasefire after Istanbul peace talks, with Turkey and Qatar mediating efforts to ease border tensions and violence.