/* ============================================
   RAAD CENTER THEME — MAIN STYLESHEET v3.0
   ============================================ */

:root {
  --navy: #1a3a5c;
  --navy-deep: #0f2645;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --red: #e53e3e;
  --bg: #ffffff;
  --bg-alt: #f0f4f8;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
  --bg: #0d1b2e;
  --bg-alt: #0a1628;
  --bg-card: #0f2040;
  --bg-header: #0a1628;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #1e3a5f;
  --shadow: 0 2px 16px rgba(0,0,0,.3);
  --shadow-md: 0 4px 28px rgba(0,0,0,.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
}

/* RTL: apply direction to body only; individual element overrides below */
[dir="rtl"] body { direction: rtl; }
[dir="rtl"] p,[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,[dir="rtl"] h4,
[dir="rtl"] h5,[dir="rtl"] h6,[dir="rtl"] li,[dir="rtl"] td,
[dir="rtl"] input,[dir="rtl"] textarea,[dir="rtl"] select,[dir="rtl"] label {
  direction: rtl; text-align: right;
}
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .main-nav     { flex-direction: row-reverse; }
[dir="rtl"] .header-controls { flex-direction: row-reverse; }
[dir="rtl"] .sub-menu     { left: auto; right: 0; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-btns    { justify-content: flex-end; }
[dir="rtl"] .breadcrumb   { direction: rtl; }
[dir="rtl"] .section-header { text-align: right; }
[dir="rtl"] .stat-item    { text-align: right; }
[dir="rtl"] .page-hero-content { text-align: right; }
[dir="rtl"] .page-hero-breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .form-label   { text-align: right; }
[dir="rtl"] .footer-cols  { direction: rtl; }
[dir="rtl"] .portal-tabs  { flex-direction: row-reverse; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-light); }

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-teal { color: var(--teal); }
.text-muted { color: var(--text-muted); }
.font-serif { font-family: var(--font-serif); }

/* SECTION HEADERS */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}
[data-theme="dark"] .section-header h2 { color: #e2e8f0; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 50px;
  font-weight: 600; font-size: .9rem; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-light); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-teal { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline-teal:hover { background: var(--teal); color: #fff; }
.btn-donate { background: var(--red); color: #fff; }
.btn-donate:hover { background: #c53030; color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }

/* BADGE */
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: .73rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.badge-teal { background: rgba(13,148,136,.12); color: var(--teal); }
.badge-navy { background: rgba(26,58,92,.1); color: var(--navy); }
[data-theme="dark"] .badge-navy { background: rgba(26,58,92,.4); color: #7eb8dc; }
.badge-red { background: rgba(229,62,62,.1); color: var(--red); }

/* ============================================
   HEADER
   ============================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: background .3s, border-color .3s;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}

/* LOGO */
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.site-logo img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }
.logo-text { line-height: 1.2; }
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy); display: block;
}
[data-theme="dark"] .logo-name { color: #7eb8dc; }
.logo-sub {
  font-size: .62rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); display: block;
}

/* NAVIGATION */
.nav-wrap { display: flex; align-items: center; gap: 4px; }

.main-nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 8px;
  font-size: .88rem; font-weight: 500;
  color: var(--text); transition: all .2s;
  text-decoration: none;
}
.main-nav > li > a:hover,
.main-nav > li.active > a,
.main-nav > li.current-menu-item > a,
.main-nav > li.current-menu-ancestor > a {
  background: rgba(26,58,92,.07);
  color: var(--navy);
}
[data-theme="dark"] .main-nav > li > a:hover,
[data-theme="dark"] .main-nav > li.active > a,
[data-theme="dark"] .main-nav > li.current-menu-item > a,
[data-theme="dark"] .main-nav > li.current-menu-ancestor > a {
  background: rgba(126,184,220,.12);
  color: #7eb8dc;
}
.main-nav > li > a .chevron { transition: transform .2s; font-size: .7rem; opacity: .6; }
.main-nav > li:hover > a .chevron { transform: rotate(180deg); }

/* Portal button */
.main-nav .nav-portal > a {
  background: var(--navy); color: #fff !important; border-radius: 50px; padding: 8px 18px;
}
.main-nav .nav-portal > a:hover { background: var(--navy-deep); }

/* DROPDOWN */
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .2s; z-index: 100; padding: 6px;
}
.main-nav > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li a {
  display: block; padding: 9px 14px; border-radius: 6px;
  font-size: .85rem; color: var(--text); transition: all .15s;
}
.sub-menu li a:hover { background: rgba(13,148,136,.08); color: var(--teal); }
.sub-menu li.current-menu-item > a { color: var(--teal); font-weight: 600; }

/* HEADER CONTROLS */
.header-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Language switcher */
.lang-switcher { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 50px; overflow: hidden; background: var(--bg-alt); }
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 5px 10px; font-size: .75rem; font-weight: 600;
  color: var(--text-muted); transition: all .2s;
}
.lang-btn.active, .lang-btn:hover { background: var(--navy); color: #fff; }
[data-theme="dark"] .lang-btn.active { background: var(--teal); }

/* Search */
.search-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all .2s;
}
.search-toggle:hover { background: var(--bg-alt); color: var(--navy); }

/* Dark toggle */
.dark-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem; transition: all .2s;
}
.dark-toggle:hover { background: var(--bg-alt); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 120px; z-index: 2000;
  opacity: 0; visibility: hidden; transition: all .2s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay form { display: flex; gap: 8px; width: 100%; max-width: 600px; padding: 0 24px; }
.search-overlay input {
  flex: 1; padding: 14px 20px; border-radius: 50px;
  border: none; font-size: 1rem;
  background: var(--bg-card); color: var(--text);
  outline: 2px solid var(--teal);
}
.search-overlay button {
  background: var(--teal); color: #fff; border: none;
  border-radius: 50px; padding: 0 24px; cursor: pointer;
  font-weight: 600;
}
.search-close {
  position: absolute; top: 80px; right: 24px;
  background: transparent; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; justify-content: center; align-items: center;
  border: 1px solid var(--border); border-radius: 8px; background: transparent; cursor: pointer;
}
.nav-hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md); z-index: 999; padding: 16px 0 24px;
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0 16px; }
.mobile-nav ul li a { display: block; padding: 11px 16px; border-radius: 8px; color: var(--text); font-weight: 500; }
.mobile-nav ul li a:hover { background: var(--bg-alt); color: var(--teal); }
.mobile-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--bg-alt); margin: 4px 0 4px 16px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0f2645 55%, #0d3d6b 100%);
  display: flex; align-items: center; padding: 100px 0 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #7dd3cf; border-radius: 50px; padding: 6px 16px;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff; line-height: 1.15; margin-bottom: 24px; font-weight: 700;
}
.hero h1 span { color: #7dd3cf; }
.hero p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 36px; max-width: 580px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); text-align: center; cursor: pointer;
}
.hero-scroll svg { animation: bounce 2s infinite; display: block; margin: 0 auto 4px; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ============================================
   STATS COUNTER
   ============================================ */
.stats-bar {
  background: var(--bg-card);
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow-md);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0;
}
.stat-item {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-alt); }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem; font-weight: 700; color: var(--navy);
  line-height: 1; margin-bottom: 6px;
}
[data-theme="dark"] .stat-number { color: #7eb8dc; }
.stat-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.stat-desc { font-size: .76rem; color: var(--text-light); }

/* ============================================
   FEATURED PUBLICATIONS
   ============================================ */
.pub-card { display: flex; gap: 20px; align-items: flex-start; }
.pub-cover {
  width: 90px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), #2563eb);
  border-radius: 8px; padding: 12px;
  aspect-ratio: 3/4; display: flex; flex-direction: column;
  justify-content: flex-end;
}
.pub-cover-label { font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.pub-cover-title { font-size: .72rem; color: #fff; font-weight: 600; line-height: 1.3; }
.pub-cover-line { width: 24px; height: 3px; background: var(--teal); border-radius: 2px; margin-top: 10px; }
.pub-info { flex: 1; }
.pub-info h3 { font-family: var(--font-serif); font-size: 1rem; color: var(--navy); margin: 8px 0 6px; line-height: 1.4; }
[data-theme="dark"] .pub-info h3 { color: #e2e8f0; }
.pub-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; }
.pub-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================
   EVENTS
   ============================================ */
.event-card { display: flex; gap: 20px; align-items: flex-start; padding: 20px; }
.event-date-box {
  min-width: 64px; text-align: center;
  background: var(--bg-alt); border-radius: var(--radius-sm);
  padding: 10px 8px; flex-shrink: 0;
}
.event-month { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); }
.event-day { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
[data-theme="dark"] .event-day { color: #7eb8dc; }
.event-info { flex: 1; }
.event-info h3 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); margin: 6px 0 6px; }
[data-theme="dark"] .event-info h3 { color: #e2e8f0; }
.event-meta { display: flex; gap: 16px; font-size: .78rem; color: var(--text-muted); flex-wrap: wrap; }
.event-meta span { display: flex; align-items: center; gap: 5px; }

/* ============================================
   RESEARCHERS
   ============================================ */
.researcher-card { text-align: center; padding: 28px 20px; }
.researcher-photo {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 16px;
  border: 3px solid var(--teal);
}
.researcher-photo-placeholder {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 2rem; color: #fff; font-weight: 700;
  border: 3px solid var(--teal);
}
.researcher-card h3 { font-size: 1rem; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
[data-theme="dark"] .researcher-card h3 { color: #e2e8f0; }
.researcher-specialty { font-size: .78rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.researcher-title-text { font-size: .82rem; color: var(--text-muted); }

/* ============================================
   PODCAST/VIDEO SECTION
   ============================================ */
.podcast-section { background: var(--bg-alt); }
.video-wrap {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; background: #000;
  box-shadow: var(--shadow-md);
}
.video-wrap iframe { width: 100%; height: 100%; border: none; }
.podcast-list { display: flex; flex-direction: column; gap: 12px; }
.podcast-item {
  display: flex; gap: 14px; align-items: center;
  padding: 14px; background: var(--bg-card);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  cursor: pointer; transition: all .2s;
}
.podcast-item:hover { border-color: var(--teal); background: rgba(13,148,136,.04); }
.podcast-item.active { border-color: var(--teal); background: rgba(13,148,136,.08); }
.podcast-thumb {
  width: 52px; height: 52px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; font-size: 1.2rem;
}
.podcast-item-info { flex: 1; }
.podcast-item-info h4 { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.podcast-item-info p { font-size: .76rem; color: var(--text-muted); }
.podcast-duration { font-size: .75rem; font-weight: 600; color: var(--text-muted); }

/* ============================================
   RESEARCHER PORTAL
   ============================================ */
.portal-section { background: linear-gradient(135deg, var(--navy) 0%, #0f2645 100%); }
.portal-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 32px;
  text-align: center; transition: all .2s;
}
.portal-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.portal-icon { font-size: 2.5rem; margin-bottom: 16px; }
.portal-card h3 { color: #fff; font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 10px; }
.portal-card p { color: rgba(255,255,255,.7); font-size: .88rem; margin-bottom: 20px; }

/* ============================================
   DONATE SECTION
   ============================================ */
.donate-section {
  background: linear-gradient(135deg, var(--teal) 0%, #0f766e 100%);
  padding: 72px 0; text-align: center;
}
.donate-section h2 { color: #fff; font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 14px; }
.donate-section p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.donate-amounts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.donate-amount {
  padding: 10px 22px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,.4);
  color: #fff; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all .2s; background: transparent;
}
.donate-amount:hover, .donate-amount.selected { background: rgba(255,255,255,.2); border-color: #fff; }

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.8);
  padding: 56px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; }
.footer-logo-text { }
.footer-logo-name { font-family: var(--font-serif); font-size: 1.15rem; color: #fff; font-weight: 700; display: block; }
.footer-logo-sub { font-size: .62rem; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.5); display: block; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: .8rem; transition: all .2s;
}
.footer-social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.footer-col h4 { color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.55); font-size: .84rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: rgba(255,255,255,.55); font-size: .84rem; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .8rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.35); font-size: .8rem; }
.footer-bottom-links a:hover { color: var(--teal); }

/* ============================================
   PAGE HERO BANNER
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2645 100%);
  padding: 120px 0 56px; margin-top: 72px;
}
.page-hero h1 { font-family: var(--font-serif); color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 560px; }
.page-hero .breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: .8rem; color: rgba(255,255,255,.5); }
.page-hero .breadcrumb a { color: var(--teal-light); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.3); }

/* ============================================
   PUBLICATIONS PAGE
   ============================================ */
.pub-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 7px 16px; border-radius: 50px; font-size: .83rem;
  font-weight: 600; border: 2px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--teal); color: var(--teal); background: rgba(13,148,136,.06); }
.pub-search { display: flex; gap: 12px; margin-bottom: 28px; }
.pub-search input {
  flex: 1; padding: 12px 18px; border-radius: 50px;
  border: 2px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: .9rem; outline: none; transition: border-color .2s;
}
.pub-search input:focus { border-color: var(--teal); }
.pub-row {
  display: flex; gap: 24px; padding: 24px;
  border-bottom: 1px solid var(--border); align-items: flex-start;
  transition: background .2s;
}
.pub-row:hover { background: var(--bg-alt); }
.pub-row:last-child { border-bottom: none; }
.pub-row-cover {
  width: 80px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), #2563eb);
  border-radius: 8px; padding: 10px;
  aspect-ratio: 3/4; display: flex; flex-direction: column;
  justify-content: flex-end;
}
.pub-row-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); margin: 8px 0 6px; line-height: 1.4; }
[data-theme="dark"] .pub-row-title { color: #e2e8f0; }

/* ============================================
   EVENTS PAGE
   ============================================ */
.event-row {
  display: flex; gap: 24px; align-items: center;
  padding: 24px; border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.event-row:hover { background: var(--bg-alt); }
.event-row-date {
  min-width: 72px; text-align: center;
  background: var(--navy); border-radius: var(--radius-sm); padding: 12px 8px;
}
.event-row-date .month { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--teal-light); }
.event-row-date .day { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-info-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(13,148,136,.1); display: flex; align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0; font-size: 1.1rem;
}
.contact-info-item h4 { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
[data-theme="dark"] .contact-info-item h4 { color: #e2e8f0; }
.contact-info-item p { color: var(--text-muted); font-size: .88rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: .9rem; font-family: var(--font-sans);
  outline: none; transition: border-color .2s; margin-bottom: 16px;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); }
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form label { display: block; font-size: .83rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 28px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); }
.value-icon { font-size: 2rem; margin-bottom: 14px; }
.value-card h3 { color: var(--navy); font-weight: 700; margin-bottom: 8px; }
[data-theme="dark"] .value-card h3 { color: #e2e8f0; }
.value-card p { color: var(--text-muted); font-size: .87rem; }
.team-lead-card { display: flex; gap: 24px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); margin-bottom: 16px; }
.team-lead-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--teal); }
.team-lead-photo-ph { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--teal)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.5rem; color: #fff; font-weight: 700; }
.team-lead-info h3 { font-family: var(--font-serif); color: var(--navy); margin-bottom: 4px; }
[data-theme="dark"] .team-lead-info h3 { color: #e2e8f0; }

/* ============================================
   PORTAL PAGE TABS
   ============================================ */
.portal-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.portal-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; cursor: pointer; font-weight: 600;
  font-size: .88rem; color: var(--text-muted); border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all .2s; background: transparent; border-top: none; border-left: none; border-right: none;
}
.portal-tab:hover { color: var(--navy); }
.portal-tab.active { color: var(--navy); border-bottom-color: var(--teal); }
[data-theme="dark"] .portal-tab.active { color: #7eb8dc; }
.portal-content { display: none; }
.portal-content.active { display: block; }
.form-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-section h3 { font-family: var(--font-serif); color: var(--navy); margin-bottom: 6px; }
[data-theme="dark"] .form-section h3 { color: #e2e8f0; }
.form-section > p { color: var(--text-muted); font-size: .88rem; margin-bottom: 24px; }

/* ============================================
   ABOUT HERO EXTENDED
   ============================================ */
.mission-block { padding: 48px; background: var(--bg-card); border-radius: var(--radius); border-left: 4px solid var(--teal); margin-bottom: 24px; }
.mission-block h3 { font-family: var(--font-serif); color: var(--navy); font-size: 1.4rem; margin-bottom: 12px; }
[data-theme="dark"] .mission-block h3 { color: #e2e8f0; }
.mission-block p { color: var(--text-muted); line-height: 1.8; }

/* ============================================
   MISC
   ============================================ */
.map-wrap { border-radius: var(--radius); overflow: hidden; height: 300px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .88rem; }
.alert-success { background: rgba(13,148,136,.1); border-left: 3px solid var(--teal); color: var(--teal); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; border: 1px solid var(--border); color: var(--text); transition: all .2s; }
.pagination a:hover, .pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.wp-block-image img { border-radius: var(--radius-sm); }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s, transform .6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Hide desktop nav, show hamburger */
  .nav-wrap { display: none !important; }
  .nav-hamburger { display: flex !important; }
  /* Show lang switcher, search, donate compactly */
  .header-controls .lang-switcher { display: flex; gap: 3px; }
  .lang-btn { padding: 3px 7px; font-size: .72rem; min-width: 28px; }
  /* Compact header controls row */
  .header-controls { gap: 5px; }
  .header-inner { gap: 6px; }
  /* Shrink logo text so controls have room */
  .site-logo .site-title { font-size: 1rem; }
  /* Donate button compact */
  .btn-donate { padding: 5px 10px; font-size: .75rem; white-space: nowrap; }
  /* Hide dark-mode toggle on smallest screens to save space */
  .dark-toggle { display: none; }
  /* Grids */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .pub-row { flex-direction: column; }
  .event-row { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 90px 0 48px; }
  .hero-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .portal-tabs { flex-direction: column; border-bottom: none; }
  .portal-tab { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 4px; }
  .portal-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
}

/* ============================================================
   HERO SLIDER — v4.0
   ============================================================ */
.hero-slider {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  background: #1a3a5c;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
  transform: scale(1.04);
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.9s ease;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,58,92,0.90) 0%, rgba(26,58,92,0.72) 50%, rgba(26,58,92,0.35) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-slide .hero-content {
  max-width: 640px;
}
.hero-slide .hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-family: var(--font-serif);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.hero-slide .hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(13,148,136,0.22);
  border: 1px solid rgba(13,148,136,0.4);
  color: #5eead4;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.1); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
  padding: 0;
}
.slider-dot.active {
  width: 28px;
  border-radius: 5px;
  background: #0d9488;
}

/* Counter */
.slider-counter {
  position: absolute;
  bottom: 36px;
  right: 28px;
  z-index: 20;
  color: rgba(255,255,255,0.6);
  font-size: .8rem;
  font-weight: 600;
  display: none;
}
@media (min-width: 768px) { .slider-counter { display: block; } }
.slider-counter #sliderCurrent { color: #fff; font-weight: 700; }

/* Stats icon */
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #0d9488;
}

/* Section eyebrow */
.section-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(13,148,136,0.3);
  color: #0d9488;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ============================================================
   RESEARCH AREAS GRID — v4.0
   ============================================================ */
.research-areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.research-area-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: left;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}
.research-area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: rgba(13,148,136,0.2);
}
.ra-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--area-bg, #f0fdfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.ra-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: .95rem;
  color: #1a3a5c;
  margin: 0 0 8px;
  line-height: 1.3;
}
.ra-count {
  font-size: .72rem;
  font-weight: 600;
  color: var(--area-tc, #0d9488);
  background: var(--area-bg, #f0fdfa);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 50px;
}
@media (max-width: 1024px) { .research-areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .research-areas-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   RAAD v5.0 — LANGUAGE SWITCHER (CSS body-class approach)
   All .lang-so and .lang-ar are hidden by default in CSS.
   JS adds .lang-XX class to <html>/<body> to show active lang.
   ============================================================ */

/* Default: hide non-English spans */
.lang-so,
.lang-ar { display: none; }

/* When English is active (default — no extra class needed, but explicit) */
html.lang-en .lang-so,
html.lang-en .lang-ar,
body.lang-en .lang-so,
body.lang-en .lang-ar { display: none !important; }

html.lang-en .lang-en,
body.lang-en .lang-en { display: inline !important; }

/* Somali */
html.lang-so .lang-en,
html.lang-so .lang-ar,
body.lang-so .lang-en,
body.lang-so .lang-ar { display: none !important; }

html.lang-so .lang-so,
body.lang-so .lang-so { display: inline !important; }

/* Arabic */
html.lang-ar .lang-en,
html.lang-ar .lang-so,
body.lang-ar .lang-en,
body.lang-ar .lang-so { display: none !important; }

html.lang-ar .lang-ar,
body.lang-ar .lang-ar { display: inline !important; }

/* Block-level overrides (p, div, li with lang class) */
html.lang-so p.lang-so,
html.lang-so div.lang-so,
body.lang-so p.lang-so,
body.lang-so div.lang-so { display: block !important; }

html.lang-ar p.lang-ar,
html.lang-ar div.lang-ar,
body.lang-ar p.lang-ar,
body.lang-ar div.lang-ar { display: block !important; }

html.lang-en p.lang-en,
html.lang-en div.lang-en,
body.lang-en p.lang-en,
body.lang-en div.lang-en { display: block !important; }

/* ============================================================
   RAAD v5.0 — MOBILE LEFT SIDEBAR NAV
   ============================================================ */

/* Overlay backdrop */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1040;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity .3s;
}
.sidebar-overlay.open { display: block; }

/* Prevent body scroll when sidebar open */
body.sidebar-open { overflow: hidden; }

/* The sidebar panel */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: var(--bg-card);
  box-shadow: 4px 0 32px rgba(0,0,0,.18);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: left .3s cubic-bezier(.25,.46,.45,.94);
}
.mobile-sidebar.open { left: 0; }

[dir="rtl"] .mobile-sidebar {
  left: auto;
  right: -300px;
  transition: right .3s cubic-bezier(.25,.46,.45,.94);
}
[dir="rtl"] .mobile-sidebar.open { right: 0; }

/* Sidebar header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  border-bottom: 1px solid var(--border);
  background: #1a3a5c;
  flex-shrink: 0;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.sidebar-logo span {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.sidebar-close {
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 8px;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.sidebar-close:hover { background: rgba(255,255,255,.2); }

/* Sidebar language */
.sidebar-lang {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(26,58,92,.05);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-lang .lang-btn {
  flex: 1;
  padding: 6px 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
}
.sidebar-lang .lang-btn.active {
  background: #1a3a5c;
  color: #fff;
  border-color: #1a3a5c;
}

/* Sidebar nav */
.sidebar-nav {
  list-style: none;
  padding: 10px 0;
  flex: 1;
  overflow-y: auto;
}
.sidebar-nav li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  position: relative;
  border-left: 3px solid transparent;
  margin: 1px 8px 1px 0;
  border-radius: 0 8px 8px 0;
}
.sidebar-nav li > a svg { flex-shrink: 0; opacity: .65; transition: opacity .15s; }
.sidebar-nav li > a:hover svg,
.sidebar-nav li.active > a svg { opacity: 1; }
.sidebar-nav li > a:hover,
.sidebar-nav li.active > a {
  background: rgba(13,148,136,.09);
  color: #0d9488;
  border-left-color: #0d9488;
}
.sidebar-nav li.active > a { font-weight: 700; background: rgba(13,148,136,.14); }

/* Sub-arrow rotate on open */
.sidebar-nav .sub-arrow {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform .28s cubic-bezier(.25,.46,.45,.94);
  opacity: .5;
}
.sidebar-nav li.open > a .sub-arrow { transform: rotate(180deg); opacity: 1; }

/* Sub menu — smooth height animation */
.sidebar-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  background: rgba(13,148,136,.04);
  border-left: 3px solid rgba(13,148,136,.3);
  margin: 0 8px 0 0;
  padding: 0;
  transition: max-height .32s cubic-bezier(.25,.46,.45,.94);
  border-radius: 0 6px 6px 0;
}
.sidebar-nav li.open .sidebar-sub { max-height: 400px; padding: 4px 0; }
.sidebar-sub li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 9px 30px;
  color: var(--text-muted);
  font-size: .84rem;
  text-decoration: none;
  transition: color .15s, background .15s;
  border-radius: 0 6px 6px 0;
  margin-right: 4px;
}
.sidebar-sub li a::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  flex-shrink: 0;
}
.sidebar-sub li a:hover { color: #0d9488; background: rgba(13,148,136,.08); }
.sidebar-sub li a:hover::before { opacity: 1; }

/* Sidebar footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
}
.sidebar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26,58,92,.08);
  color: #1a3a5c;
  text-decoration: none;
  font-size: .85rem;
  transition: background .2s, color .2s;
}
.sidebar-social a:hover { background: #0d9488; color: #fff; }

/* ============================================================
   RAAD v5.0 — IMPROVED RESPONSIVE + MOBILE VIEW
   ============================================================ */

/* Hide old mobile-nav if still in template */
.mobile-nav { display: none !important; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .research-areas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-wrap { display: none; }
  .nav-hamburger { display: flex; }
  /* Show lang switcher on mobile header */
  .header-controls .lang-switcher { display: flex; gap: 4px; }
  .lang-btn { padding: 4px 8px; font-size: .75rem; }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .pub-row { flex-direction: column; }
  .event-row { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 70vh; min-height: 500px; }
  .hero-slide-content { height: 70vh; min-height: 500px; }
  .hero-slide .hero-content h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero-slide .hero-content p { font-size: .95rem; }
  .slider-arrows { bottom: 48px; }
  .slider-dots { bottom: 14px; }
  .slider-counter { bottom: 16px; right: 16px; font-size: .72rem; }
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .pub-row-cover { display: none; }
  .portal-tabs { flex-direction: column; border-bottom: none; gap: 6px; }
  .portal-tab { border: 1px solid var(--border); border-radius: 8px; }
  .portal-tab.active { background: #1a3a5c; color: #fff; border-color: #1a3a5c; }
  /* Header tighter on mobile */
  .site-logo .logo-sub { display: none; }
  .btn-donate { display: none; }
  .header-controls { gap: 6px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .research-areas-grid { grid-template-columns: 1fr 1fr; }
  .pub-filter { gap: 6px; }
  .filter-btn { padding: 7px 12px; font-size: .8rem; }
  .hero-slider { height: 65vh; min-height: 420px; }
  .hero-slide-content { height: 65vh; min-height: 420px; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .hero-buttons .btn { justify-content: center; }
  .lang-btn { padding: 3px 6px; font-size: .7rem; }
  .footer-social a { width: 34px; height: 34px; font-size: .8rem; }
}

/* ============================================================
   RAAD v5.0 — IMPROVED FOOTER SOCIAL ICONS
   ============================================================ */
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.footer-social a:hover {
  background: #0d9488;
  color: #fff;
  transform: translateY(-2px);
}
.footer-social a svg { display: block; }

/* ============================================================
   RAAD v5.0 — HEADER SCROLLED STATE
   ============================================================ */
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.14);
}


/* ============================================================
   RAAD v7.0 — REDESIGNED PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  background: #0f2640;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 110px 0 56px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(13,148,136,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 30%, rgba(26,58,92,.6) 0%, transparent 70%);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(13,148,136,.18);
  border: 1px solid rgba(13,148,136,.35);
  color: var(--teal-light);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.page-hero-title {
  font-family: var(--font-serif);
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 700;
}
.page-hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.page-hero-breadcrumb a {
  color: var(--teal-light);
  text-decoration: none;
  transition: color .2s;
}
.page-hero-breadcrumb a:hover { color: #fff; }
.page-hero-breadcrumb svg { opacity: .4; }

/* ============================================================
   RAAD v7.0 — ABOUT PAGE COMPONENTS
   ============================================================ */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-text-block {
  max-width: 560px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.about-vision-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2a44 100%);
  border-radius: 16px;
  padding: 32px 28px;
  color: #fff;
}
.about-vision-icon {
  width: 56px; height: 56px;
  background: rgba(13,148,136,.2);
  border: 1px solid rgba(13,148,136,.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  margin-bottom: 18px;
}
.about-vision-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 12px;
}
.about-vision-card p {
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  font-size: .95rem;
}
.about-history-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

/* Impact numbers section */
.about-impact-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2a44 100%);
}
.about-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 768px) {
  .about-impact-grid { grid-template-columns: repeat(2, 1fr); }
}
.about-impact-item {
  text-align: center;
  padding: 48px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.about-impact-item:last-child { border-right: none; }
.about-impact-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 10px;
}
.about-impact-label {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
}

/* Focus areas grid */
.about-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 768px) {
  .about-focus-grid { grid-template-columns: repeat(2, 1fr); }
}
.about-focus-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all .2s;
}
.about-focus-item:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.08);
}
.about-focus-icon { font-size: 1.6rem; flex-shrink: 0; }
.about-focus-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ============================================================
   RAAD v7.0 — PORTAL FORM INPUT STYLES
   ============================================================ */
.portal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.portal-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.portal-input option { background: var(--bg-card); color: var(--text); }
.portal-textarea {
  resize: vertical;
  min-height: 110px;
}
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.form-field { display: flex; flex-direction: column; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .about-focus-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RAAD v7.0 — NAVIGATION DESKTOP ALIGNMENT FIX
   Desktop-only rules — MUST stay inside min-width so they
   do NOT override the mobile media-query display:none on .nav-wrap
   ============================================================ */
@media (min-width: 769px) {
  .nav-wrap { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
  .main-nav { display: flex; align-items: center; gap: 0; list-style: none; flex-wrap: nowrap; }
  .main-nav > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 12px; border-radius: 8px;
    font-size: .85rem; font-weight: 500;
    color: var(--text); transition: all .2s;
    text-decoration: none; white-space: nowrap;
  }
  .header-controls { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
  .site-logo { flex-shrink: 0; }
}

/* Sub-menu alignment */
.sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
  list-style: none;
}
.main-nav > li:hover > .sub-menu,
.main-nav > li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.sub-menu li a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .84rem;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.sub-menu li a:hover {
  background: rgba(13,148,136,.08);
  color: var(--teal);
}

/* ============================================================
   RAAD v7.0 — SECTION EYEBROW (global)
   ============================================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: var(--font-serif); font-size: clamp(1.6rem,3vw,2.4rem); }

/* ============================================================
   RAAD v7.0 — PORTAL TABS IMPROVED
   ============================================================ */
.portal-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
  padding-bottom: 0;
}
.portal-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px 10px 0 0;
  font-size: .88rem;
  font-weight: 600;
  background: transparent;
  border: 2px solid transparent;
  border-bottom: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: -2px;
}
.portal-tab:hover { color: var(--teal); background: rgba(13,148,136,.05); }
.portal-tab.active {
  color: var(--teal);
  background: var(--bg-card);
  border-color: var(--border) var(--border) var(--bg-card);
}
.portal-content { display: none; }
.portal-content.active { display: block; }
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 800px;
}
.form-section h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.35rem;
}
[data-theme="dark"] .form-section h3 { color: #7eb8dc; }
.form-section > p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================================
   RAAD v7.0 — RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 1024px) {
  .page-hero { padding: 100px 0 48px; }
  .about-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-impact-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .about-impact-item:nth-child(even) { border-right: none; }
}
@media (max-width: 768px) {
  .page-hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .page-hero-sub { font-size: .95rem; }
  .form-section { padding: 24px 18px; }
  .about-focus-grid { grid-template-columns: repeat(2, 1fr); }
  .about-impact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .about-focus-grid { grid-template-columns: 1fr; }
  .about-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-impact-item { padding: 32px 16px; }
  .portal-tab { padding: 10px 14px; font-size: .82rem; }
}
