/* ===== جمعية ناظر الوقفية — الواجهة ===== */
:root {
  --primary: #0B5C58;
  --accent: #C9A063;
  --primary-900: color-mix(in srgb, var(--primary) 55%, #000);
  --primary-800: color-mix(in srgb, var(--primary) 75%, #000);
  --primary-50: color-mix(in srgb, var(--primary) 7%, #fff);
  --primary-100: color-mix(in srgb, var(--primary) 14%, #fff);
  --accent-700: color-mix(in srgb, var(--accent) 70%, #3a2a10);
  --accent-100: color-mix(in srgb, var(--accent) 18%, #fff);
  --cream: #F7F3EA;
  --ink: #12211F;
  --muted: #5B6B68;
  --line: #E4E0D6;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 38, .06), 0 8px 24px -8px rgba(16, 40, 38, .14);
  --shadow-lg: 0 24px 60px -20px rgba(8, 40, 38, .35);
  --container: 1200px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.8; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 100; transition: top .2s; }
.skip:focus { top: 12px; }

/* زخرفة: نجمة ثمانية متكررة */
.pattern { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C9A063' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M40 10l8.3 21.7L70 40l-21.7 8.3L40 70l-8.3-21.7L10 40l21.7-8.3z'/%3E%3Cpath d='M18.8 18.8 40 27.6l21.2-8.8-8.8 21.2 8.8 21.2L40 52.4l-21.2 8.8 8.8-21.2z'/%3E%3C/g%3E%3C/svg%3E"); }

/* ===== الأزرار ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-800); }
.btn-accent { background: var(--accent); color: var(--primary-900); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }
.btn-ghost { border-color: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary-50); }
.btn-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .1); }
.btn .ico { width: 1.1em; height: 1.1em; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--primary); font-weight: 600; font-size: .95rem; }
.link-arrow .ico { transition: transform .25s var(--ease); width: 1.1em; }
.link-arrow:hover .ico { transform: translateX(-4px); }

/* ===== الهيدر ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 234, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.header.scrolled { background: rgba(255, 255, 255, .92); border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .4); }
.header .container { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { padding: .5em .95em; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover { background: var(--primary-50); color: var(--primary); }
.nav a.active { background: var(--primary); color: #fff; }
.header .btn { padding: .65em 1.3em; }
/* القوائم المنسدلة */
.nav-item { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 4px; padding: .5em .8em .5em .95em; border-radius: 999px; font-size: .95rem; font-weight: 500; background: none; border: 0; cursor: pointer; color: var(--ink); transition: background .2s, color .2s; }
.nav-top:hover, .nav-item.open .nav-top { background: var(--primary-50); color: var(--primary); }
.nav-top.active { background: var(--primary); color: #fff; }
.caret { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.open .caret { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 250px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
.sub::before { content: ""; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
.nav-item.open .sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .nav-item:hover .sub { opacity: 1; visibility: visible; transform: none; } .nav-item:hover .caret { transform: rotate(180deg); } }
.sub a { padding: 10px 14px; border-radius: 10px; font-size: .92rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; white-space: nowrap; }
.sub a:hover, .sub a:focus-visible { background: var(--primary-50); color: var(--primary); }
.sub .ext { width: 14px; height: 14px; color: var(--muted); }
.dsub { display: grid; gap: 2px; }
.dsub[open] { padding-bottom: 6px; }
.dsub summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.dsub summary::-webkit-details-marker { display: none; }
.dsub[open] .caret { transform: rotate(180deg); }
.drawer-panel a.sub-l { display: block; padding: 10px 16px; margin-inline-start: 14px; font-size: .95rem; color: var(--muted); border-inline-start: 2px solid var(--line); border-radius: 0 10px 10px 0; }
.chips-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.chips-nav a { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; font-size: .95rem; transition: all .2s; }
.chips-nav a:hover { border-color: var(--primary); color: var(--primary); }
.chips-nav a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 0; padding: 10px; border-radius: 12px; cursor: pointer; color: var(--primary); }
.menu-btn .ico { width: 28px; height: 28px; }
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(6, 30, 28, .5); animation: fade .25s; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(340px, 86vw); background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 6px; animation: slideIn .3s var(--ease); overflow-y: auto; }
.drawer-panel .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-panel .row img { height: 46px; }
.drawer-panel .nl { padding: 14px 16px; border-radius: 14px; font-weight: 500; font-size: 1.05rem; }
.drawer-panel .nl:hover, .drawer-panel .nl.active { background: var(--primary-50); color: var(--primary); }
.drawer-panel .btn { margin-top: 14px; }
.icon-btn { background: var(--primary-50); border: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--primary); }
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(-100%); } }

/* ===== البطل ===== */
.hero { position: relative; background: var(--cream); overflow: hidden; padding: 56px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .7; mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 70%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; color: var(--accent-700); background: #fff; border: 1px solid var(--accent-100); padding: 7px 16px 7px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-100); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 700; color: var(--primary-900); margin: 22px 0 20px; line-height: 1.2; white-space: pre-line; }
.hero h1 em { font-style: normal; color: var(--accent-700); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1.02; max-width: 500px; justify-self: center; width: 100%; }
.hero-card { position: absolute; inset: 0 0 0 8%; border-radius: 40px 40px 40px 160px; background: linear-gradient(155deg, var(--primary) 0%, var(--primary-900) 100%); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-card.pattern { background-size: 80px, cover; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%); }
.hero-card img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: luminosity; }
.hero-mark { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.hero-mark img { width: 42%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
.chip { position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; animation: float 6s ease-in-out infinite; }
.chip .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.chip b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--primary-900); line-height: 1.1; }
.chip span { font-size: .82rem; color: var(--muted); }
.chip.c1 { inset-inline-end: -4%; bottom: 14%; }
.chip.c2 { inset-inline-start: -2%; top: 10%; animation-delay: -3s; }
.chip.c2 .ic { background: var(--accent-100); color: var(--accent-700); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ===== الأقسام ===== */
section { scroll-margin-top: 90px; }
.section { padding: 104px 0; }
.section.tint { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-700); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.center .kicker::after { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--primary-900); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.head-row .section-head { margin-bottom: 0; }

/* من نحن */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { font-size: 1.12rem; color: #33443F; }
.about-text .btn { margin-top: 28px; }
.vmv { display: grid; gap: 16px; }
.vmv-card { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.vmv-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.vmv-card .ic { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.vmv-card .ic .ico { width: 26px; height: 26px; }
.vmv-card h3 { font-size: 1.15rem; margin-bottom: 4px; color: var(--primary-900); }
.vmv-card p { color: var(--muted); }
.values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.values span { background: var(--accent-100); color: var(--accent-700); padding: 4px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.goals { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: g; list-style: none; padding: 0; }
.goals li { counter-increment: g; position: relative; padding: 26px 24px 24px; background: var(--cream); border-radius: var(--radius); color: #33443F; }
.goals li::before { content: counter(g, arabic-indic); display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 12px; }

/* الخدمات */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { position: relative; padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.service::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .4s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::after { width: 100%; }
.service .ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); margin-bottom: 22px; transition: background .3s, color .3s; }
.service:hover .ic { background: var(--primary); color: var(--accent); }
.service .ic .ico { width: 28px; height: 28px; }
.service h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--primary-900); }
.service p { color: var(--muted); font-size: .98rem; }

/* شبكة مرنة: تتوسط العناصر القليلة بدل أن تترك فراغاً */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); gap: 22px; justify-content: center; }
.grid-auto.start { justify-content: start; }
.grid-auto .service { text-align: center; }
.grid-auto .service .ic { margin-inline: auto; }
.banner-img { width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); transition: transform .4s var(--ease); }
a:hover > .banner-img { transform: translateY(-4px); }
.structure { display: block; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.structure img { width: 100%; border-radius: 12px; }
.avatar.logo { background: #fff; border: 1px solid var(--line); padding: 14px; }
.avatar.logo img { object-fit: contain; }
.person .pc { display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; }
.person .pc a { display: inline-flex; gap: 6px; align-items: center; justify-content: center; color: var(--primary); }
.person .pc .ico { width: 1em; height: 1em; }
.info-title { font-size: 1.3rem; color: var(--primary-900); margin-bottom: 6px; }

/* الإحصائيات */
.stats { position: relative; background: var(--primary-900); color: #fff; padding: 84px 0; overflow: hidden; }
.stats.pattern { background-size: 80px; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--primary) 80%, transparent), transparent 60%), radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 50%); }
.stats .container { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat { text-align: center; padding: 10px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: -12px; top: 15%; height: 70%; width: 1px; background: rgba(255, 255, 255, .15); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent); font-weight: 700; line-height: 1.1; direction: ltr; }
.stat span { color: rgba(255, 255, 255, .8); font-size: 1.02rem; }

/* البطاقات (أخبار ومشاريع) */
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; height: 100%; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .thumb { position: relative; aspect-ratio: 3 / 2; background: var(--primary-100); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, var(--primary), var(--primary-900)); }
.card .thumb .ph img { width: 30%; height: auto; object-fit: contain; opacity: .9; }
.badge { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(255, 255, 255, .94); color: var(--primary); font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.meta { display: flex; gap: 16px; color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ico { width: 1.05em; height: 1.05em; color: var(--accent-700); }
.card h3 { font-size: 1.15rem; color: var(--primary-900); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card .link-arrow { margin-top: 18px; }

.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.news-layout .card.feature .thumb { aspect-ratio: 16 / 9; }
.news-layout .card.feature h3 { font-size: 1.45rem; }
.news-side { display: grid; gap: 22px; align-content: start; }
.news-side .card { flex-direction: row; }
.news-side .card .thumb { aspect-ratio: auto; width: 40%; flex: none; }
.news-side .card .body { padding: 18px 20px; }

/* الحوكمة */
.gov { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.gov-tabs { display: grid; gap: 6px; position: sticky; top: 100px; }
.gov-tabs button { display: flex; justify-content: space-between; align-items: center; text-align: start; padding: 14px 18px; border-radius: 14px; border: 1px solid transparent; background: #fff; cursor: pointer; font-weight: 500; transition: all .2s; }
.gov-tabs button small { background: var(--primary-50); color: var(--primary); border-radius: 999px; padding: 0 10px; font-size: .8rem; font-weight: 600; }
.gov-tabs button:hover { border-color: var(--line); }
.gov-tabs button[aria-selected="true"] { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.gov-tabs button[aria-selected="true"] small { background: rgba(255, 255, 255, .18); color: #fff; }
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: 16px; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.doc:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.doc .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #FBEDEB; color: #B5412F; }
.doc .t { flex: 1; font-weight: 500; font-size: .96rem; line-height: 1.5; }
.doc .t small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; margin-top: 2px; }
.doc .dl { color: var(--primary); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius); grid-column: 1 / -1; }

/* الشعارات */
.logos { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos { padding-block: 14px; }
.logos-track { display: flex; gap: 22px; width: max-content; animation: marquee var(--dur, 50s) linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
/* الشعارات بألوانها الأصلية وبحجم واضح (المصادر 200–700px فلا تُكبَّر فوق حجمها) */
.logo-item { width: 230px; height: 140px; flex: none; display: grid; place-items: center; padding: 14px 18px; background: #fff; border-radius: 22px; box-shadow: 0 1px 2px rgba(16, 40, 38, .05), 0 10px 26px -14px rgba(16, 40, 38, .22); transition: transform .3s var(--ease), box-shadow .3s; }
.logo-item:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16, 40, 38, .05), 0 18px 34px -14px rgba(16, 40, 38, .3); }
.logo-item img { max-width: 100%; max-height: 104px; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(50%); } }
.logos + .logos { margin-top: 18px; }
.logos.rev .logos-track { animation-direction: reverse; }

/* انضم إلينا */
.join { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-900) 100%); border-radius: 32px; padding: 64px; color: #fff; position: relative; overflow: hidden; }
.join.pattern { background-size: 80px, cover; }
.join .section-head h2 { color: #fff; }
.join .section-head p { color: rgba(255, 255, 255, .75); }
.join .kicker { color: var(--accent); }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.join-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px); transition: background .3s, transform .3s var(--ease); display: flex; flex-direction: column; }
.join-card:hover { background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.join-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--primary-900); margin-bottom: 18px; }
.join-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.join-card p { color: rgba(255, 255, 255, .75); flex: 1; }
.join-card .btn { margin-top: 22px; align-self: flex-start; }
.join-card.link { flex-direction: row; align-items: center; gap: 16px; }
.join-card.link .ic { margin-bottom: 0; flex: none; }
.join-card.link h3 { flex: 1; margin: 0; }
.join-card.link .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); transition: background .25s, color .25s; }
.join-card.link:hover .go { background: var(--accent); color: var(--primary-900); border-color: var(--accent); }

/* التواصل */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.contact-info { display: grid; gap: 12px; align-content: start; }
.info-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.info-item .ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.info-item small { display: block; color: var(--muted); font-size: .82rem; }
.info-item b { font-weight: 600; direction: ltr; unicode-bidi: plaintext; }
.map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-height: 220px; background: var(--primary-50); }
.map iframe { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }
.form { background: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form h3 { font-size: 1.4rem; color: var(--primary-900); margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 22px; }
.types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.types label { cursor: pointer; }
.types input { position: absolute; opacity: 0; pointer-events: none; }
.types span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .92rem; font-weight: 500; transition: all .2s; }
.types input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.types input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: #33443F; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #FCFBF8; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { margin-top: 18px; width: 100%; }
.notice { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #E8F5EE; color: #17643B; display: none; align-items: center; gap: 10px; font-weight: 500; }
.notice.show { display: flex; }
.notice.err { background: #FCEBEA; color: #9B2C20; }

/* ===== الصفحات الداخلية ===== */
.page-hero { background: var(--primary-900); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero.pattern { background-size: 80px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 10%, color-mix(in srgb, var(--primary) 85%, transparent), transparent 65%); }
.page-hero .container { position: relative; }
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .65); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255, 255, 255, .75); margin-top: 10px; max-width: 640px; font-size: 1.08rem; }
.article { max-width: 820px; margin-inline: auto; }
/* صورة الخبر بحجمها الطبيعي على الأكثر حتى لا تتشوش (صور الأخبار 512px) */
.article .cover { margin-bottom: 32px; display: flex; justify-content: center; }
.article .cover img { width: auto; max-width: 100%; max-height: 560px; border-radius: 24px; box-shadow: var(--shadow); }
.article .content p { margin-bottom: 1.2em; font-size: 1.12rem; color: #2A3B37; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.person { text-align: center; padding: 30px 20px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, var(--primary), var(--primary-900)); color: var(--accent); font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; overflow: hidden; box-shadow: 0 0 0 5px var(--cream); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.05rem; color: var(--primary-900); }
.person p { color: var(--accent-700); font-size: .9rem; font-weight: 500; margin-top: 4px; }
.group-title { font-size: 1.5rem; color: var(--primary-900); margin: 56px 0 22px; display: flex; align-items: center; gap: 12px; }
.group-title:first-child { margin-top: 0; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== النشرة والتذييل ===== */
.newsletter { position: relative; z-index: 2; margin-bottom: -64px; }
.newsletter .box { background: linear-gradient(120deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 75%, #fff) 100%); border-radius: 28px; padding: 36px 44px; display: flex; align-items: center; gap: 32px; justify-content: space-between; box-shadow: var(--shadow-lg); flex-wrap: wrap; }
.newsletter h2 { font-size: 1.6rem; color: var(--primary-900); }
.newsletter p { color: color-mix(in srgb, var(--primary-900) 75%, transparent); }
.newsletter form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; min-width: min(440px, 100%); flex: 1; max-width: 480px; }
.newsletter input { flex: 1; border: 0; background: transparent; padding: 0 18px; min-width: 0; }
.newsletter input:focus { outline: none; }
.footer { background: var(--primary-900); color: rgba(255, 255, 255, .78); padding: 128px 0 0; position: relative; overflow: hidden; }
.footer.pattern { background-size: 80px; }
.footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.footer .fbrand img { height: 56px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a:hover { color: var(--accent); }
.footer .ci { display: flex; gap: 10px; align-items: flex-start; }
.footer .ci .ico { color: var(--accent); margin-top: 5px; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s, color .2s; }
.socials a:hover { background: var(--accent); color: var(--primary-900); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; font-size: .88rem; flex-wrap: wrap; }
.to-top { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 14px; background: var(--primary); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }

/* ===== الاستجابة ===== */
@media (max-width: 1080px) {
  .nav, .header .cta { display: none; }
  .menu-btn { display: inline-grid; }
  .grid-3, .join-grid { grid-template-columns: repeat(2, 1fr); }
  .goals { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 32px 0 72px; }
  .hero .container, .about-grid, .contact-grid, .news-layout, .gov { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; order: -1; }
  .stats .container { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3)::before { display: none; }
  .docs { grid-template-columns: 1fr; }
  .gov-tabs { position: static; display: flex; overflow-x: auto; padding-bottom: 6px; }
  .gov-tabs button { white-space: nowrap; gap: 10px; }
  .join { padding: 40px 24px; border-radius: 24px; }
}
@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .header .container { height: 70px; }
  .brand img { height: 46px; }
  .grid-3, .join-grid, .goals, .fields, .footer-grid { grid-template-columns: 1fr; }
  .news-side .card { flex-direction: column; }
  .news-side .card .thumb { width: 100%; aspect-ratio: 16 / 10; }
  .chip { padding: 10px 14px; }
  .chip b { font-size: 1.1rem; }
  .chip .ic { width: 36px; height: 36px; }
  .form { padding: 24px 18px; }
  .newsletter .box { padding: 28px 22px; }
  .newsletter form { min-width: 0; width: 100%; }
  .logo-item { width: 170px; height: 110px; border-radius: 18px; }
  .logo-item img { max-height: 80px; }
  .hero .actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
