Go to a few bike shops and learn a bit. Then, look for a good used mtn bike. Us mtn bikers get upgradeitus and usually sell our old bikes for much less than they are worth. For your application I’d think you wouldn’t need a full suspension bike so maybe look for a hardtail with a decent fork up front. I’m now riding a full carbon Santa Cruz 5010.