Afghan president visits Pakistan seeking Taliban talks