/* ═══════════════════════════════════════════════════════════
   صوت الطالب | كلية الفنون — College of Arts
   نظام التصميم: ورق دافئ، حبر عميق، وثلاثة ألوان للأقسام.
   ═══════════════════════════════════════════════════════════ */

/* ── الرموز اللونية (الوضع الفاتح) ── */
:root {
  --paper: #f2f5fb;
  --paper-2: #e3e9f5;
  --surface: #ffffff;
  --ink: #0a1630;
  --ink-2: #2a3a5a;
  --ink-3: #56668a;
  --line: #d2dbec;
  --line-strong: #98a8c8;
  --accent: #1a4fd6;
  --accent-hover: #123ca8;
  --accent-ink: #ffffff;
  --accent-soft: #e0e9fd;
  --danger: #b4232f;
  --success: #1f6b4a;

  --d-design: #1a4fd6;
  --d-visual: #0f86c9;
  --d-performing: #5a46d8;

  --header-bg: rgb(242 245 251 / 0.82);
  --shadow: 0 1px 2px rgb(10 22 48 / 0.06), 0 16px 40px -14px rgb(16 46 120 / 0.28);
  --grain-opacity: 0.22;

  --font-display: "Reem Kufi", "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Cormorant Garamond", "Garamond", Georgia, serif;

  --radius: 2px;
  --radius-lg: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

/* ── الوضع الداكن ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #040b1c;
    --paper-2: #0a1531;
    --surface: #0b1838;
    --ink: #e9f0ff;
    --ink-2: #b8c6e4;
    --ink-3: #8a9cc4;
    --line: #18284d;
    --line-strong: #31477a;
    --accent: #6f9cff;
    --accent-hover: #9bbcff;
    --accent-ink: #040b1c;
    --accent-soft: #10224f;
    --danger: #ff9aa5;
    --success: #8fe0b8;
    --d-design: #6f9cff;
    --d-visual: #5fd0ff;
    --d-performing: #a493ff;
    --header-bg: rgb(4 11 28 / 0.8);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 18px 48px -18px rgb(0 20 80 / 0.75);
    --grain-opacity: 0.12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #040b1c;
  --paper-2: #0a1531;
  --surface: #0b1838;
  --ink: #e9f0ff;
  --ink-2: #b8c6e4;
  --ink-3: #8a9cc4;
  --line: #18284d;
  --line-strong: #31477a;
  --accent: #6f9cff;
  --accent-hover: #9bbcff;
  --accent-ink: #040b1c;
  --accent-soft: #10224f;
  --danger: #ff9aa5;
  --success: #8fe0b8;
  --d-design: #6f9cff;
  --d-visual: #5fd0ff;
  --d-performing: #a493ff;
  --header-bg: rgb(4 11 28 / 0.8);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 18px 48px -18px rgb(0 20 80 / 0.75);
  --grain-opacity: 0.12;
  color-scheme: dark;
}

/* ── الأساس ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* ملمس ورقي خفيف */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * {
  position: relative;
  z-index: 1;
}
main {
  flex: 1;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p {
  margin: 0 0 1em;
}
a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
[lang="en"] {
  font-family: var(--font-latin);
}
.muted {
  color: var(--ink-3);
}
.pre,
[data-c] {
  white-space: pre-line;
}
[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── الأزرار ── */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.6em 1.5em;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.3 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
}
.btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-bd: var(--accent);
}
.btn--accent:hover {
  --btn-bg: var(--accent-hover);
  --btn-bd: var(--accent-hover);
}
.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
}
.btn--ink:hover {
  --btn-bg: var(--accent);
  --btn-bd: var(--accent);
  --btn-fg: var(--accent-ink);
}
.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}
.btn--sm {
  min-height: 42px;
  padding: 0.45em 1.15em;
  font-size: 0.95rem;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn .arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(-4px);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-btn:hover {
  border-color: var(--ink);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.arrow-link::after {
  content: "←";
  transition: transform 0.3s var(--ease);
}
.arrow-link:hover::after {
  transform: translateX(-5px);
}

/* ── الهيدر ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover {
  color: var(--ink);
}
.brand__marks {
  display: flex;
  gap: 3px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
}
.brand__sep {
  color: var(--line-strong);
  font-weight: 400;
  margin-inline: 2px;
}
.brand__latin {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-3);
  text-align: start;
  letter-spacing: 0.02em;
}
.primary-nav {
  margin-inline-start: auto;
}
.primary-nav__list {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav__list a {
  display: block;
  padding: 8px 11px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  position: relative;
  white-space: nowrap;
}
.primary-nav__list a::after {
  content: "";
  position: absolute;
  inset-inline: 11px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.primary-nav__list a:hover,
.primary-nav__list a[aria-current="page"] {
  color: var(--ink);
}
.primary-nav__list a:hover::after,
.primary-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
}
.primary-nav__list a[aria-current="page"]::after {
  background: var(--accent);
  height: 2px;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-btn {
  display: none;
}
.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-btn__lines {
  position: relative;
}
.menu-btn__lines::before,
.menu-btn__lines::after {
  content: "";
  position: absolute;
  inset-inline: 0;
}
.menu-btn__lines::before {
  top: -6px;
}
.menu-btn__lines::after {
  top: 6px;
}
.is-open .menu-btn__lines {
  background: transparent;
}
.is-open .menu-btn__lines::before {
  transform: translateY(6px) rotate(45deg);
}
.is-open .menu-btn__lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1120px) {
  .menu-btn {
    display: inline-grid;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .is-open .primary-nav {
    display: block;
  }
  .primary-nav__list {
    flex-direction: column;
    padding: 8px var(--gutter) 20px;
    max-width: var(--container);
    margin-inline: auto;
  }
  .primary-nav__list a {
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav__list a::after {
    display: none;
  }
  .primary-nav__list a[aria-current="page"] {
    color: var(--accent);
  }
  .site-header__actions {
    margin-inline-start: auto;
  }
}
@media (max-width: 560px) {
  .site-header__bar {
    gap: 10px;
    min-height: 66px;
  }
  .brand__marks {
    display: none;
  }
  .brand__name {
    font-size: 1.02rem;
  }
  .brand__latin {
    font-size: 0.85rem;
  }
  .site-header__actions {
    gap: 6px;
  }
  .site-header__actions .btn--sm {
    padding-inline: 0.8em;
    font-size: 0.88rem;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 380px) {
  .brand__sep,
  .brand__name > :last-child {
    display: none;
  }
}

/* ── رموز الأقسام ── */
.mark {
  flex-shrink: 0;
}
.mark--design {
  color: var(--d-design);
}
.mark--visual_arts {
  color: var(--d-visual);
}
.mark--performing_arts {
  color: var(--d-performing);
}

/* ── عناوين الصفحات الداخلية ── */
.page-head {
  padding-block: clamp(56px, 10vw, 120px) clamp(32px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.page-title {
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5.4rem);
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0;
}
.page-lead {
  max-width: 40ch;
  margin: 22px 0 0;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.75;
  color: var(--ink-2);
}

.section {
  padding-block: clamp(56px, 9vw, 112px);
}
.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-title {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p {
  margin: 0;
  color: var(--ink-2);
}

/* ── الواجهة الرئيسية ── */
.hero {
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero__latin {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--ink-3);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__latin::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--accent);
}
.hero__title {
  margin: 0;
  font-size: clamp(3.2rem, 1.4rem + 6.4vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero__subtitle {
  display: block;
  margin-top: 0.12em;
  font-size: 0.46em;
  color: var(--accent);
  font-weight: 400;
}
.hero__lead {
  max-width: 34ch;
  margin: clamp(22px, 3vw, 34px) 0 0;
  font-size: clamp(1.12rem, 1rem + 0.55vw, 1.4rem);
  line-height: 1.8;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
}
.hero-art {
  position: relative;
  aspect-ratio: 440 / 520;
  max-width: 460px;
  justify-self: center;
  width: 100%;
}
.hero-art__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 320px;
    order: -1;
    justify-self: start;
  }
}
@media (max-width: 560px) {
  .hero-art {
    max-width: 220px;
  }
}

/* شريط الأقسام */
.dept-strip {
  border-block: 1px solid var(--line);
}
.dept-strip__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.dept-strip__list li + li {
  border-inline-start: 1px solid var(--line);
}
.dept-strip__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px clamp(16px, 2.5vw, 32px);
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  transition: background-color 0.3s var(--ease);
}
.dept-strip__link:hover {
  background: var(--surface);
  color: var(--ink);
}
.dept-strip__text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  flex: 1;
}
.dept-strip__ar {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.dept-strip__en {
  font-style: italic;
  color: var(--ink-3);
  font-size: 1.05rem;
}
.dept-strip__go {
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.dept-strip__link:hover .dept-strip__go {
  transform: translateX(-6px);
}
.dept-strip__link .mark {
  transition: transform 0.5s var(--ease);
}
.dept-strip__link:hover .mark {
  transform: rotate(-8deg) scale(1.06);
}
@media (max-width: 760px) {
  .dept-strip__list {
    grid-template-columns: 1fr;
  }
  .dept-strip__list li + li {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .dept-strip__link {
    padding-inline: 0;
  }
}

/* عبارة الرؤية */
.vision {
  text-align: center;
  padding-block: clamp(72px, 12vw, 160px);
}
.vision__ornament {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.vision__quote {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.1rem + 3vw, 3.4rem);
  line-height: 1.6;
  font-weight: 400;
}
.vision__quote p {
  margin: 0;
}
.vision__label {
  margin-top: 28px;
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--ink-3);
  font-size: 1.1rem;
}

/* فهرس المقاطع المؤدية للصفحات */
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.index-list li {
  border-bottom: 1px solid var(--line);
}
.index-link {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.3fr) 2rem;
  align-items: baseline;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px) 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.4s var(--ease), background-color 0.4s var(--ease);
}
.index-link:hover {
  color: var(--ink);
  background: linear-gradient(to left, var(--surface), transparent);
  padding-inline-start: 14px;
}
.index-link__num {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-3);
}
.index-link__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.3;
}
.index-link__text {
  color: var(--ink-2);
  margin: 0;
}
.index-link__go {
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform 0.35s var(--ease);
}
.index-link:hover .index-link__go {
  transform: translateX(-6px);
}
@media (max-width: 760px) {
  .index-link {
    grid-template-columns: 2.6rem minmax(0, 1fr) 1.5rem;
    gap: 6px 14px;
  }
  .index-link__text {
    grid-column: 2 / 3;
    grid-row: 2;
  }
}

/* دعوة ختامية */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(56px, 8vw, 96px);
}
.cta-band h2 {
  color: var(--paper);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  margin: 0 0 12px;
}
.cta-band p {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  margin: 0;
  max-width: 46ch;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band .btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--paper);
}
.cta-band .btn:hover {
  --btn-bg: var(--accent);
  --btn-bd: var(--accent);
  --btn-fg: var(--accent-ink);
}

/* ── عن المنصة ── */
.prose-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
}
.prose-split__aside {
  position: sticky;
  top: 120px;
  align-self: start;
}
.prose-large {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.2rem);
  line-height: 1.8;
  margin: 0 0 1.2em;
}
.prose-large--second {
  color: var(--ink-2);
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: clamp(18px, 2.5vw, 32px);
}
.trio {
  display: flex;
  gap: 10px;
}
@media (max-width: 760px) {
  .prose-split {
    grid-template-columns: 1fr;
  }
  .prose-split__aside {
    position: static;
  }
}

/* ── بطاقات الأقسام ── */
.dept-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.dept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.dept-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--tone);
}
.dept-card:hover {
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.dept-card--design {
  --tone: var(--d-design);
}
.dept-card--visual_arts {
  --tone: var(--d-visual);
}
.dept-card--performing_arts {
  --tone: var(--d-performing);
}
.dept-card__mark .mark {
  width: 88px;
  height: 88px;
  transition: transform 0.6s var(--ease);
}
.dept-card:hover .dept-card__mark .mark {
  transform: rotate(-6deg) scale(1.05);
}
.dept-card__en {
  margin: auto 0 4px;
  padding-top: 40px;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-3);
}
.dept-card__title {
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem);
  margin: 0 0 12px;
}
.dept-card__desc {
  color: var(--ink-2);
  margin: 0 0 24px;
}
.dept-card .arrow-link {
  margin-top: auto;
}
@media (max-width: 900px) {
  .dept-cards {
    grid-template-columns: 1fr;
  }
  .dept-card {
    min-height: 0;
  }
}

/* ── صفحة القسم ── */
.dept-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.dept-hero__mark .mark {
  width: clamp(96px, 14vw, 176px);
  height: clamp(96px, 14vw, 176px);
}
.dept-hero__en {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  color: var(--ink-3);
  margin: 6px 0 0;
}
.dept-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.breadcrumb {
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-3);
}
.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 8px;
  color: var(--line-strong);
}
.breadcrumb a {
  color: var(--ink-2);
}
.dept-others {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.dept-others a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 560px) {
  .dept-hero {
    grid-template-columns: 1fr;
  }
}

/* ── مجالات المشاركة ── */
.areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.area {
  padding: clamp(28px, 4vw, 52px) clamp(0px, 3vw, 44px) clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}
.area:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
  padding-inline-start: 0;
}
.area:nth-child(even) {
  padding-inline-start: clamp(20px, 3vw, 44px);
}
.area__num {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: clamp(2.6rem, 2rem + 2vw, 4rem);
  line-height: 1;
  color: var(--accent);
  margin: 0 0 18px;
}
.area__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin: 0 0 10px;
}
.area__desc {
  color: var(--ink-2);
  margin: 0;
  max-width: 38ch;
}
@media (max-width: 760px) {
  .areas {
    grid-template-columns: 1fr;
  }
  .area,
  .area:nth-child(odd),
  .area:nth-child(even) {
    border-inline-end: 0;
    padding-inline: 0;
  }
}

/* ── الأعمال ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 500 0.95rem/1.3 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip[aria-pressed="true"] .mark {
  color: var(--paper);
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.works-grid > .work:nth-child(3n + 2) {
  margin-top: clamp(0px, 5vw, 64px);
}
.work figure {
  margin: 0;
}
.work__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: var(--radius);
}
.work__media img,
.work__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.work:hover .work__media img,
.work:hover .work__media svg {
  transform: scale(1.035);
}
.work__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.work__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.work__dept {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  color: var(--ink-3);
}
.tag {
  flex-basis: 100%;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.tag::before {
  content: "◦ ";
}
.works-empty {
  padding: 48px 0;
  color: var(--ink-3);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .works-grid > .work:nth-child(3n + 2) {
    margin-top: 0;
  }
  .works-grid > .work:nth-child(2n) {
    margin-top: 40px;
  }
}
@media (max-width: 520px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
  .works-grid > .work:nth-child(2n) {
    margin-top: 0;
  }
}

/* ── الأسئلة الشائعة ── */
.faq-list {
  max-width: 860px;
  border-top: 1px solid var(--line-strong);
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem);
  line-height: 1.5;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q:hover {
  color: var(--accent);
}
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}
.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq[open] .faq__icon {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.faq__a {
  padding: 0 0 28px;
  color: var(--ink-2);
  max-width: 62ch;
  font-size: 1.08rem;
}
.faq__a p {
  margin: 0;
}
.faq[open] .faq__a {
  animation: faq-in 0.45s var(--ease);
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ── التواصل ── */
.contact-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
  max-width: 920px;
}
.contact-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.contact-row dd {
  margin: 0;
  font-size: 1.12rem;
  color: var(--ink-2);
}
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
@media (max-width: 640px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
}

/* ── نموذج الإرسال ── */
.submit-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.submit-aside {
  position: sticky;
  top: 120px;
}
.submit-aside ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tip;
  display: grid;
  gap: 18px;
}
.submit-aside li {
  counter-increment: tip;
  display: grid;
  grid-template-columns: 2rem 1fr;
  color: var(--ink-2);
}
.submit-aside li::before {
  content: counter(tip, arabic-indic);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1.6;
}
.submit-aside h2 {
  font-size: 1.5rem;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 52px);
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}
.field label,
.field .label {
  font-weight: 600;
  font-size: 1.02rem;
}
.req {
  color: var(--accent);
  font-weight: 700;
}
.opt {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.92rem;
}
.hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 400 1.05rem/1.7 var(--font-body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}
.textarea {
  min-height: 220px;
  resize: vertical;
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: 22px 50%, 16px 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 16px;
  padding-inline-start: 44px;
  cursor: pointer;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-3);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--surface);
}
.input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.has-error .input,
.has-error .select,
.has-error .textarea {
  border-color: var(--danger);
}
.error {
  margin: 0;
  min-height: 0;
  color: var(--danger);
  font-size: 0.93rem;
  font-weight: 500;
}
.error:empty {
  display: none;
}
.error:not(:empty)::before {
  content: "⚠ ";
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -10px 0 30px;
  cursor: pointer;
  width: fit-content;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  margin: 0;
  cursor: pointer;
}
.is-disabled label {
  color: var(--ink-3);
}
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
}
.form-alert {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
}
.privacy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
  max-width: 44ch;
}
.success-panel {
  text-align: center;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 4vw, 52px);
}
.success-panel h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.6;
  max-width: 22ch;
  margin: 24px auto 28px;
}
.success-panel h2:focus {
  outline: none;
}
.success-panel .trio {
  justify-content: center;
}
@media (max-width: 900px) {
  .submit-layout {
    grid-template-columns: 1fr;
  }
  .submit-aside {
    position: static;
  }
}

/* ── الفوتر ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding-top: clamp(48px, 7vw, 80px);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 36px;
}
.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 18px 0 0;
  line-height: 1.4;
}
.site-footer__latin {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--ink-3);
  font-size: 1.1rem;
  margin: 0 0 22px;
}
.site-footer__title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.site-footer__col a {
  text-decoration: none;
  color: var(--ink-2);
}
.site-footer__col a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.site-footer__email {
  margin: 0 0 8px;
  word-break: break-word;
}
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-3);
}
.site-footer__base p {
  margin: 0;
}
@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ── صفحة غير موجودة ── */
.not-found {
  padding-block: clamp(80px, 14vw, 180px);
}
.not-found .trio {
  margin-bottom: 32px;
}

/* ── الحركة ── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.js [data-reveal-delay="1"] {
  transition-delay: 0.08s;
}
.js [data-reveal-delay="2"] {
  transition-delay: 0.16s;
}
.js [data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

.hero-enter > * {
  animation: rise 1s var(--ease) both;
}
.hero-enter > :nth-child(2) {
  animation-delay: 0.1s;
}
.hero-enter > :nth-child(3) {
  animation-delay: 0.2s;
}
.hero-enter > :nth-child(4) {
  animation-delay: 0.3s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

.float {
  transform-box: fill-box;
  transform-origin: center;
}
.float--a {
  animation: drift-a 14s ease-in-out infinite alternate;
}
.float--b {
  animation: drift-b 11s ease-in-out infinite alternate;
}
.float--c {
  animation: drift-c 16s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to {
    transform: translate(-6px, 8px);
  }
}
@keyframes drift-b {
  to {
    transform: translate(10px, -8px) scale(1.02);
  }
}
@keyframes drift-c {
  to {
    transform: translate(6px, -6px) rotate(-3deg);
  }
}
.draw {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.6s var(--ease) 0.3s forwards;
}
.draw--late {
  animation-delay: 0.9s;
  animation-duration: 3.4s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* احترام إعداد تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .float {
    animation: none !important;
  }
  .draw {
    stroke-dashoffset: 0;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ── الطباعة ── */
@media print {
  body::before,
  #site-header,
  .site-footer,
  .skip-link {
    display: none !important;
  }
}

/* حجز مساحة الهيدر قبل تحميل السكربت لتجنّب القفز */
#site-header {
  min-height: 76px;
  /* الغلاف نفسه هو العنصر الثابت أعلى الصفحة، وفوق المحتوى حتى تبقى القائمة المنسدلة قابلة للنقر */
  position: sticky;
  top: 0;
  z-index: 50;
}
@media (max-width: 560px) {
  #site-header {
    min-height: 66px;
  }
}
.noscript-nav {
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.noscript-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

main:focus {
  outline: none;
}

/* ── نوع الطلب (مقترح / شكوى) ── */
.type-field {
  border: 0;
  padding: 0;
  margin-inline: 0;
  min-width: 0;
}
.type-field legend {
  padding: 0;
  margin-bottom: 8px;
}
.type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.type-option {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.type-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.type-option span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-2);
  font-weight: 500;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.type-option:hover span {
  border-color: var(--ink-3);
  color: var(--ink);
}
.type-option input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.type-option input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.has-error .type-option span {
  border-color: var(--danger);
}

.success-panel__text {
  max-width: 46ch;
  margin: -12px auto 28px;
  color: var(--ink-2);
}

/* ── الصفحات المحمية: تبقى مخفية حتى يتحقق guard.js من الجلسة ── */
.auth-pending body {
  visibility: hidden;
}

/* ── أدوات الجلسة في الهيدر والفوتر ── */
.logout-btn {
  color: var(--ink-2);
}
.logout-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.primary-nav__logout {
  display: none;
}
.primary-nav__btn,
.link-like {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
}
.link-like {
  color: var(--ink-2);
}
.link-like:hover,
.primary-nav__btn:hover {
  color: var(--accent);
}
@media (max-width: 1120px) {
  .logout-btn {
    display: none;
  }
  .primary-nav__logout:not([hidden]) {
    display: block;
  }
  .primary-nav__btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: start;
    text-decoration: none;
    color: var(--accent);
  }
}
.site-header__actions .btn {
  white-space: nowrap;
}
/* رابط لوحة الإدارة (للإداري فقط): في القائمة على الجوال، وفي الفوتر على الكمبيوتر */
@media (min-width: 1121px) {
  .primary-nav__extra {
    display: none;
  }
}
