/*
Theme Name: Mennati Researcher
Theme URI: https://mennati.com
Author: Dr. Afsaneh Mennati
Author URI: https://mennati.com
Description: Professional bilingual (EN/FA) researcher biography theme for pharmaceutical nanotechnology academics. Optimized for SEO, performance, and academic credibility. Compatible with Polylang & WPML.
Version: 2.7.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mennati-researcher
Tags: research, academic, bilingual, rtl, seo-optimized, pharmaceutical, nanotechnology
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Color Palette */
  --clr-teal:        #0F7B6C;
  --clr-teal-mid:    #1A9E8C;
  --clr-teal-light:  #E6F4F1;
  --clr-teal-glow:   rgba(15,123,108,.08);
  --clr-gold:        #C9922A;
  --clr-gold-light:  #FDF4E3;
  --clr-ink:         #0D1117;
  --clr-ink-mid:     #3D4451;
  --clr-ink-soft:    #6B7280;
  --clr-paper:       #F8F7F4;
  --clr-white:       #FFFFFF;
  --clr-border:      rgba(13,17,23,.08);
  --clr-border-strong: rgba(13,17,23,.14);

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width:  1100px;
  --col-width:  680px;
  --radius:     12px;
  --radius-sm:  6px;
  --radius-lg:  20px;

  /* Transitions */
  --transition: all .2s ease;
}

/* ============================================================
   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-body);
  /* v2.7.0: Removed the 87KB lab-bg.jpg from body — it was loading on EVERY
     page, causing 87KB download + expensive background-attachment:fixed repaints
     on every scroll frame. Now body has a lightweight CSS gradient only.
     The lab-bg.jpg is scoped to body.home (front page only) below. */
  background-color: var(--clr-paper);
  background-image: linear-gradient(180deg, rgba(230, 244, 241, 0.3), rgba(248, 247, 244, 0.9));
  color: var(--clr-ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* v2.7.0: Lab background ONLY on the front page (body.home) — saves 87KB on
   every internal page. No background-attachment:fixed (expensive on mobile). */
body.home {
  background-image:
    linear-gradient(rgba(248, 247, 244, 0.88), rgba(248, 247, 244, 0.92)),
    url('assets/images/lab-bg.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll; /* v2.7.0: scroll instead of fixed (perf) */
}

/* Optional toggle — when body has class `mennati-no-lab-bg`, no image */
body.mennati-no-lab-bg {
  background-image: none;
  background-color: var(--clr-paper);
}

/* Mobile: disable any background image entirely for performance */
@media (max-width: 768px) {
  body.home {
    background-image: linear-gradient(180deg, rgba(230, 244, 241, 0.3), rgba(248, 247, 244, 0.9));
  }
}

/* Reduced motion: plain background */
@media (prefers-reduced-motion: reduce) {
  body, body.home {
    background-image: none;
    background-color: var(--clr-paper);
  }
}

/* RTL Support */
body.rtl,
html[dir="rtl"] body {
  font-family: 'Vazirmatn', var(--font-body);
  direction: rtl;
  text-align: right;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--clr-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--clr-teal);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--clr-teal-light);
  color: var(--clr-teal);
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--clr-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4 {
  font-family: 'Vazirmatn', Georgia, serif;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .75rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
h4 { font-size: 1.05rem; margin-bottom: .4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.25rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; gap: 1rem; flex-wrap: wrap; }

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

/* 2.2.6: skip-link is `.visually-hidden` by default, but it MUST become
   visible when focused via keyboard — otherwise keyboard users can't skip
   past the header. The previous CSS kept it permanently hidden. */
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 18px;
  clip: auto;
  white-space: normal;
  background: #fff;
  color: var(--clr-teal);
  z-index: 9999;
  border: 2px solid var(--clr-teal);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(13,17,23,.18);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: var(--space-2xl) 0; }
/* 2.3.3: section backgrounds use rgba with ~95% opacity so the blurred
   lab background image shows through subtly on the homepage (and other
   pages) instead of being completely covered. */
.section--white { background: rgba(255, 255, 255, 0.95); }
.section--paper { background: rgba(248, 247, 244, 0.95); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--clr-teal);
  flex-shrink: 0;
}

body.rtl .section-label { flex-direction: row-reverse; }
body.rtl .section-label::before { order: 1; }

.section-intro {
  font-size: 1.05rem;
  color: var(--clr-ink-mid);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: var(--space-lg);
}

body.rtl .section-intro { margin-left: auto; margin-right: 0; }

/* ============================================================
   CARDS & COMPONENTS
   ============================================================ */
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--clr-teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(15,123,108,.1);
}

.card--accent { border-top: 3px solid var(--clr-teal); }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-lg);
  letter-spacing: 0.02em;
}

.badge--teal  { background: var(--clr-teal-light); color: var(--clr-teal); }
.badge--gold  { background: var(--clr-gold-light); color: var(--clr-gold); }
.badge--open  {
  background: #E6F9F4; color: #0A7A5E;
  border: 1px solid #A5D9CE;
  padding: 5px 12px;
  font-size: 0.82rem;
}
.badge--open::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #0F7B6C;
  margin-right: 7px;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
body.rtl .badge--open::before { margin-right: 0; margin-left: 7px; }

@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(15,123,108,.4); }
  50%      { opacity: .5; box-shadow: 0 0 0 5px rgba(15,123,108,0); }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
  line-height: 1;
}

.btn--primary {
  background: var(--clr-teal);
  color: #fff;
}
.btn--primary:hover {
  background: var(--clr-teal-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,123,108,.28);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--clr-ink-mid);
  border: 1px solid var(--clr-border-strong);
}
.btn--outline:hover {
  border-color: var(--clr-teal);
  color: var(--clr-teal);
  transform: translateY(-1px);
}

/* CHIPS / TAGS */
.chip {
  display: inline-block;
  font-size: 0.78rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-border-strong);
  color: var(--clr-ink-mid);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  transition: var(--transition);
}
.chip:hover { border-color: var(--clr-teal); color: var(--clr-teal); background: var(--clr-teal-glow); }

/* CHIP CONTAINER */
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248,247,244,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow .3s;
  overflow: hidden;
}

/* v2.7.0: Disable backdrop-filter on mobile — it's the #1 paint performance
   killer on low-end devices. Use a solid background instead. */
@media (max-width: 768px) {
  #site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(248, 247, 244, 0.97);
  }
}

#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

/* 2.3.0: Animated molecular header background — three orbiting nodes
   over a soft flowing wave path. Honors prefers-reduced-motion. */
.header-bg-molecular {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity .4s ease;
}
.header-bg-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.header-bg-molecular .hb-molecule {
  transform-origin: center;
  animation: hb-orbit 14s linear infinite;
}
.header-bg-molecular .hb-molecule--1 { animation-delay: 0s;   animation-duration: 14s; }
.header-bg-molecular .hb-molecule--2 { animation-delay: -4s;  animation-duration: 18s; }
.header-bg-molecular .hb-molecule--3 { animation-delay: -8s;  animation-duration: 22s; }

@keyframes hb-orbit {
  0%   { transform: translate(0vw,    40px)  scale(1);   opacity: .9; }
  25%  { transform: translate(33vw,   20px)  scale(1.1); opacity: .6; }
  50%  { transform: translate(66vw,   60px)  scale(.95); opacity: .8; }
  75%  { transform: translate(99vw,   30px)  scale(1.05);opacity: .5; }
  100% { transform: translate(132vw,  40px)  scale(1);   opacity: 0; }
}
/* Slow horizontal drift for the wave paths (CSS-only, no JS) */
.header-bg-svg path {
  animation: hb-wave-drift 22s ease-in-out infinite alternate;
}
@keyframes hb-wave-drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-30px); }
}

@media (prefers-reduced-motion: reduce) {
  .header-bg-molecular .hb-molecule,
  .header-bg-svg path { animation: none !important; }
  .header-bg-molecular { opacity: .5; }
}

/* Hide the molecular bg if the user disabled it via Customizer */
body.mennati-no-animated-header .header-bg-molecular { display: none; }

/* Ensure header content sits above the molecular layer */
.site-branding, .nav-right-wrapper, .header-accent-bar { position: relative; z-index: 1; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--clr-ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--clr-teal); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--clr-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--clr-teal);
  border-bottom-color: var(--clr-teal);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language switcher — Flag buttons */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--clr-border-strong);
  border-radius: 30px;
  backdrop-filter: blur(8px);
}
.lang-switcher a.lang-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-ink-soft);
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}
.lang-switcher a.lang-flag .flag-emoji {
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}
.lang-switcher a.lang-flag.active,
.lang-switcher a.lang-flag:hover {
  background: linear-gradient(135deg, var(--clr-teal), #0F7B6C);
  color: #fff;
  border-color: var(--clr-teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15,123,108,.25);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-ink);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 140px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -5%; width: 55%; height: 100%;
  background: radial-gradient(ellipse 70% 80% at 80% 40%, rgba(15,123,108,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--clr-teal);
}

body.rtl .hero-eyebrow { flex-direction: row-reverse; }
body.rtl .hero-eyebrow::before { order: 1; }

.hero h1 em { font-style: italic; color: var(--clr-teal); }

.hero-role {
  font-size: 1rem;
  color: var(--clr-ink-soft);
  font-weight: 400;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.5;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--clr-ink-mid);
  line-height: 1.78;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--clr-border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--clr-white);
  box-shadow: 0 2px 20px rgba(0,0,0,.04);
  margin-top: 2.5rem;
}

.stat-item {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--clr-border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--clr-teal);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-ink-soft);
  font-weight: 500;
}

/* Profile side card */
.profile-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border-strong);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 32px rgba(0,0,0,.06);
}

.profile-avatar {
  width: 86px; height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-teal-light) 0%, #C8EDE7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--clr-teal);
  margin-bottom: 1.25rem;
  border: 3px solid var(--clr-paper);
  box-shadow: 0 0 0 1px var(--clr-border-strong);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--clr-ink);
  margin-bottom: 4px;
}

.profile-role {
  font-size: 0.82rem;
  color: var(--clr-teal);
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.profile-links { display: flex; flex-direction: column; gap: 7px; }

.profile-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.81rem;
  color: var(--clr-ink-soft);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.profile-link:hover {
  border-color: var(--clr-teal);
  color: var(--clr-teal);
  background: var(--clr-teal-glow);
  text-decoration: none;
}
.profile-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   RESEARCH CARDS
   ============================================================ */
.research-card {
  background: var(--clr-paper);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-teal), var(--clr-teal-mid));
}

.research-card:hover {
  border-color: var(--clr-teal);
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(15,123,108,.1);
}

.research-icon {
  width: 42px; height: 42px;
  background: var(--clr-teal-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--clr-teal);
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.pub-list { display: flex; flex-direction: column; gap: 1rem; }

.pub-item {
  background: var(--clr-paper);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  transition: border-color .2s;
}
.pub-item:hover { border-color: var(--clr-border-strong); }

body.rtl .pub-item { grid-template-columns: 1fr 60px; }
body.rtl .pub-year { order: 2; text-align: left; }
body.rtl .pub-body { order: 1; }

.pub-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clr-teal);
  font-weight: 500;
  padding-top: 3px;
  white-space: nowrap;
}

.pub-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-ink);
  margin-bottom: 5px;
  line-height: 1.45;
}

.pub-journal {
  font-size: 0.82rem;
  color: var(--clr-ink-soft);
  margin-bottom: 8px;
  font-style: italic;
}

.pub-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }

.pub-doi {
  font-size: 0.78rem;
  color: var(--clr-teal);
  display: inline-block;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--clr-border-strong);
}

body.rtl .timeline { padding-left: 0; padding-right: 2.25rem; }
body.rtl .timeline::before { left: auto; right: 8px; }

.timeline-item { position: relative; margin-bottom: 2.75rem; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.25rem; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--clr-white);
  border: 2px solid var(--clr-teal);
  box-shadow: 0 0 0 3px var(--clr-teal-light);
}

body.rtl .timeline-dot { left: auto; right: -2.25rem; }

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-teal);
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.timeline-role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-ink);
  margin-bottom: 2px;
}

.timeline-place {
  font-size: 0.88rem;
  color: var(--clr-ink-soft);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--clr-ink-mid);
  line-height: 1.7;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--clr-teal-light);
  color: var(--clr-teal);
  border-radius: 4px;
  padding: 2px 8px;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skill-group {
  background: var(--clr-paper);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.skill-group-title {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-ink-soft);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--clr-border);
}

/* ============================================================
   AWARDS
   ============================================================ */
.award-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1.1rem 1.25rem;
  background: var(--clr-paper);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.award-item:hover { border-color: var(--clr-gold); }

.award-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-gold);
  flex-shrink: 0;
  margin-top: 6px;
}

.award-text {
  font-size: 0.88rem;
  color: var(--clr-ink-mid);
  line-height: 1.55;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-ink-mid);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--clr-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-ink);
  background: var(--clr-white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 3px rgba(15,123,108,.1);
}

.form-textarea { min-height: 130px; resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 0; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.9rem;
}
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 17px; height: 17px; color: var(--clr-teal); flex-shrink: 0; }
.contact-row a { color: var(--clr-ink-mid); }
.contact-row a:hover { color: var(--clr-teal); text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--clr-ink);
  color: rgba(255,255,255,.45);
  padding: 3rem 0 2rem;
  font-size: 0.84rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand { font-family: var(--font-display); font-size: 1.1rem; color: rgba(255,255,255,.9); margin-bottom: .5rem; }
.footer-desc { font-size: 0.83rem; line-height: 1.65; }

.footer-col-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-links-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-col a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-links-col a:hover { color: rgba(255,255,255,.9); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .profile-card { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --space-2xl: 4rem; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--clr-white); border-bottom: 1px solid var(--clr-border); padding: 1.5rem 2rem; gap: 1.25rem; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pub-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline { padding-left: 1.5rem; }
  .timeline::before { left: 5px; }
  .timeline-dot { left: -1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal, .reveal-on-scroll { transition: none !important; animation: none !important; }
}


/* ============================================================
   AESTHETICS & INTERACTIVE ELEMENTS (CELLWORKS INSPIRED)
   ============================================================ */

/* Hero Section Base */
/* 2.3.4: made the hero background semi-transparent (rgba) so the blurred
   lab background image on <body> shows through. Previously this used solid
   hex colors (#082422, #0d1117) which completely covered the body image —
   that's why the lab background was invisible on the homepage. */
.hero {
  background: radial-gradient(circle at 10% 20%, rgba(8, 36, 34, 0.92) 0%, rgba(13, 17, 23, 0.95) 90%);
  color: var(--clr-white);
  min-height: 80vh;
  display: flex;
  align-items: center;
  z-index: 1;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero__gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.4) 0%, #0d1117 100%);
  z-index: -1;
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 10;
}

.hero__title {
  color: var(--clr-white);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
}

/* Floating Nanoparticles Decorations */
.floating-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,158,140,0.15) 0%, rgba(15,123,108,0) 70%);
  pointer-events: none;
  z-index: 2;
}

.float-particle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: -50px;
  animation: float-slow 20s infinite ease-in-out;
}

.float-particle-2 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  left: 5%;
  animation: float-slow 15s infinite ease-in-out reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

/* Scroll reveal classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   DR. AFSANEH MENNATI BRANDING SHOWCASE
   ------------------------------------------------------------- */
.branding-section {
  position: relative;
  background-color: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
}

.branding-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
}

.branding-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Photo Glowing Ring Frame */
.portrait-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-glowing-ring {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(26, 158, 140, 0.4);
  animation: spin-clockwise 25s infinite linear;
}

.portrait-placeholder,
.portrait-frame {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,158,140,0.15) 0%, rgba(201,146,42,0.1) 100%);
  border: 4px solid var(--clr-paper);
  box-shadow: 0 8px 32px rgba(15, 123, 108, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-icon-svg {
  width: 140px;
  height: 140px;
}

/* Press & Interviews cards */
.card--press { border-left: 3px solid var(--clr-teal, #0F7B6C); }
.card--press .card__tag--press {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-teal, #0F7B6C);
  background: rgba(15,123,108,.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: .5rem;
}
.rtl .card--press { border-left: none; border-right: 3px solid var(--clr-teal, #0F7B6C); }

/* v2.7.6: Press card secondary date — bilingual display (Persian + Gregorian).
   Primary date is shown in the user's language; secondary is muted + smaller. */
.card__date-alt {
  display: inline-block;
  margin-inline-start: .55em;
  font-size: .72em;
  color: var(--clr-ink-soft, #6B7280);
  opacity: .85;
  font-family: var(--font-mono, 'SFMono-Regular', Menlo, monospace);
  letter-spacing: .02em;
}


@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Credentials info card */
.credentials-card {
  width: 100%;
  padding: 1.5rem;
  border-top: 3px solid var(--clr-teal);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  background: var(--clr-white);
}

.credentials-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--clr-ink);
  margin-bottom: 0.3rem;
}

.credentials-title {
  font-size: 0.8rem;
  color: var(--clr-teal);
  font-weight: 500;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credentials-action {
  width: 100%;
}

.branding-headline {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--clr-ink);
}

.branding-bio {
  font-size: 1.05rem;
  color: var(--clr-ink-mid);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Research Stats Grid */
.stats-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: var(--clr-paper);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--clr-teal);
  background-color: var(--clr-white);
  box-shadow: 0 8px 24px rgba(15,123,108,0.08);
}

.stat-box__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--clr-teal);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-box__label {
  display: block;
  font-size: 0.72rem;
  color: var(--clr-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.expertise-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* -------------------------------------------------------------
   AUTOMATED NANO-BIO JOURNEY ANIMATION LAYOUT
   ------------------------------------------------------------- */
.journey-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
  /* 2.3.3: relative positioning so the progress bar can sit at the top. */
  position: relative;
}

/* 2.3.3: progress bar across the top of the journey display.
   Animated by main.js (startProgressBar). Shows users how long until
   the next animation stage starts. */
.journey-progress {
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(15, 123, 108, 0.12);
  border-radius: 2px;
  overflow: hidden;
  z-index: 2;
}
.journey-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-teal), var(--clr-gold));
  border-radius: 2px;
}

/* Display monitor */
.journey-display {
  background: #0d1117;
  border: 4px solid var(--clr-paper);
  border-radius: var(--radius-lg);
  padding: 1rem;
  aspect-ratio: 3/2;
  box-shadow: 0 20px 50px rgba(13, 17, 23, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.journey-svg-graphic {
  width: 100%;
  height: 100%;
}

/* SVG Animations */
.spin-slow {
  transform-origin: 150px 200px;
  animation: spin-clockwise 20s infinite linear;
}

.spin-fast {
  transform-origin: 420px 200px;
  animation: spin-clockwise 6s infinite linear;
}

.pulse-slow {
  animation: pulse-glow 3s infinite ease-in-out;
}

.pulse-fast {
  transform-origin: 487px 197px;
  animation: pulse-glow 1.5s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.spin-reverse { animation-direction: reverse; }

.spin-fast-soft {
  transform-origin: 322px 200px;
  animation: spin-clockwise 10s infinite linear;
}

/* -------------------------------------------------------------
   STAGE 1 — Lipid bilayer self-assembly around the polymer core
   Each of the 12 phospholipid units "pops" into formation with a
   staggered delay (--d custom property per unit) so the shell
   visibly assembles rather than appearing all at once, then
   settles into a slow, continuous breathing motion.
   ------------------------------------------------------------- */
.lipid-heads { transform-origin: 150px 200px; }
.lipid-unit {
  transform-origin: 150px 200px;
  animation:
    lipidPop .6s cubic-bezier(.34,1.56,.64,1) both,
    lipidBreathe 4s ease-in-out .6s infinite;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + .6s);
}
.lipid-unit circle { fill: var(--clr-teal); }
.lipid-unit line   { stroke: var(--clr-teal); stroke-width: 2; stroke-linecap: round; opacity: .8; }

@keyframes lipidPop {
  from { opacity: 0; transform: scale(.2); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lipidBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

/* siRNA double-helix cargo — gentle unwinding/rewinding motion to
   read clearly as a nucleic-acid strand rather than a static motif */
.sirna-helix {
  transform-origin: 150px 200px;
  animation: helixBreathe 3.4s ease-in-out infinite;
}
@keyframes helixBreathe {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.08); }
}

/* -------------------------------------------------------------
   STAGE 2 — Targeting ligands reaching toward the HER2 receptor
   ------------------------------------------------------------- */
.ligand-arm {
  animation: ligandReach 1.4s ease-in-out infinite;
  transform-origin: 182px 200px;
}
@keyframes ligandReach {
  0%, 100% { transform: translateX(0); opacity: .75; }
  50%      { transform: translateX(3px); opacity: 1; }
}

/* Endocytosis pocket — the membrane cups inward around the docked
   particle before pinching off into an intracellular vesicle */
#receptor-docking { transition: opacity .5s ease; }

/* -------------------------------------------------------------
   STAGE 3 — RISC–siRNA complex gliding along the target mRNA,
   then the mRNA strand visibly cleaves into two drifting fragments
   ------------------------------------------------------------- */
.risc-bob {
  animation: riscBob 1.8s ease-in-out infinite;
  transform-origin: 455px 190px;
}
@keyframes riscBob {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50%      { transform: translate(-3px,3px) rotate(-4deg); }
}

#mrna-frag-a, #mrna-frag-b {
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
}
#mrna-chain-group.sliced #mrna-frag-a { transform: translate(-9px, -12px) rotate(-6deg); }
#mrna-chain-group.sliced #mrna-frag-b { transform: translate(11px, 14px) rotate(5deg); }

/* Apoptotic membrane blebbing — schematic, non-graphic depiction of
   programmed cell death following successful oncogene silencing */
.msn-fade-transition { transition: opacity .6s ease; }
.bleb {
  fill: rgba(225,29,72,0.22);
  stroke: rgba(225,29,72,0.55);
  stroke-width: 1.2;
  animation: blebPulse 2.4s ease-in-out infinite;
}
@keyframes blebPulse {
  0%, 100% { transform: scale(.85); opacity: .6; }
  50%      { transform: scale(1.12); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lipid-unit, .sirna-helix, .ligand-arm, .risc-bob, .bleb {
    animation: none !important;
  }
}

/* Timeline text cards */
.journey-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.journey-step-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.25rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.journey-step-card:hover {
  transform: translateY(-2px);
  border-color: var(--clr-border-strong);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.journey-step-card.active {
  border-color: var(--clr-teal);
  background-color: var(--clr-teal-glow);
  box-shadow: 0 10px 30px rgba(15, 123, 108, 0.08);
}

.journey-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(15, 123, 108, 0.25);
  line-height: 1;
}

.journey-step-card.active .journey-step-num {
  color: var(--clr-teal);
}

.journey-step-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--clr-ink);
  font-weight: 700;
}

.journey-step-desc {
  font-size: 0.84rem;
  color: var(--clr-ink-soft);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Card Hover glow visual effects */
.card:hover, .feature-card:hover {
  box-shadow: 0 16px 40px rgba(15, 123, 108, 0.12), 0 1px 3px rgba(15, 123, 108, 0.04);
}

/* Feature card icons & details */
.feature-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
}

.feature-card__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon--sirna {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%230F7B6C" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m.94 3.198l.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0112 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 016 18.719m12 0a5.971 5.971 0 00-.941-3.197m0 0A5.995 5.995 0 0012 12.75a5.995 5.995 0 00-5.058 2.772m0 0a3 3 0 00-4.681 2.72 8.986 8.986 0 003.74.477m.94-3.197a5.971 5.971 0 00-.94 3.197M15 6.75a3 3 0 11-6 0 3 3 0 016 0zm6 3a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm-13.5 0a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z" /></svg>');
}

.icon--hybrid {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%230F7B6C" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9.75 3.104v1.244c0 .892-.724 1.617-1.617 1.617H6.89c-.892 0-1.616-.725-1.616-1.617V3.104m0 0a2.25 2.25 0 013.197 0l2.22 2.22m-5.417 0A2.25 2.25 0 003 7.5v3.197M15 3.104v1.244c0 .892.725 1.617 1.617 1.617h1.244c.892 0 1.617-.725 1.617-1.617V3.104m0 0a2.25 2.25 0 00-3.197 0l-2.22 2.22m5.417 0A2.25 2.25 0 0121 7.5v3.197M3 13.5v3.197a2.25 2.25 0 002.277 2.247h1.244c.892 0 1.617-.725 1.617-1.617V16.12m0 0l-2.222 2.22a2.25 2.25 0 01-3.197 0M21 13.5v3.197a2.25 2.25 0 01-2.277 2.247h-1.244c-.892 0-1.617-.725-1.617-1.617V16.12m0 0l2.222 2.22a2.25 2.25 0 003.197 0M9 10.5a3 3 0 116 0 3 3 0 01-6 0z" /></svg>');
}

.icon--biosim {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%230F7B6C" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z" /><path stroke-linecap="round" stroke-linejoin="round" d="M13.5 10.5H21A7.5 7.5 0 0013.5 3v7.5z" /></svg>');
}

.feature-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--clr-ink-mid);
  line-height: 1.65;
}

/* -------------------------------------------------------------
   RESEARCH METHODOLOGY WORKFLOW (academic — not a clinical service)
   ------------------------------------------------------------- */
.workflow-section {
  position: relative;
  background-color: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
}

.workflow-disclaimer {
  max-width: 780px;
  margin: 1.75rem auto 0;
  background: var(--clr-gold-light, #FDF4E3);
  border: 1px solid rgba(201,146,42,.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: .85rem;
  color: #8a6418;
  line-height: 1.75;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.workflow-disclaimer svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--clr-gold, #C9922A); }
body.rtl .workflow-disclaimer { direction: rtl; }

.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 3.5rem;
}

.workflow-step-item {
  position: relative;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  transition: var(--transition);
}

.workflow-step-item:hover {
  border-color: var(--clr-teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 123, 108, 0.06);
}

.workflow-step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--clr-teal-light);
  color: var(--clr-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(15, 123, 108, 0.15);
}

.workflow-step-title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--clr-ink);
  font-weight: 700;
  line-height: 1.3;
}

.workflow-step-desc {
  font-size: 0.8rem;
  color: var(--clr-ink-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Arrow connector lines */
.workflow-step-item::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -1.4rem;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--clr-teal-mid);
  opacity: 0.5;
  pointer-events: none;
}

.workflow-step-item:last-child::after {
  display: none;
}

/* -------------------------------------------------------------
   GLOBAL RESEARCH COLLABORATION BANNER
   ------------------------------------------------------------- */
.collaboration-section-container {
  background-color: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
}

.collab-banner {
  position: relative;
  background: radial-gradient(circle at 30% 30%, #0A3D36 0%, #082422 100%);
  color: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 5rem 4rem;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(8, 36, 34, 0.3);
}

.collab-banner__glowing-bg {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 146, 42, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.collab-banner__content {
  position: relative;
  z-index: 10;
}

.collab-banner__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1.25rem;
}

.collab-banner__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--clr-white);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.collab-banner__desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.btn--gold {
  background: var(--clr-gold);
  color: #0d1117 !important;
}

.btn--gold:hover {
  background: #e5a732;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 146, 42, 0.35);
}

/* -------------------------------------------------------------
   PUBLICATIONS LAYOUTS & STYLES
   ------------------------------------------------------------- */
.pub-badge-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--clr-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.pub-meta-box {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.pub-meta-item {
  font-size: 0.88rem;
  color: var(--clr-ink-mid);
}

.pub-meta-item strong {
  color: var(--clr-ink);
}

.badge--if {
  background: var(--clr-gold-light);
  color: var(--clr-gold);
  font-weight: 700;
  border: 1px solid rgba(201, 146, 42, 0.2);
}

.pub-meta-pdf {
  margin-left: auto;
}

body.rtl .pub-meta-pdf {
  margin-left: 0;
  margin-right: auto;
}

.pub-abstract {
  background: #fdfdfc;
  border-left: 4px solid var(--clr-teal);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

body.rtl .pub-abstract {
  border-left: none;
  border-right: 4px solid var(--clr-teal);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.pub-section-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--clr-ink);
  font-family: var(--font-body);
  font-weight: 700;
}

.pub-abstract-text {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
}

.pub-divider {
  border: 0;
  height: 1px;
  background: var(--clr-border);
  margin: 2.5rem 0;
}

.btn--small {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* -------------------------------------------------------------
   CONTACT FORM FEEDBACK STYLING
   ------------------------------------------------------------- */
.contact-box {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.02);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-ink-mid);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--clr-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-ink);
  background-color: var(--clr-white);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 3px var(--clr-teal-glow);
}

.form-input--textarea {
  min-height: 140px;
  resize: vertical;
}

.form-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.form-feedback--success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback--error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.required {
  color: #dc2626;
  margin-left: 2px;
}

body.rtl .required {
  margin-left: 0;
  margin-right: 2px;
}

/* -------------------------------------------------------------
   MOBILE MENU DRAWER & SITE HEADER OVERLAYS
   ------------------------------------------------------------- */
#site-header {
  height: 76px;
  background: rgba(248, 247, 244, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13, 17, 23, 0.05);
  box-sizing: border-box;
}

#site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-inner {
  height: 76px;
}

.nav-right-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* v2.5.0: menu toggle button styled like the News/Collaboration pills —
   same border-radius, padding, font, and hover treatment so all three
   header buttons look like a cohesive set. */
.menu-toggle {
  display: none;
  background: var(--clr-teal-glow);
  border: 1px solid rgba(15,123,108,.25);
  border-radius: 20px;
  cursor: pointer;
  padding: 7px 15px;
  z-index: 1100;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-teal);
  align-items: center;
  gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.menu-toggle:hover {
  transform: translateY(-1px);
  background: var(--clr-teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15,123,108,.32);
}
.menu-toggle .menu-text {
  font-size: inherit;
  font-weight: inherit;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--clr-ink);
  position: relative;
  transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--clr-ink);
  position: absolute;
  left: 0;
  transition: transform 0.3s;
}

.menu-icon::before { top: -6px; }
.menu-icon::after { bottom: -6px; }

.menu-toggle.is-active .menu-icon {
  background-color: transparent;
}

.menu-toggle.is-active .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

#nav-menu-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

#nav-menu-list a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-ink-mid);
  transition: var(--transition);
  text-decoration: none;
}

#nav-menu-list a:hover {
  color: var(--clr-teal);
}

.menu-container {
  display: flex;
  align-items: center;
}

/* Standalone "Research Collaboration" / "Scientific News" pills — always
   shown consistently in the nav (whether or not a custom menu exists),
   so neither key page is ever orphaned. Two color variants for quick
   visual distinction, with icon + label and a richer hover treatment. */
.nav-cta-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 20px;
  padding: 7px 15px;
  margin-inline: 0.6rem;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none !important;
  border: 1px solid transparent;
}
.nav-cta-link:hover { transform: translateY(-1px); }

/* News pill — gold/amber accent (matches "fresh update" feel) */
.nav-cta-link--news {
  color: var(--clr-gold, #C9922A) !important;
  background: var(--clr-gold-light, #FDF4E3);
  border-color: rgba(201,146,42,.28);
}
.nav-cta-link--news:hover {
  background: var(--clr-gold, #C9922A);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(201,146,42,.32);
}

/* v2.5.1: Home pill — subtle neutral/ink accent so it doesn't compete with
   the News (gold) and Collaboration (teal) pills, but is still clearly a button. */
.nav-cta-link--home {
  color: var(--clr-ink-mid) !important;
  background: rgba(13, 17, 23, 0.05);
  border-color: rgba(13, 17, 23, 0.12);
}
.nav-cta-link--home:hover {
  background: var(--clr-ink);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(13, 17, 23, 0.25);
}

/* Collaboration pill — teal accent (primary brand color) */
.nav-cta-link--collab {
  color: var(--clr-teal) !important;
  background: var(--clr-teal-glow);
  border-color: rgba(15,123,108,.25);
}
.nav-cta-link--collab:hover {
  background: var(--clr-teal);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(15,123,108,.32);
}


@media (max-width: 900px) {
  .nav-cta-link span { display: inline; }
  .nav-cta-link { padding: 6px 10px; font-size: .74rem; }
}

/* Premium Bilingual Switcher Pill Toggle */
.lang-switcher {
  display: inline-flex;
  background: rgba(13, 17, 23, 0.05);
  padding: 3px;
  border-radius: 30px;
  border: 1px solid rgba(13, 17, 23, 0.08);
  gap: 2px;
  align-items: center;
  box-sizing: border-box;
}

.lang-switcher a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-ink-soft);
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
  border: none;
}

.lang-switcher a.active {
  background: var(--clr-teal);
  color: var(--clr-white) !important;
  box-shadow: 0 4px 10px rgba(15, 123, 108, 0.2);
}

.lang-switcher a:hover:not(.active) {
  color: var(--clr-teal);
  background: rgba(15, 123, 108, 0.06);
}

/* -------------------------------------------------------------
   PREMIUM SITE FOOTER REDESIGN
   ------------------------------------------------------------- */
#site-footer {
  background: #0d1117;
  color: rgba(255, 255, 255, 0.5);
  padding: 5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.footer-desc {
  font-size: 0.84rem;
  line-height: 1.7;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  transition: var(--transition);
  text-decoration: none !important;
}

.footer-links-list a:hover {
  color: var(--clr-white);
}

.footer-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.footer-email-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
}

.footer-email-link:hover {
  color: var(--clr-teal-mid);
}

.social-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 8px;
  transition: var(--transition);
}

body.rtl .social-badge {
  margin-right: 0;
  margin-left: 8px;
}

.social-badge--orcid {
  color: #A6D932;
  background: rgba(166, 217, 50, 0.05);
  border-color: rgba(166, 217, 50, 0.15);
}

.social-badge--orcid:hover {
  background: #A6D932;
  color: #0d1117;
  box-shadow: 0 4px 12px rgba(166, 217, 50, 0.25);
}

.social-badge--scholar {
  color: #4285F4;
  background: rgba(66, 133, 244, 0.05);
  border-color: rgba(66, 133, 244, 0.15);
}

.social-badge--scholar:hover {
  background: #4285F4;
  color: #fff;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN ADAPTATIONS
   ------------------------------------------------------------- */
@media (max-width: 960px) {
  .branding-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .branding-left {
    order: 2;
  }
  .branding-right {
    order: 1;
  }
  .journey-wrapper {
    grid-template-columns: 1fr;
  }
  .workflow-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-step-item::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-container {
    position: fixed;
    top: 76px;
    left: 0;
    width: 280px;
    height: calc(100vh - 76px);
    background-color: var(--clr-white);
    border-right: 1px solid var(--clr-border);
    box-shadow: 4px 0 24px rgba(0,0,0,0.05);
    padding: 2.5rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  body.rtl .menu-container {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--clr-border);
    box-shadow: -4px 0 24px rgba(0,0,0,0.05);
    transform: translateX(100%);
  }

  .menu-container.is-open {
    transform: translateX(0);
  }

  #nav-menu-list {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  #nav-menu-list a {
    font-size: 1.05rem;
    display: block;
    padding: 6px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__buttons {
    flex-direction: column;
  }
  
  .stats-showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .workflow-timeline {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CAREER TIMELINE — v2.1.5
   ============================================================ */
.career-section { position: relative; overflow: hidden; }
.career-timeline {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  position: relative;
}
.career-item {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfa 100%);
  border: 1px solid var(--clr-border, #e2e8f0);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(15, 123, 108, 0.06);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.career-item::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(26,158,140,.35), rgba(201,146,42,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0; transition: opacity .35s;
}
.career-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,123,108,.12); }
.career-item:hover::before { opacity: 1; }
.career-item__year {
  font-family: var(--font-mono, monospace);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #0F7B6C;
  text-transform: uppercase;
  padding-top: 2px;
}
.career-item__body h3 {
  font-size: 1.15rem;
  margin: 0 0 .5rem;
  color: var(--clr-ink, #0f172a);
  line-height: 1.35;
}
.career-item__body p { margin: 0; color: var(--clr-ink-soft, #475569); line-height: 1.7; }

.lang-fa .career-item__year { font-family: inherit; }

@media (max-width: 720px) {
  .career-item { grid-template-columns: 1fr; gap: .5rem; padding: 1.25rem; }
}

/* ============================================================
   v2.7.0: PERFORMANCE — content-visibility for below-fold sections.
   Skips rendering of offscreen sections entirely until scrolled into
   view. Dramatically reduces initial render time + DOM layout cost.
   ============================================================ */
.press-grid,
.career-timeline,
.news-grid,
#wikipedia-citations .press-grid,
.collab-banner,
#science-news-preview,
#contact-box-anchor,
.footer-grid {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* v2.7.0: Global reduced-motion override — covers ALL animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   v2.7.3: E-E-A-T author bio box (single.php) — Google's quality
   rater guidelines weight author authority heavily on YMYL content.
   ============================================================ */
.author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(15,123,108,.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(230,244,241,.5), rgba(253,244,227,.3));
}
.author-bio__avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(15,123,108,.18);
}
.author-bio__body { flex: 1; min-width: 0; }
.author-bio__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-ink, #0D1117);
  margin: 0 0 .25rem;
}
.author-bio__role {
  font-size: .9rem;
  font-weight: 600;
  color: var(--clr-teal, #0F7B6C);
  margin: 0 0 .6rem;
}
.author-bio__desc {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--clr-ink-mid, #3D4451);
  margin: 0 0 .8rem;
}
.author-bio__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.author-bio__links a {
  display: inline-flex;
  align-items: center;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-teal, #0F7B6C);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(15,123,108,.2);
  border-radius: 999px;
  text-decoration: none;
  transition: all .2s;
}
.author-bio__links a:hover {
  background: var(--clr-teal, #0F7B6C);
  color: #fff;
  border-color: var(--clr-teal, #0F7B6C);
}
[dir="rtl"] .author-bio { flex-direction: row-reverse; }

/* ============================================================
   v2.7.3: Related Publications (single-publication.php)
   ============================================================ */
.related-pubs {
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem;
  border-top: 2px solid var(--clr-teal, #0F7B6C);
}
.related-pubs__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-ink, #0D1117);
  margin: 0 0 1rem;
}
.related-pubs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.related-pubs__item { margin: 0; }
.related-pubs__link {
  display: block;
  padding: 1rem;
  background: var(--clr-teal-light, #E6F4F1);
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s;
  height: 100%;
}
.related-pubs__link:hover {
  background: var(--clr-teal, #0F7B6C);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15,123,108,.18);
}
.related-pubs__heading {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--clr-ink, #0D1117);
  line-height: 1.45;
  margin-bottom: .35rem;
}
.related-pubs__link:hover .related-pubs__heading { color: #fff; }
.related-pubs__meta {
  display: block;
  font-size: .78rem;
  color: var(--clr-ink-soft, #6B7280);
}
.related-pubs__link:hover .related-pubs__meta { color: rgba(255,255,255,.85); }
