/* ═══════════════════════════════════════════════════════════
   OncoIG AU — Oncology Interest Group, Alfaisal University
   Brand colors derived from actual logo (lavender/purple)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Brand palette — pulled from actual OncoIG logo */
  --brand-primary: #50508c;      /* deep lavender (logo dark) */
  --brand: #64648c;              /* signature purple */
  --brand-soft: #7878a0;         /* mid lavender */
  --brand-light: #c8c8dc;        /* pale lavender */
  --brand-mist: #ecebf3;         /* whisper lavender (bg tint) */
  --brand-cream: #faf9fc;        /* off-white with purple cast */
  --accent: #b89dd9;             /* lighter accent */
  --gold: #c9a55b;               /* subtle gold accent */

  /* Neutrals */
  --ink: #1c1b22;
  --ink-soft: #3f3d4a;
  --muted: #6b6878;
  --line: #e5e3ed;
  --white: #ffffff;

  /* Status */
  --success: #5a8a6e;
  --danger: #b85c5c;
  --warning: #c9a55b;

  /* Type scale */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-arabic: 'Noto Naskh Arabic', serif;

  /* Radii & shadows */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(80,80,140,0.06);
  --shadow: 0 4px 16px rgba(80,80,140,0.08), 0 1px 2px rgba(80,80,140,0.04);
  --shadow-lg: 0 12px 40px rgba(80,80,140,0.14), 0 4px 12px rgba(80,80,140,0.06);

  /* Layout */
  --max-w: 1240px;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--brand-cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ar { font-family: var(--font-arabic); direction: rtl; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Containers & utility ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

/* ─── Section header pattern ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--brand);
  font-weight: 400;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: center;
  background: transparent;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.brand-tag {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  transition: all 0.18s;
  position: relative;
}
.nav-link:hover { color: var(--brand-primary); }
.nav-link.active {
  color: var(--brand-primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  width: 18px; height: 2px;
  background: var(--brand);
  transform: translateX(-50%);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-light);
}
.btn-outline:hover {
  border-color: var(--brand-primary);
  background: var(--brand-mist);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--brand-primary); }
.btn-large { padding: 14px 30px; font-size: 0.95rem; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 10px 14px; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════
   HERO — magazine-editorial
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(184, 157, 217, 0.18), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(100, 100, 140, 0.10), transparent 55%),
    var(--brand-cream);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2350508c' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  background: var(--white);
  border: 1px solid var(--brand-light);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-pill-dot {
  width: 18px; height: 18px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.6rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand);
  font-weight: 400;
}
.hero-arabic {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: var(--brand-soft);
  margin-bottom: 28px;
  direction: rtl;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--brand-primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* Visual / logo display */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,157,217,0.25), transparent 70%);
}
.hero-circle::before, .hero-circle::after {
  content: '';
  position: absolute;
  border: 1px solid var(--brand-light);
  border-radius: 50%;
}
.hero-circle::before { inset: 8%; }
.hero-circle::after { inset: 18%; border-style: dashed; opacity: 0.6; }
.hero-logo-display {
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(80,80,140,0.18);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-logo-display img { width: 100%; }

.float-card {
  position: absolute;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  z-index: 3;
  border: 1px solid var(--line);
}
.float-card-1 { top: 8%; left: -8%; animation: float 6s ease-in-out infinite; }
.float-card-2 { bottom: 12%; right: -6%; animation: float 6s ease-in-out infinite 3s; }
.float-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-mist);
  color: var(--brand-primary);
}
.float-label { font-weight: 600; color: var(--ink); }
.float-sub { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ═══════════════════════════════════════════════════════════
   FEATURE / HOW IT WORKS GRID
   ═══════════════════════════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}
.feature-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-soft);
  letter-spacing: 0.18em;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--brand-light);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--brand-mist);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--brand-primary);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-arabic {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  color: var(--brand-soft);
  margin-bottom: 14px;
  direction: rtl;
  display: block;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   DUAL PORTAL CARDS
   ═══════════════════════════════════════════════════════════ */
.portal-section {
  background: var(--white);
}
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
.portal-card {
  position: relative;
  padding: 48px 40px;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid transparent;
}
.portal-card.doctor {
  background: linear-gradient(135deg, #5a5a8c 0%, #7878a8 100%);
  color: var(--white);
}
.portal-card.student {
  background: var(--brand-mist);
  border-color: var(--brand-light);
}
.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.portal-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}
.portal-card.student::after {
  background: radial-gradient(circle, rgba(80,80,140,0.06), transparent 70%);
}
.portal-icon-lg {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.portal-card.doctor .portal-icon-lg {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.portal-card.student .portal-icon-lg {
  background: var(--white);
  color: var(--brand-primary);
}
.portal-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.portal-card .arabic-line {
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  opacity: 0.75;
  direction: rtl;
  margin-bottom: 18px;
  display: block;
}
.portal-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
  opacity: 0.92;
}
.portal-card.student p { color: var(--ink-soft); }
.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.2s;
}
.portal-card:hover .portal-link { gap: 14px; }

/* ═══════════════════════════════════════════════════════════
   RESEARCH CARDS
   ═══════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.filter-pill {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}
.filter-pill:hover {
  border-color: var(--brand-light);
  color: var(--brand-primary);
}
.filter-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.research-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.25s ease;
  position: relative;
}
.research-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-light);
  box-shadow: var(--shadow-lg);
}
.research-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.doctor-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  flex-shrink: 0;
}
.doc-name { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.doc-inst { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.status {
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-open { background: #e3f0e8; color: #2d6648; }
.status-soon { background: #faf2dd; color: #8b6a2c; }
.status-full { background: #f5e3e3; color: #8a3838; }

.research-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.research-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tag {
  padding: 4px 11px;
  background: var(--brand-mist);
  border-radius: var(--r-sm);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--brand-primary);
}
.research-meta {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  align-items: center;
}
.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-item svg { width: 14px; height: 14px; }
.research-meta .btn { margin-left: auto; }

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-hero {
  background: linear-gradient(135deg, #50508c 0%, #7878a8 100%);
  color: var(--white);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.form-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 100%, rgba(255,255,255,0.12), transparent 50%);
}
.form-hero .container { position: relative; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--white); }
.form-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.form-hero .arabic-line {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 14px;
  direction: rtl;
}
.form-hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 620px;
}

.form-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.form-section { margin-bottom: 44px; }
.form-section:last-of-type { margin-bottom: 28px; }

.fs-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--brand-mist);
  letter-spacing: -0.005em;
}
.fs-title-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
}
.fs-arabic {
  margin-left: auto;
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
  direction: rtl;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.label-ar {
  font-family: var(--font-arabic);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  direction: rtl;
}
.required { color: var(--danger); margin-left: 2px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  transition: all 0.18s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(100,100,140,0.10);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
select { cursor: pointer; }

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 16px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  transition: all 0.15s;
  background: var(--white);
}
.checkbox-row:hover { border-color: var(--brand-light); }
.checkbox-row input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--brand-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-row span { font-size: 0.85rem; color: var(--ink-soft); }
.checkbox-row input:checked ~ span { color: var(--brand-primary); font-weight: 500; }

.file-upload {
  border: 2px dashed var(--brand-light);
  border-radius: var(--r);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--brand-cream);
}
.file-upload:hover { border-color: var(--brand-primary); background: var(--brand-mist); }
.file-upload input { display: none; }
.fu-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}
.fu-text { font-size: 0.95rem; color: var(--ink); font-weight: 500; }
.fu-sub { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.form-submit {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT / CONTACT pages
   ═══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-grid p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 18px;
}
.about-grid .ar-quote {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 1.05rem;
  color: var(--brand-soft);
  border-right: 3px solid var(--brand-light);
  padding-right: 18px;
  margin: 28px 0;
}
.values-card {
  background: linear-gradient(135deg, #50508c 0%, #7878a8 100%);
  color: var(--white);
  padding: 48px 40px;
  border-radius: var(--r-lg);
  position: sticky;
  top: 100px;
}
.values-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.values-card .ar {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 24px;
}
.values-card p {
  color: rgba(255,255,255,0.95);
  line-height: 1.75;
  margin-bottom: 20px;
}
.values-list {
  list-style: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.values-list li {
  padding: 10px 0;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0.92;
}
.values-list li::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 5px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.team-card {
  text-align: center;
  padding: 28px 18px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: all 0.25s;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}
.team-avatar {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.team-role {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-info {
  background: var(--brand-mist);
  padding: 40px;
  border-radius: var(--r-lg);
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 24px;
  font-weight: 500;
}
.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(80,80,140,0.1);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.contact-item-val { font-weight: 500; color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--brand-primary);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(184,157,217,0.15), transparent 50%);
}
.cta-inner { position: relative; text-align: center; }
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.cta-inner h2 em { font-style: italic; color: var(--accent); }
.cta-inner .ar {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 20px;
}
.cta-inner p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 580px;
  margin: 0 auto 36px;
}
.btn-on-dark {
  background: var(--white);
  color: var(--brand-primary);
}
.btn-on-dark:hover { background: var(--brand-mist); }
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-top: 16px;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-tag { color: var(--brand-light); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 380px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-check {
  width: 24px; height: 24px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (reused on inner pages)
   ═══════════════════════════════════════════════════════════ */
.page-header {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(184,157,217,0.18), transparent 50%),
    var(--brand-cream);
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.page-header h1 em { color: var(--brand); font-style: italic; font-weight: 400; }
.page-header .ar {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  color: var(--brand-soft);
  margin-bottom: 18px;
  text-align: left;
  direction: ltr;
  unicode-bidi: plaintext;
}
.page-header p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb-sep { color: var(--brand-light); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .portal-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { width: 100%; box-sizing: border-box; }
  .nav-inner { padding: 0 16px; width: 100%; box-sizing: border-box; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .form-card { padding: 24px 16px; }
  .form-row, .form-row.triple { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-col { display: none; }
  footer { padding: 32px 0 20px; }
  .footer-brand p { font-size: 0.82rem; line-height: 1.6; margin-top: 10px; }
  .footer-bottom { padding-top: 20px; font-size: 0.78rem; flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .float-card { display: none; }
  .form-body { padding: 24px 12px 40px; }
  .research-grid { grid-template-columns: 1fr; }
  .fs-arabic { display: none; }
  /* Contact page mobile */
  .contact-info { padding: 24px 20px; }
  .contact-grid { gap: 24px; }
  /* FAQ mobile */
  [style*="grid-template-columns: 1fr 1fr"] { display: grid; grid-template-columns: 1fr !important; }
}

/* ONCORE section mobile fixes */
@media (max-width: 768px) {
  .oncore-grid { grid-template-columns: 1fr !important; }
}
