Farhan’s scintillating 155 helps Khyber Pakhtunkhwa chase down 378