/* ═══════════════════════════════════════════════════════════════
   shared-pages.css — Neshan 2026
   Shared layout, tokens, and components for static pages
   (about, contact, private-colleges, privacy …)
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --blue-950: #0a1628;
  --blue-900: #0f2044;
  --blue-800: #1a3470;
  --blue-700: #1e3a8a;
  --blue-600: #1d4ed8;
  --blue-400: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --gold:        #f59e0b;
  --gold-light:  #fef3c7;
  --gold-dark:   #78350f;
  --green:       #16a34a;
  --green-bg:    #f0fdf4;
  --surface:     rgba(255, 255, 255, 0.88);
  --bg:          #eef2ff;
  --text:        #0f172a;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --glass-blur:  blur(14px);
  --shadow:      0 4px 20px rgba(15, 32, 68, .09);
  --radius:      18px;
  --radius-sm:   11px;
  --t:           .25s ease;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Body ────────────────────────────────────────────────────── */
body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  direction: rtl;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 15%, rgba(59, 130, 246, .07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(99, 102, 241, .05) 0%, transparent 55%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Site Nav ────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 400;
  height: 48px;
  background: rgba(2, 9, 23, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; overflow: hidden;
}
.sn-logo {
  display: inline-flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.sn-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
  padding: 4px;
  background: linear-gradient(145deg, #dde6f5 0%, #eaf0fb 100%);
  border-radius: 10px;
  border: 1px solid rgba(180, 200, 235, 0.5);
  box-shadow: 0 2px 8px rgba(15, 32, 68, 0.18);
}
.sn-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .12); flex-shrink: 0; }
.sn-links {
  display: flex; align-items: center; gap: 5px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none; flex: 1;
}
.sn-links::-webkit-scrollbar { display: none; }
.sn-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; font-family: 'Tajawal', sans-serif;
  color: rgba(255, 255, 255, .65); text-decoration: none;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  white-space: nowrap; flex-shrink: 0;
  transition: color .2s, border-color .2s, background .2s;
}
.sn-link:hover { color: #fff; border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .08); }
.sn-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
  animation: snBlink 2.5s infinite;
}

/* ── Page Header ─────────────────────────────────────────────── */
.page-hdr {
  background: linear-gradient(150deg, var(--blue-950) 0%, var(--blue-900) 30%, var(--blue-700) 70%, #1d4ed8 100%);
  padding: 24px 16px 32px;
  position: relative;
  overflow: hidden;
}
.page-hdr::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .2) 0%, transparent 70%);
  top: -100px; right: -70px;
  pointer-events: none;
}
.hdr-in {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.back-btn {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t);
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.back-btn:hover { background: rgba(255, 255, 255, .22); }
.hdr-text h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}
.hdr-text p { font-size: 13px; color: rgba(255, 255, 255, .68); line-height: 1.5; }

/* ── Main Layout ─────────────────────────────────────────────── */
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 14px 60px;
}

/* ── Glass Card ──────────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 14px;
}

/* ── Section Typography ──────────────────────────────────────── */
.section-title {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-body {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}
.section-body p { margin-bottom: 10px; }
.section-body p:last-child { margin-bottom: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.page-footer {
  text-align: center;
  padding: 18px 16px 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  border-top: 1px solid var(--border);
  max-width: 680px;
  margin: 0 auto;
}
.footer-links {
  display: flex; justify-content: center;
  gap: 20px; flex-wrap: wrap; margin-bottom: 8px;
}
.footer-links a {
  color: var(--blue-600);
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
}
.footer-links a:hover { text-decoration: underline; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes snBlink  { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.page-hdr  { animation: fadeInUp .35s ease both; }
.glass-card { animation: fadeInUp .4s ease both; }
.glass-card:nth-child(1) { animation-delay: .06s; }
.glass-card:nth-child(2) { animation-delay: .12s; }
.glass-card:nth-child(3) { animation-delay: .18s; }
.glass-card:nth-child(4) { animation-delay: .22s; }
.glass-card:nth-child(n+5) { animation-delay: .26s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 420px) {
  .glass-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
