:root{
  --navy:#0e2a47;
  --navy-2:#163a5f;
  --gold:#f2b705;
  --green:#1f8a4c;
  --red:#d3342b;
  --ink:#18222d;
  --muted:#5b6876;
  --bg:#ffffff;
  --alt:#f3f6f9;
  --line:#dde4ea;
  --radius:14px;
  --shadow:0 6px 22px rgba(14,42,71,.08);
  --font-ar:"Noto Sans Arabic","Segoe UI",Tahoma,sans-serif;
  --font-ar-h:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,sans-serif;
  --font-en:"Inter","Segoe UI",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.7 var(--font-ar);-webkit-font-smoothing:antialiased}
html[lang="en"] body{font-family:var(--font-en);line-height:1.6}
h1,h2,h3{font-family:var(--font-ar-h);line-height:1.35;margin:0}
html[lang="en"] h1,html[lang="en"] h2,html[lang="en"] h3{font-family:var(--font-en)}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{width:min(1160px,100% - 32px);margin-inline:auto}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--navy);color:#fff;box-shadow:0 2px 12px rgba(0,0,0,.18)}
.header-in{display:flex;align-items:center;gap:20px;min-height:72px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}
.brand img{width:48px;height:48px}
.brand-text{display:flex;flex-direction:column;line-height:1.3}
.brand-text small{font-size:12px;color:#b9c8d8}
.brand-text strong{font-size:17px;font-family:var(--font-ar-h)}
html[lang="en"] .brand-text strong{font-family:var(--font-en)}
.nav{display:flex;gap:4px;margin-inline-start:auto}
.nav a{text-decoration:none;padding:8px 14px;border-radius:8px;font-size:15px;color:#e5edf5;transition:background .15s}
.nav a:hover{background:rgba(255,255,255,.1)}
.lang{display:flex;background:rgba(255,255,255,.08);border-radius:10px;padding:3px}
.lang button{border:0;background:none;color:#cfdae6;padding:6px 12px;border-radius:8px;font:inherit;font-size:14px;cursor:pointer}
.lang button[aria-pressed="true"]{background:var(--gold);color:#1a1a1a;font-weight:600}
.burger{display:none;background:none;border:0;width:40px;height:40px;cursor:pointer;flex-direction:column;justify-content:center;gap:5px;padding:8px}
.burger span{display:block;height:2px;background:#fff;border-radius:2px}

/* Hero */
.hero{position:relative;background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%);color:#fff;overflow:hidden}
.hero-in{display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:32px;padding-block:64px 72px}
.eyebrow{color:var(--gold);font-weight:600;margin:0 0 8px;font-size:15px}
.hero h1{font-size:clamp(30px,5vw,50px);font-weight:800}
.lead{font-size:18px;color:#d3deea;max-width:56ch;margin:16px 0 28px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
.hero-logo{display:flex;justify-content:center}
.hero-logo img{width:min(280px,60vw);height:auto;filter:drop-shadow(0 10px 28px rgba(0,0,0,.35))}
.road-line{height:8px;background:repeating-linear-gradient(90deg,var(--gold) 0 46px,transparent 46px 82px);opacity:.9}
.btn{display:inline-block;padding:12px 26px;border-radius:10px;font:600 15px/1.4 inherit;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:transform .12s,background .15s}
.btn:hover{transform:translateY(-1px)}
.btn-gold{background:var(--gold);color:#1a1a1a}
.btn-ghost{border-color:rgba(255,255,255,.5);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.1)}
.btn-navy{background:var(--navy);color:#fff}

/* Stats */
.stats{margin-top:-1px;background:#fff;border-bottom:1px solid var(--line)}
.stats-in{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.stat{padding:26px 16px;text-align:center;border-inline-end:1px solid var(--line)}
.stat:last-child{border-inline-end:0}
.stat b{display:block;font:800 34px/1.1 var(--font-en);color:var(--navy)}
.stat span{color:var(--muted);font-size:14px}

/* Sections */
.section{padding-block:72px}
.section.alt{background:var(--alt)}
.sec-head{margin-bottom:28px}
.sec-head h2{font-size:clamp(24px,3.2vw,32px);color:var(--navy);position:relative;padding-bottom:12px}
.sec-head h2::after{content:"";position:absolute;inset-inline-start:0;bottom:0;width:56px;height:4px;border-radius:2px;background:var(--gold)}
.sec-head p{color:var(--muted);margin:10px 0 0;max-width:62ch}
.grid{display:grid;gap:20px}
.news-grid{grid-template-columns:repeat(3,1fr)}
.proj-grid{grid-template-columns:repeat(3,1fr)}
.dept-grid{grid-template-columns:repeat(5,1fr)}

.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}

/* News */
.news{overflow:hidden;display:flex;flex-direction:column;cursor:pointer;transition:transform .15s,box-shadow .15s;text-align:start;font:inherit;color:inherit;padding:0}
.news:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(14,42,71,.14)}
.news-img{aspect-ratio:16/9;background:linear-gradient(135deg,var(--navy-2),var(--navy));position:relative;display:grid;place-items:center}
.news-img svg{width:44px;height:44px;stroke:var(--gold);opacity:.9}
.news-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px}
.news-body time{font-size:13px;color:var(--muted)}
.news-body h3{font-size:18px;color:var(--navy)}
.news-body p{margin:0;color:var(--muted);font-size:15px}

/* Chips */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.chip{border:1px solid var(--line);background:#fff;color:var(--ink);padding:7px 16px;border-radius:999px;font:inherit;font-size:14px;cursor:pointer}
.chip[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}

/* Announcements */
.ann-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.ann{display:grid;grid-template-columns:76px 1fr auto;gap:18px;align-items:center;padding:16px 20px}
.ann-date{text-align:center;background:var(--navy);color:#fff;border-radius:10px;padding:8px 4px;line-height:1.2}
.ann-date b{display:block;font:700 24px var(--font-en)}
.ann-date span{font-size:12px;color:#c3d0de}
.ann h3{font-size:17px;color:var(--navy);margin-bottom:4px}
.ann p{margin:0;color:var(--muted);font-size:14.5px}
.tag{display:inline-block;font-size:12.5px;padding:3px 12px;border-radius:999px;font-weight:600;white-space:nowrap}
.tag.tender{background:#fff3cd;color:#7a5a00}
.tag.notice{background:#dcecfb;color:#0b4a85}
.tag.closure{background:#fde1df;color:#9b1f18}
.tag.job{background:#dff3e6;color:#12633a}
.deadline{display:block;font-size:12.5px;color:var(--muted);margin-top:6px;text-align:end}

/* Projects */
.proj{padding:20px;display:flex;flex-direction:column;gap:12px}
.proj-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.proj h3{font-size:18px;color:var(--navy)}
.proj p{margin:0;color:var(--muted);font-size:14.5px}
.meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13.5px;color:var(--muted)}
.meta b{color:var(--ink);font-weight:600}
.bar{height:8px;background:#e6ebf0;border-radius:99px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--green);border-radius:99px}
.pct{font:600 13px var(--font-en);color:var(--muted);display:flex;justify-content:space-between}
.st{font-size:12.5px;font-weight:600;padding:3px 12px;border-radius:999px}
.st.ongoing{background:#dcecfb;color:#0b4a85}
.st.completed{background:#dff3e6;color:#12633a}
.st.planned{background:#eee;color:#444}

/* Departments */
.dept{padding:22px 14px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;transition:transform .15s,border-color .15s}
.dept:hover{transform:translateY(-3px);border-color:var(--gold)}
.dept .ic{width:54px;height:54px;border-radius:14px;background:var(--navy);display:grid;place-items:center}
.dept .ic svg{width:28px;height:28px;stroke:var(--gold)}
.dept h3{font-size:15.5px;color:var(--navy);line-height:1.5}

/* Contact */
.contact{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.contact-list{margin:0;display:grid;gap:16px}
.contact-list dt{font-size:13px;color:var(--muted)}
.contact-list dd{margin:0;font-weight:500}
.form{padding:24px;display:grid;gap:14px}
.form label{display:grid;gap:6px;font-size:14px;color:var(--muted)}
.form input,.form textarea{font:inherit;color:var(--ink);padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.form input:focus,.form textarea:focus{outline:2px solid var(--gold);outline-offset:1px}
.form-note{margin:0;font-size:14px;color:var(--green);min-height:1.4em}

/* Footer */
.site-footer{background:var(--navy);color:#c3d0de;font-size:14px}
.foot-in{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-block:22px}

/* Dialog */
.dialog{border:0;border-radius:var(--radius);padding:0;width:min(640px,92vw);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.dialog::backdrop{background:rgba(10,20,32,.6)}
.dialog article{padding:28px;position:relative}
.dialog img{border-radius:10px;margin-bottom:14px}
.dialog time{font-size:13px;color:var(--muted)}
.dialog h3{font-size:22px;color:var(--navy);margin:6px 0 12px}
.dialog p{margin:0;white-space:pre-line}
.dialog-x{position:absolute;inset-block-start:10px;inset-inline-end:14px;border:0;background:none;font-size:30px;line-height:1;cursor:pointer;color:var(--muted)}

/* Responsive */
@media (max-width:1000px){
  .dept-grid{grid-template-columns:repeat(3,1fr)}
  .news-grid,.proj-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:1100px){
  .burger{display:flex;margin-inline-start:auto}
  .nav{display:none;position:absolute;inset-inline:0;top:100%;background:var(--navy);flex-direction:column;padding:10px 16px 16px;margin:0;border-top:1px solid rgba(255,255,255,.1)}
  .nav.open{display:flex}
  .lang{order:3}
  .header-in{flex-wrap:wrap;padding-block:8px}
}
@media (max-width:860px){
  .hero-in{grid-template-columns:1fr;padding-block:40px 48px}
  .hero-logo{order:-1}
  .hero-logo img{width:140px}
  .stats-in{grid-template-columns:repeat(2,1fr)}
  .stat:nth-child(2){border-inline-end:0}
  .stat:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .contact{grid-template-columns:1fr}
}
@media (max-width:620px){
  .news-grid,.proj-grid{grid-template-columns:1fr}
  .dept-grid{grid-template-columns:repeat(2,1fr)}
  .ann{grid-template-columns:60px 1fr}
  .ann .side{grid-column:1/-1}
  .deadline{text-align:start}
  .section{padding-block:48px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Sub-pages */
.nav a.on{background:rgba(255,255,255,.14);color:#fff}
.page-hero{background:linear-gradient(135deg,var(--navy),var(--navy-2));color:#fff;padding:40px 0 34px;border-bottom:6px solid var(--gold)}
.page-hero h1{font-size:clamp(26px,4vw,38px);font-weight:800}
.page-hero p{margin:8px 0 0;color:#c9d6e3}
a.news{text-decoration:none}
.ann h3 a,.proj h3 a{text-decoration:none}.ann h3 a:hover,.proj h3 a:hover{text-decoration:underline}
.more{margin:26px 0 0;text-align:center}
.narrow{max-width:780px}
.back{display:inline-block;margin-bottom:18px;color:var(--navy);font-weight:600;text-decoration:none}
#detail h1{font-size:clamp(24px,3.6vw,34px);color:var(--navy)}
#detail .sub{color:var(--muted);margin:10px 0 18px}
.detail-body{margin-top:22px;font-size:17.5px;line-height:1.9;white-space:pre-line}
.meta.big{font-size:15px;margin-bottom:14px}
.contact{margin-top:0}

/* Sticky footer: short pages still push the footer to the bottom */
body{min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1 0 auto}
.site-footer{margin-top:auto}
a.dept{text-decoration:none;color:inherit}
.dept-head{display:flex;align-items:center;gap:16px}
.dept-head .ic{width:64px;height:64px;border-radius:16px;background:var(--navy);display:grid;place-items:center;flex-shrink:0}
.dept-head .ic svg{width:34px;height:34px;stroke:var(--gold)}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0 0}
.facts div{background:var(--alt);border-radius:10px;padding:12px 14px}
.facts dt{font-size:13px;color:var(--muted)}.facts dd{margin:2px 0 0;font-weight:600}
#detail h2{font-size:20px;color:var(--navy);margin-top:28px}
@media(max-width:620px){.facts{grid-template-columns:1fr}}

/* Long-form content */
.prose,#detail{font-size:17px;line-height:1.9}
.prose h2{font-size:22px;color:var(--navy);margin:32px 0 10px}
.prose p,.detail-body p{margin:0 0 14px}
.bullets{margin:0 0 6px;padding-inline-start:22px}.bullets li{margin-bottom:8px}
.vm{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.vm .card{padding:20px}.vm h3{color:var(--navy);margin-bottom:6px}
.related{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.related li{background:var(--alt);border-radius:10px;padding:10px 14px}.related a{font-weight:600;color:var(--navy)}.related time{color:var(--muted);font-size:13px;margin-inline-start:8px}
.cta{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--navy);color:#fff;border-radius:14px;padding:18px 22px;margin-top:36px}
.dept p{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.faq-h{font-size:24px;color:var(--navy);margin:48px 0 14px}
.faq details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin-bottom:10px}
.faq summary{cursor:pointer;font-weight:600;color:var(--navy)}.faq p{margin:10px 0 0;color:var(--muted)}
@media(max-width:620px){.vm{grid-template-columns:1fr}}

/* Arabic version uses Almarai everywhere (Kurdish keeps Noto, English keeps Inter) */
html[lang="ar"] body,html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] .brand-text strong,
html[lang="ar"] button,html[lang="ar"] input,html[lang="ar"] textarea,html[lang="ar"] .btn{font-family:"Almarai","Noto Sans Arabic",Tahoma,sans-serif}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3{font-weight:800}

/* Temporary photos */
.news-img{overflow:hidden}.news-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.proj-img{display:block;margin:-20px -20px 4px;aspect-ratio:16/9;overflow:hidden;border-radius:14px 14px 0 0}
.proj-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.proj:hover .proj-img img{transform:scale(1.04)}
.hero-img{width:100%;aspect-ratio:16/7;object-fit:cover;border-radius:14px;margin-bottom:22px}
.hero{background-image:linear-gradient(135deg,rgba(14,42,71,.93),rgba(22,58,95,.86)),var(--hero-img,none);background-size:cover;background-position:center}

/* Department classification */
.filter-label{margin:0 0 8px;font-size:14px;font-weight:700;color:var(--navy)}
.dept-tag{display:inline-block;font-size:12.5px;font-weight:600;color:var(--navy);background:#e8eef5;border-radius:6px;padding:2px 10px;margin-bottom:6px;text-decoration:none}
a.dept-tag:hover{background:var(--gold)}
.empty{color:var(--muted);padding:24px 0}
#deptFilters{margin-bottom:14px}
