/* =========================================================
   Prof. Taniya Mukherjee — Personal Academic Website
   Design System: Scholarly Navy + Gold
   Fonts: Playfair Display (headings) · Plus Jakarta Sans (body)
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  --navy:        #0c2b4d;
  --navy-800:    #10355c;
  --navy-700:    #16406f;
  --navy-600:    #1f548c;
  --gold:        #c8a24b;
  --gold-600:    #b8913a;
  --gold-soft:   #e8d5a6;
  --cream:       #f6f3ec;
  --paper:       #fbfaf6;
  --ink:         #17263b;
  --slate:       #5b6b7d;
  --slate-light: #8794a5;
  --line:        #e7e1d3;
  --white:       #ffffff;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(12, 43, 77, 0.06);
  --shadow-md: 0 12px 30px rgba(12, 43, 77, 0.10);
  --shadow-lg: 0 26px 60px rgba(12, 43, 77, 0.16);
  --container: 1200px;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-600); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--gold); color: var(--navy); }

/* ---------- 3. Layout Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-tight { padding: 46px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-slate { color: var(--slate); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .3s ease;
  text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(200, 162, 75, .32); }
.btn-primary:hover { background: var(--gold-600); color: var(--navy); transform: translateY(-3px); box-shadow: 0 16px 30px rgba(200, 162, 75, .4); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); transform: translateY(-3px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn i { font-size: .9em; }

/* ---------- 5. Section Heading ---------- */
.sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; height: 1px; width: 24px; background: var(--gold); }
.sec-head .eyebrow::after { content: ""; height: 1px; width: 24px; background: var(--gold); }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.sec-head p { color: var(--slate); font-size: 17px; }

/* ---------- 6. Header ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.85); font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; flex-wrap: wrap; gap: 6px 18px; padding-block: 6px; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: var(--gold-soft); }
.topbar .tb-group { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar i { color: var(--gold); margin-right: 7px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(12, 43, 77, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--navy); line-height: 1.1; }
.brand-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px; place-items: center;
  font-size: 22px; color: var(--navy);
}

/* ---------- 7. Hero (Home) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(200,162,75,.18), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 70px 0 90px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(200,162,75,.25);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(200,162,75,.14); border: 1px solid rgba(200,162,75,.4);
  color: var(--gold-soft); padding: 8px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.82); font-size: 18px; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta .hm { display: flex; align-items: center; gap: 12px; }
.hero-meta i { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--gold); font-size: 18px; }
.hero-meta .hm b { display: block; font-size: 17px; color: var(--white); line-height: 1.2; }
.hero-meta .hm small { color: rgba(255,255,255,.6); font-size: 13px; }

.hero-figure { position: relative; }
.hero-figure .frame {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 5px solid rgba(255,255,255,.14);
  aspect-ratio: 4 / 5;
  background: var(--navy-600);
}
.hero-figure .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-card {
  position: absolute; background: var(--white); color: var(--ink);
  border-radius: 14px; box-shadow: var(--shadow-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); color: var(--gold-600); display: grid; place-items: center; font-size: 17px; }
.hero-card b { display: block; font-size: 16px; line-height: 1.2; color: var(--navy); }
.hero-card small { color: var(--slate); font-size: 12.5px; }
.hero-card.c1 { top: 24px; left: -26px; }
.hero-card.c2 { bottom: 40px; right: -24px; }
.float-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }

/* ---------- 8. Page Header (inner pages) ---------- */
.page-head {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(200,162,75,.22), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-800));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-head h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-head p { color: rgba(255,255,255,.78); max-width: 640px; margin: 0 auto; font-size: 17px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.65); }
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- 9. Feature / Icon Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: var(--cream); color: var(--navy);
  display: grid; place-items: center; font-size: 24px;
  margin-bottom: 22px; transition: all .3s ease;
}
.card:hover .icon { background: var(--navy); color: var(--gold); }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--slate); font-size: 15.5px; }
.card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600; font-size: 14.5px; color: var(--navy); }
.card .more i { transition: transform .3s ease; }
.card:hover .more { color: var(--gold-600); }
.card:hover .more i { transform: translateX(4px); }

/* image card */
.img-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.img-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.img-card .thumb { height: 210px; overflow: hidden; position: relative; }
.img-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.img-card:hover .thumb img { transform: scale(1.07); }
.img-card .tag { position: absolute; top: 16px; left: 16px; background: var(--navy); color: var(--gold); padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.img-card .body { padding: 26px 26px 28px; }
.img-card .body h3 { font-size: 20px; margin-bottom: 10px; }
.img-card .body p { color: var(--slate); font-size: 15px; }

/* ---------- 10. Stats ---------- */
.stat-band { background: linear-gradient(135deg, var(--navy), var(--navy-700)); padding: 70px 0; color: var(--white); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat .num .suffix { font-size: .6em; }
.stat .lbl { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 15px; font-weight: 500; }

/* ---------- 11. Timeline (Education / Experience) ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 34px 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--cream);
}
.tl-item .tl-date { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-600); background: var(--cream); padding: 4px 12px; border-radius: 50px; margin-bottom: 10px; }
.tl-item h3 { font-size: 20px; margin-bottom: 4px; }
.tl-item .tl-place { color: var(--slate); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.tl-item p { color: var(--slate); font-size: 15px; }

/* ---------- 12. Publications List ---------- */
.pub-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.pub-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pub-year {
  flex: 0 0 auto; min-width: 66px; text-align: center;
  background: var(--cream); border-radius: 12px; padding: 12px 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--navy);
}
.pub-year small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--gold-600); text-transform: uppercase; }
.pub-body h3 { font-size: 18px; line-height: 1.35; margin-bottom: 6px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.pub-body .pub-meta { color: var(--slate); font-size: 14px; }
.pub-body .pub-meta em { color: var(--navy-700); font-style: italic; }
.pub-tag { display: inline-block; background: var(--navy); color: var(--gold-soft); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; margin-bottom: 8px; }

/* ---------- 13. Split / About layout ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.split .media { position: relative; }
.split .media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.split .media .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.split .media .frame-tall { aspect-ratio: 4 / 4.6; }
.media-quote {
  position: absolute; left: -18px; bottom: 30px; background: var(--navy); color: var(--white);
  border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-md); max-width: 240px;
}
.media-quote i { color: var(--gold); font-size: 18px; }
.media-quote p { font-size: 14px; margin: 8px 0 0; color: rgba(255,255,255,.9); }

.check-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--ink); font-size: 15.5px; }
.check-list li i { color: var(--gold-600); margin-top: 5px; flex: 0 0 auto; }

/* ---------- 14. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.info-card .ic { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px; background: var(--cream); color: var(--navy); display: grid; place-items: center; font-size: 20px; }
.info-card h4 { font-size: 16px; font-family: var(--font-body); font-weight: 700; margin-bottom: 3px; }
.info-card p, .info-card a { color: var(--slate); font-size: 15px; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--paper);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,75,.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 15. CTA Banner ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(200,162,75,.22), transparent 55%),
    linear-gradient(135deg, var(--navy), var(--navy-800));
  color: var(--white);
  padding: 70px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 620px; font-size: 16.5px; }

/* ---------- 16. Footer ---------- */
.footer { background: #081d35; color: rgba(255,255,255,.72); padding: 70px 0 0; }
.footer .container { }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: var(--white); font-size: 17px; font-family: var(--font-body); font-weight: 700; margin-bottom: 20px; letter-spacing: .01em; }
.footer p { font-size: 14.5px; }
.footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer .f-brand .brand-name { color: var(--white); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,.72); font-size: 14.5px; }
.footer-links a:hover { color: var(--gold); }
.footer-links a i { color: var(--gold); font-size: 11px; margin-right: 8px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14.5px; }
.footer-contact i { color: var(--gold); margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom a { color: rgba(255,255,255,.72); }
.footer-bottom a:hover { color: var(--gold); }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--white); transition: all .3s ease; }
.social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* ---------- 17. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- 18. Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold); border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 18px;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all .3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--navy); }

/* ---------- 19. CTA note strip (small) ---------- */
.mini-cta { background: var(--gold); color: var(--navy); padding: 20px 0; }
.mini-cta .container { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.mini-cta p { font-size: 16px; font-weight: 600; margin: 0; }
.mini-cta a { font-weight: 700; text-decoration: underline; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 10px 11px; font-size: 14.5px; }
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 90px 26px 30px; gap: 4px; box-shadow: -20px 0 60px rgba(12,43,77,.18);
    transform: translateX(100%); transition: transform .35s ease; z-index: 990;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 17px; padding: 13px 6px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: grid; }
  .nav-cta .btn { display: none; }

  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 70px; }
  .hero-figure { max-width: 420px; margin: 0 auto; }
  .hero-card.c1 { left: -10px; }
  .hero-card.c2 { right: -10px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band .container { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .topbar .tb-group { gap: 12px; }
  .topbar .tb-right { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pub-item { flex-direction: column; gap: 14px; }
  .pub-year { min-width: auto; text-align: left; display: inline-flex; align-items: baseline; gap: 8px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 18px; }
  .media-quote { left: 10px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- 21. Tabs (Publications) ---------- */
.tab-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 42px; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 26px; border-radius: 50px;
  border: 2px solid var(--line); background: var(--white); color: var(--slate);
  cursor: pointer; font-family: var(--font-body); font-size: 15px; font-weight: 600;
  transition: all .3s ease;
}
.tab-btn:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-2px); }
.tab-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tab-btn.active i { color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 22. Facebook-style Timeline (News) ---------- */
.fb-timeline { position: relative; max-width: 980px; margin: 0 auto; padding: 10px 0; }
.fb-timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; background: var(--line); transform: translateX(-50%);
  border-radius: 3px;
}
.fb-item { position: relative; margin-bottom: 44px; }
.fb-item:last-child { margin-bottom: 0; }
.fb-item .fb-card { width: 46%; }
.fb-item:nth-child(odd) .fb-card { margin-left: 0; margin-right: auto; }
.fb-item:nth-child(even) .fb-card { margin-left: auto; margin-right: 0; }
.fb-node {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 0 0 6px var(--paper); z-index: 2;
}
@media (max-width: 768px) {
  .fb-timeline::before { left: 23px; transform: none; }
  .fb-item { padding-left: 62px; }
  .fb-item .fb-card { width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
  .fb-node { left: 23px; transform: translateX(-50%); top: 14px; }
}
