/* ═══════════════════════════════════════════════════════════════
   SRU University — Main Stylesheet
   Brand: Purple #3D1F6E | Cyan #00B4C8 | White #FFFFFF | Gray #6B7280
═══════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ───────────────────────────────────────── */
:root {
  /* Colors */
  --color-purple:       #3D1F6E;
  --color-purple-dark:  #2C1650;
  --color-purple-light: #6B46C1;
  --color-purple-faint: #F5F3FF;
  --color-cyan:         #00B4C8;
  --color-cyan-dark:    #0097AA;
  --color-cyan-light:   #E0F7FA;
  --color-white:        #FFFFFF;
  --color-gray:         #6B7280;
  --color-gray-light:   #F3F4F6;
  --color-gray-mid:     #D1D5DB;
  --color-gray-dark:    #374151;
  --color-text:         #1F2937;

  /* Typography */
  --font-en:  'Inter', system-ui, -apple-system, sans-serif;
  --font-ar:  'Noto Kufi Arabic', 'Inter', system-ui, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 5vw, 2rem);
  --header-h:      72px;
  --radius-sm:     0.375rem;
  --radius:        0.625rem;
  --radius-lg:     1rem;
  --radius-xl:     1.5rem;
  --radius-full:   9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-md:  0 8px 30px rgba(0,0,0,.1),  0 3px 10px rgba(0,0,0,.05);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.06);
  --shadow-purple: 0 8px 30px rgba(61,31,110,.3);

  /* Transitions */
  --ease:   cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --duration-fast:   150ms;
  --duration:        250ms;
  --duration-slow:   400ms;
}

/* ─── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-en);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

address { font-style: normal; }

button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Utility: Container ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─── Utility: Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6875rem 1.625rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: .02em;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration-fast) var(--ease),
              box-shadow var(--duration) var(--ease);
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm  { padding: 0.5rem 1.125rem; font-size: var(--text-xs); }
.btn-lg  { padding: 0.875rem 2rem;   font-size: var(--text-base); }

.btn-primary {
  background: var(--color-purple);
  color: var(--color-white);
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover {
  background: var(--color-purple-dark);
  box-shadow: 0 12px 40px rgba(61,31,110,.4);
}

.btn-cyan {
  background: var(--color-cyan);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(0,180,200,.35);
}
.btn-cyan:hover {
  background: var(--color-cyan-dark);
  box-shadow: 0 12px 36px rgba(0,180,200,.45);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-purple);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: var(--color-purple-faint); }

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--color-white);
}

.btn-outline-purple {
  background: transparent;
  color: var(--color-purple);
  border: 2px solid var(--color-purple);
}
.btn-outline-purple:hover {
  background: var(--color-purple);
  color: var(--color-white);
}

/* ─── Utility: Eyebrow / Section Label ───────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: var(--space-3);
}

.eyebrow-light { color: rgba(0,180,200,.9); }

/* ─── Utility: Section Title ──────────────────────────────────── */
.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
}

.section-title-white { color: var(--color-white); }

.section-sub {
  font-size: var(--text-lg);
  color: var(--color-gray);
  margin-top: var(--space-4);
  max-width: 56ch;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-sub { margin-inline: auto; }


/* ─── Scroll Reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

/* ═══════════════════════════════════════════════════════════════
   HEADER — Professional Redesign
═══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 31, 110, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Gradient accent line at top */
.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-cyan) 100%);
  z-index: 1;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 2px 24px rgba(61, 31, 110, 0.10),
              0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ─── Header Inner ────────────────────────────────────────── */
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

/* LTR: logo left → nav center → actions right */
html[dir="ltr"] .header-inner { flex-direction: row; }

/* RTL: logo right → nav center → actions left */
html[dir="rtl"] .header-inner { flex-direction: row-reverse; }

/* ─── Logo ───────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  padding: 4px 0;
}

.logo:hover { opacity: .9; }

.logo-mark { flex-shrink: 0; }
.logo-mark img {
  height: 40px;
  width: auto;
  display: block;
}

/* Divider between logo image and name */
.logo-divider {
  width: 1px;
  height: 30px;
  background: rgba(61, 31, 110, 0.15);
  flex-shrink: 0;
}

/* University name text */
.logo-names {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name-ar {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-purple);
  line-height: 1.25;
  font-family: 'Noto Kufi Arabic', sans-serif;
  white-space: nowrap;
}

.logo-name-en {
  font-size: 10.5px;
  font-weight: 500;
  color: #8B92A5;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Legacy logo-text / logo-en / logo-ar support */
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-en, .logo-ar { font-size: var(--text-sm); font-weight: 700; color: var(--color-purple); }
.logo-abbr { font-size: var(--text-xs); color: var(--color-cyan); font-weight: 800; letter-spacing: .1em; }
[lang="ar"] .logo-en { display: none; }
[lang="en"] .logo-ar { display: none; }

/* ─── Primary Nav ────────────────────────────────────────── */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: nowrap;
}

.nav-link {
  position: relative;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #4B5563;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--color-purple);
  background: rgba(61, 31, 110, 0.06);
}

.nav-link.active {
  color: var(--color-purple);
  background: rgba(61, 31, 110, 0.08);
  font-weight: 700;
}

/* Active dot */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-cyan);
}

/* Hover underline (non-active) */
.nav-link:not(.active)::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 20px);
  height: 1.5px;
  background: var(--color-cyan);
  border-radius: 2px;
  transition: transform 0.18s ease;
}
.nav-link:not(.active):hover::before { transform: translateX(-50%) scaleX(1); }

/* ─── Header Actions ─────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border: 1.5px solid rgba(61, 31, 110, 0.22);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-purple);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.18s ease;
}

.lang-toggle::before {
  content: '🌐';
  font-size: 11px;
  line-height: 1;
}

.lang-toggle:hover {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
  box-shadow: 0 2px 8px rgba(61, 31, 110, 0.25);
}

/* Apply Now button */
.header-actions .btn-primary {
  background: linear-gradient(135deg, #3D1F6E 0%, #5A2D99 100%);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(61, 31, 110, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.header-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(61, 31, 110, 0.38);
}

/* ─── Hamburger ──────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 10px;
  background: transparent;
  transition: background 0.18s ease;
  cursor: pointer;
}

.hamburger:hover { background: rgba(61, 31, 110, 0.08); }

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-purple);
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 16px; }
.hamburger span:nth-child(3) { width: 22px; }

.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 22px;
}
.nav-open .hamburger span:nth-child(2) { opacity: 0; width: 0; }
.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 22px;
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--color-purple) 0%, #5A2D99 50%, #0097AA 100%);
}

/* Geometric pattern overlay */
.hero-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,180,200,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(61,31,110,.4) 0%, transparent 50%);
}

/* SVG dot grid */
.hero-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom right, transparent 30%, rgba(0,0,0,.6) 70%);
  -webkit-mask-image: linear-gradient(to bottom right, transparent 30%, rgba(0,0,0,.6) 70%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61,31,110,.1) 0%, rgba(61,31,110,.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-20);
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(0,180,200,.2);
  border: 1px solid rgba(0,180,200,.4);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,.9);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
}

.title-line { display: block; }

.title-accent {
  color: var(--color-cyan);
  filter: drop-shadow(0 0 20px rgba(0,180,200,.4));
}

.hero-sub {
  font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
  color: rgba(255,255,255,.82);
  max-width: 52ch;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-dot {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--radius-full);
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot::before {
  content: '';
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.8);
  border-radius: var(--radius-full);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  75%       { transform: translateY(10px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════════════════════ */
.stats-section {
  padding-block: var(--space-16);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-mid);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
}

.stat-item {
  text-align: center;
  padding: var(--space-4);
}

.stat-number {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl));
  font-weight: 800;
  color: var(--color-cyan);
  line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-gray);
  font-weight: 500;
  letter-spacing: .02em;
}

.stat-divider {
  width: 1px;
  height: 64px;
  background: var(--color-purple);
  opacity: .15;
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT BAND
═══════════════════════════════════════════════════════════════ */
.about-band {
  padding-block: var(--space-24);
  background: var(--color-purple-faint);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-text { max-width: 520px; }

.about-text .eyebrow { display: block; }

.about-text .section-title { margin-bottom: var(--space-5); }

.about-text p {
  color: var(--color-gray);
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
  line-height: 1.75;
}

.about-visual { display: flex; justify-content: center; }

.about-img-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.about-img-placeholder {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-placeholder svg { width: 100%; height: auto; }

.about-badge {
  position: absolute;
  bottom: -var(--space-4);
  right: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-purple);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-purple);
  bottom: var(--space-6);
}

.about-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-cyan);
}

/* ═══════════════════════════════════════════════════════════════
   PROGRAMS SECTION
═══════════════════════════════════════════════════════════════ */
.programs-section {
  padding-block: var(--space-24);
  background: var(--color-white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.program-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--accent, var(--color-cyan));
  border-radius: var(--radius-full);
  transform: scaleY(0);
  transition: transform var(--duration) var(--ease);
  transform-origin: bottom;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.program-card:hover::before { transform: scaleY(1); }

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.card-body { flex: 1; }

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.card-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--color-gray-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gray-dark);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent, var(--color-purple));
  transition: gap var(--duration-fast) var(--ease), opacity var(--duration-fast);
}

.card-link:hover { opacity: .75; gap: var(--space-3); }

.programs-footer { text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   NEWS & EVENTS
═══════════════════════════════════════════════════════════════ */
.news-section {
  padding-block: var(--space-24);
  background: var(--color-gray-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-img {
  height: 180px;
  display: flex;
  align-items: flex-start;
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

.news-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4) 100%);
}

.news-type {
  position: relative;
  z-index: 1;
  padding: var(--space-1) var(--space-3);
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.news-body {
  flex: 1;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.news-date {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.date-day {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-purple);
  line-height: 1;
}

.date-month {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.news-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.news-excerpt {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: 1.65;
  flex: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-cyan-dark);
  margin-top: auto;
  transition: opacity var(--duration-fast);
}

.news-link:hover { opacity: .7; }

.news-footer { text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   RESEARCH BAND
═══════════════════════════════════════════════════════════════ */
.research-band {
  padding-block: var(--space-20);
  background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple) 60%, #5A2D99 100%);
  position: relative;
  overflow: hidden;
}

.research-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.research-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.research-content p {
  color: rgba(255,255,255,.75);
  font-size: var(--text-lg);
  line-height: 1.75;
  margin-block: var(--space-5) var(--space-8);
}

.research-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.r-stat {
  padding: var(--space-6);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: background var(--duration) var(--ease);
}

.r-stat:hover { background: rgba(255,255,255,.12); }

.r-num {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-cyan);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.r-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════════════ */
.cta-section {
  padding-block: var(--space-20);
  background: var(--color-purple);
  position: relative;
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(0,180,200,.2) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 50%, rgba(107,70,193,.3) 0%, transparent 55%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.cta-text { max-width: 520px; }

.cta-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.cta-text p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-gray-dark);
  color: rgba(255,255,255,.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-block: var(--space-16);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.social-icons {
  display: flex;
  gap: var(--space-3);
}

.social-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}

.social-icon:hover {
  background: var(--color-cyan);
  color: var(--color-white);
  transform: translateY(-2px);
}

.social-icon svg { width: 18px; height: 18px; }

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--space-5);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--duration-fast), padding-inline-start var(--duration-fast);
}

.footer-links a:hover {
  color: var(--color-cyan);
  padding-inline-start: var(--space-2);
}

.footer-contact { display: flex; flex-direction: column; gap: var(--space-4); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-cyan);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: var(--space-5);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.copyright {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.45);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.45);
  transition: color var(--duration-fast);
}

.footer-legal a:hover { color: var(--color-cyan); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 1200px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .research-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .research-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .r-stat { flex: 1; min-width: 160px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 900px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-text { max-width: 100%; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 768px (Tablet/Mobile)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav: mobile drawer */
  .primary-nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: -320px;
    width: 280px;
    background: var(--color-white);
    box-shadow: -8px 0 40px rgba(0,0,0,.15);
    z-index: 1001;
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--header-h) + var(--space-8)) var(--space-6) var(--space-6);
    transition: inset-inline-end var(--duration-slow) var(--ease);
    overflow-y: auto;
  }

  .nav-open .primary-nav {
    inset-inline-end: 0;
  }

  .nav-open .nav-overlay {
    display: block;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }

  .nav-link {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
  }

  .nav-link::after { display: none; }

  .hamburger { display: flex; }

  /* Header: hide apply button text on mobile */
  .header-actions .btn-primary { display: none; }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-divider {
    width: 80px;
    height: 1px;
    margin-inline: auto;
  }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand { grid-column: auto; }

  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 480px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --header-h: 60px;
  }

  .hero-content { padding-block: var(--space-16); }

  .hero-actions { flex-direction: column; }

  .hero-actions .btn { width: 100%; justify-content: center; }

  .cta-actions { flex-direction: column; width: 100%; }

  .cta-actions .btn { width: 100%; justify-content: center; }

  .logo-en,
  .logo-ar,
  .logo-abbr { font-size: var(--text-xs); }
}

/* ═══════════════════════════════════════════════════════════════
   HAMBURGER ANIMATION
═══════════════════════════════════════════════════════════════ */
.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE TRANSITIONS
═══════════════════════════════════════════════════════════════ */

/* Fade in on page load */
@keyframes sru-page-enter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  animation: sru-page-enter 0.35s var(--ease-out) both;
}

/* Leaving state — fade out before navigation */
body.page-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════════════ */
@media print {
  .site-header,
  .scroll-indicator,
  .hamburger,
  .hero-actions,
  .cta-section,
  .social-icons { display: none; }

  .hero {
    min-height: auto;
    padding-top: 0;
  }
}
