/* ================================
   RESET
================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* ================================
   BASE
================================== */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f7f9fc, #e9eef5);
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
}

/* Limit width -- EXCLUDING the profile card */
header,
section:not(.profile-card) {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ================================
   HEADER / HERO
================================== */
header {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  text-align: center;
  /* removed light text color so it doesn't fade */
  /* color: #e5e7eb; */
}

header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.3rem;
  color: #111827; /* dark navy/black */
}

header p {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
  opacity: 1;              /* fully opaque */
  color: #4b5563;          /* dark grey */
}

/* ================================
   NAVIGATION
================================== */
nav {
  margin-top: 1.8rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  background: rgba(15, 23, 42, 0.7);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
}

nav a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.9rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

nav a:hover,
nav a:focus {
  background: #facc15;
  color: #1f2937;
  transform: translateY(-1px);
}

/* ================================
   DEFAULT SECTION CARD
   (EXCLUDES profile-card)
================================== */
section:not(.profile-card) {
  background: rgba(248, 250, 252, 0.96);
  border-radius: 18px;
  padding: 2.2rem 2.4rem;
  margin-top: -1.2rem;
  margin-bottom: 3rem;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(148, 163, 184, 0.25);
}

section h2 {
  margin-top: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1rem;
}

/* Styled "Welcome!" heading */
section h2.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  padding-left: 0.8rem;
  border-left: 4px solid #2563eb; /* blue */
  margin-bottom: 1rem;
}

section p {
  margin: 0.4rem 0 0.9rem;
  color: #111827;
}

/* Lists */
section ul,
section ol {
  padding-left: 1.3rem;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

section li {
  margin-bottom: 0.35rem;
}

/* ================================
   LINKS
================================== */
a {
  color: #2563eb;
}

a:hover {
  text-decoration: underline;
}

/* ================================
   RESPONSIVE GLOBAL
================================== */
@media (max-width: 640px) {
  header,
  section:not(.profile-card) {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header h1 {
    font-size: 2.1rem;
  }

  section:not(.profile-card) {
    padding: 1.7rem 1.4rem;
    margin-top: -0.8rem;
  }
}

/* ============================================================
   PROFILE CARD LAYOUT — LEFT PHOTO, CENTER TEXT, RIGHT PHOTOS
=============================================================== */
section.profile-card {
  max-width: 1200px !important;
  margin: 0 auto !important;

  /* Remove default section styling */
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-top: 2rem !important;
  margin-bottom: 3rem !important;

  /* Three-column layout */
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;  /* push items to left, center, right */
  gap: 2rem;
  padding: 2.4rem !important;
  text-align: left !important;
}

/* Left image column */
section.profile-card .photo-container {
  flex: 0 0 260px; /* fixed-ish width */
}

section.profile-card .photo-container img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Text column (center) */
section.profile-card .bio-container {
  flex: 1;
  max-width: 600px;
  min-width: 0;
}

/* Right-side stacked photos */
.right-photo-column {
  flex: 0 0 280px;            /* fixed width on the far right */
  display: flex;
  flex-direction: column;     /* stack vertically */
  align-items: flex-end;      /* align to the right edge */
  gap: 1rem;
}

.right-photo-column img {
  width: 260px;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Mobile layout */
@media (max-width: 760px) {
  section.profile-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 2rem 1.2rem !important;
  }

  section.profile-card .photo-container {
    flex: 0 0 auto;
  }

  section.profile-card .photo-container img {
    width: 200px;
    height: 200px;
  }

  section.profile-card .bio-container {
    max-width: 100%;
  }

  /* On mobile, arrange right-side photos in rows */
  .right-photo-column {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .right-photo-column img {
    width: 200px;
    height: 200px;
  }
}

.photo-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* keep text aligned with the image */
}


.caption-text {
    font-size: 0.9rem;
    color: #374151; /* dark gray */
    margin-top: 0.6rem;
    line-height: 1.4;
    text-align: left;   /* FIXED */
    max-width: 260px;     /* keeps text tidy under image */
}

.caption-text .credit-text {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.2rem;   /* ← VERY SMALL GAP */
}

/* ================================
   TALKS PAGE — Cards + layout
================================== */

.talks-intro {
  margin-bottom: 1.3rem;
  color: #374151;
}

.talks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.6rem;
}

.talks-section-title {
  margin-top: 1.7rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.talk-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.22);
}

.talk-top {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.talk-title {
  font-weight: 700;
  color: #4169E1; /* RoyalBlue */;
  margin: 0;
  line-height: 1.25;
  font-size: 1.02rem;
}

.talk-meta {
  margin-top: 0.35rem;
  color: #0f172a; 
  font-size: 0.95rem;
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.20);
  white-space: nowrap;
}

.badge.secondary {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.talk-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
  margin: 1.4rem 0 0.7rem;
}

@media (min-width: 880px) {
  .talks-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .talk-card {
    padding: 1rem 1rem;
  }
}

.year {
    margin-top: 2.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
}

.talk-list {
    list-style: none;
    padding-left: 0;
}

.talk-list li {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.talk-list .meta {
    color: #666;
    font-size: 0.9rem;
}

.inst{
  font-weight: 600;
}

.inst{
  font-weight: 600;
  color: #4169E1;              /* RoyalBlue */
  text-decoration: none;
  border-bottom: 1px solid rgba(65,105,225,.35);
}

.inst:hover{
  border-bottom-color: rgba(65,105,225,.9);
}

.highlight{
  font-weight: 600;
  color: #1f2937;   /* same text color, just stronger */
}

