/* UniWeb · Base site styles (modernized)
   ملف أساسي يصلح المرجع المعطّل ويضيف تحسينات أساسية عامة. */

html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; }

/* تحسين انتقال الصور المحمّلة كسولاً */
img[loading="lazy"] { background: #f1f4fa; }

/* إخفاء المحتوى أثناء التمرير اللين دون قفزات */
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }

/* محتوى منقول من الموقع السابق (ucx-imported) خارج قالب الكليات */
.ucx-imported ul.ucx-filelist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.ucx-imported ul.ucx-filelist li { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border: 1px solid rgba(15, 23, 42, .12); border-radius: 12px; background: #fff; }
.ucx-imported ul.ucx-filelist li::before { content: "\F1C3"; font-family: "bootstrap-icons"; color: var(--uw-primary, #1d4ed8); font-size: 1.1rem; }
.ucx-imported ul.ucx-filelist li:has(a[href$=".pdf" i])::before { content: "\F63E"; }
.ucx-imported ul.ucx-filelist a { font-weight: 600; text-decoration: none; }
.ucx-imported ul.ucx-filelist small { margin-inline-start: auto; opacity: .7; }
.ucx-imported img { max-width: 100%; height: auto; border-radius: 10px; }
.ucx-imported table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .95rem; }
.ucx-imported th, .ucx-imported td { border: 1px solid rgba(15, 23, 42, .12); padding: .45rem .65rem; vertical-align: top; }
.ucx-imported .ucx-imp-block + .ucx-imp-block { border-top: 1px dashed rgba(15, 23, 42, .15); margin-top: 1.4rem; padding-top: .6rem; }
