/* =========================================================
   جامعة خليج سرت الدولية — الأنماط العامة
   الألوان مأخوذة من شعار الجامعة: الأخضر (الخليج والنماء) والأصفر (المعرفة والشمس)
   ========================================================= */
:root {
  --green-900: #0B3D2E;
  --green-700: #11604A;
  --green-500: #1F8A65;
  --green-50:  #EAF3EE;
  --gold:      #E3B23C;
  --gold-600:  #C9961F;
  --gold-50:   #FBF3DC;
  --ink:       #18241F;
  --muted:     #5B6B64;
  --paper:     #F5F7F4;
  --line:      #DCE4DF;
  --white:     #FFFFFF;

  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-head: "Reem Kufi", "IBM Plex Sans Arabic", Tahoma, sans-serif;

  --radius-sm: 6px;
  --radius:    10px;
  --section-y: clamp(3.5rem, 7vw, 6rem);

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 17, 96, 74;
  --bs-link-hover-color-rgb: 11, 61, 46;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; color: var(--green-900); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 2000; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

/* ---------- الأزرار ---------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .6rem 1.4rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1.05rem; }
.btn-brand { background: var(--green-700); color: var(--white); border: 2px solid var(--green-700); }
.btn-brand:hover, .btn-brand:focus { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.btn-outline-brand { border: 2px solid var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline-brand:hover { background: var(--green-700); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--green-900); border: 2px solid var(--gold); }
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--green-900); }
.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--green-900); }
.btn-portal { background: var(--green-50); color: var(--green-700); border: 1px solid var(--line); font-size: .95rem; white-space: nowrap; margin-inline-start: .75rem; }
.btn-portal:hover { background: var(--green-700); color: var(--white); }

.link-arrow { font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: "\F284"; font-family: "bootstrap-icons"; font-size: .8em; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(-4px); }

/* ---------- الشريط العلوي والقائمة ---------- */
.topbar { background: var(--green-900); color: rgba(255,255,255,.82); font-size: .875rem; padding: .45rem 0; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--gold); }
.topbar-info, .topbar-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.topbar-info i { color: var(--gold); margin-inline-end: .3rem; }

.site-nav { background: var(--white); border-bottom: 1px solid var(--line); padding: .6rem 0; }
.site-nav .navbar-brand img { height: 52px; width: auto; }
.site-nav .nav-link { color: var(--ink); font-weight: 500; padding: .5rem .85rem !important; position: relative; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--green-700); }
.site-nav .nav-link.active::after { content: ""; position: absolute; inset-inline: .85rem; bottom: .1rem; height: 3px; background: var(--gold); border-radius: 2px; }
.site-nav .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(11,61,46,.12); padding: .5rem; }
.site-nav .dropdown-item { border-radius: var(--radius-sm); padding: .5rem .9rem; }
.site-nav .dropdown-item.active, .site-nav .dropdown-item:active { background: var(--green-50); color: var(--green-700); }
.navbar-toggler { border: 1px solid var(--line); font-size: 1.6rem; color: var(--green-900); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- الواجهة ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex; align-items: center;
  color: var(--white);
  background:
    linear-gradient(270deg, rgba(11,61,46,.94) 0%, rgba(11,61,46,.78) 45%, rgba(11,61,46,.25) 100%),
    var(--hero-img) center / cover no-repeat;
  padding: 5rem 0 7rem;
}
.hero-copy { max-width: 640px; }
.hero-name { font-family: var(--font-head); color: var(--gold); font-size: 1.15rem; margin-bottom: .75rem; }
.hero-title { color: var(--white); font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 700; line-height: 1.25; margin-bottom: 1.25rem; }
.hero-text { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- أركان التعليم الأربعة (مستوحاة من أعمدة الشعار) ---------- */
.pillars { background: var(--green-900); color: var(--white); padding: 0 0 var(--section-y); }
.pillars-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding-top: 3.5rem; margin-bottom: 2.5rem; }
.pillars-head h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.pillars-head p { color: rgba(255,255,255,.72); margin: 0; max-width: 32em; }
.pillars-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); padding-inline: clamp(0rem, 2vw, 1.5rem); }
.pillar {
  position: relative;
  padding: 3.25rem 1.25rem 2.25rem;
  text-align: center;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 18px),
    rgba(255,255,255,.04);
  border-inline: 1px solid rgba(227,178,60,.35);
  min-height: 15rem;
}
.pillar-cap { position: absolute; top: 0; inset-inline: -.75rem; height: 14px; background: var(--gold); border-radius: 2px; }
.pillar-cap::after { content: ""; position: absolute; top: 14px; inset-inline: .5rem; height: 6px; background: var(--gold-600); }
.pillar h3 { color: var(--white); font-size: 1.3rem; margin: .5rem 0 .75rem; }
.pillar p { color: rgba(255,255,255,.75); font-size: .98rem; margin: 0; }
.pillars-base {
  margin-top: 0;
  background: var(--gold); color: var(--green-900);
  font-family: var(--font-head); font-weight: 600; text-align: center;
  padding: .7rem 1rem; border-radius: 2px;
  box-shadow: 0 10px 0 -4px var(--gold-600);
}

/* ---------- الأقسام العامة ---------- */
.section { padding: var(--section-y) 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 1.25rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head .section-title { margin: 0; }
.lead-muted { color: var(--muted); font-size: 1.1rem; }
.container.narrow { max-width: 760px; }
.display-title { font-size: clamp(2rem, 4vw, 2.8rem); }

/* عن الجامعة */
.about-lead { font-size: 1.1rem; color: #33433C; max-width: 36em; }
.accredit { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.75rem 0; }
.accredit > div { border-inline-start: 4px solid var(--gold); background: var(--paper); padding: .9rem 1.1rem; border-radius: var(--radius-sm); }
.accredit dt { font-weight: 500; color: var(--muted); font-size: .9rem; }
.accredit dd { margin: 0; font-family: var(--font-head); font-size: 1.35rem; color: var(--green-900); }
.about-figure { margin: 0; position: relative; isolation: isolate; }
.about-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about-figure::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }

/* الكليات في الرئيسية */
.colleges-home { background: var(--paper); }
.college-list { display: grid; gap: .75rem; }
.college-row {
  display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 1.5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.5rem; color: var(--ink); transition: border-color .2s, transform .2s;
}
.college-row:hover { border-color: var(--green-500); transform: translateX(-4px); }
.college-row img { width: 88px; height: 88px; object-fit: contain; }
.college-row h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.college-row p { margin: 0; color: var(--muted); }
.college-row-go { color: var(--green-500); font-size: 1.3rem; }
.program-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.program-tags li { background: var(--green-50); color: var(--green-700); font-size: .88rem; padding: .15rem .7rem; border-radius: 99px; }

/* الأخبار */
.news-lead-img, .news-card-img { display: block; overflow: hidden; border-radius: var(--radius); margin-bottom: 1rem; background: var(--green-50); }
.news-lead-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.news-lead-img:hover img, .news-card-img:hover img { transform: scale(1.03); }
.news-lead time, .news-card time, .news-list time { display: block; color: var(--green-500); font-size: .88rem; font-weight: 600; margin-bottom: .3rem; }
.news-lead h3 { font-size: 1.55rem; }
.news-lead h3 a, .news-card h2 a { color: var(--green-900); }
.news-lead h3 a:hover, .news-card h2 a:hover { color: var(--green-500); }
.news-lead p { color: var(--muted); }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: center; padding: 1rem 0; color: var(--ink); }
.news-list img { width: 112px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); background: var(--green-50); }
.news-list strong { font-weight: 600; line-height: 1.55; display: block; }
.news-list a:hover strong { color: var(--green-700); }
.news-list.compact a { grid-template-columns: 80px 1fr; padding: .75rem 0; }
.news-list.compact img { width: 80px; height: 60px; }
.news-list.compact strong { font-size: .95rem; }

.news-card { height: 100%; }
.news-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.news-card h2 { font-size: 1.2rem; }
.news-card p { color: var(--muted); font-size: .97rem; }

/* الخدمات */
.services-home { padding-top: 0; }
.service { display: block; height: 100%; padding: 1.75rem; border-top: 4px solid var(--green-700); background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); color: var(--ink); transition: background .2s; }
.service:hover { background: var(--green-50); }
.service i { font-size: 2rem; color: var(--green-700); }
.service h3 { font-size: 1.25rem; margin: .75rem 0 .5rem; }
.service p { color: var(--muted); margin: 0; }

/* الإحصائيات */
.stats { background: var(--green-700); color: var(--white); padding: 3rem 0; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; margin: 0; text-align: center; }
.stats-row > div { display: flex; flex-direction: column-reverse; }
.stats-row dd { font-family: var(--font-head); font-size: 2.6rem; color: var(--gold); margin: 0; line-height: 1.2; }
.stats-row dt { font-weight: 500; color: rgba(255,255,255,.85); }

/* شريط القبول */
.cta-band { background: var(--gold-50); border-top: 1px solid #EEDDA8; padding: 3rem 0; }
.cta-band .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { font-size: 1.8rem; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #5A5136; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- الصفحات الداخلية ---------- */
.page-head { background: var(--green-900); color: var(--white); padding: 2.75rem 0 2.5rem; border-bottom: 5px solid var(--gold); }
.page-head h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .4rem 0 0; }
.page-head p { color: rgba(255,255,255,.78); margin: .5rem 0 0; max-width: 46em; }
.crumbs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; font-size: .9rem; color: rgba(255,255,255,.65); }
.crumbs li + li::before { content: "/"; margin-inline: .5rem; opacity: .6; }
.crumbs a { color: var(--gold); }
.crumbs a:hover { color: var(--white); }

.prose { max-width: 46em; font-size: 1.08rem; }
.prose h3 { font-size: 1.5rem; margin: 2rem 0 .75rem; padding-inline-start: .85rem; border-inline-start: 4px solid var(--gold); }
.prose h3:first-child { margin-top: 0; }
.prose h4 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; color: var(--green-700); }
.prose ul { padding-inline-start: 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--gold-600); }
.page-figure { margin: 0 0 2rem; }
.page-figure img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }

.side-nav { display: flex; flex-direction: column; border-inline-start: 2px solid var(--line); }
.side-nav a { padding: .6rem 1rem; color: var(--ink); margin-inline-start: -2px; border-inline-start: 2px solid transparent; }
.side-nav a:hover { color: var(--green-700); }
.side-nav a.active { border-color: var(--gold); color: var(--green-900); font-weight: 600; background: var(--paper); }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.side-box h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.side-box-cta { background: var(--gold-50); border-color: #EEDDA8; }
.inline-cta { margin-top: 2.5rem; padding: 1.5rem; background: var(--green-50); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.inline-cta p { margin: 0; font-weight: 500; }

.college-card { border: 1px solid var(--line); border-radius: var(--radius); height: 100%; overflow: hidden; background: var(--white); }
.college-card-img { display: flex; align-items: center; justify-content: center; background: var(--paper); height: 190px; }
.college-card-img img { max-height: 150px; object-fit: contain; }
.college-card-body { padding: 1.4rem; }
.college-card-body h2 { font-size: 1.3rem; }
.college-card-body h2 a { color: var(--green-900); }
.program-links { list-style: none; padding: 0; margin: 0; }
.program-links a { display: block; padding: .35rem 0; color: var(--green-700); border-bottom: 1px dashed var(--line); }
.program-links a:hover { color: var(--green-900); }

.program-card { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: var(--ink); height: 100%; transition: border-color .2s; }
.program-card:hover { border-color: var(--green-500); }
.program-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--green-50); }
.program-card-body { display: block; padding: 1rem 1.25rem; }
.program-card .degree { display: block; color: var(--green-500); font-size: .88rem; font-weight: 600; }
.program-card strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--green-900); }
.dean { color: var(--muted); }

.article-meta { color: var(--green-500); font-weight: 600; }
.gallery-title { font-size: 1.3rem; margin: 2.5rem 0 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.share { display: flex; align-items: center; gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share a { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--green-50); color: var(--green-700); }
.share a:hover { background: var(--green-700); color: var(--white); }

.pager { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 3rem; }
.pager a { font-weight: 600; padding: .5rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pager a:hover { border-color: var(--green-700); }

.contact-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-cards li { display: flex; gap: 1rem; padding: 1.25rem; background: var(--paper); border-radius: var(--radius); }
.contact-cards i { font-size: 1.5rem; color: var(--green-700); }
.contact-cards h2 { font-size: 1.05rem; margin: 0 0 .2rem; }
.contact-cards p { margin: 0; }
.form-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.form-control { border-color: var(--line); padding: .65rem .9rem; }
.form-control:focus { border-color: var(--green-500); box-shadow: 0 0 0 .2rem rgba(31,138,101,.15); }
.form-label { font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map-wrap iframe { display: block; width: 100%; height: clamp(280px, 45vw, 440px); border: 0; }

/* ---------- التذييل ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.75); padding: 4rem 0 0; font-size: .97rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--gold); }
.footer-logo { height: 56px; width: auto; margin-bottom: 1rem; background: var(--white); padding: .4rem .6rem; border-radius: var(--radius-sm); }
.footer-about { max-width: 26em; }
.footer-social { display: inline-flex; gap: .5rem; align-items: center; }
.footer-title { color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; }
.footer-contact i { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

/* ---------- عارض الصور ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8,24,18,.94); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 3rem 4rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: var(--white); width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; }
.lightbox button:hover { background: var(--gold); color: var(--green-900); }
.lightbox-close { top: 1rem; left: 1rem; }
.lightbox-nav.prev { right: 1rem; }
.lightbox-nav.next { left: 1rem; }

/* ---------- تبديل اللغة ---------- */
.lang-link { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.nav-tools { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.lang-pill {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 600; color: var(--green-700); font-family: var(--font-body);
}
.lang-pill:hover { background: var(--green-50); color: var(--green-900); }
.lang-note { background: var(--gold-50); border-inline-start: 4px solid var(--gold); padding: .6rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; color: #5A5136; }
.footer-bottom a { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- النسخة الإنجليزية (من اليسار إلى اليمين) ---------- */
.lang-en {
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-head: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}
.lang-en h1, .lang-en h2, .lang-en h3, .lang-en h4 { font-weight: 600; letter-spacing: -.01em; }
.lang-en .hero-title, .lang-en .section-title, .lang-en .page-head h1, .lang-en .pillars-head h2, .lang-en .cta-band h2, .lang-en .display-title {
  font-family: "Reem Kufi", "IBM Plex Sans", sans-serif; font-weight: 600; letter-spacing: 0;
}
.lang-en .hero-title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
[dir="ltr"] .hero {
  background:
    linear-gradient(90deg, rgba(11,61,46,.94) 0%, rgba(11,61,46,.78) 45%, rgba(11,61,46,.25) 100%),
    var(--hero-img) center / cover no-repeat;
}
[dir="ltr"] .link-arrow::after { content: "\F285"; }
[dir="ltr"] .link-arrow:hover::after { transform: translateX(4px); }
[dir="ltr"] .college-row:hover { transform: translateX(4px); }
[dir="ltr"] .lightbox-close { left: auto; right: 1rem; }
[dir="ltr"] .lightbox-nav.prev { right: auto; left: 1rem; }
[dir="ltr"] .lightbox-nav.next { left: auto; right: 1rem; }
[dir="ltr"] .about-figure::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
.lang-en .prose { max-width: 42em; }

/* ---------- الاستجابة للشاشات ---------- */
@media (max-width: 991.98px) {
  .site-nav .navbar-brand img { height: 44px; }
  .site-nav .nav-link.active::after { display: none; }
  .site-nav .navbar-collapse { padding: .75rem 0 1rem; }
  .site-nav .navbar-nav .nav-link { padding: .75rem .25rem !important; border-bottom: 1px solid var(--line); }
  .site-nav .navbar-nav .nav-link.active { color: var(--green-700); font-weight: 600; }
  .site-nav .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 .5rem; background: var(--paper); }
  .site-nav .dropdown-item { padding: .6rem 1rem; white-space: normal; }
  .btn-portal { display: flex; justify-content: center; gap: .4rem; margin: 1rem 0 0; width: 100%; padding: .7rem; }
  .pillars-row { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .side-nav { margin-bottom: .5rem; }
}
@media (max-width: 767.98px) {
  .topbar { font-size: .82rem; }
  .topbar-info { gap: .9rem; }
  .section-head { margin-bottom: 1.25rem; }
  .cta-band .container { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .page-head { padding: 2rem 0 1.75rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .share { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .hero { padding: 3rem 0 3.5rem; min-height: auto; background: linear-gradient(rgba(11,61,46,.86), rgba(11,61,46,.86)), var(--hero-img) center / cover no-repeat !important; }
  .hero-text { font-size: 1.02rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .pillars-head { padding-top: 2.5rem; }
  .pillars-row { grid-template-columns: 1fr; row-gap: 1.5rem; padding-inline: .75rem; }
  .pillar { min-height: auto; padding: 2.75rem 1rem 1.75rem; }
  .accredit { grid-template-columns: 1fr; }
  .college-row { grid-template-columns: 56px 1fr; padding: .9rem; gap: .9rem; }
  .college-row img { width: 56px; height: 56px; }
  .college-row h3 { font-size: 1.1rem; }
  .college-row-go { display: none; }
  .news-lead h3 { font-size: 1.3rem; }
  .news-list a { grid-template-columns: 88px 1fr; gap: .8rem; }
  .news-list img { width: 88px; height: 66px; }
  .about-figure::before { display: none; }
  .accredit dd { font-size: 1.2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-cards li { padding: 1rem; }
  .lightbox { padding: 1rem; }
  .lightbox-nav { top: auto; bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- الخريجون ---------- */
.grad-search { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.grad-search .form-label { font-weight: 600; font-size: 1.05rem; }
.grad-search-row { display: flex; gap: .75rem; }
.grad-search-row .form-control { flex: 1; font-size: 1.2rem; letter-spacing: .04em; }
.grad-search-row .btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }

.grad-card { margin-top: 2rem; border: 1px solid var(--line); border-top: 6px solid var(--green-700); border-radius: var(--radius); background: var(--white); padding: clamp(1.25rem, 4vw, 2.25rem); position: relative; overflow: hidden; }
.grad-card::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 180px; height: 180px; border: 14px solid var(--gold-50); border-radius: 50%; pointer-events: none; }
.grad-card-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px dashed var(--line); }
.grad-logo { height: 56px; width: auto; }
.grad-uni { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--green-900); }
.grad-status { margin: 0; color: var(--green-500); font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.grad-name { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 1.5rem 0 1.25rem; }
.grad-data { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; margin: 0; position: relative; z-index: 1; }
.grad-data dt { color: var(--muted); font-weight: 500; font-size: .9rem; }
.grad-data dd { margin: 0; font-weight: 600; font-size: 1.08rem; }
[dir="rtl"] .grad-data dd[dir="ltr"] { text-align: right; }
.grad-result { grid-column: 1 / -1; background: var(--green-50); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.grad-result dd { font-family: var(--font-head); font-size: 1.5rem; color: var(--green-900); display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.grad-pct { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: var(--green-700); background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: .05rem .7rem; }
.grad-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: .9rem; position: relative; z-index: 1; }
.grad-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.grad-note { margin-top: 1rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 575.98px) {
  .grad-search-row { flex-direction: column; }
  .grad-data { grid-template-columns: 1fr; }
  .grad-card-foot { flex-direction: column; align-items: stretch; }
  .grad-actions .btn { flex: 1; }
}
@media print {
  .topbar, .site-nav, .page-head, .site-footer, .grad-search, .grad-actions, .skip-link { display: none !important; }
  .section { padding: 0 !important; }
  .grad-card { border-color: #999; box-shadow: none; }
}
