Hello! I'll try to give some explanations as best as I cah remember this rule.
The declension of a noun isn't determined by its gender, but by its ending.
There are 3 types of declensions of nouns...