/* ==========================================================================
   معهد صرح العلم | Sarah Elelem Institute
   نظام التصميم — الألوان مستخرجة من الشعار الرسمي
   ========================================================================== */

:root {
  /* الهوية البصرية */
  --navy-900: #0A2542;
  --navy-800: #0D2F52;
  --navy:     #103A62;
  --navy-600: #17497A;
  --navy-400: #3D6E9E;
  --navy-100: #E4ECF4;

  --gold-700: #9C8420;
  --gold-600: #B08E1F;
  --gold:     #C9A227;
  --gold-300: #E3CB7C;
  --gold-100: #FBF3DC;

  /* الأسطح والنصوص */
  --surface:      #FFFFFF;
  --surface-soft: #F4F7FA;
  --surface-alt:  #EDF2F7;
  --ink:          #12243A;
  --ink-soft:     #47586B;
  --ink-muted:    #6B7C8D;
  --line:         #DCE5ED;

  /* المقاييس */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 58, 98, .06), 0 2px 8px rgba(16, 58, 98, .05);
  --shadow:    0 4px 14px rgba(16, 58, 98, .08), 0 12px 32px rgba(16, 58, 98, .07);
  --shadow-lg: 0 18px 48px rgba(16, 58, 98, .16);
  --container: 1200px;
  --header-h: 84px;

  --font: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
}

/* ─── إعادة الضبط ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { margin: 0 0 .6rem; line-height: 1.35; font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 200;
  background: var(--navy); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── الترويسة ─────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.header__brand { display: flex; align-items: center; gap: .75rem; }
.header__logo-image { width: auto; height: 54px; }
.header__logo-copy { display: flex; flex-direction: column; line-height: 1.25; }
.header__logo-text { font-weight: 800; font-size: 1.22rem; color: var(--navy-900); }
.header__logo-sub { font-size: .78rem; color: var(--gold-600); font-weight: 700; letter-spacing: .02em; }

.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav__link {
  display: block; padding: .5rem .72rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .93rem; color: var(--ink-soft);
  transition: background .18s ease, color .18s ease;
}
.nav__link:hover { background: var(--navy-100); color: var(--navy); }
.nav__link.is-active { color: var(--navy); background: var(--navy-100); }

.header__menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--radius-sm); cursor: pointer;
  position: relative;
}
.header__menu-icon, .header__menu-icon::before, .header__menu-icon::after {
  position: absolute; inset-inline: 12px; height: 2px; background: var(--navy);
  border-radius: 2px; content: ""; transition: transform .22s ease, opacity .22s ease;
}
.header__menu-icon { top: 50%; transform: translateY(-50%); }
.header__menu-icon::before { top: -7px; }
.header__menu-icon::after  { top: 7px; }
.header__menu-toggle[aria-expanded="true"] .header__menu-icon { background: transparent; }
.header__menu-toggle[aria-expanded="true"] .header__menu-icon::before { transform: translateY(7px) rotate(45deg); }
.header__menu-toggle[aria-expanded="true"] .header__menu-icon::after  { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { border-top: 1px solid var(--line); background: var(--surface); }
.nav-mobile__list { list-style: none; padding: .5rem 1.2rem 1rem; }
.nav-mobile__link {
  display: block; padding: .8rem .5rem; font-weight: 700; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.nav-mobile__link.is-active { color: var(--navy); }

/* ─── الأزرار ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-800); color: #fff; box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-600); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.65); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); }
.btn--lg { padding: .9rem 1.9rem; font-size: 1.02rem; }
.btn--sm { padding: .42rem 1rem; font-size: .85rem; border-width: 1px; }
.btn svg { flex: none; width: 16px; height: 16px; }

/* ─── الأقسام ──────────────────────────────────────────────── */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--soft { background: var(--surface-soft); }

.section__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em;
  color: var(--gold-600); margin-bottom: .5rem;
}
.section__title { font-size: clamp(1.6rem, 3.1vw, 2.25rem); position: relative; padding-bottom: .7rem; }
.section__title::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 66px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--navy-400));
}
.section__lead { max-width: 74ch; color: var(--ink-soft); font-size: 1.04rem; margin-top: 1rem; }

/* ─── الواجهة الرئيسية ─────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #EAF1F8;
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(201, 162, 39, .26), transparent 62%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-600) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.4rem);
  align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: .4rem 1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; margin-bottom: 1.1rem;
}
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-300); }
.hero__title { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.05rem); line-height: 1.25; margin-bottom: 1rem; }
.hero__title em { font-style: normal; color: var(--gold-300); }
.hero__lead { color: #C5D8EA; font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 60ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2.2rem; }
.hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: .8rem; }
.hero-stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: .95rem 1rem;
}
.hero-stat strong { display: block; font-size: 1.65rem; font-weight: 800; color: var(--gold-300); line-height: 1.2; }
.hero-stat span { font-size: .84rem; color: #BBCFE2; }

.hero__visual { display: flex; justify-content: center; }
.hero__emblem {
  width: min(100%, 350px);
  filter: drop-shadow(0 26px 50px rgba(0,0,0,.42));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ─── الشبكات ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem; }
.mt-2 { margin-top: 1.6rem; }

/* ─── البطاقات ─────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy-400); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: .9rem;
  background: var(--navy-100); color: var(--navy);
}
.card__icon--gold { background: var(--gold-100); color: var(--gold-700); }
.card__title { font-size: 1.12rem; margin-bottom: .4rem; }
.card__text { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.program-card { display: flex; flex-direction: column; height: 100%; }
.program-card__dept {
  font-size: .76rem; font-weight: 800; color: var(--gold-600);
  letter-spacing: .04em; margin-bottom: .35rem;
}
.program-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: 1rem; }
.tag {
  background: var(--surface-alt); color: var(--navy); border: 1px solid var(--line);
  border-radius: 999px; padding: .22rem .75rem; font-size: .78rem; font-weight: 700;
}
.tag--gold { background: var(--gold-100); border-color: var(--gold-300); color: var(--gold-700); }

.dept-card { border-top: 4px solid var(--gold); }
.dept-card__list { list-style: none; margin-top: .8rem; display: grid; gap: .45rem; }
.dept-card__list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .94rem; color: var(--ink-soft); }
.dept-card__list li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: .62rem;
  border-radius: 50%; background: var(--navy-400);
}

/* ─── الرؤية والرسالة ─────────────────────────────────────── */
.vm-card--vision { border-top: 4px solid var(--navy); }
.vm-card--mission { border-top: 4px solid var(--gold); }
.vm-card__label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--gold-600); margin: 0 0 .25rem; }

/* ─── الخط الزمني ──────────────────────────────────────────── */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.milestone {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.milestone__year {
  display: inline-block; background: var(--navy); color: #fff;
  font-weight: 800; padding: .3rem 1rem; border-radius: 999px;
  font-size: .92rem; margin-bottom: .8rem;
}
.milestone--now .milestone__year { background: var(--gold); color: var(--navy-900); }
.milestone__title { font-size: 1.1rem; }
.milestone p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ─── القيم ────────────────────────────────────────────────── */
.values-grid { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.value-pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1.25rem; font-weight: 700; font-size: .92rem; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.value-pill::before { content: "\25C6"; color: var(--gold); margin-inline-end: .45rem; font-size: .7rem; }

/* ─── الهيكل التنظيمي ─────────────────────────────────────── */
.org { margin-top: 2rem; display: grid; gap: .2rem; }
.org__node {
  background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--navy);
  border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.org__node--top {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  color: #fff; border: none; text-align: center;
}
.org__node--top .org__label { color: #BFD2E4; }
.org__node--top .org__name { color: #fff; font-size: 1.25rem; }
.org__node--gold { border-inline-start-color: var(--gold); }
.org__label { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--gold-600); }
.org__name { font-weight: 800; color: var(--navy-900); font-size: 1.02rem; }
.org__desc { font-size: .88rem; color: var(--ink-muted); }
.org__children { list-style: none; margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.org__children li {
  background: var(--surface-alt); border-radius: var(--radius-sm);
  padding: .32rem .8rem; font-size: .86rem; color: var(--ink-soft); font-weight: 600;
}
.org__connector { height: 24px; width: 2px; background: var(--navy-400); margin-inline: auto; opacity: .5; }
.org__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; }

/* ─── الفروع ───────────────────────────────────────────────── */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.branch {
  display: flex; align-items: center; gap: .65rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; font-weight: 700; color: var(--navy-900); font-size: .94rem;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, border-color .18s ease;
}
.branch:hover { transform: translateY(-3px); border-color: var(--gold); }
.branch__pin { flex: none; color: var(--gold-600); }

/* ─── روابط سريعة ─────────────────────────────────────────── */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.quick-link {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; font-weight: 700; color: var(--navy-900);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.quick-link::after { content: "\2190"; color: var(--gold-600); font-weight: 800; transition: transform .18s ease; }
.quick-link:hover { transform: translateY(-3px); border-color: var(--navy-400); color: var(--navy); }
.quick-link:hover::after { transform: translateX(-4px); }

/* ─── شريط الدعوة ─────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.cta-band p { color: #BFD2E4; margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ─── النماذج ──────────────────────────────────────────────── */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .92rem; color: var(--navy-900); }
.field .req { color: #C0392B; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .96rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .9rem; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-400);
  box-shadow: 0 0 0 4px rgba(61, 110, 158, .16);
}
.field__hint { font-size: .82rem; color: var(--ink-muted); }
.form__note { font-size: .88rem; color: var(--ink-muted); }

.alert { border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .93rem; border: 1px solid; }
.alert--info { background: var(--navy-100); border-color: var(--navy-400); color: var(--navy-900); }
.alert--gold { background: var(--gold-100); border-color: var(--gold-300); color: var(--gold-700); }

/* ─── الجداول ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); }
thead th {
  background: var(--navy); color: #fff; font-weight: 700; font-size: .92rem;
  text-align: start; padding: .9rem 1rem; white-space: nowrap;
}
tbody td { padding: .85rem 1rem; border-top: 1px solid var(--line); font-size: .94rem; color: var(--ink-soft); }
tbody tr:nth-child(even) { background: var(--surface-soft); }
tbody td:first-child { font-weight: 700; color: var(--navy-900); }

/* ─── الأخبار ──────────────────────────────────────────────── */
.news-card { display: flex; flex-direction: column; }
.news-card__date { font-size: .82rem; font-weight: 700; color: var(--gold-600); margin-bottom: .4rem; }
.news-card__cat {
  display: inline-block; margin-top: 1rem; align-self: flex-start;
  background: var(--navy-100); color: var(--navy); border-radius: 999px;
  padding: .2rem .8rem; font-size: .78rem; font-weight: 700;
}

/* ─── الأسئلة الشائعة ─────────────────────────────────────── */
.faq { display: grid; gap: .7rem; margin-top: 1.6rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy-900);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-600); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); font-size: .94rem; }

/* ─── بطاقات التواصل ──────────────────────────────────────── */
.contact-card { display: flex; gap: .9rem; align-items: flex-start; }
.contact-card__icon {
  flex: none; width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--navy-100); color: var(--navy); display: grid; place-items: center;
}
.contact-card strong { display: block; color: var(--navy-900); font-size: .98rem; }
.contact-card a, .contact-card span { color: var(--ink-soft); font-size: .93rem; }
.contact-card .btn { margin-top: .7rem; color: var(--navy); white-space: nowrap; }
.contact-card .btn:hover { color: #fff; }

.footer__list a[target="_blank"]:not(:only-child) { display: inline-block; margin-top: .25rem; }

/* ─── ترويسة الصفحات الداخلية ─────────────────────────────── */
.page-hero {
  background: linear-gradient(150deg, var(--navy-900), var(--navy) 70%, var(--navy-600));
  color: #fff; padding: clamp(2.4rem, 5vw, 3.6rem) 0;
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.page-hero p { color: #BFD2E4; max-width: 70ch; margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; margin-bottom: .8rem; }
.breadcrumb li { color: #9FBAD4; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .4rem; color: #6E8FAF; }
.breadcrumb a { color: var(--gold-300); }
.breadcrumb a:hover { color: #fff; }

/* ─── التذييل ──────────────────────────────────────────────── */
.footer { background: var(--navy-900); color: #B9CCDF; padding: 3rem 0 1.4rem; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__logo { height: 76px; width: auto; margin-bottom: .9rem; }
.footer__name { display: block; color: #fff; font-size: 1.15rem; font-weight: 800; }
.footer__tagline { display: block; color: var(--gold-300); font-size: .85rem; font-weight: 700; margin-bottom: .7rem; }
.footer__text { font-size: .9rem; color: #9FB6CC; max-width: 40ch; }
.footer__heading { color: #fff; font-size: .98rem; font-weight: 800; margin-bottom: .8rem; }
.footer__list { list-style: none; display: grid; gap: .45rem; }
.footer__list a, .footer__list span { color: #B9CCDF; font-size: .9rem; }
.footer__list a:hover { color: var(--gold-300); }
.footer__label { color: #7E9BB8; font-size: .85rem; }
.footer__copy { text-align: center; padding-top: 1.3rem; font-size: .86rem; color: #83A0BC; margin: 0; }

/* ─── الحركة ───────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ─── الاستجابة ────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nav { display: none; }
  .header__menu-toggle { display: block; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__emblem { width: min(62%, 235px); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --header-h: 72px; }
  .header__logo-image { height: 44px; }
  .header__logo-text { font-size: 1.05rem; }
  .header__logo-sub { font-size: .7rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media print {
  .header, .footer, .hero__ctas, .cta-band, .skip-link { display: none !important; }
  body { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}

/* بوابة الطالب: زرّ ذهبي في القائمة */
.nav__link--portal { background: var(--gold); color: var(--navy-900); border-radius: 999px; margin-inline-start: .4rem; padding-inline: 1rem; }
.nav__link--portal:hover { background: var(--gold-600); color: #fff; }
.nav-mobile__link--portal { color: var(--gold-700); }
