This is the 35th most frequent Hungarian word.
hanem
"Hanem" means "but rather" or "but instead."
In this sentence, 'hanem' is used to introduce an alternative or contrast to a negated statement.
Nem almát vettem, hanem körtét.
I didn't buy an apple, but rather a pear.
Here, 'hanem' is part of the structure 'nemcsak... hanem...', used to add additional information emphasizing a positive trait.
Nemcsak szép a kert, hanem tágas is.
The garden is not only beautiful but also spacious.
'Hanem' contrasts the negated quality with a positive, opposite one within the sentence to correct a possible misjudgment.