preflop good, flop marginal but still somewhat decent, id probs bet 2/3rds pot rather than half if i was gonna c bet. Turn is definitely a raise, id raise more to something like 0.25. Then a river call is perfectly fine, obv the river is a bad card for you and often you are beat but theres no way you can fold with the odds you were getting and the fact he could just be making a semi blocking bet with a pair of kings etc. Overall id give the way you played the hand 8/10.