:root {
  --indigo: #5d5b87;
  --indigo-2: #706da2;
  --purple: #8683b9;
  --magenta: #bc779d;
  --gold: #d3aa65;
  --gold-soft: #f9f1e2;
  --ink: #343350;
  --muted: #65637f;
  --bg: #ffffff;
  --tint: #f5f4fb;
  --line: #e6e4f0;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(93, 91, 135, .25);
  --font-head: "Cairo", "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", "Cairo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  text-align: right;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; color: var(--indigo); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.icon { flex: none; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 8px; background: var(--indigo); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 17px var(--font-head); cursor: pointer; text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--magenta), var(--purple)); color: #fff; box-shadow: 0 10px 24px -10px rgba(188, 119, 157, .6); }
.btn-ghost { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-ghost:hover { background: var(--purple); color: #fff; }
.btn-gold { background: var(--gold); color: var(--indigo); }

/* الرأس */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(93, 91, 135, .5); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--indigo); text-decoration: none !important; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font: 800 20px var(--font-head); }
.brand-text small { font-size: 13px; color: var(--muted); }
.brand-light { color: #fff; }
.brand-light small { color: rgba(255, 255, 255, .75); }
.nav-list { display: flex; gap: 6px; }
.nav-list a { display: block; padding: 8px 18px; border-radius: 999px; color: var(--ink); font: 700 16px var(--font-head); text-decoration: none; transition: background .2s, color .2s; }
.nav-list a:hover, .nav-list .current-menu-item > a { background: var(--tint); color: var(--magenta); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--indigo); border-radius: 2px; }

/* البطل */
.hero { background: radial-gradient(900px 500px at 85% -10%, #ecebf5 0%, transparent 60%), radial-gradient(700px 400px at 0% 100%, #f9edf2 0%, transparent 60%), #fff; padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: #765d29; border: 1px solid #e7d8b2; padding: 6px 16px; border-radius: 999px; font: 700 14px var(--font-head); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-bottom: 18px; }
.hero h1 span { background: linear-gradient(90deg, var(--magenta), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: .62em; display: inline-block; margin-top: 6px; }
.lead { font-size: 20px; color: var(--muted); max-width: 52ch; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* الأرقام */

/* الأقسام */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); position: relative; padding-bottom: 14px; }
.section-head h2::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; margin: auto; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--magenta)); }
.section-head p { color: var(--muted); }

/* البطاقات */
.cards { display: grid; gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 21px; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 16.5px; }
.card-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, #edecf6, #f8ecf1); color: var(--purple); margin-bottom: 14px; flex: none; }
.card-icon.alt { background: var(--gold-soft); color: #957230; margin-bottom: 0; }
.card-spec { padding: 34px 30px; border-top: 4px solid var(--magenta); }
.card-spec:nth-child(2) { border-top-color: var(--purple); }
.systems { margin-top: 22px; }
.card-system { display: flex; gap: 18px; align-items: center; }

.offices { margin-top: 48px; background: var(--tint); border-radius: var(--radius); padding: 30px; }
.offices h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.offices ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.offices li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-weight: 500; }
.offices li span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--magenta), var(--purple)); color: #fff; font: 700 13px var(--font-head); flex: none; }

.accreditation { display: flex; gap: 32px; align-items: center; justify-content: center; max-width: 880px; }
.accreditation img { width: 130px; height: 130px; border-radius: 50%; box-shadow: var(--shadow); flex: none; }
.accreditation p { color: var(--muted); margin: 0; }

.cta { background: linear-gradient(135deg, #706da2, #be85a6); color: #fff; padding: 56px 0; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; opacity: .9; }

/* الصفحات الداخلية */
.page-hero { background: linear-gradient(135deg, #706da2, #918cbc); color: #fff; padding: 56px 0; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--gold), var(--magenta)); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.page-hero p { margin: 0 auto; max-width: 56ch; opacity: .9; }
.empty { text-align: center; background: var(--tint); border-radius: var(--radius); padding: 48px 24px; margin-bottom: 32px; }
.empty .card-icon { margin-bottom: 10px; }
.empty p { color: var(--muted); }
.kinds { margin-top: 8px; }
.prose { font-size: 18px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: 1em; }
.prose ul { list-style: disc; }
.single-media { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.pagination { text-align: center; margin-top: 32px; }
.pagination .page-numbers { display: inline-block; padding: 6px 14px; margin: 0 3px; border-radius: 10px; border: 1px solid var(--line); }
.pagination .current { background: var(--purple); color: #fff; border-color: var(--purple); }

/* النشاطات */
.activity { padding: 0; overflow: hidden; }
.activity-media { display: block; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #ecebf5, #f8ecf1); }
.activity-media img { width: 100%; height: 100%; object-fit: cover; }
.activity-ph { display: grid; place-items: center; height: 100%; color: var(--purple); opacity: .6; }
.activity-body { padding: 20px 22px 24px; }
.activity-body time { font-size: 14px; color: var(--magenta); font-weight: 700; }
.activity-body h3 { margin: 4px 0 6px; font-size: 20px; }
.activity-body h3 a { color: var(--indigo); }

/* اتصل بنا */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.info-list { display: grid; gap: 16px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.info-list .card-icon { width: 52px; height: 52px; margin: 0; }
.info-list h3 { font-size: 18px; margin-bottom: 2px; }
.info-list p { margin: 0; color: var(--muted); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-form h2 { margin: 0; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: 16px; color: var(--indigo); }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 17px var(--font-body); padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(134, 131, 185, .15); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; inset-inline-start: -9999px; }
.notice { margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.notice-success { background: #eaf6ef; color: #205c3b; }
.notice-error { background: #fbeef1; color: #8f2944; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* التذييل */
.site-footer { background: #686599; color: #f1edfc; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
.site-footer h3 { color: #fff; font-size: 19px; }
.site-footer a { color: #f1edfc; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { font-size: 16px; margin-top: 14px; }
.site-footer .motto { color: var(--gold); font-weight: 700; }
.footer-list li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 16px; }
.footer-list .icon { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: 14px; text-align: center; }

/* حركة الظهور */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* التجاوب */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  
  .cards.three, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; padding: 12px 16px 18px; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 14px 16px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .cards.two, .cards.three, .cards.four, .offices ul, .two-col { grid-template-columns: 1fr; }
  .accreditation { flex-direction: column; text-align: center; }
  .card-system { flex-direction: column; align-items: flex-start; }
  .brand-text small { display: none; }
}

/* رسم الهيدر المتحرك — هادئ وخفيف */
@keyframes breathe { 50% { transform: scale(1.04); } }
@keyframes grow { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@keyframes draw { 0% { stroke-dashoffset: 190; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -190; } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }
@keyframes type { 0%, 10% { transform: scaleX(.15); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(.15); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-9px); } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes donut { 0%, 100% { stroke-dasharray: 90 208; } 50% { stroke-dasharray: 130 208; } }
@keyframes twinkle { 50% { transform: scale(.4); opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
}

/* الرؤية والرسالة والأهداف */
.vision { display: flex; align-items: center; gap: 22px; background: linear-gradient(135deg, #f2f1f8, #f9f1f5); border: 1px solid var(--line); border-radius: 24px; padding: 28px 34px; margin-bottom: 44px; }
.vision-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: #fff; color: var(--purple); box-shadow: var(--shadow); flex: none; }
.vision h3 { font-size: 16px; color: var(--magenta); margin: 0; letter-spacing: .02em; }
.vision p { margin: 0; font: 700 clamp(18px, 2.2vw, 22px)/1.6 var(--font-head); color: var(--indigo); }
.pillar { margin-bottom: 44px; }
.pillar:last-child { margin-bottom: 0; }
.pillar-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pillar-head h3 { margin: 0; font-size: 26px; }
.pillar-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--purple); color: #fff; }
.pillar-goals .pillar-icon { background: var(--magenta); }
.pillar-line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); border-radius: 2px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; border-top: 3px solid var(--purple); transition: transform .25s ease, box-shadow .25s ease; }
.pillar-goals .tile { border-top-color: var(--magenta); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #edecf6; color: var(--purple); margin-bottom: 12px; }
.pillar-goals .tile-icon { background: #f8ecf1; color: var(--magenta); }
.tile h4 { font: 700 18px/1.4 var(--font-head); color: var(--indigo); margin: 0 0 6px; }
.tile p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } .vision { flex-direction: column; align-items: flex-start; padding: 24px; } }

/* من نحن */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.eyebrow { display: inline-block; padding: 4px 16px; border-radius: 999px; background: #edecf6; color: var(--purple); font: 700 14px var(--font-head); margin-bottom: 14px; }
.about-copy h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.about-copy > p { color: var(--muted); font-size: 18px; max-width: 58ch; }
.about-points { display: grid; gap: 10px; margin-top: 20px; }
.about-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.about-points .icon { color: #fff; background: var(--magenta); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.about-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.about-visual::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; background: linear-gradient(135deg, #edecf6, #f8ecf1); animation: breathe-about 10s ease-in-out infinite; }

.chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 700 13.5px var(--font-head); color: var(--indigo); box-shadow: 0 8px 20px -12px rgba(93, 91, 135, .45); }
.chip .icon { color: var(--magenta); }
.chip-a { top: 18px; inset-inline-end: 6px; }
.chip-b { bottom: 52px; inset-inline-start: 0; }
.chip-c { bottom: 6px; inset-inline-end: 14px; }
@keyframes breathe-about { 50% { transform: scale(1.05) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .about-visual::before { animation: none; } }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 28px; } .about-visual { min-height: 300px; } }

/* صورة «من نحن» الواقعية + حركة هادئة */
.about-visual { min-height: 380px; }
.about-photo { position: relative; margin: 0; width: min(420px, 100%); aspect-ratio: 4 / 4.4; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(93, 91, 135, .5); border: 6px solid #fff; background: #edecf6; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; animation: kenburns 18s ease-in-out infinite alternate; }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(134, 131, 185, .12), rgba(188, 119, 157, .10)); pointer-events: none; }
.about-photo .glow { position: absolute; inset: 8% 40% 40% 0; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent); animation: glow 5s ease-in-out infinite; z-index: 1; }
.about-photo .scan { position: absolute; inset-inline: 0; top: 0; height: 36%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .22), transparent); animation: scan 7s ease-in-out infinite; z-index: 1; }
.mini { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 26px -14px rgba(93, 91, 135, .55); z-index: 2; animation: bob 7s ease-in-out infinite; }
.mini-chart { top: 40px; inset-inline-start: -6px; display: flex; align-items: flex-end; gap: 6px; padding: 12px 14px; height: 70px; }
.mini-bar { width: 10px; border-radius: 4px; background: linear-gradient(180deg, #ce95b4, #918cbc); transform-origin: bottom; animation: grow 5s ease-in-out infinite; }
.mini-bar.b1 { height: 22px; } .mini-bar.b2 { height: 34px; animation-delay: .3s; } .mini-bar.b3 { height: 28px; animation-delay: .6s; } .mini-bar.b4 { height: 44px; animation-delay: .9s; }
.about-visual::before { display: none; }
.chip-a { top: 14px; inset-inline-end: -4px; z-index: 2; } .chip-b { bottom: 120px; inset-inline-start: -8px; z-index: 2; } .chip-c { bottom: -10px; inset-inline-end: 24px; z-index: 2; }
@keyframes kenburns { to { transform: scale(1.08) translateX(-2%); } }
@keyframes glow { 50% { opacity: .35; } }
@keyframes scan { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(300%); } }
@media (prefers-reduced-motion: reduce) { .about-photo *, .mini, .mini-bar { animation: none !important; } .about-photo img { animation: none; } }
@media (max-width: 600px) { .about-photo { width: 88%; } .mini-chart { inset-inline-start: 0; } .chip-a { inset-inline-end: 0; } .chip-b { inset-inline-start: 0; } }
/* صفحة اللوائح */
.reg-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
.reg-facts div { background: linear-gradient(135deg, #f2f1f8, #f9f1f5); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; text-align: center; }
.reg-facts strong { display: block; font: 800 26px var(--font-head); color: var(--indigo); line-height: 1.3; }
.reg-facts span { font-size: 14.5px; color: var(--muted); }
.reg-layout { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; }
.reg-toc { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 12px; }
.reg-toc-title { font: 800 17px var(--font-head); color: var(--indigo); margin: 0 8px 8px; }
.reg-toc ol { list-style: none; margin: 0; padding: 0; }
.reg-toc a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; color: var(--ink); font-size: 15px; line-height: 1.5; text-decoration: none; }
.reg-toc a span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #edecf6; color: var(--purple); font: 700 12px var(--font-head); }
.reg-toc a:hover { background: var(--tint); }
.reg-toc a.active { background: #edecf6; color: var(--indigo); font-weight: 700; }
.reg-toc a.active span { background: var(--purple); color: #fff; }
.reg-sec { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; margin-bottom: 20px; scroll-margin-top: 96px; }
.reg-sec header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.reg-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--magenta), var(--purple)); color: #fff; font: 700 15px var(--font-head); flex: none; }
.reg-sec h2 { margin: 0; font-size: 22px; flex: 1; }
.reg-ic { color: var(--purple); opacity: .7; }
.reg-content { font-size: 17px; line-height: 1.95; }
.reg-content p { margin: 0 0 .9em; color: #42415d; }
.reg-content h3 { font-size: 18px; margin: 1.2em 0 .4em; color: var(--indigo); }
.reg-content .ord { display: inline-block; background: var(--gold-soft); color: #765d29; border-radius: 8px; padding: 0 10px; margin-inline-end: 6px; font-size: 15px; }
.dots { display: grid; gap: 8px; margin: 0 0 1em; }
.dots li { position: relative; padding-inline-start: 22px; color: #42415d; }
.dots li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .85em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.steps { counter-reset: s; display: grid; gap: 10px; margin: 0 0 1em; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 38px; color: #42415d; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: .3em; width: 26px; height: 26px; border-radius: 8px; background: #edecf6; color: var(--purple); display: grid; place-items: center; font: 700 13px var(--font-head); }
.eq { display: block; margin-top: 4px; background: var(--tint); border: 1px dashed #d2cfe6; border-radius: 10px; padding: 6px 12px; font: 600 15px/1.7 var(--font-head); color: var(--indigo); text-align: left; overflow-x: auto; }
.callout { background: linear-gradient(135deg, #f2f1f8, #f9f1f5); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0 0 1em; }
.callout > strong { display: block; margin-bottom: 8px; color: var(--indigo); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split div { background: #fff; border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); }
.split b { font: 800 26px var(--font-head); color: var(--magenta); flex: none; }
.split span { font-size: 15px; line-height: 1.6; color: var(--muted); }
.tbl-wrap { overflow-x: auto; margin: 0 0 1.2em; border-radius: 14px; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 240px; }
.tbl th, .tbl td { padding: 9px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--purple); color: #fff; font: 700 15px var(--font-head); }
.tbl tbody tr:nth-child(even) { background: var(--tint); }
.tbl tbody th { font: 800 17px var(--font-head); color: var(--indigo); }
.tbl caption { caption-side: top; padding: 8px; font: 700 15px var(--font-head); color: var(--magenta); background: #fff; }
.tbl-sm { font-size: 14.5px; } .tbl-sm th, .tbl-sm td { padding: 5px 10px; }
.conv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 1em; }
.conv-grid .tbl-wrap { margin: 0; }
.viol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.viol { background: var(--tint); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.viol h4 { margin: 0 0 8px; font: 700 17px var(--font-head); color: var(--magenta); }
.viol p { font-size: 16px; line-height: 1.85; }
.ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ladder li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; font: 700 16px var(--font-head); color: var(--indigo); }
.ladder li:nth-child(1) { border-top: 4px solid #e2ce98; } .ladder li:nth-child(2) { border-top: 4px solid #d3aa65; } .ladder li:nth-child(3) { border-top: 4px solid #be85a6; } .ladder li:nth-child(4) { border-top: 4px solid var(--purple); }
.ladder span { display: block; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%; background: #edecf6; color: var(--purple); line-height: 30px; font-size: 14px; }
.reg-note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 960px) {
  .reg-layout { grid-template-columns: 1fr; }
  .reg-toc { position: static; max-height: none; }
  .reg-toc ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .reg-toc li { flex: none; }
  .reg-toc a { border: 1px solid var(--line); white-space: nowrap; }
  .reg-facts, .conv-grid { grid-template-columns: repeat(2, 1fr); }
  .viol-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .reg-sec { padding: 20px 16px; } .split, .ladder { grid-template-columns: 1fr; } .reg-sec h2 { font-size: 19px; } }

.reg-layout > * { min-width: 0; }
.reg-toc ol { max-width: 100%; }

/* محتوى إضافي للرئيسية */

.section-band { background: linear-gradient(135deg, #706da2, #918cbc 60%, #be85a6); color: #fff; position: relative; overflow: hidden; }
.section-band::before, .section-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); animation: drift 14s ease-in-out infinite alternate; }
.section-band::before { width: 320px; height: 320px; top: -120px; inset-inline-start: -80px; }
.section-band::after { width: 240px; height: 240px; bottom: -90px; inset-inline-end: -60px; animation-delay: -6s; }
.section-band .container { position: relative; z-index: 1; }
.section-head-light h2 { color: #fff; } .section-head-light p { color: rgba(255, 255, 255, .92); }
.section-head-light h2::after { background: linear-gradient(90deg, #fff, var(--gold)); }
@keyframes drift { to { transform: translate(30px, 24px) scale(1.08); } }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); border-radius: 20px; padding: 26px 20px; text-align: center; backdrop-filter: blur(4px); transition: transform .25s ease, background .25s ease; }
.value:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .2); }
.value h3 { color: #fff; font-size: 21px; margin: 12px 0 6px; }
.value p { margin: 0; color: rgba(255, 255, 255, .92); font-size: 16px; }
.value-ring { position: relative; display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--purple); }
.value-ring::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .7); animation: rot 22s linear infinite; }

.card-why { position: relative; overflow: hidden; }
.card-why::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--magenta)); transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.card-why:hover::before { transform: scaleX(1); }

.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0 0 32px; counter-reset: j; }
.journey::before { content: ""; position: absolute; top: 27px; inset-inline: 10%; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, #d2cfe6 0 10px, transparent 10px 18px); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step-dot { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--magenta), var(--purple)); color: #fff; font: 800 20px var(--font-head); box-shadow: 0 0 0 6px #fff, 0 10px 22px -10px rgba(134, 131, 185, .8); animation: ring 3.2s ease-in-out infinite; }
.step:nth-child(2) .step-dot { animation-delay: .4s; } .step:nth-child(3) .step-dot { animation-delay: .8s; } .step:nth-child(4) .step-dot { animation-delay: 1.2s; } .step:nth-child(5) .step-dot { animation-delay: 1.6s; }
@keyframes ring { 50% { box-shadow: 0 0 0 10px rgba(134, 131, 185, .16), 0 10px 22px -10px rgba(134, 131, 185, .8); } }
.step h3 { font-size: 18px; margin: 14px 0 6px; }
.step p { font-size: 15.5px; line-height: 1.75; color: var(--muted); margin: 0; }

.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .25s ease; }
.faq-item[open] { box-shadow: var(--shadow); border-color: #d2cfe6; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font: 700 17px var(--font-head); color: var(--indigo); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edecf6; color: var(--purple); font-size: 20px; line-height: 1; transition: transform .25s ease, background .25s ease; }
.faq-item[open] summary::after { content: "−"; background: var(--purple); color: #fff; transform: rotate(180deg); }
.faq-item div { padding: 0 20px 18px; animation: faq-in .3s ease; }
.faq-item p { margin: 0; color: var(--muted); font-size: 16.5px; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

.js-reveal .reveal { transition-delay: var(--d, 0ms); }

@media (max-width: 960px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: 1fr; gap: 22px; }
  .journey::before { top: 0; bottom: 0; inset-inline: auto; inset-inline-start: 27px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, #d2cfe6 0 10px, transparent 10px 18px); }
  .step { text-align: start; padding-inline-start: 76px; min-height: 56px; }
  .step-dot { position: absolute; inset-inline-start: 0; top: 0; }
  .step h3 { margin-top: 0; }
}
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .section-band::before, .section-band::after, .value-ring::after, .step-dot { animation: none; }
}

/* أنظمة الدراسة: نمط مختلف عن بطاقات التخصصات */
.systems-band { position: relative; margin-top: 40px; padding: 34px 28px 28px; border-radius: 28px; background: linear-gradient(135deg, #706da2, #918cbc 55%, #be85a6); color: #fff; overflow: hidden; }
.systems-band::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .09); top: -110px; inset-inline-end: -60px; animation: drift 14s ease-in-out infinite alternate; }
.systems-label { position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%); background: var(--gold); color: #4e3d0d; padding: 4px 22px; border-radius: 0 0 14px 14px; font: 800 14px var(--font-head); white-space: nowrap; }
html[dir="rtl"] .systems-label { transform: translateX(50%); }
.systems-grid { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 8px; }
.sys { text-align: center; padding: 8px 18px; }
.sys-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--purple); margin-bottom: 10px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .22); }
.sys h3 { color: #fff; font-size: 23px; margin-bottom: 6px; }
.sys p { color: rgba(255, 255, 255, .94); margin: 0 auto; max-width: 40ch; font-size: 16.5px; }
.systems-or { align-self: center; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 2px dashed rgba(255, 255, 255, .8); font: 800 15px var(--font-head); }
@media (max-width: 760px) { .systems-grid { grid-template-columns: 1fr; } .systems-or { justify-self: center; } .systems-band { padding-top: 40px; } }
@media (prefers-reduced-motion: reduce) { .systems-band::before { animation: none; } }

.viol:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* بحوث التخرج */
.research-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.5px); background-size: 26px 26px; animation: dots 30s linear infinite; opacity: .6; }
.research-hero .container { position: relative; }
@keyframes dots { to { background-position: 260px 130px; } }
.rs-lead { text-align: center; }
.rs-lead h2 { font-size: clamp(26px, 3.2vw, 34px); }
.rs-lead p { color: var(--muted); font-size: 18px; max-width: 64ch; margin-inline: auto; }
.rs-intro { padding-bottom: 40px; }

.dossier { display: grid; grid-template-columns: 380px 1fr; gap: 34px; align-items: start; margin-bottom: 46px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 18px 44px -28px rgba(93, 91, 135, .5); }
.paper { position: sticky; top: 100px; background: #fffdf8; border: 1px solid #e5e0d3; border-radius: 6px; padding: 26px 24px 22px; text-align: center; box-shadow: 0 14px 28px -16px rgba(54, 47, 26, .45), 0 2px 0 #ede8db; transform: rotate(-.8deg); transition: transform .35s ease, box-shadow .35s ease; }
.paper::before { content: ""; position: absolute; inset: 8px; border: 1.5px double #d3ccb4; border-radius: 3px; pointer-events: none; }
.dossier:hover .paper { transform: rotate(0) translateY(-4px); box-shadow: 0 22px 36px -18px rgba(54, 47, 26, .5), 0 2px 0 #ede8db; }
.paper > * { position: relative; }
.paper-top { display: grid; gap: 0; font: 700 13.5px/1.7 "Amiri", serif; color: #575244; }
.paper img { margin: 10px auto 6px; width: 64px; height: auto; }
.paper-inst { font: 700 16px/1.6 "Amiri", serif; color: #3c392f; margin: 0; }
.paper-dept { font: 400 14px "Amiri", serif; color: #676254; margin: 0; }
.paper-rule { display: block; width: 70px; height: 2px; margin: 12px auto; background: linear-gradient(90deg, transparent, #bfb389, transparent); }
.paper-label { font: 400 13.5px "Amiri", serif; color: #676254; margin: 0 0 4px; }
.paper h3 { font: 700 21px/1.55 "Amiri", serif; color: #312e46; margin: 4px 0 8px; }
.paper-sub { font: 400 13.5px/1.7 "Amiri", serif; color: #575244; margin: 0 0 12px; }
.paper-names { margin: 10px 0; padding-top: 10px; border-top: 1px dashed #d3ccb4; }
.paper-names b, .paper-sup b { display: block; font: 700 13.5px "Amiri", serif; color: #3c392f; margin-bottom: 4px; }
.paper-names ul { display: grid; gap: 1px; }
.paper-names li { font: 400 14px/1.6 "Amiri", serif; color: #3c392f; }
.paper-sup { margin-top: 8px; font: 700 15px "Amiri", serif; color: #312e46; }
.paper-sup span { display: block; }
.paper-sem { margin: 10px 0 0; font: 400 13.5px "Amiri", serif; color: #676254; }

.dossier-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.dossier-no { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: linear-gradient(135deg, var(--magenta), var(--purple)); color: #fff; font: 800 24px var(--font-head); box-shadow: 0 10px 20px -10px rgba(134, 131, 185, .9); }
.dossier-field { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; background: #edecf6; color: var(--purple); font: 700 13.5px var(--font-head); }
.dossier-head h3 { margin: 6px 0 0; font: 700 24px/1.5 "Amiri", serif; color: var(--indigo); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.facts li { background: var(--tint); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.facts small { display: block; color: var(--muted); font-size: 12.5px; }
.facts b { font: 700 15px/1.5 var(--font-head); color: var(--indigo); }

.tab-list { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs:not(.tabs-on) .tab-list { display: none; }
.tab-list button { flex: none; border: 0; background: none; padding: 10px 18px; font: 700 15.5px var(--font-head); color: var(--muted); cursor: pointer; position: relative; border-radius: 12px 12px 0 0; transition: color .2s, background .2s; }
.tab-list button:hover { background: var(--tint); }
.tab-list button[aria-selected="true"] { color: var(--indigo); }
.tab-list button[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: -2px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--magenta)); animation: tabline .3s ease; }
@keyframes tabline { from { transform: scaleX(0); } }
.tabs-on .tab-panels { display: grid; }
.tabs-on .tab-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .35s ease, transform .35s ease, visibility 0s .35s; }
.tabs-on .tab-panel.active { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .35s ease, transform .35s ease; }
.tabs:not(.tabs-on) .tab-panel { margin-bottom: 18px; }
.tab-title { margin: 0 0 8px; font: 700 17px var(--font-head); color: var(--magenta); }
.tab-panel p { color: #42415d; font-size: 17px; line-height: 1.95; }
.parts { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.parts li { background: var(--tint); border-inline-start: 4px solid var(--purple); border-radius: 12px; padding: 10px 14px; }
.parts b { display: block; color: var(--indigo); font: 700 15.5px var(--font-head); }
.parts span { color: var(--muted); font-size: 16px; line-height: 1.8; }
.numlist { counter-reset: n; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.numlist li { counter-increment: n; position: relative; padding-inline-start: 44px; color: #42415d; font-size: 16.5px; line-height: 1.9; }
.numlist li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: 2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #edecf6; color: var(--purple); font: 700 14px var(--font-head); }
.numlist-gold li::before { background: var(--gold-soft); color: #765d29; }

.pride { display: flex; gap: 22px; align-items: center; background: linear-gradient(135deg, #f2f1f8, #f9f1f5); border: 1px solid var(--line); border-radius: 26px; padding: 30px 32px; }
.pride-icon { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--purple); box-shadow: 0 0 0 9px rgba(255, 255, 255, .6); animation: bob 6s ease-in-out infinite; }
.pride h2 { font-size: 26px; margin-bottom: 8px; }
.pride p { color: var(--muted); margin: 0 0 .6em; }

@media (max-width: 1000px) { .dossier { grid-template-columns: 1fr; } .paper { position: relative; top: auto; max-width: 420px; margin-inline: auto; } }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .dossier { padding: 18px; } .dossier-head h3 { font-size: 21px; } .pride { flex-direction: column; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .research-hero::before, .pride-icon, .tab-list button::after { animation: none; } .tabs-on .tab-panel { transition: none; } .paper { transition: none; } }



/* ألوان هادئة مع الحفاظ على وضوح النص الأبيض (تباين ≥ 4.5) */
:root { --purple-d: #6f6ca3; --magenta-d: #a1648c; }
.btn-primary, .reg-num, .step-dot, .dossier-no { background: linear-gradient(135deg, var(--magenta-d), var(--purple-d)); }
.pillar-icon, .tbl thead th { background: var(--purple-d); }
.pillar-goals .pillar-icon, .about-points .icon { background: var(--magenta-d); }
.page-hero { background: linear-gradient(135deg, #65629a, #7571a3); }
.cta { background: linear-gradient(135deg, #65629a, #7571a3 55%, #a1648c); }
.section-band { background: linear-gradient(135deg, #65629a, #7571a3 55%, #85689a); }
.systems-band { background: linear-gradient(135deg, #65629a, #7571a3 55%, #85689a); }
.site-footer { background: #5f5c91; }

/* تمييز «اتصل بنا» في القائمة */
.nav-list .menu-cta a { background: linear-gradient(135deg, var(--magenta-d), var(--purple-d)); color: #fff; box-shadow: 0 8px 18px -10px rgba(161, 100, 140, .8); }
.nav-list .menu-cta a:hover, .nav-list .menu-cta.current-menu-item > a { background: linear-gradient(135deg, var(--magenta-d), var(--purple-d)); color: #fff; filter: brightness(1.06); }
@media (max-width: 960px) { .nav-list .menu-cta a { text-align: center; margin-top: 6px; } }

/* هيدر الصفحة الرئيسية: خلية الصور */
.hero { overflow: hidden; padding: 56px 0 72px; }
.hero-art { display: block; position: relative; }
.hive { position: relative; height: 560px; width: min(580px, 100%); margin-inline: auto; animation: bob 9s ease-in-out infinite; }
.hex { --w: 170px; position: absolute; width: var(--w); height: calc(var(--w) * .866); left: calc(50% + var(--x) * var(--w) - var(--w) / 2); top: calc(50% + var(--y) * var(--w) * .866 - var(--w) * .433); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: #fff; animation: hive-pulse 8s ease-in-out infinite; }
.hex .in { position: absolute; inset: 5px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); overflow: hidden; background: #e9e7f4; }
.hex img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: hive-swap 9s infinite; }
.hex img:first-child { opacity: 1; animation: none; }
.hex img.b { animation-delay: var(--d); }
.hex::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(111, 108, 163, .12), rgba(188, 119, 157, .05)); pointer-events: none; }
@keyframes hive-swap { 0%, 8% { opacity: 0; } 18%, 48% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes hive-pulse { 50% { transform: scale(1.045); } }
@media (max-width: 960px) { .hero { padding: 28px 0 56px; } .hero-grid { grid-template-columns: 1fr; gap: 16px; } .hero-art { order: -1; } .hive { height: 400px; } .hex { --w: 118px; } }
@media (prefers-reduced-motion: reduce) { .hive, .hex, .hex img { animation: none !important; } .hex img.b { display: none; } }

/* خلفية الهيدر التجريدية: خطوط ودوائر وألوان متحركة بهدوء */
.hero { position: relative; isolation: isolate; }
.hero-grid { position: relative; z-index: 1; }
.ab { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ab-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.ab-blob.b1 { width: 520px; height: 520px; left: -140px; top: -160px; background: radial-gradient(circle, #cfcdea 0%, transparent 70%); animation: ab-drift 22s ease-in-out infinite alternate; }
.ab-blob.b2 { width: 560px; height: 560px; right: -160px; bottom: -220px; background: radial-gradient(circle, #f1d3e1 0%, transparent 70%); animation: ab-drift 26s ease-in-out infinite alternate-reverse; }
.ab-blob.b3 { width: 420px; height: 420px; left: 42%; top: -200px; background: radial-gradient(circle, #f5e6c4 0%, transparent 70%); opacity: .55; animation: ab-drift 30s ease-in-out infinite alternate; }
.ab-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-svg * { transform-box: fill-box; transform-origin: center; }
.ab-rings.r1 { animation: ab-breathe 14s ease-in-out infinite alternate; }
.ab-rings.r2 { animation: ab-breathe 18s ease-in-out infinite alternate-reverse; }
.ab-wave.w1 { animation: ab-sway 20s ease-in-out infinite alternate; }
.ab-wave.w2 { animation: ab-dash 40s linear infinite, ab-sway 26s ease-in-out infinite alternate-reverse; }
.ab-wave.w3 { animation: ab-sway 24s ease-in-out infinite alternate-reverse; }
.ab-sq { animation: ab-turn 50s linear infinite; }
.ab-arc { animation: ab-breathe 16s ease-in-out infinite alternate; }
.ab-dots circle { animation: ab-float 8s ease-in-out infinite alternate; }
.ab-dots .d2 { animation-delay: -2s; animation-duration: 10s; } .ab-dots .d3 { animation-delay: -4s; } .ab-dots .d4 { animation-delay: -1s; animation-duration: 9s; } .ab-dots .d5 { animation-delay: -5s; animation-duration: 11s; }
.ab-plus { animation: ab-turn 36s linear infinite; }
.ab-plus.p2 { animation-direction: reverse; }
@keyframes ab-drift { to { transform: translate(60px, 40px) scale(1.12); } }
@keyframes ab-breathe { to { transform: scale(1.06); } }
@keyframes ab-sway { to { transform: translateX(34px) translateY(-10px); } }
@keyframes ab-dash { to { stroke-dashoffset: -240; } }
@keyframes ab-turn { to { transform: rotate(360deg); } }
@keyframes ab-float { to { transform: translateY(-16px); } }
@media (max-width: 960px) { .ab-blob { opacity: .4; } .ab-blob.b1 { width: 340px; height: 340px; } .ab-blob.b2 { width: 360px; height: 360px; } .ab-svg { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .ab *, .ab { animation: none !important; } }

/* خطوط التجريد أخف + نهاية واضحة للهيدر */
.ab-svg { opacity: .55; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; z-index: 2; background: linear-gradient(90deg, var(--gold), var(--magenta), var(--purple)); opacity: .75; }
@media (max-width: 960px) { .ab-svg { opacity: .5; } }

/* مقدمة بحوث التخرج مع صورة الخريجين */
.rs-intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.rs-intro .rs-lead { text-align: start; }
.rs-intro .rs-lead p { margin-inline: 0; }
.rs-photo { margin: 0; position: relative; border-radius: 32px 130px 32px 32px; overflow: hidden; border: 7px solid #fff; box-shadow: 0 30px 50px -30px rgba(93, 91, 135, .7); aspect-ratio: 4 / 3.3; background: #e9e7f4; }
.rs-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.rs-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(111, 108, 163, .10), rgba(188, 119, 157, .05)); pointer-events: none; }
@media (max-width: 960px) { .rs-intro-grid { grid-template-columns: 1fr; gap: 24px; } .rs-photo { order: -1; border-radius: 24px 90px 24px 24px; } }

/* زر واتساب العائم (أسفل اليسار في كل الصفحات) */
.wa-fab { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 26px -10px rgba(37, 211, 102, .75), 0 4px 10px rgba(0, 0, 0, .12); transition: transform .25s ease, box-shadow .25s ease; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .55); animation: wa-ring 2.8s ease-out infinite; }
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 16px 30px -10px rgba(37, 211, 102, .85), 0 4px 10px rgba(0, 0, 0, .15); }
.wa-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@keyframes wa-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
@media (max-width: 600px) { .wa-fab { left: 14px; bottom: 14px; width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; display: none; } .wa-fab { transition: none; } }
