Congrats! 25k doesn't seem like a long distance when we all drive cars, but on a bike that's well over an hour of pedaling! Great job! But I do worry when you say your knees hurt. I have old knees and I worry when I start having knee pain. Perhaps your bike needs a bit of adjustment size adjustment (seat and stem)? Poor fit can lead to aches and pains.