/* ═══════════════════════════════════════════════
   Drisha Lab — Design System
   ═══════════════════════════════════════════════ */

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --text: #172033;
  --muted: #667085;
  --line: #d8e0ea;
  --brand: #2563eb;
  --brand-2: #c01886;
  --accent: #ff4b2b;
  --header-gradient: linear-gradient(100deg, #4f46e5 0%, #2f77df 52%, #08b6c8 100%);
  --notice-bg: #7f9db4;
  --notice-ink: #2c1834;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.1);
  --shadow-sm: 0 4px 16px rgba(23, 32, 51, 0.06);
  --shadow-hover: 0 20px 50px rgba(23, 32, 51, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
  --bg: #101418;
  --surface: #171d22;
  --surface-2: #202832;
  --text: #eef3f8;
  --muted: #aab4c2;
  --line: #2f3a46;
  --brand: #2dd4bf;
  --brand-2: #fb7185;
  --accent: #fbbf24;
  --header-gradient: linear-gradient(100deg, #4f46e5 0%, #2f77df 52%, #08b6c8 100%);
  --notice-bg: #6f8ea6;
  --notice-ink: #2f1936;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* ── Reset ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }

/* ═══════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-gradient);
  border-bottom: 0;
  box-shadow: 0 8px 24px rgba(38, 87, 196, 0.22);
}
.top-strip {
  display: none;
  justify-content: center;
  gap: 18px;
  padding: 7px 20px;
  color: var(--muted);
  font-size: 0.82rem;
  background: var(--surface-2);
}
.top-strip a { color: var(--brand); font-weight: 700; text-decoration: none; }
.header-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}
.wordmark span:nth-child(1) { color: #ef184f; }
.wordmark span:nth-child(2) { color: #ff7a12; }
.wordmark span:nth-child(3) { color: #d79b00; }
.wordmark span:nth-child(4) { color: #d76ce5; }
.wordmark span:nth-child(5) { color: #8bd80a; }
.wordmark span:nth-child(6) { color: #ff2498; }
.lab-logo { width: 300px; height: auto; }
.brand-copy { display: grid; gap: 0; }
.brand-copy strong { color: #ffffff; font-size: 1rem; }
.brand-copy small { color: rgba(255, 255, 255, 0.82); font-size: 0.76rem; }
#nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
#nav-menu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 9px 13px;
  border-radius: 8px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
  transition: background var(--transition);
}
#nav-menu a:hover, #nav-menu a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}
.header-actions { display: flex; gap: 8px; }
.icon-button {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 11px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background var(--transition);
}
.icon-button:hover { background: rgba(255, 255, 255, 0.22); }
.moon, [data-theme="dark"] .sun { display: none; }
[data-theme="dark"] .moon { display: inline; }
.menu-button { display: none; }
.menu-button span {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  margin: 2px 0;
}

/* ═══════════════════════════════════════════════
   Main Content
   ═══════════════════════════════════════════════ */
main { max-width: 1180px; margin: 0 auto; padding: 28px 22px 70px; }

/* ── Hero ── */
.hero {
  min-height: 570px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #111827;
  margin: -28px -22px 34px;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.78; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 15, 27, 0.82), rgba(8, 15, 27, 0.36) 58%, rgba(8, 15, 27, 0.08));
}
.hero-content {
  position: relative;
  width: min(760px, calc(100% - 44px));
  margin: 0 0 64px 44px;
  color: #fff;
}
.eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero .eyebrow { color: #5eead4; }
h1, h2, h3 { line-height: 1.12; margin-top: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.35rem, 5vw, 5.4rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); margin-bottom: 12px; }
h3 { font-size: 1.12rem; }
.hero-lede { font-size: clamp(1.08rem, 2vw, 1.35rem); max-width: 680px; color: #e5edf6; }
.hero-actions, .link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.button.primary { background: var(--brand); color: #ffffff; border-color: var(--brand); }
.button.primary:hover { filter: brightness(1.12); }
.button.ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* ── Content Grid ── */
.content-grid, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

/* ── Shared Card Styles ── */
.intro-panel, .theme-card, .pi-profile, .project-card, .contact-grid article, .empty-state, .timeline, .member-tabs, .photo-section, .publication-tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.intro-panel:hover, .theme-card:hover, .project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.intro-panel, .theme-card, .project-card, .contact-grid article, .empty-state, .timeline, .member-tabs, .photo-section, .publication-tabs { padding: 28px; }

/* ── Section Heading ── */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 44px 0 20px;
}
.section-heading a { color: var(--brand); font-weight: 800; text-decoration: none; }
.student-count-badge {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════
   Notice Board — Home Page (Redesigned)
   ═══════════════════════════════════════════════ */
.notice-panel-v2 {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notice-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.notice-panel-icon { font-size: 1.4rem; }
.notice-panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.notice-card-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  max-height: 440px;
}
.notice-card-item {
  display: block;
  text-decoration: none;
  padding: 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--surface);
  transition: all var(--transition);
}
.notice-card-item:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--surface-2);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.notice-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.notice-category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface-2));
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
}
.notice-date {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.notice-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}
.notice-card-summary {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-read-more {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand);
}
.notice-view-all-btn {
  display: block;
  padding: 14px 24px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand);
  text-decoration: none;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  transition: background var(--transition);
}
.notice-view-all-btn:hover {
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-2));
}

/* ═══════════════════════════════════════════════
   Stats Band
   ═══════════════════════════════════════════════ */
.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  margin: 28px 0;
}
.stats-band div {
  background: var(--surface);
  padding: 28px;
  text-align: center;
  transition: background var(--transition);
}
.stats-band div:hover { background: var(--surface-2); }
.stats-band strong { display: block; font-size: 1.8rem; color: var(--brand); margin-bottom: 4px; }
.stats-band span { color: var(--muted); font-size: 0.9rem; }

/* ═══════════════════════════════════════════════
   Theme / Research Cards
   ═══════════════════════════════════════════════ */
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.theme-grid.large { grid-template-columns: repeat(3, 1fr); }
.theme-card { box-shadow: none; cursor: default; }
.theme-card:hover { box-shadow: var(--shadow-sm); }
.theme-card h3 { color: var(--text); }
.theme-card p, .project-card p, .intro-panel p, .contact-grid p, .empty-state p, .timeline p { color: var(--muted); }

/* ═══════════════════════════════════════════════
   Gallery
   ═══════════════════════════════════════════════ */
.gallery-strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}
.gallery-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform var(--transition);
}
.gallery-strip img:hover { transform: scale(1.02); }

/* ═══════════════════════════════════════════════
   Page Hero
   ═══════════════════════════════════════════════ */
.page-hero {
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.page-hero p { max-width: 820px; color: var(--muted); font-size: 1.05rem; }
.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 32px;
}
.split-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════
   PI Profile
   ═══════════════════════════════════════════════ */
.pi-profile {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  align-items: center;
}
.pi-profile img { width: 100%; max-width: 210px; height: auto; aspect-ratio: 210 / 250; object-fit: cover; border-radius: var(--radius); }
.link-row a, .contact-grid a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  transition: opacity var(--transition);
}
.link-row a:hover, .contact-grid a:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════
   People Tools
   ═══════════════════════════════════════════════ */
.people-tools, .publication-tools {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  margin: 28px 0;
}
.people-tools label { position: absolute; width: 1px; height: 1px; overflow: hidden; }
input, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

/* ═══════════════════════════════════════════════
   People Grid
   ═══════════════════════════════════════════════ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ═══════════════════════════════════════════════
   Student Card V2 — Wireframe Layout
   [Photo | Name & all]  ← top row (side by side)
   [     Details       ]  ← bottom row (full width)
   ═══════════════════════════════════════════════ */
.student-card-v2 {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.student-card-v2:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow-hover);
}
.student-card-v2.hidden { display: none; }

/* Top row: Photo left + Name/info right */
.card-top-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 0;
  flex-shrink: 0;
}
/* Photo slot (left column) */
.profile-photo-slot-v {
  width: 130px;
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-right: 1px solid var(--line);
  padding: 14px;
  overflow: hidden;
}
.profile-photo-slot-v.has-photo img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}
.profile-photo-slot-v.no-photo {
  border-right-style: dashed;
}
.profile-photo-slot-v .initials-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5b6ef5 0%, #7b5ea7 50%, #9b3f9e 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 20px rgba(91, 110, 245, 0.35);
  flex-shrink: 0;
}

/* Name block (right column of top row) */
.card-name-block {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.card-name-block h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: transparent;
  background: linear-gradient(100deg, #1f55d8, #c01886);
  -webkit-background-clip: text;
  background-clip: text;
}
.card-designation {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.card-area {
  margin: 4px 0 6px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-email {
  margin: 0;
  font-size: 0.82rem;
}
.card-email a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.card-email a:hover { text-decoration: underline; }
.card-name-block .linkedin-placeholder {
  margin-top: 6px;
}

/* Bottom details row (full width) */
.card-bottom-details {
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  background: var(--surface-2);
  flex: 1;
}
.card-bottom-details .student-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}
.card-bottom-details .student-meta div {
  border-top: none;
  padding-top: 0;
}

/* ── Student Meta (shared) ── */
.student-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}
.student-meta div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.student-meta dt {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.student-meta dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ── LinkedIn button ── */
.linkedin-placeholder {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid var(--line);
}
.linkedin-placeholder:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ── Empty Section Message ── */
.empty-section-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-style: italic;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ── Old student-card base (hidden rows etc) ── */
.student-card.hidden { display: none; }
.student-card h3 { margin-bottom: 8px; }
.student-card p { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.student-card span, .note { color: var(--muted); font-size: 0.9rem; }

/* ── Theme card, project card headings ── */
.theme-card h3,
.project-card h3 {
  color: transparent;
  background: linear-gradient(100deg, #1f55d8, #c01886);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ═══════════════════════════════════════════════
   Student Table (B.Tech / Intern — alumni-style)
   ═══════════════════════════════════════════════ */
.student-table .table-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}
/* Shared initials avatar — used in all tables (alumni, B.Tech, intern) */
.table-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #5b6ef5 0%, #7b5ea7 50%, #9b3f9e 100%);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(91, 110, 245, 0.3);
  vertical-align: middle;
  flex-shrink: 0;
}
/* Also apply same to alumni-table which doesn't use .student-table selector */
.alumni-table .table-avatar {
  width: 48px;
  height: 48px;
}
.alumni-table .table-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  vertical-align: middle;
}
.alumni-table .td-photo {
  width: 70px;
  text-align: center;
  vertical-align: middle;
}
.alumni-table .td-name {
  color: var(--text);
  font-weight: 800;
}
.student-table .td-photo {
  width: 70px;
  text-align: center;
}
.student-table .td-name {
  color: var(--text);
  font-weight: 800;
}
.student-table .table-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}
.student-table .table-link:hover { text-decoration: underline; }
.student-table tbody tr.hidden { display: none; }
.table-row-hidden { display: none; }

/* ── See More button (tables + card grids) ── */
.see-more-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 20px 0 4px;
}
.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.see-more-btn:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════
   Current Students (Year-Wise) Section
   ═══════════════════════════════════════════════ */
.current-students-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.yearwise-block {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.yearwise-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.yearwise-year {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand);
  margin: 0 0 14px;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.yearwise-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.yearwise-category {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.yearwise-cat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  margin-bottom: 10px;
}
.yearwise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.yearwise-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
}
.yearwise-list li:last-child { border-bottom: none; }
.yearwise-area {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════
   Achievements Page
   ═══════════════════════════════════════════════ */
.achievements-tools {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin: 0 0 28px;
}
.achievements-grid {
  display: grid;
  gap: 24px;
}
.achievement-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.achievement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 4px 0 0 4px;
}
.achievement-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}
.achievement-card.hidden { display: none; }
.achievement-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.achievement-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.achievement-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface-2));
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
}
.achievement-date {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}
.achievement-title {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.achievement-summary {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 16px;
}
.achievement-full-content {
  padding: 24px;
  margin: 16px 0;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--text);
  line-height: 1.75;
}
.achievement-full-content h3 {
  color: var(--text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  margin-top: 20px;
}
.achievement-full-content ul {
  padding-left: 24px;
  color: var(--muted);
}
.achievement-full-content li {
  margin-bottom: 6px;
}
.achievement-full-content p {
  color: var(--muted);
  margin: 10px 0;
}
.achievement-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.achievement-toggle:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ═══════════════════════════════════════════════
   Alumni Table
   ═══════════════════════════════════════════════ */
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--brand);
  font-weight: 800;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.alumni-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}
.alumni-table th,
.alumni-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}
.alumni-table th {
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
}
.alumni-table td {
  color: var(--muted);
  font-size: 0.9rem;
}
.alumni-table td:first-child {
  color: var(--text);
  font-weight: 800;
}
.alumni-table tr:last-child td { border-bottom: 0; }
.alumni-table tr:hover td { background: var(--surface-2); }

/* ═══════════════════════════════════════════════
   Project Cards / Notice Items
   ═══════════════════════════════════════════════ */
.project-list, .notice-board { display: grid; gap: 16px; }
.project-list { grid-template-columns: repeat(2, 1fr); }
.notice-board { grid-template-columns: repeat(2, 1fr); }
.project-card {
  border-left: 4px solid var(--brand);
  transition: all var(--transition);
}
.project-card:hover {
  border-left-color: var(--brand-2);
}
.notice-item span, .project-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  color: var(--brand-2);
  font-weight: 800;
  font-size: 0.78rem;
}
.project-status.status-active { color: #16a34a; }
.project-status.status-completed { color: var(--muted); }

/* ═══════════════════════════════════════════════
   Publications
   ═══════════════════════════════════════════════ */
.notice-item { box-shadow: none; }
.publication-stats { margin-top: 0; }
.publication-count {
  color: var(--muted);
  font-weight: 800;
  margin: -6px 0 18px;
}
.publication-list { display: grid; gap: 12px; }
.publication-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all var(--transition);
}
.publication-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}
.publication-card.hidden { display: none; }
.publication-card span {
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.publication-card p { margin: 0; color: var(--muted); }
.dense-list .publication-card:nth-child(n + 41) { display: none; }
.dense-list.show-all .publication-card { display: grid; }
.publication-card.hidden { display: none !important; }
.load-more {
  margin-top: 16px;
  background: var(--surface-2);
  color: var(--text);
}

/* ═══════════════════════════════════════════════
   Tabs
   ═══════════════════════════════════════════════ */
.member-tabs, .publication-tabs, .photo-section { margin-top: 34px; }
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tab-button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-button.active, .tab-button:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.compact-heading { margin-top: 0; }

/* ═══════════════════════════════════════════════
   Timeline
   ═══════════════════════════════════════════════ */
.timeline { margin-top: 28px; }
.timeline article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
time { color: var(--brand); font-weight: 800; }

/* ═══════════════════════════════════════════════
   Contact
   ═══════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 54px 24px; }
address { font-style: normal; color: var(--muted); }
.contact-grid article {
  padding: 28px;
  transition: all var(--transition);
}
.contact-grid article:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */
.site-footer {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 54px 22px;
  border-top: 1px solid var(--line);
  background: var(--header-gradient);
  color: #ffffff;
  font-weight: 800;
}
.site-footer div { display: none; }
.site-footer p { margin: 4px 0 0; font-size: 0.92rem; }

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */
@media (max-width: 930px) {
  .brand-copy { display: none; }
  #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    background: var(--header-gradient);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    padding: 10px;
    box-shadow: var(--shadow);
  }
  #nav-menu.active { display: grid; }
  .menu-button { display: inline-grid; }
  .content-grid, .contact-grid, .split-hero, .pi-profile { grid-template-columns: 1fr; }
  .pi-profile img { max-width: 180px; }
  .theme-grid, .theme-grid.large, .notice-board, .project-list, .photo-placeholder-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 500px; }
  .hero-content { margin-left: 24px; margin-bottom: 44px; }
  .people-tools, .publication-tools { grid-template-columns: 1fr 200px; }
  .achievements-tools { grid-template-columns: 1fr 200px; }
  .card-bottom-details .student-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top-strip { display: none; }
  .header-container { padding: 10px 14px; gap: 12px; }
  .lab-logo { width: 104px; height: 44px; }
  .wordmark { font-size: 2.05rem; }
  main { padding: 20px 14px 48px; }
  .hero { margin: -20px -14px 26px; min-height: 420px; }
  .hero-content { width: calc(100% - 28px); margin: 0 14px 28px; }
  h1 { font-size: 2rem; }
  .page-hero { padding: 24px 18px; }
  .split-hero img { aspect-ratio: 16 / 9; }
  .theme-grid, .theme-grid.large, .notice-board, .project-list, .photo-placeholder-grid, .stats-band, .people-tools, .publication-tools, .gallery-strip, .achievements-tools { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .gallery-strip img { height: 200px; }
  /* Card V2 stacks on mobile */
  .card-top-row { grid-template-columns: 1fr; }
  .profile-photo-slot-v {
    width: 100%;
    min-height: 80px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .profile-photo-slot-v.has-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
  }
  .card-name-block { padding: 14px 16px; }
  .card-bottom-details { padding: 12px 16px; }
  .card-bottom-details .student-meta { grid-template-columns: 1fr; gap: 8px; }
  .yearwise-categories { grid-template-columns: 1fr; }
  .publication-card { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { display: block; text-align: center; padding: 36px 16px; }
  .achievement-card { padding: 22px 18px; }
  .achievement-card-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .achievement-full-content { padding: 18px 14px; }
  .alumni-table { min-width: 600px; }
  .stats-band strong { font-size: 1.5rem; }
  .stats-band div { padding: 20px 14px; }
  .notice-card-top { flex-wrap: wrap; }
  .notice-panel-header { padding: 16px 18px 14px; }
  .notice-card-list { padding: 6px 10px; }
  .notice-card-item { padding: 14px 12px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 10px; margin: 34px 0 16px; }
  .intro-panel, .theme-card, .project-card, .contact-grid article, .empty-state, .timeline, .member-tabs, .photo-section, .publication-tabs { padding: 22px 18px; }
  .pi-profile { padding: 22px 18px; gap: 20px; }
  .pi-profile img { max-width: 150px; }
  .button { padding: 10px 16px; font-size: 0.9rem; min-height: 42px; }
  .hero-actions, .link-row { gap: 10px; }
  .tab-button { padding: 7px 14px; font-size: 0.88rem; }
  .contact-grid { gap: 16px; }
}
@media (max-width: 480px) {
  .header-container { padding: 8px 12px; gap: 8px; }
  .lab-logo { width: 88px; height: 38px; }
  .wordmark { font-size: 1.75rem; }
  .icon-button { width: 40px; height: 40px; border-radius: 8px; }
  main { padding: 16px 12px 40px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  .hero { margin: -16px -12px 22px; min-height: 370px; }
  .hero-content { width: calc(100% - 24px); margin: 0 12px 24px; }
  .hero-lede { font-size: 0.95rem; }
  .eyebrow, .section-kicker { font-size: 0.72rem; }
  .page-hero { padding: 20px 14px; }
  .page-hero p { font-size: 0.95rem; }
  .stats-band strong { font-size: 1.3rem; }
  .stats-band span { font-size: 0.8rem; }
  .stats-band div { padding: 16px 10px; }
  .intro-panel, .theme-card, .project-card, .contact-grid article, .empty-state, .timeline, .member-tabs, .photo-section, .publication-tabs { padding: 18px 14px; }
  .card-name-block { padding: 12px 14px; }
  .card-name-block h3 { font-size: 0.95rem; }
  .card-bottom-details { padding: 10px 14px; }
  .profile-photo-slot-v { min-height: 70px; padding: 10px; }
  .profile-photo-slot-v.has-photo img { width: 64px; height: 64px; }
  .profile-photo-slot-v .initials-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
  .achievement-card { padding: 18px 14px; }
  .achievement-title { font-size: 1.1rem; }
  .achievement-summary { font-size: 0.9rem; }
  .achievement-full-content { padding: 14px 12px; }
  .notice-card-item { padding: 12px 10px; }
  .notice-card-title { font-size: 0.85rem; }
  .notice-card-summary { font-size: 0.78rem; }
  .gallery-strip img { height: 160px; }
  .alumni-table { min-width: 500px; }
  .pi-profile { padding: 18px 14px; gap: 16px; }
  .pi-profile img { max-width: 120px; }
  .button { padding: 8px 14px; font-size: 0.85rem; min-height: 38px; }
  .see-more-btn { padding: 10px 24px; font-size: 0.88rem; }
  .site-footer { padding: 28px 14px; }
  .site-footer p { font-size: 0.82rem; }
  .section-heading { margin: 28px 0 14px; }
  .student-count-badge { font-size: 0.8rem; padding: 5px 12px; }
  .current-students-section { padding: 20px 14px; }
  .yearwise-category { padding: 12px 14px; }
  .tab-button { padding: 6px 12px; font-size: 0.82rem; min-height: 36px; }
  .publication-card { padding: 14px; }
  .publication-card span { font-size: 0.72rem; }
  .publication-card p { font-size: 0.85rem; }
  .contact-grid article { padding: 18px 14px; }
}

/* ═══════════════════════════════════════════════
   iPad / Tablet — 768px dedicated breakpoint
   ═══════════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 930px) {
  /* 2-column student grid on iPad */
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  /* 2-col theme/project grids */
  .theme-grid, .theme-grid.large { grid-template-columns: repeat(2, 1fr); }
  /* Search + filter side by side */
  .people-tools, .publication-tools { grid-template-columns: 1fr 200px; }
  .achievements-tools { grid-template-columns: 1fr 200px; }
  /* Card meta 2-col on tablet */
  .card-bottom-details .student-meta { grid-template-columns: 1fr 1fr; }
  /* Stats keep 3-col */
  .stats-band { grid-template-columns: repeat(3, 1fr); }
  /* Gallery 2 images on tablet */
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip img:last-child { display: none; }
  /* Table horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .alumni-table, .student-table { min-width: 700px; }
  /* Lab logo size */
  .lab-logo { width: 110px; height: 46px; }
}

/* ═══════════════════════════════════════════════
   Global table scroll — all screens below 930px
   ═══════════════════════════════════════════════ */
@media (max-width: 930px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ═══════════════════════════════════════════════
   Empty section message — responsive
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .empty-section-msg { padding: 32px 16px; font-size: 0.9rem; }
}