/* ═══════════════════════════════════════════════════
   MOPZ.IR — Professor Portfolio
   Primary: Navy #1e3a5f  |  Accent: Gold #c9a227
   ═══════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ── */
#scrollBar{
  position:fixed;top:0;right:0;left:0;z-index:9999;
  height:3px;width:0%;
  background:linear-gradient(90deg,var(--teal),var(--amber));
  transition:width .1s linear;
}

/* ── Dark Mode Variables ── */
body.dark{
  --bg:         #0d1520;
  --bg2:        #111c2e;
  --bg3:        #172236;
  --surface:    rgba(255,255,255,0.03);
  --glass:      rgba(255,255,255,0.05);
  --border:     rgba(255,255,255,0.09);
  --border2:    rgba(255,255,255,0.15);
  --teal-pale:  rgba(30,58,95,0.35);
  --amber-pale: rgba(201,162,39,0.15);
  --text:       #e8edf5;
  --text2:      #b0bdd0;
  --text3:      #7a8fa8;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow:     0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.5);
}
body.dark .bg-alt{background:var(--bg2)}
body.dark .prof-card,
body.dark .about-col,
body.dark .course-card,
body.dark .note-item,
body.dark .res-card{background:var(--bg2);border-color:var(--border)}
body.dark .navbar,
body.dark .logo-bar,
body.dark .header-top{background:var(--bg);border-color:var(--border)}
body.dark .pub-item:hover{background:var(--bg2)}

/* ── Dark Toggle Button ── */
.dark-toggle{
  background:none;border:1px solid var(--border2);
  border-radius:6px;padding:3px 7px;cursor:pointer;
  color:var(--text2);display:flex;align-items:center;gap:4px;
  transition:all var(--t) var(--ease);
}
.dark-toggle:hover{background:var(--teal-pale);border-color:var(--teal);color:var(--teal)}
body:not(.dark) .icon-moon{display:none}
body.dark .icon-sun{display:none}
body.dark .icon-moon{display:block}

:root {
  --bg:         #f4f6f9;
  --bg2:        #edf0f5;
  --bg3:        #e2e7ef;
  --surface:    rgba(30,58,95,0.03);
  --glass:      rgba(30,58,95,0.05);
  --border:     rgba(30,58,95,0.1);
  --border2:    rgba(30,58,95,0.2);

  /* Navy — trust, intelligence, authority */
  --teal:       #1e3a5f;
  --teal-d:     #14294a;
  --teal-lt:    #2d5282;
  --teal-pale:  #eef3fb;
  --teal-glow:  rgba(30,58,95,0.15);

  /* Gold — prestige, academic excellence */
  --amber:      #c9a227;
  --amber-d:    #a8841e;
  --amber-pale: #fdf7e4;

  --indigo:     #1e3a5f;

  --text:       #0f1923;
  --text2:      #374151;
  --text3:      #6b7280;
  --white:      #ffffff;

  --r:          14px;
  --r-sm:       8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.1);
  --ease:       cubic-bezier(.4,0,.2,1);
  --t:          .22s;

  --top-h:  38px;
  --logo-h: 70px;
  --nav-h:  52px;
  --header-h: calc(var(--top-h) + var(--logo-h) + var(--nav-h));
}

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'IranSans','Dana','Vazirmatn',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.75;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
ul{list-style:none}
svg{display:block;flex-shrink:0}
button{font-family:inherit;cursor:pointer}
select,input,textarea{font-family:inherit}

/* ── Scrollbar ── */
::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:var(--bg2)}
::-webkit-scrollbar-thumb{background:var(--teal);border-radius:99px}

/* ── Layout ── */
.container{max-width:1100px;margin:0 auto;padding:0 28px;position:relative;z-index:1}
.section{padding:80px 0}
.bg-alt{background:var(--bg2)}

/* ── Buttons ── */
.btn-primary{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 26px;border-radius:99px;
  font-size:.9rem;font-weight:700;
  background:var(--teal);color:#fff;border:none;
  box-shadow:0 2px 16px var(--teal-glow);
  transition:all var(--t) var(--ease);
}
.btn-primary svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn-primary:hover{background:var(--teal-d);transform:translateY(-2px);box-shadow:0 6px 24px var(--teal-glow)}

.btn-outline{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 24px;border-radius:99px;
  font-size:.9rem;font-weight:600;
  background:transparent;color:var(--teal);
  border:1.5px solid rgba(13,148,136,.4);
  transition:all var(--t) var(--ease);
}
.btn-outline svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn-outline:hover{background:var(--teal-pale);border-color:var(--teal);transform:translateY(-2px)}

/* ═══════════════════════════════════════════════════
   HEADER  —  3-row: top-bar / logo / nav
   ═══════════════════════════════════════════════════ */
.header{position:fixed;top:0;left:0;right:0;z-index:900;background:var(--bg)}

/* ── Top bar ── */
.header-top{
  height:var(--top-h);
  background:var(--teal);
  display:flex;align-items:center;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.ht-inner{
  max-width:1100px;margin:0 auto;padding:0 28px;
  display:flex;align-items:center;justify-content:space-between;
  width:100%;
}
.ht-affil{
  display:flex;align-items:center;gap:6px;
  font-size:.73rem;font-weight:600;color:rgba(255,255,255,.85);
}
.ht-affil svg{width:12px;height:12px;stroke:rgba(255,255,255,.7);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ht-socials{display:flex;align-items:center;gap:4px}
.ht-icon{
  display:flex;align-items:center;gap:5px;
  color:rgba(255,255,255,.75);
  padding:3px 7px;border-radius:5px;
  font-size:.72rem;font-weight:500;
  transition:all var(--t) var(--ease);
}
.ht-icon svg{width:13px;height:13px;flex-shrink:0}
.ht-icon span{white-space:nowrap}
.ht-icon:hover{color:#fff;background:rgba(255,255,255,.15)}
.ht-sep{width:1px;height:14px;background:rgba(255,255,255,.2);margin:0 4px}

/* ── Logo row ── */
.logo-bar{
  height:var(--logo-h);
  display:flex;align-items:center;
  border-bottom:1px solid var(--border);
  background:var(--bg);
}
.logo-bar-inner{
  max-width:1100px;margin:0 auto;padding:0 28px;
  display:flex;align-items:center;justify-content:space-between;
  width:100%;
}
/* Logo SVG */
.site-logo{display:flex;align-items:center;gap:0;line-height:1}
.site-logo svg{height:52px;width:auto}
.logo-tagline{
  font-size:.72rem;font-weight:600;color:var(--text3);
  border-right:2px solid var(--teal);
  padding-right:12px;margin-right:0;
  line-height:1.5;
}

/* Quick contact right of logo */
.logo-contact{
  display:flex;align-items:center;gap:20px;
}
.lc-item{
  display:flex;align-items:center;gap:7px;
  font-size:.78rem;color:var(--text2);font-weight:500;
}
.lc-item svg{width:14px;height:14px;stroke:var(--teal);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lc-item a:hover{color:var(--teal)}

/* ── Nav row ── */
.navbar{
  height:var(--nav-h);
  border-bottom:2px solid var(--teal);
  background:var(--bg);
  transition:box-shadow var(--t) var(--ease);
}
.navbar.scrolled{box-shadow:var(--shadow)}
.nav-inner{
  max-width:1100px;margin:0 auto;padding:0 28px;
  height:100%;display:flex;align-items:center;gap:0;
}
.nav-menu{display:flex;align-items:center;gap:0;width:100%}
.nav-link{
  display:flex;align-items:center;gap:6px;
  padding:0 16px;height:var(--nav-h);
  font-size:.84rem;font-weight:700;color:var(--text2);
  border-bottom:3px solid transparent;
  margin-bottom:-2px;
  transition:all var(--t) var(--ease);white-space:nowrap;
}
.nav-link svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.6}
.nav-link:hover{
  color:var(--teal);
  border-bottom-color:var(--teal);
  background:rgba(30,58,95,.13);
}
.nav-link.active{color:var(--teal);border-bottom-color:var(--teal)}
.nav-cta{
  margin-right:auto;margin-left:0;
  background:var(--teal);color:#fff;
  border-radius:0;height:var(--nav-h);
  padding:0 20px;
  border-bottom:3px solid transparent;
}
.nav-cta:hover{background:var(--teal-d);color:#fff;border-bottom-color:transparent}
.nav-cta svg{opacity:1}

.burger{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:6px;margin-right:auto}
.burger span{display:block;width:20px;height:2px;background:var(--text);border-radius:2px;transition:all var(--t) var(--ease)}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero{
  padding-top:calc(var(--header-h) + 48px);
  padding-bottom:72px;
  background:linear-gradient(160deg, var(--teal-pale) 0%, #f0f4fa 35%, var(--bg) 65%);
  border-bottom:1px solid var(--border);
}
.hero-inner{display:grid;grid-template-columns:1fr 340px;gap:56px;align-items:start}
.hero-breadcrumb{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.76rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--teal);margin-bottom:20px;
}
.dot-live{
  width:7px;height:7px;border-radius:50%;background:var(--gold,#c9a227);
  box-shadow:0 0 0 0 rgba(201,162,39,.5);animation:live 2s infinite;
}
@keyframes live{0%{box-shadow:0 0 0 0 rgba(201,162,39,.5)}70%{box-shadow:0 0 0 7px rgba(201,162,39,0)}100%{box-shadow:0 0 0 0 rgba(201,162,39,0)}}

.hero-title{
  font-size:clamp(2.2rem,4.5vw,3.6rem);
  font-weight:900;line-height:1.1;letter-spacing:-.03em;
  color:var(--text);margin-bottom:20px;
}
.hl{color:var(--teal)}

.hero-positions{display:flex;flex-direction:column;gap:8px;margin-bottom:22px}
.pos-item{
  display:flex;align-items:center;gap:9px;
  font-size:.88rem;font-weight:500;color:var(--text2);
}
.pos-item svg{width:15px;height:15px;flex-shrink:0;stroke:var(--teal);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.hero-bio{
  font-size:1rem;color:var(--text2);line-height:1.9;
  font-weight:300;margin-bottom:28px;max-width:520px;
}
.hero-bio strong{color:var(--teal);font-weight:700}

.hero-btns{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:36px}

.hero-stats{
  display:flex;gap:0;
  border:1px solid var(--border);border-radius:var(--r);
  overflow:hidden;max-width:480px;
  background:var(--bg);
  box-shadow:var(--shadow-sm);
}
.hstat{flex:1;padding:16px;text-align:center;border-left:1px solid var(--border);background:var(--bg)}
.hstat:last-child{border-left:none}
.hstat-n{display:block;font-size:1.6rem;font-weight:900;color:var(--teal);line-height:1;margin-bottom:4px}
.hstat-l{font-size:.7rem;color:var(--text3);font-weight:600;line-height:1.4}

/* Prof Card */
.prof-card{
  background:var(--bg);
  border:1px solid var(--border);border-radius:var(--r);
  overflow:hidden;
  box-shadow:var(--shadow);
  position:sticky;top:calc(var(--header-h) + 16px);
}
.prof-head{
  height:220px;
  overflow:hidden;
  display:block;
  position:relative;
}
.prof-head-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 28%;
  display:block;
}
.prof-head-svg{
  width:100%;height:100%;
  display:none;
}
.prof-info{padding:16px 20px 14px;border-bottom:1px solid var(--border)}
.prof-info h2{font-size:.98rem;font-weight:800;color:var(--text);margin-bottom:3px}
.prof-info p{font-size:.76rem;color:var(--text3);font-weight:500}

.prof-badges{display:flex;flex-wrap:wrap;gap:6px;padding:14px 20px;border-bottom:1px solid var(--border)}
.badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 9px;border-radius:99px;font-size:.7rem;font-weight:700;
}
.badge svg{width:10px;height:10px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.badge-blue{background:rgba(30,58,95,.08);color:var(--teal-d);border:1px solid rgba(30,58,95,.18)}
.badge-teal{background:var(--teal-pale);color:var(--teal-d);border:1px solid rgba(30,58,95,.18)}
.badge-amber{background:var(--amber-pale);color:var(--amber-d);border:1px solid rgba(201,162,39,.25)}
.badge-purple{background:rgba(30,58,95,.06);color:var(--navy-lt,#2d5282);border:1px solid rgba(30,58,95,.15)}

.prof-links{display:flex;gap:7px;padding:12px 20px;border-bottom:1px solid var(--border)}
.plink{
  width:32px;height:32px;border-radius:8px;
  background:var(--bg2);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  color:var(--text3);transition:all var(--t) var(--ease);
}
.plink svg{width:14px;height:14px}
.plink:hover{color:var(--teal);border-color:var(--teal);background:var(--teal-pale)}

.office-hours{padding:14px 20px}
.oh-title{
  display:flex;align-items:center;gap:6px;
  font-size:.73rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;
  color:var(--text3);margin-bottom:10px;
}
.oh-title svg{width:12px;height:12px;stroke:var(--teal);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.oh-row{display:flex;justify-content:space-between;font-size:.78rem;padding:5px 0;border-bottom:1px solid var(--border)}
.oh-row:last-child{border-bottom:none}
.oh-row span:first-child{color:var(--text3);font-weight:600}
.oh-row span:last-child{color:var(--text2);font-weight:500}
.oh-room span:last-child{color:var(--teal);font-weight:600}

/* Hero illustration */
.hero-illus-wrap{margin-bottom:16px}
.hero-illus{width:100%;height:auto;max-height:340px}
.spin-slow{animation:spin 20s linear infinite}
@keyframes spin{to{transform-origin:center;transform:rotate(360deg)}}

/* ═══════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════ */
.sec-head{margin-bottom:44px}
.sec-tag{
  display:inline-flex;align-items:center;gap:7px;
  font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em;
  color:var(--teal);
  padding:4px 13px;
  background:var(--teal-pale);
  border:1px solid rgba(13,148,136,.2);
  border-radius:99px;margin-bottom:12px;
}
.sec-tag svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sec-title{
  font-size:clamp(1.6rem,3vw,2.2rem);font-weight:900;
  line-height:1.15;letter-spacing:-.02em;
  color:var(--text);margin-bottom:8px;
}
.sec-sub{font-size:.9rem;color:var(--text3)}

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.about-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.about-col{
  background:var(--bg);border:1px solid var(--border);
  border-radius:var(--r);padding:24px;box-shadow:var(--shadow-sm);
}
.about-col{transition:all var(--t) var(--ease)}
.about-col:hover{
  border-color:var(--teal);
  box-shadow:0 8px 28px rgba(30,58,95,.12), 0 0 0 3px rgba(30,58,95,.06);
  transform:translateY(-3px);
}
.about-col p{font-size:.88rem;color:var(--text2);line-height:1.85;margin-bottom:10px}
.about-col p:last-child{margin-bottom:0}

.edu-list{display:flex;flex-direction:column}
.edu-item{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}
.edu-item:last-child{border-bottom:none;padding-bottom:0}
.edu-dot{width:11px;height:11px;border-radius:50%;flex-shrink:0;margin-top:4px;border:2px solid currentColor}
.edu-phd{color:var(--teal);background:var(--teal-pale)}
.edu-msc{color:var(--amber-d);background:var(--amber-pale)}
.edu-bsc{color:var(--text3);background:var(--bg3)}
.edu-deg{display:block;font-size:.86rem;font-weight:700;color:var(--text);margin-bottom:2px}
.edu-uni{display:block;font-size:.76rem;color:var(--text3);font-weight:500;margin-bottom:3px}
.edu-thesis{display:block;font-size:.74rem;color:var(--text3);font-style:italic;line-height:1.5}

.exp-list{display:flex;flex-direction:column;gap:0}
.exp-item{
  display:flex;align-items:center;gap:10px;
  padding:9px 0;border-bottom:1px solid var(--border);
}
.exp-item:last-child{border-bottom:none;padding-bottom:0}
.exp-item svg{width:14px;height:14px;flex-shrink:0;stroke:var(--teal);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.exp-year{font-size:.72rem;color:var(--teal);font-weight:700}
.exp-role{font-size:.83rem;color:var(--text2);font-weight:600;display:block;line-height:1.4}
.exp-detail{font-size:.72rem;color:var(--text3);display:block;line-height:1.45;margin-top:2px}

/* ── Skill pills ── */
.skill-group{margin-bottom:16px}
.skill-group:last-child{margin-bottom:0}
.skill-group-label{
  font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.09em;
  color:var(--text3);margin-bottom:7px;
}
.skill-pills{display:flex;flex-wrap:wrap;gap:5px}
.skill-pill{
  padding:3px 10px;border-radius:99px;font-size:.72rem;font-weight:600;
  border:1px solid;
}
.skill-strong{
  background:var(--teal-pale);color:var(--teal-d);
  border-color:rgba(30,58,95,.22);
}
.skill-mid{
  background:var(--amber-pale);color:var(--amber-d);
  border-color:rgba(201,162,39,.25);
}
.skill-low{
  background:var(--bg3);color:var(--text3);
  border-color:var(--border);
}

/* ── Col title with icon ── */
.col-title{
  display:flex;align-items:center;gap:7px;
  font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;
  color:var(--teal);margin-bottom:16px;
  padding-bottom:10px;border-bottom:2px solid var(--teal-pale);
}
.col-title svg{width:13px;height:13px;stroke:var(--teal);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

/* ── General skills ── */
.gen-skill-list{display:flex;flex-direction:column;gap:0}
.gen-skill-item{
  display:flex;align-items:flex-start;gap:11px;
  padding:10px 0;border-bottom:1px solid var(--border);
}
.gen-skill-item:last-child{border-bottom:none}
.gen-skill-icon{
  width:32px;height:32px;min-width:32px;border-radius:8px;
  background:var(--teal-pale);border:1px solid rgba(30,58,95,.15);
  display:flex;align-items:center;justify-content:center;
}
.gen-skill-icon svg{stroke:var(--teal);fill:none}
.gen-skill-title{display:block;font-size:.84rem;font-weight:700;color:var(--text);margin-bottom:2px}
.gen-skill-desc{display:block;font-size:.74rem;color:var(--text3);line-height:1.5}

/* ── Skill legend ── */
.skill-legend{
  display:flex;gap:14px;margin-top:18px;
  padding-top:14px;border-top:1px solid var(--border);
  font-size:.72rem;color:var(--text3);font-weight:600;
}
.skill-legend span{display:flex;align-items:center;gap:5px}
.skill-dot{width:9px;height:9px;border-radius:50%;display:inline-block}
.skill-dot.strong{background:var(--teal)}
.skill-dot.mid{background:var(--amber)}
.skill-dot.low{background:var(--text3)}

/* ═══════════════════════════════════════════════════
   RESEARCH
   ═══════════════════════════════════════════════════ */
.research-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.res-card{
  background:var(--bg);border:1px solid var(--border);
  border-radius:var(--r);overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:all var(--t) var(--ease);
}
.res-card:hover{border-color:var(--teal);transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.res-visual{border-bottom:1px solid var(--border);overflow:hidden;border-radius:var(--r) var(--r) 0 0}
.res-visual svg{width:100%;display:block}
.res-card>:not(.res-visual){padding:20px}
.res-icon{
  width:42px;height:42px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;margin-bottom:14px;
}
.res-icon svg{width:20px;height:20px;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;fill:none}
.res-blue{background:var(--teal-pale);border:1px solid rgba(30,58,95,.15)}.res-blue svg{stroke:var(--teal)}
.res-purple{background:#f0f2f8;border:1px solid rgba(30,58,95,.15)}.res-purple svg{stroke:#334e82}
.res-teal{background:var(--teal-pale);border:1px solid rgba(30,58,95,.15)}.res-teal svg{stroke:var(--teal)}
.res-orange{background:var(--amber-pale);border:1px solid rgba(201,162,39,.22)}.res-orange svg{stroke:var(--amber-d)}
.res-card h3{font-size:.93rem;font-weight:800;color:var(--text);margin-bottom:8px}
.res-card p{font-size:.81rem;color:var(--text2);line-height:1.75;margin-bottom:14px}
.res-keywords{display:flex;flex-wrap:wrap;gap:5px}
.res-keywords span{
  padding:2px 8px;border-radius:99px;font-size:.68rem;font-weight:700;
  background:var(--teal-pale);border:1px solid rgba(30,58,95,.18);color:var(--teal-d);
}

/* ═══════════════════════════════════════════════════
   COURSES
   ═══════════════════════════════════════════════════ */
.semester-label{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.76rem;font-weight:700;color:var(--text3);
  padding:6px 13px;background:var(--bg);
  border:1px solid var(--border);border-radius:var(--r-sm);
  margin-bottom:20px;box-shadow:var(--shadow-sm);
}
.semester-label svg{width:12px;height:12px;stroke:var(--teal);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.courses-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.course-card{
  background:var(--bg);border:1px solid var(--border);
  border-radius:var(--r);overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:all var(--t) var(--ease);
  display:flex;flex-direction:column;
}
.course-card:hover{
  border-color:var(--teal);
  transform:translateY(-4px);
  box-shadow:0 8px 28px rgba(30,58,95,.14), 0 0 0 3px rgba(30,58,95,.07);
  background:linear-gradient(160deg,var(--teal-pale) 0%,#fff 100%);
}
.active-course{border-color:rgba(13,148,136,.25)}
.course-visual{overflow:hidden}
.course-visual svg,.course-thumb{width:100%;display:block}
.course-body{padding:20px;flex:1;display:flex;flex-direction:column}
.course-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.course-code{font-size:.73rem;font-weight:800;letter-spacing:.1em;color:var(--text3)}
.course-badge{font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;padding:3px 9px;border-radius:99px}
.curr{background:var(--teal-pale);color:var(--teal-d);border:1px solid rgba(13,148,136,.2)}
.prev{background:var(--bg3);color:var(--text3);border:1px solid var(--border)}
.course-card h3{font-size:.96rem;font-weight:800;color:var(--text);margin-bottom:7px;line-height:1.3}
.course-card p{font-size:.83rem;color:var(--text2);line-height:1.75;margin-bottom:14px;flex:1}
.course-meta{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.course-meta span{display:flex;align-items:center;gap:5px;font-size:.74rem;color:var(--text3);font-weight:500}
.course-meta svg{width:11px;height:11px;stroke:var(--teal);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.course-link{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.76rem;font-weight:700;color:var(--teal);
  padding:6px 12px;border-radius:99px;
  background:var(--teal-pale);border:1px solid rgba(13,148,136,.2);
  transition:all var(--t) var(--ease);align-self:flex-start;
}
.course-link svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.course-link:hover{background:var(--teal);color:#fff}

/* ═══════════════════════════════════════════════════
   NOTES
   ═══════════════════════════════════════════════════ */
.notes-tabs{display:flex;gap:6px;margin-bottom:24px;flex-wrap:wrap}
.ntab{
  padding:7px 16px;border-radius:99px;
  font-size:.81rem;font-weight:700;
  background:var(--bg);border:1px solid var(--border);
  color:var(--text2);font-family:inherit;
  transition:all var(--t) var(--ease);
}
.ntab:hover{border-color:var(--teal);color:var(--teal)}
.ntab.active{background:var(--teal);border-color:var(--teal);color:#fff}

.notes-content{display:none}
.notes-content.active{display:block}
.notes-grid{display:flex;flex-direction:column;gap:8px}
.note-item{
  display:flex;align-items:center;gap:14px;padding:14px 18px;
  background:var(--bg);border:1px solid var(--border);border-radius:var(--r);
  box-shadow:var(--shadow-sm);transition:all var(--t) var(--ease);
}
.note-item:hover{
  border-color:var(--teal);
  box-shadow:0 6px 22px rgba(30,58,95,.12), 0 0 0 3px rgba(30,58,95,.06);
  background:var(--teal-pale);
  transform:translateY(-2px);
}
.note-icon{width:40px;height:40px;min-width:40px;border-radius:9px;display:flex;align-items:center;justify-content:center}
.note-icon svg{width:18px;height:18px;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;fill:none}
.pdf{background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.15)}.pdf svg{stroke:#dc2626}
.ppt{background:rgba(234,88,12,.08);border:1px solid rgba(234,88,12,.15)}.ppt svg{stroke:#c2410c}
.zip{background:var(--teal-pale);border:1px solid rgba(13,148,136,.15)}.zip svg{stroke:var(--teal)}
.note-body{flex:1;min-width:0}
.note-course{display:block;font-size:.7rem;font-weight:700;color:var(--text3);text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px}
.note-body h4{font-size:.88rem;font-weight:700;color:var(--text);margin-bottom:3px;line-height:1.3}
.note-meta{display:flex;gap:14px;font-size:.72rem;color:var(--text3)}
.note-dl{
  width:34px;height:34px;min-width:34px;border-radius:9px;
  background:var(--teal-pale);border:1px solid rgba(13,148,136,.2);
  display:flex;align-items:center;justify-content:center;
  color:var(--teal);transition:all var(--t) var(--ease);
}
.note-dl svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.note-dl:hover{background:var(--teal);color:#fff;transform:scale(1.08)}

/* ═══════════════════════════════════════════════════
   PUBLICATIONS
   ═══════════════════════════════════════════════════ */
.pub-list{
  border:1px solid var(--border);border-radius:var(--r);overflow:hidden;
  margin-bottom:24px;background:var(--bg);box-shadow:var(--shadow-sm);
}
.pub-item{
  display:flex;gap:20px;align-items:flex-start;
  padding:22px 26px;border-bottom:1px solid var(--border);
  transition:background var(--t);
}
.pub-item:last-child{border-bottom:none}
.pub-item{transition:all var(--t) var(--ease)}
.pub-item:hover{
  background:var(--teal-pale);
  border-radius:10px;
  padding-right:28px;
  box-shadow:0 4px 18px rgba(30,58,95,.1);
  border-color:transparent;
}
.pub-year{font-size:.76rem;font-weight:800;color:var(--text3);width:38px;flex-shrink:0;padding-top:2px}
.pub-body{flex:1}
.pub-type{
  display:inline-block;font-size:.66rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;
  padding:2px 8px;border-radius:99px;margin-bottom:7px;
}
.journal{background:var(--teal-pale);color:var(--teal-d);border:1px solid rgba(13,148,136,.2)}
.conf{background:var(--amber-pale);color:var(--amber-d);border:1px solid rgba(245,158,11,.2)}
.pub-body h4{font-size:.92rem;font-weight:700;color:var(--text);line-height:1.4;margin-bottom:5px}
.pub-authors{font-size:.8rem;color:var(--text3);margin-bottom:3px}
.pub-authors strong{color:var(--text2)}
.pub-venue{font-size:.78rem;color:var(--text3);font-style:italic;margin-bottom:10px;line-height:1.5}
.pub-actions{display:flex;gap:6px}
.pub-btn{
  padding:3px 10px;border-radius:99px;font-size:.71rem;font-weight:700;
  background:var(--bg2);border:1px solid var(--border);color:var(--text2);
  transition:all var(--t) var(--ease);
}
.pub-btn:hover{color:var(--teal);border-color:var(--teal);background:var(--teal-pale)}
.pub-more{text-align:center}

/* ═══════════════════════════════════════════════════
   STUDENTS
   ═══════════════════════════════════════════════════ */
.students-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.stu-card{
  display:flex;gap:13px;align-items:flex-start;
  padding:18px;background:var(--bg);border:1px solid var(--border);
  border-radius:var(--r);box-shadow:var(--shadow-sm);
  transition:all var(--t) var(--ease);
}
.stu-card:hover{border-color:var(--teal);transform:translateY(-2px)}
.stu-avatar{
  width:44px;height:44px;min-width:44px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  font-size:.82rem;font-weight:800;color:#fff;
}
.phd .stu-avatar{background:linear-gradient(135deg,var(--teal-d),var(--teal-lt))}
.msc .stu-avatar{background:linear-gradient(135deg,#d97706,#f59e0b)}
.open .stu-avatar.open-av{background:var(--teal-pale);border:2px dashed var(--teal);color:var(--teal);font-size:1.3rem}
.stu-body{flex:1;min-width:0}
.stu-level{
  display:inline-block;font-size:.66rem;font-weight:800;text-transform:uppercase;
  letter-spacing:.08em;padding:2px 8px;border-radius:99px;margin-bottom:5px;
}
.phd .stu-level{background:var(--teal-pale);color:var(--teal-d);border:1px solid rgba(13,148,136,.2)}
.msc .stu-level{background:var(--amber-pale);color:var(--amber-d);border:1px solid rgba(245,158,11,.2)}
.open-lv{background:var(--bg3);color:var(--text3);border:1px solid var(--border)}
.stu-body h4{font-size:.88rem;font-weight:800;color:var(--text);margin-bottom:4px}
.stu-body p{font-size:.78rem;color:var(--text2);line-height:1.6;margin-bottom:5px}
.stu-year{font-size:.71rem;color:var(--text3);font-weight:600}
.stu-apply{
  display:inline-flex;align-items:center;gap:5px;
  font-size:.74rem;font-weight:700;color:var(--teal);
  padding:4px 10px;border-radius:99px;
  background:var(--teal-pale);border:1px solid rgba(13,148,136,.2);
  transition:all var(--t) var(--ease);margin-top:5px;
}
.stu-apply:hover{background:var(--teal);color:#fff}

/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
.contact-layout{display:grid;grid-template-columns:1fr 1.5fr;gap:40px;align-items:start}
.cinfo-block{
  background:var(--bg);border:1px solid var(--border);
  border-radius:var(--r);padding:22px;
  margin-bottom:14px;box-shadow:var(--shadow-sm);
}
.cinfo-block:last-child{margin-bottom:0}
.cinfo-block h3{
  font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;
  color:var(--text3);padding-bottom:12px;margin-bottom:12px;
  border-bottom:2px solid var(--teal-pale);
}
.cinfo-list{display:flex;flex-direction:column;gap:13px}
.cinfo-row{display:flex;align-items:flex-start;gap:11px}
.cinfo-icon{
  width:32px;height:32px;min-width:32px;border-radius:8px;
  background:var(--teal-pale);border:1px solid rgba(13,148,136,.2);
  display:flex;align-items:center;justify-content:center;
}
.cinfo-icon svg{width:13px;height:13px;stroke:var(--teal);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cinfo-label{display:block;font-size:.68rem;font-weight:700;color:var(--text3);text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
.cinfo-val{font-size:.83rem;font-weight:500;color:var(--text2)}
a.cinfo-val:hover{color:var(--teal)}

.academic-links{display:flex;flex-direction:column;gap:7px}
.alink{
  display:flex;align-items:center;gap:9px;padding:8px 12px;
  border-radius:var(--r-sm);background:var(--bg2);border:1px solid var(--border);
  font-size:.82rem;font-weight:600;color:var(--text2);
  transition:all var(--t) var(--ease);
}
.alink svg{width:17px;height:17px}
.alink:hover{color:var(--teal);border-color:var(--teal);background:var(--teal-pale);transform:translateX(-4px)}

.contact-form{
  background:var(--bg);border:1px solid var(--border);
  border-radius:var(--r);padding:26px;box-shadow:var(--shadow-sm);
}
.form-title{
  font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;
  color:var(--text3);padding-bottom:16px;margin-bottom:16px;
  border-bottom:2px solid var(--teal-pale);
}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.f-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.f-field:last-of-type{margin-bottom:18px}
.f-field label{font-size:.74rem;font-weight:700;color:var(--text3);letter-spacing:.04em}
.f-field input,.f-field textarea,.f-field select{
  padding:10px 13px;background:var(--bg2);border:1.5px solid var(--border);
  border-radius:var(--r-sm);color:var(--text);font-size:.88rem;
  outline:none;resize:vertical;
  transition:border-color var(--t),box-shadow var(--t);
}
.f-field input:focus,.f-field textarea:focus,.f-field select:focus{
  border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-glow);
}
.f-field input::placeholder,.f-field textarea::placeholder{color:var(--text3)}
.f-submit{width:100%;justify-content:center;font-size:.9rem;padding:12px;border-radius:var(--r-sm)}
.f-submit svg{stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer{
  border-top:3px solid var(--amber);
  background:#0f1923;padding:28px 0;
}
.footer-inner{
  display:grid;grid-template-columns:1fr auto 1fr;
  align-items:center;gap:20px;
}
.footer-brand{display:flex;flex-direction:column}
.footer-name{font-size:.86rem;font-weight:800;color:#fff}
.footer-pos{font-size:.72rem;color:rgba(255,255,255,.5);margin-top:2px}
.footer-nav{display:flex;gap:16px;flex-wrap:wrap;justify-content:center}
.footer-nav a{font-size:.76rem;color:rgba(255,255,255,.5);font-weight:500;transition:color var(--t)}
.footer-nav a:hover{color:var(--amber)}
.footer-copy{font-size:.72rem;color:rgba(255,255,255,.4);text-align:left}

/* ═══════════════════════════════════════════════════
   REVEAL
   ═══════════════════════════════════════════════════ */
[data-reveal]{opacity:0;transform:translateY(20px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
[data-reveal].visible{opacity:1;transform:none}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media(max-width:1100px){.research-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){
  .hero-inner{grid-template-columns:1fr}
  .prof-card{position:static;max-width:420px}
  .about-grid{grid-template-columns:1fr}
  .students-grid{grid-template-columns:repeat(2,1fr)}
  .contact-layout{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr;text-align:center;justify-items:center}
  .footer-copy{text-align:center}
  .logo-contact{display:none}
}
@media(max-width:768px){
  :root{--logo-h:60px}
  .nav-menu{
    display:none;flex-direction:column;gap:0;
    position:absolute;top:calc(var(--top-h) + var(--logo-h) + var(--nav-h));
    right:0;left:0;background:var(--bg);
    border-bottom:2px solid var(--teal);
    box-shadow:var(--shadow-lg);
  }
  .nav-menu.open{display:flex}
  .nav-link{height:46px;padding:0 20px;border-bottom:1px solid var(--border)}
  .nav-cta{margin-right:0;margin-left:0}
  .burger{display:flex}
  .courses-grid{grid-template-columns:1fr}
  .research-grid{grid-template-columns:1fr}
  .f-row{grid-template-columns:1fr}
  .ht-affil{display:none}
  .ht-icon span{display:none}
}
@media(max-width:540px){
  .section{padding:52px 0}
  .container{padding:0 16px}
  .hero-stats{flex-direction:column}
  .hstat{border-left:none;border-top:1px solid var(--border)}
  .hstat:first-child{border-top:none}
  .students-grid{grid-template-columns:1fr}
}
