hey,
There’s now a bus service that allows you to take your bike and it’ll give you access to Glentress and Innerleithen that both have trail centres and a plethora of natural loops. These offer some of the best trails Scotland, let alone just close to Edinburgh.
This website has the information you need; https://www.bordersbuses.co.uk/bike-friendly-journeys
Good luck!