'〜おかげで': Positive Gratitude ('Thanks to... / Fortunately')
[Plain Form (Noun + の / na-Adj + な)] + おかげで(/おかげだ)
'〜おかげで' expresses gratitude toward a beneficial cause or someone's kind assistance that produced a fortunate, desirable result ('thanks to...', 'owing to...').
⚠ Note: Sarcastic exception: Can occasionally be used ironically for blame (e.g. お前のせいで/おかげでひどい目に遭った), but in standard JLPT usage, 'おかげで' is positive, whereas 'せいで' is negative.
先生のご指導のおかげで、無事に合格することができました。
Thanks to my teacher's guidance, I was able to pass safely.
薬を飲んだおかげで、熱が下がって楽になった。
Thanks to taking the medicine, my fever came down and I feel much better.