ColinJ is right, you've got the wrong bike. Unless you're a confident bike mechanic changing those forks will turn into a nightmare because there are a few things you could get wrong. Sell the old mountain bike and treat yourself to a modern gravel bike, which will be great for tarmac and the occasional off road. It will also have disc brakes, an extra bonus.
Or even just a good old fashioned hybrid..
They're still 'a thing'
I was going to go for a 'gravel bike' when upgrading from my last bike.
I'm 80% road 20% tracks rider generally - but not into boulder hopping.
I got a light, modern hybrid with disc brakes, and upgraded the tyres to fancy tubeless continentals,
Plus its got all the fixing points for pannier racks, which isn't always the case with gravel bikes.
For me it's a pretty much a go anywhere do anything bike, for longer tours, or local rough tracks.
Like the others suggest, this fork replacement job sounds like a faff, to still end up with something less than ideal.
Keep - or sell - that bike intact, save the cost and trouble of replacement forks, and get something better for your needs.
A more appropriate bike will make your riding more enjoyable, you'll want to do it more.