/* Alfalah University: official Pashto typography.
   Place the two university-provided TTFs in public/fonts/ with these filenames.
   English remains on the existing Latin type system. */
@font-face {
  font-family: "Alfalah Bahij Mitra";
  src: url("../fonts/Bahij Mitra-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Alfalah Bahij Titr";
  src: url("../fonts/Bahij Titr-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --alfalah-pashto-body: "Alfalah Bahij Mitra", "Noto Naskh Arabic", Tahoma, sans-serif;
  --alfalah-pashto-heading: "Alfalah Bahij Titr", "Noto Sans Arabic", Tahoma, sans-serif;
}
html[lang="ps"] body,
html[lang="ps"] :is(.site-navbar,.site-footer,.fno,.admin-sidebar,.admin-main-inner,
                     .marquee-group,.curriculum-table,.form-control,.form-select,
                     .btn,.nav-link,button,input,textarea,select,label) {
  font-family: var(--alfalah-pashto-body) !important;
}
html[lang="ps"] :is(h1,h2,h3,h4,h5,h6,.display-font,.hero-headline,
                     .section-heading,.brand-main,.admin-page-title,
                     .admin-topbar-title h5,.admin-brand-text strong) {
  font-family: var(--alfalah-pashto-heading) !important;
  letter-spacing: 0 !important;
  text-transform: none;
  line-height: 1.48;
}
html[lang="ps"] :is(h1,h2,h3,h4,h5,h6,.hero-headline,.section-heading)
  :is(span,strong,em,small) {
  font-family: var(--alfalah-pashto-heading) !important;
}
html[lang="ps"] :is(p,li,dd,dt,th,td,.hstat-label,.marquee-group span,
                     .section-label,.nav-label,.admin-nav-section-label,
                     .stat-label,.faculty-description,.program-card-content) {
  font-family: var(--alfalah-pashto-body) !important;
  letter-spacing: 0 !important;
  text-transform: none;
}
html[lang="ps"] .marquee-group span {
  font-size: clamp(.88rem, 1.25vw, 1rem);
  line-height: 1.8;
  white-space: nowrap;
}
html[lang="ps"] :is(input[type="email"],input[type="tel"],input[type="url"]) {
  direction: ltr;
  unicode-bidi: isolate;
}
@media (max-width: 575.98px) {
  html[lang="ps"] .marquee-group span { padding-inline: 22px; }
}
