/* ============================================================
   Capital CST — البوابة (التصميم المعتمد من العميل)
   توكنات الهوية من النموذج: أخضر 16a34a/15803d/14532d + ليموني 84cc16
   ============================================================ */
:root {
  --g950: #0b2b19; --g900: #14532d; --g700: #15803d; --g600: #16a34a; --g500: #22c55e;
  --lime: #84cc16; --lime-soft: #a3e635; --cyan: #93f6ff;
  --ice: #eef4f7; --card: #ffffff; --ink: #12291c; --muted: #587466; --line: #d8e7ef;
  --sidebar-w: 288px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; }
body { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; background: var(--ice); color: var(--ink); min-height: 100vh; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

/* حركة الظهور — تُخفى فقط حين تعمل JS (html.js) حتى لا يفقد المحتوى لو تعطلت */
html.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ============ الهيكل ============ */
.portal-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.portal-main { min-width: 0; display: flex; flex-direction: column; }
.portal-view { padding: 26px 34px 60px; flex: 1; }

/* ============ الشريط الجانبي ============ */
.p-sidebar { background: linear-gradient(180deg, var(--g950), #08351d); color: #e7f5ec; padding: 24px 20px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; z-index: 60; }
.p-sidebar::-webkit-scrollbar { width: 5px; }
.p-sidebar::-webkit-scrollbar-thumb { background: rgba(132,204,22,.3); border-radius: 3px; }
.p-brand { display: flex; align-items: center; gap: 12px; }
.p-brand-badge { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--g600), var(--g500));
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(22,163,74,.4); flex: none; font-size: 1.25rem; color: #fff; overflow: hidden; }
.p-brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.p-brand b { font-size: 1.06rem; font-weight: 900; letter-spacing: .3px; color: #fff; }
.p-brand small { display: block; color: var(--lime-soft); font-size: .66rem; font-weight: 600; letter-spacing: 2px; }
.p-nav { display: flex; flex-direction: column; gap: 3px; }
.p-nav-title { font-size: .68rem; font-weight: 700; color: #7fa38d; letter-spacing: 1px; margin: 8px 4px 2px; }
.p-nlink, .p-tree-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  font-size: .9rem; font-weight: 600; color: #d5ecdd; transition: .18s; width: 100%; text-align: right; }
.p-nlink:hover, .p-tree-head:hover { background: rgba(34,197,94,.14); }
.p-nlink.now { background: linear-gradient(135deg, rgba(22,163,74,.34), rgba(34,197,94,.16)); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(132,204,22,.35); }
.p-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
.p-tree-head .chev { margin-inline-start: auto; transition: .25s; font-size: .68rem; color: #8fbf9f; }
.p-tree.open .chev { transform: rotate(-90deg); }
.p-tree-sub { display: none; flex-direction: column; gap: 2px; padding-inline-start: 22px; margin-top: 2px; }
.p-tree.open .p-tree-sub { display: flex; }
.p-tree-sub a { padding: 7px 10px; border-radius: 9px; font-size: .79rem; font-weight: 600; color: #a9cfb6;
  border-inline-start: 2px solid rgba(132,204,22,.25); transition: .15s; }
.p-tree-sub a:hover { color: #fff; background: rgba(34,197,94,.12); border-inline-start-color: var(--lime); }
.p-side-cta { margin-top: auto; background: rgba(34,197,94,.12); border: 1px solid rgba(132,204,22,.3);
  border-radius: 16px; padding: 16px; text-align: center; }
.p-side-cta p { font-size: .78rem; color: #bfe3cb; margin-bottom: 10px; font-weight: 600; }
.p-side-cta a { display: block; background: linear-gradient(135deg, var(--g600), var(--g500)); color: #fff;
  font-weight: 800; font-size: .88rem; padding: 10px; border-radius: 11px; box-shadow: 0 6px 16px rgba(22,163,74,.4); }

/* ============ الشريط العلوي ============ */
.p-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 34px; background: rgba(238,244,247,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.p-crumbs { font-size: .82rem; color: var(--muted); font-weight: 700; }
.p-crumbs a { color: var(--g900); }
.p-top-actions { display: flex; gap: 10px; }
.p-top-actions a { padding: 9px 20px; border-radius: 999px; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.p-top-actions .a1 { background: linear-gradient(135deg, var(--g600), var(--g500)); color: #fff; box-shadow: 0 5px 14px rgba(22,163,74,.35); }
.p-top-actions .a2 { background: #fff; color: var(--g900); border: 1.5px solid var(--line); }
.p-burger { display: none; width: 42px; height: 42px; border-radius: 11px; background: var(--g950); color: #fff;
  font-size: 1.05rem; flex: none; }

/* ============ أدوات عامة ============ */
.p-sec { margin-top: 42px; }
.p-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 10px; flex-wrap: wrap; }
.p-sec-head h2 { font-size: 1.4rem; font-weight: 900; color: var(--g950); }
.p-sec-head h2 i.bar { display: inline-block; width: 26px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--g600), var(--lime)); margin-inline-start: 10px; vertical-align: middle; }
.p-sec-head .lnk { font-size: .82rem; font-weight: 700; color: var(--g700); }

/* ============ الهيرو (الرئيسية) ============ */
.p-hero { position: relative; border-radius: 26px; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(125deg, var(--g900), #166534 48%, var(--g700)); display: grid;
  grid-template-columns: 1.15fr .85fr; min-height: 400px; }
.p-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(560px 300px at 12% -10%, rgba(132,204,22,.28), transparent 60%),
              radial-gradient(500px 320px at 95% 115%, rgba(147,246,255,.16), transparent 55%); }
.p-hero-txt { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.p-kicker { color: var(--cyan); font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.p-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 900; line-height: 1.4; max-width: 18ch; text-wrap: balance; }
.p-hero p { margin-top: 14px; font-size: 1rem; color: #d9f2e2; max-width: 48ch; line-height: 1.95; }
.p-hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.p-hero-cta a { padding: 12px 28px; border-radius: 999px; font-weight: 800; font-size: .92rem; }
.p-hero-cta .p1 { background: #fff; color: var(--g900); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.p-hero-cta .p2 { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.p-hero-vis { position: relative; padding: 28px 28px 28px 0; display: flex; align-items: center; }
.p-hero-frame { position: relative; width: 100%; height: 86%; min-height: 260px; border-radius: 20px; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.3); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.p-hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.p-hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(210deg, transparent 40%, rgba(20,83,45,.55)); pointer-events: none; }

.p-hero-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  background: linear-gradient(150deg, rgba(132,204,22,.18), rgba(20,83,45,.4)); color: #eafcf0; }
.p-hero-empty i { font-size: 3.4rem; opacity: .85; }
.p-hero-empty span { font-weight: 900; font-size: 1.1rem; letter-spacing: .5px; }

/* — سلايدر الهيرو — */
.p-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.p-slide.on { opacity: 1; }
.p-hero-frame:not(.is-slider) .p-slide { position: relative; opacity: 1; height: 100%; }
.p-slide-cap { position: absolute; top: 14px; inset-inline-end: 14px; max-width: 68%; background: rgba(8,32,18,.78);
  backdrop-filter: blur(8px); border: 1px solid rgba(163,230,53,.35); border-radius: 12px; padding: 8px 14px; z-index: 2; }
.p-slide-cap b { display: block; color: #fff; font-size: .82rem; font-weight: 800; }
.p-slide-cap span { display: block; color: #cfeeda; font-size: .68rem; font-weight: 600; margin-top: 1px; }
.p-sl-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(8,32,18,.6); color: #fff; font-size: .85rem; backdrop-filter: blur(6px);
  border: 1px solid rgba(163,230,53,.35); transition: .2s; display: grid; place-items: center; }
.p-sl-arrow:hover { background: rgba(22,163,74,.85); }
.p-sl-arrow.prev { inset-inline-start: 12px; }
.p-sl-arrow.next { inset-inline-end: 12px; }
.p-sl-dots { position: absolute; bottom: 14px; inset-inline-end: 16px; display: flex; gap: 7px; z-index: 3; }
.p-sl-dots button { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.45); transition: .25s; padding: 0; }
.p-sl-dots button.on { background: var(--lime); width: 22px; }
@media (prefers-reduced-motion: reduce) { .p-slide { transition: none; } }
.p-chip { position: absolute; bottom: 16px; inset-inline-start: 16px; background: rgba(8,32,18,.85);
  backdrop-filter: blur(8px); border: 1px solid rgba(163,230,53,.4); border-radius: 14px; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px; z-index: 2; }
.p-chip b { font-size: .92rem; font-weight: 900; color: #fff; display: block; }
.p-chip span { font-size: .66rem; color: #bfe3cb; font-weight: 600; display: block; }
.p-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(132,204,22,.7); animation: p-pulse 2s infinite; flex: none; }
@keyframes p-pulse { 70% { box-shadow: 0 0 0 11px rgba(132,204,22,0); } 100% { box-shadow: 0 0 0 0 rgba(132,204,22,0); } }

/* ============ الإحصائيات ============ */
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.p-stat { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 18px; position: relative; overflow: hidden; }
.p-stat::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--g600), var(--lime)); }
.p-stat b { display: block; font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--g950); }
.p-stat span { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* ============ بطاقات الأقسام (الرئيسية) ============ */
.p-dgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.p-dcard { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; transition: .25s; display: block; }
.p-dcard:hover { border-color: var(--g600); box-shadow: 0 18px 42px rgba(20,83,45,.14); transform: translateY(-3px); }
.p-dcard-pic { position: relative; height: 158px; overflow: hidden; background: linear-gradient(135deg, var(--g900), var(--g700)); }
.p-dcard-pic img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.p-dcard:hover .p-dcard-pic img { transform: scale(1.06); }
.p-dcard-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(11,43,25,.78)); }
.p-dcard-pic .cnt { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; font-size: .7rem; font-weight: 800;
  color: #fff; background: rgba(22,163,74,.9); padding: 5px 13px; border-radius: 999px; }
.p-dcard-pic h3 { position: absolute; bottom: 12px; inset-inline: 18px; z-index: 2; color: #fff; font-weight: 900; font-size: 1.15rem; }
.p-dcard-pic .d-ico { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 38px; height: 38px;
  border-radius: 11px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center; color: #fff; font-size: .95rem; backdrop-filter: blur(4px); }
.p-dcard-body { padding: 16px 20px 20px; }
.p-dcard-body p { font-size: .84rem; color: var(--muted); font-weight: 600; line-height: 1.85; }
.p-dcard-tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.p-dcard-tags i { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--g700); background: #eafaf0;
  border: 1px solid #c8ecd6; border-radius: 999px; padding: 3px 11px; }
.p-dcard-go { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--g700); font-weight: 800; font-size: .85rem; }

/* ============ معرض الجولة ============ */
.p-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.p-shot { position: relative; border-radius: 18px; overflow: hidden; height: 200px; border: 1.5px solid var(--line); }
.p-shot img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.p-shot:hover img { transform: scale(1.06); }
.p-shot figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 24px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(8,32,18,.85)); color: #fff; font-size: .82rem; font-weight: 700; }

/* ============ خطوات الالتحاق ============ */
.p-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: pst; }
.p-step { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 22px 18px; position: relative; counter-increment: pst; }
.p-step::before { content: counter(pst); position: absolute; top: -14px; inset-inline-start: 18px; width: 34px; height: 34px;
  border-radius: 50%; background: linear-gradient(135deg, var(--g600), var(--g500)); color: #fff; font-weight: 900;
  display: grid; place-items: center; font-size: .95rem; box-shadow: 0 5px 14px rgba(22,163,74,.4); }
.p-step b { display: block; font-weight: 800; color: var(--g950); font-size: .95rem; margin-top: 8px; }
.p-step p { font-size: .78rem; color: var(--muted); line-height: 1.9; margin-top: 5px; font-weight: 600; }

/* ============ الأخبار ============ */
.p-news-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.p-nm { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; transition: .2s; display: block; }
.p-nm:hover { border-color: var(--g500); box-shadow: 0 12px 28px rgba(20,83,45,.1); }
.p-nm .pic { height: 130px; overflow: hidden; background: linear-gradient(135deg, var(--g900), var(--g700)); }
.p-nm .pic img { width: 100%; height: 100%; object-fit: cover; }
.p-nm .nb { padding: 16px; }
.p-nm .nd { font-size: .72rem; font-weight: 700; color: var(--g700); }
.p-nm h4 { font-size: .95rem; font-weight: 800; color: var(--g950); margin-top: 6px; }
.p-nm p { font-size: .78rem; color: var(--muted); font-weight: 600; line-height: 1.85; margin-top: 5px; }
.p-news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-na { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; transition: .2s; }
.p-na:hover { border-color: var(--g500); box-shadow: 0 14px 32px rgba(20,83,45,.1); }
.p-na .pic { height: 160px; overflow: hidden; background: linear-gradient(135deg, var(--g900), var(--g700)); }
.p-na .pic img { width: 100%; height: 100%; object-fit: cover; }
.p-na .nb { padding: 20px; }
.p-na .nd { font-size: .74rem; font-weight: 700; color: var(--g700); }
.p-na h3 { font-size: 1.05rem; font-weight: 800; color: var(--g950); margin-top: 8px; }
.p-na p { font-size: .82rem; color: var(--muted); font-weight: 600; line-height: 1.95; margin-top: 8px; }

/* ============ آراء الطلاب ============ */
.p-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.p-q { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; }
.p-q blockquote { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 2; position: relative; padding-top: 10px; }
.p-q blockquote::before { content: "❝"; position: absolute; top: -12px; inset-inline-start: -4px; font-size: 2.2rem; color: var(--lime); opacity: .7; }
.p-q .stars { color: var(--lime); letter-spacing: 2px; font-size: .82rem; margin-top: 8px; }
.p-q .who { display: flex; align-items: center; gap: 11px; margin-top: 12px; }
.p-q .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--g600), var(--lime));
  display: grid; place-items: center; color: #fff; font-weight: 900; overflow: hidden; flex: none; }
.p-q .av img { width: 100%; height: 100%; object-fit: cover; }
.p-q .who b { font-size: .86rem; font-weight: 800; display: block; color: var(--g950); }
.p-q .who span { font-size: .7rem; color: var(--g700); font-weight: 700; }

/* ============ الشركاء ============ */
.p-partners { display: flex; gap: 12px; flex-wrap: wrap; }
.p-partner { flex: 1; min-width: 140px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted);
  font-weight: 800; font-size: .88rem; transition: .2s; min-height: 74px; }
.p-partner:hover { border-color: var(--g500); color: var(--g700); }
.p-partner img { max-height: 46px; max-width: 120px; object-fit: contain; }

/* ============ فروعنا (شعارات الفروع) ============ */
.p-branches { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.p-branch { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 110px; text-align: center; }
.p-branch .bl { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #fff;
  border: 2.5px solid var(--g500); display: grid; place-items: center; color: var(--g700); font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(20,83,45,.12); }
.p-branch .bl img { width: 100%; height: 100%; object-fit: cover; }
.p-branch b { font-size: .84rem; font-weight: 800; color: var(--g950); }
.p-branch small { font-size: .7rem; color: var(--muted); font-weight: 600; }

/* ============ CTA ============ */
.p-cta { margin-top: 42px; background: var(--g950); border-radius: 22px; color: #fff; padding: 40px; text-align: center;
  position: relative; overflow: hidden; }
.p-cta::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 85% -20%, rgba(132,204,22,.3), transparent 60%); }
.p-cta h2 { font-size: 1.5rem; font-weight: 900; position: relative; }
.p-cta p { color: #bfe3cb; margin-top: 8px; position: relative; }
.p-cta a { position: relative; display: inline-block; margin-top: 18px; background: linear-gradient(135deg, var(--g600), var(--g500));
  padding: 13px 40px; border-radius: 999px; font-weight: 800; color: #fff; }

/* ============ صفحة القسم ============ */
.p-dhero { position: relative; border-radius: 24px; overflow: hidden; min-height: 300px; display: flex;
  align-items: flex-end; color: #fff; isolation: isolate; background: linear-gradient(135deg, var(--g900), var(--g700)); }
.p-dhero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.p-dhero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(11,43,25,.92), rgba(20,83,45,.72) 55%, rgba(20,83,45,.35)); }
.p-dhero-in { padding: 38px 42px; }
.p-dhero .tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--lime-soft);
  background: rgba(132,204,22,.16); border: 1px solid rgba(132,204,22,.4); padding: 5px 16px; border-radius: 999px; margin-bottom: 14px; }
.p-dhero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; }
.p-dhero p { margin-top: 10px; font-size: 1rem; color: #e2f5e9; max-width: 60ch; line-height: 1.95; }
.p-dfacts { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.p-dfact { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 14px;
  padding: 10px 18px; backdrop-filter: blur(6px); }
.p-dfact b { display: block; font-size: 1.15rem; font-weight: 900; }
.p-dfact span { font-size: .72rem; color: #cfeeda; font-weight: 600; }
.p-dhero .go-reg { margin-top: 20px; display: inline-block; background: #fff; color: var(--g900); font-weight: 800;
  padding: 12px 30px; border-radius: 999px; font-size: .92rem; }
.p-about { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 24px 28px; margin-top: 24px;
  font-size: .98rem; line-height: 2.1; color: #274b38; font-weight: 600; }
.p-specs { display: flex; flex-direction: column; gap: 16px; }
.p-spec { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; transition: .2s; }
.p-spec:hover { border-color: var(--g500); box-shadow: 0 14px 34px rgba(20,83,45,.1); }
.p-spec-head { display: flex; align-items: center; gap: 15px; padding: 18px 22px;
  background: linear-gradient(180deg, #f7fcf9, #eef8f2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.p-spec-no { width: 44px; height: 44px; border-radius: 13px; flex: none; background: linear-gradient(135deg, var(--g600), var(--g500));
  color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: 0 5px 14px rgba(22,163,74,.35); font-size: 1.05rem; }
.p-spec-head h3 { font-size: 1.12rem; font-weight: 900; color: var(--g950); }
.p-spec-head p { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.p-spec-yrs { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.p-spec-yrs i { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--g700); background: #fff;
  border: 1px solid #cdebd8; border-radius: 999px; padding: 4px 12px; }
.p-spec-body { display: grid; grid-template-columns: 1.3fr 1fr; }
.p-spec-learn { padding: 18px 22px; }
.p-spec-learn h4, .p-spec-side h4 { font-size: .8rem; font-weight: 800; color: var(--g700); margin-bottom: 10px; }
.p-spec-learn ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.p-spec-learn li { display: flex; gap: 10px; font-size: .88rem; font-weight: 600; color: #2b4d3a; line-height: 1.7; }
.p-spec-learn li::before { content: "✓"; color: var(--g600); font-weight: 900; flex: none; }
.p-spec-side { padding: 18px 22px; background: #f9fdfb; border-inline-start: 1px solid var(--line); }
.p-spec-side .tool { display: inline-block; font-size: .75rem; font-weight: 700; color: #3c5949; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; margin: 0 0 6px 6px; }
.p-careers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.p-career { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; transition: .2s; }
.p-career:hover { border-color: var(--g500); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,83,45,.1); }
.p-career .ci { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: #ecfdf3;
  border: 1px solid #bde9cd; display: grid; place-items: center; color: var(--g700); font-size: 1.05rem; }
.p-career b { font-size: .9rem; font-weight: 800; color: var(--g950); }

/* ============ القاعات ============ */
.p-halls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-hcard { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.p-hcard:hover { border-color: var(--g500); box-shadow: 0 16px 38px rgba(20,83,45,.12); transform: translateY(-3px); }
.p-hcard .pic { height: 170px; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--g900), var(--g950)); }
.p-hcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.p-hcard .pic .cap { position: absolute; top: 12px; inset-inline-start: 12px; font-size: .7rem; font-weight: 800; color: #fff;
  background: rgba(11,43,25,.8); border: 1px solid rgba(163,230,53,.4); padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.p-hcard .hb { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.p-hcard h3 { font-size: 1.08rem; font-weight: 900; color: var(--g950); }
.p-hcard .hb p { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 4px; line-height: 1.85; }
.p-hcard .eq { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.p-hcard .eq i { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--g700); background: #eafaf0;
  border: 1px solid #c8ecd6; border-radius: 8px; padding: 3px 10px; }
.p-hcard .hb a.book { margin-top: auto; padding-top: 14px; }
.p-hcard .hb a.book span { display: block; background: linear-gradient(135deg, var(--g600), var(--g500)); color: #fff;
  font-weight: 800; padding: 11px; border-radius: 12px; font-size: .88rem; text-align: center; }

/* ============ أقسام شقيقة ============ */
.p-siblings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.p-sib { display: flex; align-items: center; gap: 13px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 15px; padding: 14px 18px; transition: .2s; }
.p-sib:hover { border-color: var(--g500); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,83,45,.1); }
.p-sib .si { width: 42px; height: 42px; border-radius: 12px; background: #ecfdf3; border: 1px solid #bde9cd;
  display: grid; place-items: center; color: var(--g700); flex: none; font-size: .95rem; }
.p-sib b { display: block; font-size: .92rem; font-weight: 800; color: var(--g950); }
.p-sib small { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; margin-top: 1px; }
.p-sib .go { margin-inline-start: auto; color: var(--g600); font-size: .8rem; }

/* ============ زر العودة لأعلى ============ */
.p-top-btn { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 65; width: 44px; height: 44px;
  border-radius: 50%; background: var(--g950); color: #fff; font-size: .95rem; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s; }
.p-top-btn.show { opacity: 1; pointer-events: auto; transform: none; }
.p-top-btn:hover { background: var(--g700); }

/* ============ الفوتر ============ */
.p-footer { margin: 42px 34px 26px; background: var(--g950); border-radius: 22px; color: #cfe8d8; padding: 30px 30px 20px; }
.p-f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.p-f-grid h5 { color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: 10px; }
.p-f-grid p, .p-f-grid a { display: block; font-size: .8rem; color: #a9cfb6; font-weight: 600; line-height: 2.1; }
.p-f-grid a:hover { color: #fff; }
.p-f-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; flex-wrap: wrap; gap: 12px; font-size: .75rem; }
.p-soc { display: flex; gap: 10px; }
.p-soc a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center;
  font-size: .85rem; color: #cfe8d8; transition: .2s; }
.p-soc a:hover { background: var(--g600); color: #fff; }

/* ============ CTA السفلي الثابت (موبايل) ============ */
.p-mobile-cta { display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 70; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8,32,18,.94); backdrop-filter: blur(10px); border-top: 1px solid rgba(132,204,22,.3); gap: 10px; }
.p-mobile-cta a { flex: 1; text-align: center; padding: 12px; border-radius: 12px; font-weight: 800; font-size: .9rem; min-height: 44px; }
.p-mobile-cta .m1 { background: linear-gradient(135deg, var(--g600), var(--g500)); color: #fff; }
.p-mobile-cta .m2 { background: #f8fffb; color: var(--g900); }

/* ============ الدرج (موبايل) ============ */
.p-scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 79; }
body.drawer-open .p-scrim { display: block; }
@media (max-width: 980px) { body.drawer-open { overflow: hidden; } } /* قفل تمرير الخلفية والدرج مفتوح */

/* شجرة متداخلة داخل الشريط الجانبي (أي عمق) */
.p-tree-sub .p-tree-head { font-size: .82rem; padding: 8px 10px; color: #bfe0ca; }
.p-tree-sub .p-tree { border-inline-start: 2px solid rgba(132,204,22,.18); margin-inline-start: 2px; }
.p-tree-sub .p-tree-sub a { font-size: .76rem; }

/* ============ التجاوب ============ */
@media (max-width: 980px) {
  .portal-shell { grid-template-columns: 1fr; }
  /* RTL: inline-start = اليمين — الدرج على اليمين وينزلق خارجه (translateX موجب = يمين الشاشة) */
  .p-sidebar { position: fixed; inset-inline-start: 0; top: 0; width: min(84vw, 320px); height: 100vh; z-index: 80;
    transform: translateX(100%); transition: transform .3s ease; }
  body.drawer-open .p-sidebar { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.4); }
  .p-burger { display: grid; place-items: center; }
  .p-topbar { padding: 12px 16px; }
  .p-crumbs { display: none; }
  .portal-view { padding: 18px 16px 90px; }
  .p-hero { grid-template-columns: 1fr; min-height: 0; }
  .p-hero-txt { padding: 34px 24px 10px; }
  .p-hero-vis { padding: 18px 24px 24px; }
  .p-stats { grid-template-columns: repeat(2, 1fr); }
  .p-dgrid, .p-gal, .p-steps, .p-news-mini, .p-news-list, .p-quotes, .p-halls { grid-template-columns: 1fr; }
  .p-careers { grid-template-columns: repeat(2, 1fr); }
  .p-spec-body { grid-template-columns: 1fr; }
  .p-spec-side { border-inline-start: none; border-top: 1px solid var(--line); }
  .p-spec-yrs { margin-inline-start: 0; width: 100%; }
  .p-f-grid { grid-template-columns: 1fr; }
  .p-footer { margin: 34px 16px 20px; }
  .p-mobile-cta { display: flex; }
  .p-top-actions { display: none; }
  .p-dhero-in { padding: 26px 20px; }
}
@media (max-width: 560px) {
  .p-careers { grid-template-columns: 1fr; }
}
/* شاشات ضيقة جداً (320px) — ضبط دقيق لتجاوب 100% */
@media (max-width: 400px) {
  .portal-view { padding: 14px 12px 92px; }
  .p-hero-txt { padding: 26px 18px 8px; }
  .p-hero h1 { font-size: 1.45rem; }
  .p-hero p { font-size: .9rem; }
  .p-hero-cta a { padding: 11px 20px; font-size: .85rem; }
  .p-hero-vis { padding: 14px 18px 20px; }
  .p-hero-frame { min-height: 200px; }
  .p-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .p-stat { padding: 11px 13px; }
  .p-stat b { font-size: 1.25rem; }
  .p-sec-head h2 { font-size: 1.15rem; }
  .p-dhero-in { padding: 20px 16px; }
  .p-dhero h1 { font-size: 1.5rem; }
  .p-dfacts { gap: 8px; }
  .p-dfact { padding: 8px 13px; }
  .p-spec-head { padding: 15px 16px; gap: 11px; }
  .p-spec-learn, .p-spec-side { padding: 15px 16px; }
  .p-siblings { grid-template-columns: 1fr; }
  .p-footer { margin: 26px 12px 16px; padding: 22px 18px 16px; }
  .p-cta { padding: 28px 20px; }
  .p-cta h2 { font-size: 1.25rem; }
  .p-sl-arrow { width: 32px; height: 32px; font-size: .75rem; }
}
