/* ==========================================================================
   October 6 Technological University — public site theme
   Font: Noto Kufi Arabic (fonts/kufi). Direction-aware via logical properties.
   ========================================================================== */

:root {
    --navy: #18251D;
    --navy-700: #22352a;
    --navy-900: #101a14;
    --green: #B7FF72;
    --green-600: #4a7d18;
    --green-50: #f1fde4;
    --ink: #18251D;
    --body: #3d4a42;
    --muted: #69766d;
    --line: #e2e8e3;
    --soft: #f4f8f2;
    --white: #fff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(24, 37, 29, .06), 0 2px 8px rgba(24, 37, 29, .05);
    --shadow: 0 10px 30px rgba(24, 37, 29, .10);
    --shadow-lg: 0 20px 50px rgba(24, 37, 29, .16);
    --font: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
    --font-text: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
    --header-h: 84px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.9;
    color: var(--body);
    background: var(--white);
    text-align: start;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--ink); font-weight: 700; line-height: 1.5; }
a { color: var(--green-600); transition: color .2s ease; }
a:hover { color: var(--navy); text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--green); color: var(--navy); }
.container { max-width: 1200px; }
[class^="icon-"], [class*=" icon-"] { line-height: inherit; }

.skip-link { position: absolute; inset-inline-start: 8px; top: -80px; z-index: 10001; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }
:focus-visible { outline: 3px solid rgba(183, 255, 114, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font); font-weight: 600; border-radius: var(--radius-sm); padding: .62rem 1.5rem; font-size: 14px; transition: all .2s ease; }
.btn-otu { background: var(--green); border: 1px solid var(--green); color: var(--navy); }
.btn-otu:hover, .btn-otu:focus { background: var(--navy); border-color: var(--navy); color: var(--green); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(24, 37, 29, .22); }
.btn-navy { background: var(--navy); border: 1px solid var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-light-otu { background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.btn-light-otu:hover { background: #e9eee8; color: var(--ink); }
.btn-outline-otu { background: transparent; border: 1px solid var(--navy); color: var(--navy); }
.btn-outline-otu:hover { background: var(--navy); border-color: var(--navy); color: var(--green); }
.btn .icon-arrow-left, .btn .icon-arrow-right { font-size: 12px; margin-inline-start: 6px; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow span { font-size: 12px; transition: transform .2s ease; }
[dir="rtl"] .link-arrow:hover span { transform: translateX(-4px); }
[dir="ltr"] .link-arrow:hover span { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .8); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: #fff; }
.topbar-info span { margin-inline-end: 6px; color: #B7FF72; }
.topbar-end { display: flex; align-items: center; gap: 16px; }
.topbar .social a { width: 28px; height: 28px; font-size: 13px; background: transparent; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 30px; font-weight: 600; }
.lang-switch:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(24, 37, 29, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { flex-shrink: 0; }
.brand img { height: 50px; width: auto; max-width: 100%; object-fit: contain; display: block; }

.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: 14.5px; border-radius: 10px; white-space: nowrap; }
.nav-menu > li > a:hover, .nav-menu > li:hover > a { color: var(--green-600); background: var(--green-50); }
.nav-menu > li.active > a { color: var(--green-600); }
.nav-menu > li.active > a::after { content: ""; position: absolute; bottom: -2px; inset-inline: 14px; height: 3px; border-radius: 3px; background: var(--green); }
.nav-menu .caret { font-size: 12px; opacity: .7; }
.sub-toggle { display: none; }

.sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 20; }
.sub-menu li { position: relative; }
.sub-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; color: var(--body); font-size: 14px; border-radius: 8px; }
.sub-menu a:hover, .sub-menu li.active > a { background: var(--soft); color: var(--green-600); }
.sub-menu .caret { transform: rotate(-90deg); }
[dir="rtl"] .sub-menu .caret { transform: rotate(90deg); }
.sub-menu .sub-menu { top: -9px; inset-inline-start: 100%; }
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 11px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
.nav-drawer-head { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 1199px) {
    .site-header .container { gap: 12px; }
    .nav-menu > li > a { padding: 10px 8px; font-size: 13.5px; gap: 4px; }
    .brand img { height: 42px; }
}
@media (max-width: 991px) {
    :root { --header-h: 70px; }
    .brand img { height: 42px; }
    .nav-toggle { display: flex; }
    .main-nav { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(340px, 86vw); background: #fff; z-index: 1100; overflow-y: auto; padding: 16px; transform: translateX(105%); transition: transform .3s ease, visibility .3s; visibility: hidden; box-shadow: var(--shadow-lg); }
    [dir="rtl"] .main-nav { transform: translateX(-105%); }
    body.nav-open .main-nav { transform: none; visibility: visible; }
    .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(16, 26, 20, .45); z-index: 999; opacity: 0; visibility: hidden; transition: all .3s ease; }
    body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
    body.nav-open { overflow: hidden; }
    .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
    .nav-drawer-head img { height: 38px; }
    .nav-close { border: 0; background: var(--soft); width: 38px; height: 38px; border-radius: 10px; color: var(--navy); }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-menu li { position: relative; }
    .nav-menu > li > a { padding: 12px 10px; border-radius: 8px; }
    .nav-menu > li.active > a::after { display: none; }
    .nav-menu .caret { display: none; }
    .sub-toggle { display: flex; align-items: center; justify-content: center; position: absolute; top: 4px; inset-inline-end: 0; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; }
    .sub-toggle span { transition: transform .2s ease; }
    li.open > .sub-toggle span { transform: rotate(180deg); }
    .sub-menu, .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-inline-start: 2px solid var(--line); border-radius: 0; margin-inline-start: 12px; padding: 0 6px; min-width: 0; display: none; }
    li.open > .sub-menu { display: block; }
    .topbar-info { display: none; }
    .topbar .container { justify-content: flex-end; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center p { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green-600); font-weight: 700; font-size: 13px; letter-spacing: .3px; margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--green); border-radius: 2px; }
.section-title { font-size: clamp(22px, 3vw, 32px); margin: 0; color: var(--navy); }
.section-head p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--navy-900); }
.hero-slide { position: relative; min-height: clamp(460px, 72vh, 660px); display: flex; align-items: center; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 26, 20, .88) 0%, rgba(16, 26, 20, .55) 55%, rgba(16, 26, 20, .25) 100%); }
[dir="rtl"] .hero-slide::before { background: linear-gradient(270deg, rgba(16, 26, 20, .88) 0%, rgba(16, 26, 20, .55) 55%, rgba(16, 26, 20, .25) 100%); }
.hero-content { position: relative; max-width: 680px; color: #fff; padding: 60px 0 120px; }
.hero-content .eyebrow { color: #B7FF72; }
.hero-content .eyebrow::before { background: #B7FF72; }
.hero-content .hero-title { color: #fff; font-size: clamp(28px, 4.6vw, 52px); font-weight: 800; line-height: 1.45; margin-bottom: 18px; }
.hero-content p { color: rgba(255, 255, 255, .85); font-size: 17px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .owl-dots { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero .owl-dot span { display: block; width: 10px; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .45); transition: all .25s ease; }
.hero .owl-dot.active span { width: 30px; background: #fff; }

/* ---------- Services ---------- */
.services-wrap { position: relative; z-index: 5; margin-top: -72px; }
.service-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--green-50); color: var(--green-600); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }
.service-icon [class^="flaticon-"]:before { font-size: 30px; margin: 0; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--muted); margin-bottom: 18px; flex: 1; }

/* ---------- About ---------- */
.about-media { position: relative; padding-inline-end: 24px; padding-bottom: 24px; }
.about-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); position: relative; z-index: 1; box-shadow: var(--shadow); }
.about-media::after { content: ""; position: absolute; inset-inline-end: 0; bottom: 0; width: 70%; height: 70%; border-radius: var(--radius); background: linear-gradient(135deg, var(--green) 0%, var(--navy) 100%); opacity: .9; }
.about-text { font-size: 15.5px; }
.about-text .rich-text { color: var(--body); }

/* ---------- Program cards ---------- */
.program-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-card .thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.program-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.program-card:hover .thumb img { transform: scale(1.05); }
.program-card .fee { position: absolute; top: 14px; inset-inline-end: 14px; background: rgba(16, 26, 20, .88); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 30px; }
.program-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.program-card .faculty { font-size: 12.5px; color: var(--green-600); font-weight: 600; margin-bottom: 6px; display: flex; gap: 6px; }
.program-card h3 { font-size: 17px; margin-bottom: 12px; line-height: 1.6; }
.program-card h3 a { color: var(--ink); }
.program-card h3 a:hover { color: var(--green-600); }
.program-card .meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.program-card .meta span span { color: var(--green-600); margin-inline-end: 4px; }
.program-carousel .owl-stage { display: flex; padding: 6px 0 12px; }
.program-carousel .owl-item { display: flex; }
.program-carousel .owl-item > * { width: 100%; }

.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); transition: all .2s ease; }
.carousel-nav button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- News ---------- */
.news-feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 380px; box-shadow: var(--shadow-sm); }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-feature:hover img { transform: scale(1.04); }
.news-feature .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 26, 20, .92) 0%, rgba(16, 26, 20, .25) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; }
.news-feature h3 { color: #fff; font-size: 21px; margin: 8px 0 0; }
.news-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.news-feature .news-date { color: rgba(255, 255, 255, .8); }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; transition: all .2s ease; }
.news-item:hover { border-color: transparent; box-shadow: var(--shadow); }
.news-item img { width: 104px; height: 84px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.news-item h4 { font-size: 15px; margin: 4px 0 0; line-height: 1.6; }
.news-item h4 a { color: var(--ink); }
.news-item h4 a:hover { color: var(--green-600); }

.news-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 17px; margin: 8px 0 10px; line-height: 1.65; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--green-600); }
.news-card p { color: var(--muted); font-size: 14px; flex: 1; }

/* ---------- Video & album cards ---------- */
.video-card, .album-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); aspect-ratio: 16 / 10; box-shadow: var(--shadow-sm); }
.video-card img, .album-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s ease, opacity .3s ease; }
.video-card:hover img, .album-card:hover img { transform: scale(1.05); opacity: .7; }
.video-card .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--green-600); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .2); transition: transform .25s ease; }
.video-card .play span { margin-inline-start: 4px; }
[dir="rtl"] .video-card .play span { margin-inline-start: 0; margin-inline-end: 4px; transform: none; }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.card-caption { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(16, 26, 20, .92), transparent); color: #fff; }
.card-caption h3 { color: #fff; font-size: 15.5px; margin: 0; line-height: 1.6; }
.card-caption .news-date { color: rgba(255, 255, 255, .75); }
.album-card .count { position: absolute; top: 14px; inset-inline-end: 14px; background: rgba(255, 255, 255, .92); color: var(--navy); font-weight: 700; font-size: 12.5px; border-radius: 30px; padding: 3px 12px; }
.video-stack { display: flex; flex-direction: column; gap: 16px; }

.gallery-grid { columns: 3 260px; column-gap: 16px; }
.gallery-grid a { display: block; margin-bottom: 16px; border-radius: 12px; overflow: hidden; break-inside: avoid; position: relative; background: var(--soft); }
.gallery-grid img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid .zoom { position: absolute; inset: 0; background: rgba(16, 26, 20, .45); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease; }
.gallery-grid a:hover .zoom { opacity: 1; }

/* ---------- Inner page hero & breadcrumbs ---------- */
.page-hero { position: relative; padding: 56px 0 52px; background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 60%, #2a4232 100%); color: #fff; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; inset-inline-end: -120px; top: -180px; background: radial-gradient(circle, rgba(183, 255, 114, .35), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(24px, 3.4vw, 38px); margin: 12px 0 0; }
.page-hero .lead { color: rgba(255, 255, 255, .8); margin: 10px 0 0; font-size: 16px; max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: #fff; }
.crumbs .current { color: #B7FF72; }
.crumbs .sep::before { content: "\2039"; opacity: .55; font-size: 16px; }
[dir="ltr"] .crumbs .sep::before { content: "\203A"; }

/* ---------- Filters & paging ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 36px; }
.filter-field { position: relative; display: flex; flex-direction: column; min-width: 160px; }
.filter-field.grow { flex: 1 1 260px; }
.filter-field label { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.filter-field.grow > span { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--muted); }
.filter-field.grow .form-control { padding-inline-start: 40px; }
.filter-actions { display: flex; gap: 8px; }
.form-control { font-family: var(--font); height: auto; padding: .62rem .9rem; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: #fff; }
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(120, 190, 60, .28); }
textarea.form-control { resize: vertical; min-height: 140px; }
.result-info { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 7px 16px; border-radius: 30px; border: 1px solid var(--line); background: #fff; color: var(--body); font-size: 13.5px; font-weight: 600; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--navy); color: var(--navy); }
.pager .active { background: var(--green); border-color: var(--green); color: var(--navy); }
.pager .disabled { opacity: .4; }
.pager .gap { border: 0; background: transparent; min-width: 20px; }

.empty-state { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--soft); color: var(--muted); }
.empty-state > span { font-size: 40px; color: #b9c4bc; display: block; margin-bottom: 10px; }
.empty-state p { margin: 0; }

/* ---------- Article / rich text ---------- */
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.article-meta span span { color: var(--green-600); margin-inline-end: 6px; }
.article-title { font-size: clamp(22px, 3vw, 32px); color: var(--navy); margin-bottom: 20px; }
.rich-text { font-family: var(--font-text); font-size: 16px; line-height: 2.05; color: var(--body); overflow-wrap: anywhere; }
.rich-text p { margin-bottom: 1.1em; }
.rich-text h2, .rich-text h3, .rich-text h4 { color: var(--navy); margin: 1.4em 0 .6em; }
.rich-text img { height: auto !important; border-radius: 10px; }
.rich-text ul, .rich-text ol { padding-inline-start: 1.4em; }
.rich-text table { width: 100%; margin-bottom: 1em; border-collapse: collapse; }
.rich-text td, .rich-text th { border: 1px solid var(--line); padding: 8px 10px; }
.rich-text iframe { max-width: 100%; border-radius: 10px; }
.rich-text a { text-decoration: underline; text-underline-offset: 3px; }
.rich-text * { font-family: var(--font-text) !important; }
.article-footer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 24px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.side-card h3::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 40px; height: 2px; background: var(--green); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--body); font-size: 14px; }
.side-links a:hover, .side-links li.active a { color: var(--green-600); }
.side-links li.active a { font-weight: 700; }
.side-card .news-item { border: 0; padding: 0; }
.side-card .news-item + .news-item { margin-top: 14px; }
.side-card .news-item img { width: 76px; height: 64px; }
.side-card .news-item h4 { font-size: 13.5px; }
.side-card.cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: rgba(255, 255, 255, .85); border: 0; }
.side-card.cta h3 { color: #fff; border-color: rgba(255, 255, 255, .15); }

/* ---------- Program details ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.info-list li + li { border-top: 1px solid var(--line); }
.info-list .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--green-50); color: var(--green-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-list small { display: block; color: var(--muted); font-size: 12.5px; }
.info-list strong { color: var(--ink); font-weight: 700; font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-card { height: 100%; display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-card a { color: var(--body); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); height: 100%; }
.form-card h2 { font-size: 22px; color: var(--navy); }
.form-card label { font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.form-card .req { color: #d64545; }
.map-frame { border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 420px; border: 1px solid var(--line); background: var(--soft); }
.map-frame iframe, .map-frame #map, .map-frame > div { width: 100% !important; height: 100% !important; min-height: 420px; border: 0; display: block; }
.alert-otu { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; }
.alert-otu.success { background: var(--green-50); color: #1d6b43; border: 1px solid #bfe5cf; }
.alert-otu.error { background: #fdecec; color: #a12b2b; border: 1px solid #f3c1c1; }
.alert-otu > span { font-size: 20px; }
.alert-otu strong { display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, #B7FF72 0%, #a6f45c 100%); color: var(--navy); border-radius: 20px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow); }
.cta-band h2 { color: var(--navy); font-size: clamp(20px, 2.6vw, 28px); margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(24, 37, 29, .8); }
.cta-band .btn-light { background: var(--navy); color: var(--green); border: 0; }
.cta-band .btn-light:hover { background: #fff; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding-top: 72px; font-size: 14px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 50px; max-width: 100%; object-fit: contain; background: #fff; padding: 8px 12px; border-radius: 12px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { color: rgba(255, 255, 255, .72); }
.footer-links a:hover { color: #B7FF72; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact li + li { margin-top: 14px; }
.footer-contact li > span:first-child { color: #B7FF72; margin-top: 4px; }
.footer-contact a { color: rgba(255, 255, 255, .72); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.social { display: flex; gap: 8px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #fff; transition: all .2s ease; }
.social a:hover { background: var(--green); color: var(--navy); }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.back-to-top { position: fixed; bottom: 24px; inset-inline-end: 24px; width: 46px; height: 46px; border-radius: 12px; background: var(--green); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 900; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--navy); color: var(--green); }

/* ---------- Owl tweaks ---------- */
.owl-carousel .owl-item img { width: 100%; }
.owl-carousel .owl-nav.disabled, .owl-carousel .owl-dots.disabled { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .section { padding: 64px 0; }
    .sidebar { position: static; margin-top: 40px; }
    .news-feature { min-height: 300px; margin-bottom: 16px; }
    .about-media { margin-bottom: 40px; }
    .cta-band { padding: 32px 28px; }
}
@media (max-width: 575px) {
    body { font-size: 15.5px; }
    .hero-content { padding-bottom: 110px; }
    .services-wrap { margin-top: -56px; }
    .filter-field { min-width: 0; flex: 1 1 45%; }
    .filter-actions { flex: 1 1 100%; }
    .filter-actions .btn { flex: 1; }
    .form-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Share ---------- */
.share { display: flex; align-items: center; gap: 8px; }
.share > span { color: var(--muted); font-size: 13.5px; margin-inline-end: 4px; }
.share a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--navy); border: 1px solid var(--line); }
.share a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Hero slider animations ----------
   Owl's animateOut adds "animated fadeOut" and waits for animationend;
   without these keyframes the carousel freezes after the first slide. */
.owl-carousel .animated { animation-duration: .9s; animation-fill-mode: both; }
.owl-carousel .fadeOut { animation-name: otu-fade-out; }
@keyframes otu-fade-out { from { opacity: 1; } to { opacity: 0; } }
.hero .owl-item.active .hero-content > * { animation: otu-rise .8s ease-out both; }
.hero .owl-item.active .hero-content > *:nth-child(2) { animation-delay: .1s; }
.hero .owl-item.active .hero-content > *:nth-child(3) { animation-delay: .2s; }
@keyframes otu-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Typography split ----------
   Both tokens resolve to Noto Kufi Arabic; the split is kept so display text can be restyled in one place. */
body, p, .lead, .form-control, .news-card p, .service-card p, .section-head p, .result-info,
.footer-about p, .footer-links a, .footer-contact, .contact-card p, .info-list small, .news-date,
.article-meta, .topbar, .crumbs, .empty-state p, .filter-field label, .program-card .meta, .program-card .faculty {
    font-family: var(--font-text);
}
h1, h2, h3, h4, h5, h6, .nav-menu, .btn, .eyebrow, .chip, .pager, .fee, .count, .lang-switch,
.form-card label, .info-list strong, .link-arrow, .side-links a, .skip-link {
    font-family: var(--font);
}
@media (max-width: 575px) {
    .program-card .thumb, .news-card .thumb { aspect-ratio: 16 / 8; }
    .program-card .body, .news-card .body { padding: 16px 18px 18px; }
    .page-hero { padding: 40px 0 36px; }
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 28px; }
}
@media (max-width: 991px) {
    .about-media { max-width: 460px; margin-inline: auto; }
    .services-wrap .service-card { padding: 22px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .services-wrap .service-card h3 { font-size: 16px; }
}
@media (max-width: 991px) {
    .nav-menu > li > a { font-size: 16px; }
    .sub-menu a { font-size: 15px; }
}

/* Hero slider arrows (Owl 2.2 renders them as divs) */
.hero .owl-nav { position: absolute; top: 50%; left: 0; right: 0; height: 0; pointer-events: none; }
.hero .owl-nav .owl-prev, .hero .owl-nav .owl-next { pointer-events: auto; cursor: pointer; position: absolute; top: -24px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.hero .owl-nav .owl-prev { left: 24px; }
.hero .owl-nav .owl-next { right: 24px; }
.hero .owl-nav .owl-prev:hover, .hero .owl-nav .owl-next:hover { background: var(--green); border-color: var(--green); color: var(--navy); }
.hero .owl-nav.disabled { display: none; }
@media (max-width: 767px) { .hero .owl-nav { display: none; } }
/* arrows sit beside the dots so they never cover the slide text */
.hero .owl-nav { top: auto; bottom: 111px; left: 50%; right: auto; width: 240px; transform: translateX(-50%); }
.hero .owl-nav .owl-prev, .hero .owl-nav .owl-next { width: 40px; height: 40px; top: -20px; font-size: 18px; }
.hero .owl-nav .owl-prev { left: 0; }
.hero .owl-nav .owl-next { right: 0; }
.nav-menu > li > a { font-size: 15.5px; }
