/* ============================================================
   Timothy P. Johnson — Site Design System (modern light)
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-tint: #f2effb;            /* faint violet wash */
  --surface: #ffffff;
  --border: #e6e8ef;
  --border-strong: #d6d9e3;

  /* Text */
  --ink: #0f172a;               /* slate 900 */
  --ink-soft: #475569;          /* slate 600 */
  --ink-muted: #64748b;         /* slate 500 */

  /* Accents (echo the visualizer) */
  --violet: #7c3aed;
  --violet-soft: #ede9fe;
  --violet-ink: #5b21b6;
  --teal: #0d9488;
  --teal-soft: #ccfbf1;
  --teal-ink: #0f766e;

  /* Effects */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.10);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --maxw: 1120px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

p { color: var(--ink-soft); }

a { color: var(--violet); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--violet-ink); }

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

ul { list-style: none; }

/* --- Layout helpers --- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section--tint { background: var(--bg-alt); }

.eyebrow {
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--violet);
}

.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 10px 0 14px; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.98rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn i, .btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28); }
.btn-primary:hover { background: var(--violet-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(124, 58, 237, 0.34); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }

/* ============================================================
   Navbar (shared)
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav .nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.06rem;
  color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px;
}
.nav-brand:hover { color: var(--ink); }
.nav-brand .brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--teal)); color: #fff;
}
.nav-brand .brand-mark i, .nav-brand .brand-mark svg { width: 17px; height: 17px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 0.96rem;
  color: var(--ink-soft); padding: 8px 14px; border-radius: 999px;
  transition: all 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-links a.active { color: var(--violet); background: var(--violet-soft); }
.nav-links a.nav-ext { color: var(--ink-muted); display: inline-flex; align-items: center; gap: 5px; }
.nav-links a.nav-ext i, .nav-links a.nav-ext svg { width: 15px; height: 15px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }
.nav-toggle i, .nav-toggle svg { width: 24px; height: 24px; }

/* Dark nav variant for the Publications / visualizer page */
.site-nav--dark {
  background: rgba(8, 11, 17, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav--dark .nav-brand { color: #f8fafc; }
.site-nav--dark .nav-links a { color: #94a3b8; }
.site-nav--dark .nav-links a:hover { color: #f8fafc; background: rgba(255, 255, 255, 0.06); }
.site-nav--dark .nav-links a.active { color: #c4b5fd; background: rgba(139, 92, 246, 0.18); }
.site-nav--dark .nav-links a.nav-ext { color: #94a3b8; }
.site-nav--dark .nav-toggle { color: #f8fafc; }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 88% -10%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(900px 480px at 5% 110%, rgba(13, 148, 136, 0.10), transparent 55%),
    var(--bg);
  padding: 80px 0 76px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 16px 0 8px; }
.hero .tagline {
  font-family: 'Outfit', sans-serif; font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--violet-ink); margin-bottom: 18px;
}
.hero .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-portrait { position: relative; justify-self: center; }
.hero-portrait .photo-frame {
  width: min(360px, 80vw); aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff;
  background: linear-gradient(135deg, var(--violet-soft), var(--teal-soft));
  position: relative;
}
.hero-portrait .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait .photo-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--violet-ink); text-align: center; padding: 24px; gap: 10px;
}
.hero-portrait .photo-placeholder i, .hero-portrait .photo-placeholder svg { width: 56px; height: 56px; opacity: 0.5; }
.hero-portrait .photo-placeholder span { font-family: 'Outfit', sans-serif; font-size: 0.85rem; opacity: 0.75; }
.hero-portrait .floaty {
  position: absolute; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); border-radius: 14px; padding: 12px 16px;
  font-family: 'Outfit', sans-serif;
}
.hero-portrait .floaty .num { font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.hero-portrait .floaty .lbl { font-size: 0.74rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-portrait .floaty-1 { top: 18px; left: -26px; }
.hero-portrait .floaty-2 { bottom: 24px; right: -26px; }

/* ============================================================
   Stat band
   ============================================================ */
.stat-band {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.stat-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.stat-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-item .stat-num {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, var(--violet), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item .stat-lbl { color: var(--ink-muted); font-size: 0.86rem; margin-top: 6px; }

/* ============================================================
   Generic cards / grids
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }

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

/* Highlight bullets (home About teaser) */
.highlight-list { display: grid; gap: 14px; }
.highlight-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-soft); }
.highlight-list .ic {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet-ink);
}
.highlight-list .ic i, .highlight-list .ic svg { width: 17px; height: 17px; }
.highlight-list strong { color: var(--ink); font-weight: 600; }

/* Testimonials */
.quote-card { position: relative; display: flex; flex-direction: column; text-align: center; }
.quote-card .q-mark {
  font-family: 'Outfit', sans-serif; font-size: 3rem; line-height: 1; color: var(--violet-soft);
  font-weight: 800; margin-bottom: -6px;
}
.quote-card blockquote { flex: 1; font-size: 1.06rem; color: var(--ink); font-style: italic; }
.quote-card .q-by { margin-top: auto; padding-top: 16px; font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--ink); }
.quote-card .q-role { font-size: 0.86rem; color: var(--ink-muted); }

/* News / Latest feed */
.news-item { display: flex; gap: 16px; align-items: flex-start; }
.news-item .news-ic {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-ink);
}
.news-item .news-ic i, .news-item .news-ic svg { width: 20px; height: 20px; }
.news-item .news-date { font-size: 0.78rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.news-item h4 { font-size: 1.05rem; margin: 2px 0 4px; }

/* ============================================================
   About page
   ============================================================ */
.page-head {
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(124, 58, 237, 0.09), transparent 60%),
    var(--bg-alt);
  padding: 24px 0 20px; border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 10px; }
.page-head .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 64ch; }
.page-head-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 48px; align-items: center; }
.page-head-grid .about-photo-rect-wrap { justify-self: center; }

.prose p { margin-bottom: 18px; font-size: 1.06rem; }
.prose p:last-child { margin-bottom: 0; }

.about-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }

.about-photo-rect-wrap { text-align: center; margin-bottom: 22px; }
.about-photo-frame { width: min(160px, 50vw); aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid #fff; background: linear-gradient(135deg, var(--violet-soft), var(--teal-soft)); display: inline-block; }
.about-photo-frame img { width: 100%; height: 125%; object-fit: cover; object-position: top center; display: block; }

.fact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.fact-card h3 { font-size: 1.02rem; padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 9px; }
.fact-card h3 i, .fact-card h3 svg { width: 18px; height: 18px; color: var(--violet); }
.fact-body { padding: 8px 22px 18px; }
.fact-body li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.fact-body li:last-child { border-bottom: 0; }
.fact-body .t { font-weight: 600; color: var(--ink); display: block; }
.fact-body .s { font-size: 0.9rem; color: var(--ink-muted); }
.fact-card + .fact-card { margin-top: 22px; }

/* Timeline (education) */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.timeline li { position: relative; padding: 0 0 22px 0; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--violet);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .t { font-weight: 600; color: var(--ink); }
.timeline .s { font-size: 0.9rem; color: var(--ink-muted); }

/* Tag chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 0.85rem; font-family: 'Outfit', sans-serif; font-weight: 500;
  padding: 6px 13px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink);
}
.chip.teal { background: var(--teal-soft); color: var(--teal-ink); }
.chip.chapter { background: #fef3c7; color: #92400e; }

/* ============================================================
   About page — Accordion sidebar
   ============================================================ */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--surface);
}
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-align: left;
  transition: background 0.18s var(--ease);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.accordion-trigger:hover,
.accordion-trigger[aria-expanded="true"] { background: var(--bg-alt); }
.accordion-trigger .acc-icon {
  color: var(--violet);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.accordion-trigger .acc-icon i,
.accordion-trigger .acc-icon svg { width: 17px; height: 17px; }
.accordion-chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  transition: transform 0.25s var(--ease);
}
.accordion-trigger[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); }
.accordion-body { display: none; border-top: 1px solid var(--border); }
.accordion-body.is-open { display: block; }
.accordion-body .fact-body { padding: 6px 18px 14px; }

/* ============================================================
   Books page
   ============================================================ */
.decade-block + .decade-block { margin-top: 48px; }
.decade-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.decade-head h2 { font-size: 1.6rem; }
.decade-head .count { font-size: 0.85rem; color: var(--ink-muted); font-family: 'Outfit', sans-serif; }
.decade-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.book-card { display: flex; flex-direction: column; height: 100%; }
.book-card .book-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.book-tag {
  font-size: 0.72rem; font-family: 'Outfit', sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px;
}
.book-tag.authored { background: var(--violet-soft); color: var(--violet-ink); }
.book-tag.edited { background: var(--teal-soft); color: var(--teal-ink); }
.book-tag.chapter { background: #fef3c7; color: #92400e; }
.book-card .book-year { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--ink-muted); }
.book-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.book-card .book-auth { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 6px; }
.book-card .book-pub { font-size: 0.86rem; color: var(--ink-muted); }

.book-card .book-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--violet);
  width: fit-content;
  transition: all 0.2s var(--ease);
}

.book-action-link:hover {
  color: var(--violet-ink);
  transform: translateX(3px);
}

.book-action-link i, .book-action-link svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   Footer (shared)
   ============================================================ */
.site-footer { background: #0b1020; color: #cbd5e1; padding: 56px 0 28px; }
.site-footer a { color: #c4b5fd; }
.site-footer a:hover { color: #ddd6fe; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.footer-brand + p { color: #94a3b8; font-size: 0.95rem; max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: #cbd5e1; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a i, .footer-col a svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.85rem; color: #64748b;
}
.footer-bottom .wink { color: #94a3b8; font-style: italic; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { order: -1; }
  .hero-portrait .floaty-1 { left: 0; }
  .hero-portrait .floaty-2 { right: 0; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 12px 16px 18px;
    box-shadow: var(--shadow); display: none;
  }
  .site-nav--dark .nav-links { background: rgba(8, 11, 17, 0.98); border-bottom-color: rgba(255,255,255,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 60px 0; }
  .grid-2, .book-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 460px) {
  .stat-band { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }

  /* Books page — narrow-phone polish */
  .book-card .book-top { flex-wrap: wrap; gap: 6px; }
  .book-action-link { padding: 6px 0; min-height: 36px; }
  .decade-head h2 { font-size: 1.3rem; }
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--violet);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), background-color 150ms var(--ease);
}

.back-to-top svg { width: 22px; height: 22px; stroke-width: 2.25; }

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover { background: var(--violet-ink); }

.back-to-top:focus-visible {
  outline: none;
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--violet-soft), 0 0 0 5px var(--violet);
}

@media (max-width: 640px) {
  .back-to-top { width: 44px; height: 44px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 80ms linear; transform: none; }
  .back-to-top.is-visible { transform: none; }
}

/* ============================================================
   New Dynamic News & Publications Component
   ============================================================ */
#news-section {
  position: relative;
  overflow: hidden;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  justify-content: center;
}

.filter-tab {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease);
}

.filter-tab:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: var(--violet-soft);
  transform: translateY(-1px);
}

.filter-tab.active {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.filter-tab .tab-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}

.filter-tab:hover .tab-count {
  color: var(--violet-ink);
  background: rgba(124, 58, 237, 0.12);
}

.filter-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* News Cards Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transition: all 0.3s var(--ease);
}

.news-card-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.news-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.news-badge {
  font-size: 0.72rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Badge variants */
.badge-news { background: var(--violet-soft); color: var(--violet-ink); }
.badge-press { background: var(--teal-soft); color: var(--teal-ink); }
.badge-publication { background: #e0f2fe; color: #0369a1; }
.badge-award { background: #fef3c7; color: #b45309; }

.news-card-date {
  font-size: 0.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--ink-muted);
}

.news-card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 700;
}

.news-title-link {
  color: var(--ink);
  display: inline-block;
  transition: color 0.2s var(--ease);
  position: relative;
}

.news-title-link:hover {
  color: var(--violet);
}

.news-title-link .link-ic {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.news-title-link:hover .link-ic {
  opacity: 0.85;
  transform: none;
}

.news-card-snippet {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-footer {
  margin-top: auto;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

.news-source-label {
  color: var(--ink-muted);
  font-weight: 500;
}

.news-source-name {
  color: var(--ink-soft);
  font-weight: 600;
}

/* Empty State */
.news-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink-muted);
}

.news-empty-state i, .news-empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
  color: var(--violet);
}

.news-empty-state p {
  font-size: 1.05rem;
}

/* Pagination & Controls */
.news-controls-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.news-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--violet);
  color: var(--violet);
  background: var(--violet-soft);
}

.page-btn.active {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 920px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-filters {
    gap: 8px;
  }
  .filter-tab {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

