Egypt redefines national security and diplomatic priorities to align with containing jihadism and unrest risks