/* ============================================================
   style.css — Personal Academic Website
   ============================================================
   To swap the visual theme, update the :root variables below
   and replace --hero-image with your own image URL.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Cormorant+Garamond:wght@300;400;500;600&family=Crimson+Pro:ital,wght@0,300;0,400;1,300&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --navy:        #1a2744;
  --navy-mid:    #243660;
  --navy-light:  #3a5080;
  --gold:        #b8972a;
  --gold-light:  #d4af50;
  --cream:       #faf8f3;
  --cream-dark:  #f0ece0;
  --text:        #2a2a2a;
  --text-light:  #5a5a5a;
  --border:      #d8d0bc;

  --serif:   'EB Garamond', Georgia, serif;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body:    'Crimson Pro', Georgia, serif;

  /* Hero background image — replace with your own photo or illustration */
  --hero-image: url('images/albarracin.jpg');
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
nav {
  background: var(--navy);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}

.nav-brand {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.04em;
  padding: 1.1rem 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links a {
  color: rgba(250, 248, 243, 0.78);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.2rem 1.1rem;
  display: block;
  transition: color 0.2s, background 0.2s;
  font-family: var(--serif);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.05);
}

/* ══════════════════════════════════════════
   PAGE HEADER (inner pages)
══════════════════════════════════════════ */
.page-header {
  background: var(--navy);
  padding: 4rem 3rem 3rem;
  border-bottom: 2px solid var(--gold);
}

.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--cream);
}

/* ══════════════════════════════════════════
   HOME HERO — IMAGE BACKGROUND
══════════════════════════════════════════ */
.hero-banner {
  position: relative;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 30%;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* Dark overlay so text stays readable over any image */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 22, 44, 0.88) 0%,
    rgba(15, 22, 44, 0.70) 55%,
    rgba(15, 22, 44, 0.30) 100%
  );
}

/* Bottom gold border echoing the nav */
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: center;
}

.hero-text .title-line {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-text h1 {
  font-family: var(--display);
  font-size: 3.8rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.hero-text .ornament {
  color: var(--gold-light);
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  margin: 1.2rem 0 1.5rem;
  opacity: 0.8;
}

.hero-text p {
  font-family: var(--body);
  font-size: 1.12rem;
  color: rgba(250, 248, 243, 0.88);
  max-width: 500px;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Portrait */
.hero-portrait { position: relative; }

.portrait-frame {
  width: 260px;
  height: 320px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
  margin-left: auto;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
  z-index: 1;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.portrait-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.35;
  fill: white;
}

.portrait-accent {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 260px;
  height: 320px;
  border: 2px solid var(--gold);
  z-index: -1;
  opacity: 0.6;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  padding: 0.6rem 1.6rem;
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 1.5px solid var(--gold);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-secondary {
  background: transparent;
  color: rgba(250, 248, 243, 0.9);
  border: 1.5px solid rgba(250, 248, 243, 0.45);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* Non-hero context buttons (dark on light bg) */
.btn-dark {
  background: var(--navy);
  color: var(--cream);
  border: 1.5px solid var(--navy);
}

.btn-dark:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-light);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

/* ══════════════════════════════════════════
   SHARED TYPOGRAPHY / LABELS
══════════════════════════════════════════ */
.section-label {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.page-header .section-label { color: var(--gold-light); }

.section-title {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

.intro-block {
  font-family: var(--body);
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 3.5rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  line-height: 1.75;
}

.intro-block a { color: var(--navy); }

/* ══════════════════════════════════════════
   TAGS & BADGES
══════════════════════════════════════════ */
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--text-light);
  background: var(--cream-dark);
}

.tag-invited  { border-color: var(--gold);       color: var(--gold);       background: rgba(184,151,42,0.07); }
.tag-keynote  { border-color: var(--navy);        color: var(--navy);       background: rgba(26,39,68,0.07); }

.status-badge { display: inline-block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.15rem 0.6rem; margin-left: 0.5rem; }
.status-upcoming { background: rgba(26,39,68,0.08); color: var(--navy);      border: 1px solid var(--navy-light); }
.status-past     { background: var(--cream-dark);   color: var(--text-light); border: 1px solid var(--border); }
.status-today    { background: var(--gold);          color: white;             border: 1px solid var(--gold); }

/* ══════════════════════════════════════════
   HOME — HIGHLIGHTS / CARDS
══════════════════════════════════════════ */
.highlights {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

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

.card {
  border: 1px solid var(--border);
  padding: 2rem 1.8rem;
  background: white;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--navy);
  transition: height 0.3s;
}

.card:hover { box-shadow: 0 8px 32px rgba(26,39,68,0.1); transform: translateY(-2px); }
.card:hover::before { height: 100%; }

.card-icon { font-size: 1.5rem; margin-bottom: 1rem; opacity: 0.6; }

.card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.card p {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-light);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.card:hover .card-link { color: var(--navy); border-color: var(--navy); }

/* ══════════════════════════════════════════
   HOME — NEWS & UPDATES
══════════════════════════════════════════ */
.updates {
  background: var(--navy);
  padding: 4rem 3rem;
}

.updates-inner { max-width: 1100px; margin: 0 auto; }

.updates .section-label { color: var(--gold-light); }
.updates .section-title { color: var(--cream); margin-bottom: 2rem; }

.update-list { list-style: none; }

.update-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}

.update-date {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-top: 0.2rem;
}

.update-text {
  font-family: var(--body);
  font-size: 1.05rem;
  color: rgba(250,248,243,0.85);
  line-height: 1.55;
}

.update-text strong { color: var(--cream); font-weight: 400; }

/* ══════════════════════════════════════════
   HOME — CONTACT STRIP
══════════════════════════════════════════ */
.contact-strip {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.contact-strip h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy);
}

.contact-strip p {
  font-family: var(--body);
  color: var(--text-light);
  margin-top: 0.4rem;
}

/* ══════════════════════════════════════════
   RESEARCH — PUBLICATIONS
══════════════════════════════════════════ */
.pub-section { margin-bottom: 3.5rem; }

.pub-year-label {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

.pub-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }

.pub-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.4rem 1.6rem;
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.pub-item:hover {
  border-left-color: var(--navy);
  box-shadow: 0 4px 20px rgba(26,39,68,0.08);
}

.pub-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.pub-meta {
  font-family: var(--body);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.pub-authors {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.pub-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.7rem; }

.pub-abstract {
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.6;
  display: none;
  margin-top: 0.7rem;
}

.pub-abstract.open { display: block; }

.pub-actions { display: flex; flex-direction: column; gap: 0.5rem; min-width: 80px; align-items: flex-end; }

.pub-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-light);
  text-decoration: none;
  border: 1px solid var(--navy-light);
  padding: 0.3rem 0.7rem;
  transition: all 0.2s;
  text-align: center;
}

.pub-link:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.toggle-abstract {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0.3rem 0.7rem;
  font-family: var(--serif);
  transition: color 0.2s;
}

.toggle-abstract:hover { color: var(--navy); }

/* ══════════════════════════════════════════
   TALKS
══════════════════════════════════════════ */
.filter-bar { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }

.filter-btn {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.talk-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.talk-item:first-child { border-top: 1px solid var(--border); }

.talk-year-col {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--navy);
  opacity: 0.4;
  padding-top: 0.2rem;
}

.talk-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.talk-event {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.talk-location {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.talk-location::before { content: '📍 '; }

.talk-tags { display: flex; gap: 0.4rem; margin-top: 0.6rem; flex-wrap: wrap; }

.talk-links { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.3rem; }

.talk-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-light);
  text-decoration: none;
  border: 1px solid var(--navy-light);
  padding: 0.3rem 0.7rem;
  text-align: center;
  transition: all 0.2s;
  white-space: nowrap;
}

.talk-link:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* ══════════════════════════════════════════
   TEACHING
══════════════════════════════════════════ */
.teaching-section { margin-bottom: 3.5rem; }

.teaching-section-title {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1.8rem;
}

/* Course list (teaching page) */
.course-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.course-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.course-item:first-child { border-top: 1px solid var(--border); }

.course-item-meta { padding-top: 0.2rem; }

.course-item-code {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.course-item-semester {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.course-item-body { min-width: 0; }

.course-item-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.course-item-detail {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.course-item-desc {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.65;
  max-width: 620px;
}

.course-item-badge {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--text-light);
  background: var(--cream-dark);
  white-space: nowrap;
  align-self: start;
  margin-top: 0.3rem;
}

.thesis-table { width: 100%; border-collapse: collapse; font-family: var(--body); font-size: 1rem; }
.thesis-table th { text-align: left; font-family: var(--serif); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); padding: 0.6rem 1rem; border-bottom: 2px solid var(--border); font-weight: 400; }
.thesis-table td { padding: 1rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.thesis-table tr:hover td { background: rgba(26,39,68,0.03); }
.thesis-title { font-family: var(--display); font-size: 1.1rem; color: var(--navy); }
.thesis-author { color: var(--text); }
.thesis-year { color: var(--text-light); white-space: nowrap; }
.thesis-level { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.15rem 0.6rem; border: 1px solid var(--border); color: var(--text-light); background: var(--cream-dark); white-space: nowrap; }

/* ══════════════════════════════════════════
   SEMINARS
══════════════════════════════════════════ */
.seminar-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 3rem;
  overflow-x: auto;
}

.seminar-tab {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
  white-space: nowrap;
}

.seminar-tab:hover { color: var(--navy); }
.seminar-tab.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 500; }

.seminar-panel { display: none; }
.seminar-panel.active { display: block; }

.seminar-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  margin-bottom: 3rem;
}

.seminar-title {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.seminar-subtitle {
  font-family: var(--body);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.seminar-description {
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
}

.seminar-info-box {
  background: var(--navy);
  padding: 2rem;
  color: var(--cream);
  align-self: start;
}

.info-row {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.info-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.info-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.info-value {
  font-family: var(--body);
  font-size: 1rem;
  color: rgba(250,248,243,0.9);
}

.register-btn {
  display: block;
  margin-top: 1.5rem;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  text-decoration: none;
  padding: 0.7rem 1rem;
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s;
}

.register-btn:hover { background: var(--gold-light); }

.schedule-title {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.session-list { list-style: none; margin-bottom: 3rem; }

.session-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.session-num {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--navy);
  opacity: 0.25;
  font-weight: 300;
  line-height: 1;
  padding-top: 0.2rem;
}

.session-date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.session-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.session-desc {
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--text-light);
}

.session-speaker {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.3rem;
}

.session-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-light);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.session-link:hover { color: var(--navy); border-color: var(--navy); }

.reading-section { margin-top: 2.5rem; }

.reading-section h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.reading-list { list-style: none; }

.reading-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--body);
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.reading-item em { color: var(--text-light); }

.reading-type {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  border: 1px solid var(--border);
  padding: 0.1rem 0.5rem;
  background: var(--cream-dark);
}

/* ══════════════════════════════════════════
   SHARED CONTENT WRAPPER
══════════════════════════════════════════ */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 2.5rem 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

/* Social icon row */
.footer-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(250,248,243,0.55);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
}

.footer-social a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(255,255,255,0.05);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Tooltip */
.footer-social a::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(15,22,44,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.footer-social a:hover::after { opacity: 1; }

/* Thin divider between icons and copyright */
.footer-divider {
  width: 40px;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Copyright line */
.footer-copy {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(250,248,243,0.35);
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 860px) {
  footer { padding: 2rem 1.5rem; }
}

/* Two-column layout: sticky TOC sidebar + main body */
.seminar-page-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Sidebar TOC ── */
.toc {
  position: sticky;
  top: 80px;
}

.toc-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.toc-list {
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.toc-list li { margin-bottom: 0.1rem; }

.toc-list a {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.2s;
  line-height: 1.3;
}

.toc-list a:hover { color: var(--navy); }
.toc-list a.toc-active { color: var(--navy); font-weight: 500; }

/* ── Main content body ── */
.seminar-body { min-width: 0; }

.seminar-body h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--navy);
  margin: 3rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}

.seminar-body h2:first-child { margin-top: 0; }

.seminar-body h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  margin: 1.8rem 0 0.5rem;
  scroll-margin-top: 90px;
}

.seminar-body p {
  font-family: var(--body);
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.seminar-body a {
  color: var(--navy-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.seminar-body a:hover { color: var(--navy); }

/* Bullet list */
.seminar-body ul {
  list-style: none;
  margin: 0.8rem 0 1.2rem 0;
  padding: 0;
}

.seminar-body ul li {
  font-family: var(--body);
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.7;
  padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative;
}

.seminar-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 400;
}

/* Nested bullet list */
.seminar-body ul ul { margin: 0.3rem 0 0.3rem 1.5rem; }

.seminar-body ul ul li::before {
  content: '○';
  font-size: 0.75rem;
  top: 0.35rem;
  color: var(--text-light);
}

/* Numbered topic list */
.seminar-body ol {
  list-style: none;
  counter-reset: topic-counter;
  margin: 0.8rem 0 1.2rem 0;
  padding: 0;
}

.seminar-body ol li {
  counter-increment: topic-counter;
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  padding: 0.8rem 0 0.8rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.seminar-body ol li:first-child { border-top: 1px solid var(--border); }

.seminar-body ol li::before {
  content: counter(topic-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.9rem;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--navy);
  opacity: 0.25;
  font-weight: 300;
  line-height: 1;
}

/* Topic entry elements */
.topic-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  display: block;
  margin-bottom: 0.15rem;
}

.topic-assignee {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  display: block;
  margin-bottom: 0.4rem;
}

.topic-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.topic-link {
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-light);
  text-decoration: none;
  border: 1px solid var(--navy-light);
  padding: 0.2rem 0.6rem;
  transition: all 0.2s;
}

.topic-link:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  text-decoration: none;
}

/* Callout boxes */
.info-callout {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}

.info-callout p { margin-bottom: 0.4rem; font-size: 1rem; }
.info-callout p:last-child { margin-bottom: 0; }

.warning-callout {
  background: rgba(184,151,42,0.07);
  border: 1px solid var(--gold);
  border-left: 3px solid var(--gold);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}

/* Important dates table */
.dates-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--body);
  font-size: 1rem;
  margin: 1rem 0 1.5rem;
}

.dates-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.dates-table tr:first-child td { border-top: 1px solid var(--border); }
.dates-table tr:hover td { background: rgba(26,39,68,0.03); }

.date-cell {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 500;
  width: 220px;
}

.date-desc { color: var(--text); }

/* Grading bar chart */
.grade-bars { margin: 1.2rem 0 1.8rem; display: flex; flex-direction: column; gap: 0.6rem; }

.grade-bar-row { display: grid; grid-template-columns: 120px 1fr 36px; gap: 1rem; align-items: center; }

.grade-bar-label {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  text-transform: uppercase;
}

.grade-bar-track {
  height: 6px;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.grade-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--navy);
  transition: width 0.6s ease;
}

.grade-bar-pct {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 500;
  text-align: right;
}

/* Decorative section ornament */
.section-ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.4em;
  margin: 2.5rem 0;
  opacity: 0.4;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text    { animation: fadeUp 0.8s ease both; }
.hero-portrait { animation: fadeUp 0.8s 0.2s ease both; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 860px) {
  nav { padding: 0 1.5rem; }
  .nav-brand { font-size: 0.95rem; }
  .nav-links a { padding: 1.2rem 0.7rem; font-size: 0.75rem; }

  .hero-banner-inner { grid-template-columns: 1fr; padding: 3.5rem 1.5rem; }
  .hero-portrait { display: none; }
  .hero-text h1 { font-size: 2.8rem; }

  .page-header { padding: 3rem 1.5rem 2rem; }
  .page-header h1 { font-size: 2.2rem; }

  .content { padding: 3rem 1.5rem; }
  .highlights { padding: 3rem 1.5rem; }
  .updates { padding: 3rem 1.5rem; }

  .cards { grid-template-columns: 1fr; }

  .course-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .course-item-badge { align-self: auto; display: inline-block; margin-top: 0.5rem; }

  .contact-strip { padding: 3rem 1.5rem; flex-direction: column; align-items: flex-start; }

  .pub-item { grid-template-columns: 1fr; }
  .pub-actions { flex-direction: row; align-items: flex-start; }

  .talk-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .talk-year-col { font-size: 1rem; opacity: 0.6; }
  .talk-links { flex-direction: row; }

  .seminar-hero { grid-template-columns: 1fr; }
  .seminar-info-box { order: -1; }

  .thesis-table { font-size: 0.9rem; }

}