I was asked about a question from one of my sunni friend. It was asked that Shia Muslims have a core belief in Imamat after risalat but Imamat is not directly in the Quran. So how should I tackle this question and make the person help realise that Imamat is an essential belief for Muslims all around the world

Imamate is in the Holy Quran and it is specified to be the divine administration of Allah:

وَ جَعَلْناهُمْ أَئِمَّةً يَهْدُونَ بِأَمْرِنا وَ أَوْحَيْنا إِلَيْهِمْ فِعْلَ الْخَيْراتِ وَ إِقامَ الصَّلاةِ وَ إِيتاءَ الزَّكاةِ وَ كانُوا لَنا عابِدِينَ
Moreover, there Hadith in both Sunni and Shia books that point to the fact that Rasul (sawa) said he would be succeeded by 12 Imams.

There are many more proofs of this, both from the Quran (21:73, 32:24, 2:124) and other sources