/* Shared public-page typography. Keep math, icons and form controls untouched. */
@font-face{font-family:NikReadable;src:url('../fonts/BYekan.ttf') format('truetype');font-display:swap}
.layout-top-nav .content-wrapper :is(h1,h2,h3,h4,.page-header,.quiz-title,.quiz-page-header){font-family:NikReadable,Tahoma,sans-serif!important;line-height:1.75!important;letter-spacing:normal;word-break:normal;overflow-wrap:break-word;text-align:right;white-space:normal}
.layout-top-nav .content-wrapper h1,.layout-top-nav .content-wrapper .page-header{font-size:26px!important;font-weight:600!important}
.layout-top-nav .content-wrapper h2{font-size:22px!important}
.layout-top-nav .content-wrapper h3{font-size:18px!important}
.layout-top-nav .content-wrapper :is(.nik-news-content p,.nik-news-lead){text-align:justify;text-align-last:right;line-height:2.05;word-break:normal;overflow-wrap:break-word}
.layout-top-nav .content-wrapper :is(.quiz-info,.teacher-info,.home-news-heading>div,.home-news-grid article>div){min-width:0}
.layout-top-nav .quiz-card{gap:18px;align-items:flex-start}
.layout-top-nav .quiz-info{flex:1 1 0;min-width:0}
.layout-top-nav .quiz-page-header{display:block;font-size:24px!important;border-bottom:1px solid #d8e4dc;padding-bottom:14px}
.layout-top-nav .quiz-page-header i{font-size:20px}
.layout-top-nav .quiz-title{font-size:18px!important}
.layout-top-nav .home-news-heading{align-items:center;gap:16px;flex-wrap:wrap}
.layout-top-nav .home-news-heading>a{flex-shrink:0;white-space:nowrap}
.layout-top-nav .home-news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.layout-top-nav .home-news-grid h3{font-size:16px!important;line-height:1.85!important}
.layout-top-nav .home-news-grid p{height:auto;min-height:38px;font-size:13px;line-height:1.9;text-align:right}
.teacher-browse-page #teacherList .teacher-info .teacher-name{font-family:NikReadable,Tahoma,sans-serif!important;line-height:1.8!important;font-size:19px!important}
.teacher-browse-page #teacherList .teacher-info .teacher-subjects{font-family:NikReadable,Tahoma,sans-serif!important;text-align:right!important;line-height:1.95!important;word-break:normal!important}
.teacher-browse-page #teacherList .teacher-info .teacher-meta{font-family:NikReadable,Tahoma,sans-serif!important;line-height:1.95!important}
@media(max-width:767px){
 .layout-top-nav .content-wrapper .container{width:100%;padding-left:12px;padding-right:12px}
 .layout-top-nav .content-wrapper .content{padding-left:0;padding-right:0}
 .layout-top-nav .content-wrapper h1,.layout-top-nav .content-wrapper .page-header,.layout-top-nav .content-wrapper .quiz-page-header{font-size:20px!important;line-height:1.8!important}
 .layout-top-nav .content-wrapper h2{font-size:19px!important}
 .layout-top-nav .quiz-card{flex-direction:column;align-items:stretch;padding:18px;gap:16px}
 .layout-top-nav .quiz-info{flex:auto;width:100%;max-width:100%}
 .layout-top-nav .quiz-action{width:100%;min-width:0;justify-content:stretch}
 .layout-top-nav .quiz-action .quiz-btn{width:100%;white-space:normal;text-align:center}
 .layout-top-nav .home-news-section{padding:16px}
 .layout-top-nav .home-news-grid{grid-template-columns:minmax(0,1fr)}
 .layout-top-nav .home-news-grid article{display:flex;flex-direction:column;min-width:0}
 .layout-top-nav .home-news-thumb{height:155px;width:100%;flex:none}
 .layout-top-nav .home-news-thumb img{object-fit:contain;background:#f4f7f5}
 .layout-top-nav .home-news-grid article>div{padding:14px}
 .layout-top-nav .nik-news-article{padding:18px 14px}
}
