@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #333;
  background: #eef1f5;
}

#layout-content {
  max-width: 920px;
  margin: 36px auto;
  background: #fff;
  padding: 0 52px 56px;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
}

/* ── Navigation ───────────────────────────── */

#nav {
  padding-top: 28px;
  border-bottom: 2px solid #1d5882;
  margin-bottom: 40px;
}

#nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
}

#nav ul li a {
  display: inline-block;
  padding: 9px 26px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #666;
  text-decoration: none;
  border-radius: 4px 4px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -2px;
  transition: color 0.15s, background 0.15s;
}

#nav ul li a:hover {
  color: #1d5882;
  background: #edf3fb;
  border-color: #ccc;
}

#nav ul li a.active {
  color: #1d5882;
  background: #fff;
  border-color: #ccc;
  border-bottom: 2px solid #fff;
}

/* ── Profile ──────────────────────────────── */

table.imgtable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

table.imgtable td {
  vertical-align: top;
  border: none;
  padding: 0;
}

table.imgtable td:first-child {
  padding-right: 40px;
  width: 1%;
  white-space: nowrap;
}

table.imgtable img {
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.profile-info h1 {
  font-size: 2em;
  font-weight: 700;
  color: #1a2e42;
  margin-bottom: 12px;
  line-height: 1.2;
}

.profile-info p {
  color: #555;
  line-height: 1.9;
  font-size: 15.5px;
}

.profile-info a {
  color: #1d5882;
}

.cv-link {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 22px;
  background: #1d5882;
  color: #fff !important;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}

.cv-link:hover {
  background: #154468 !important;
  text-decoration: none !important;
}

/* ── Headings ─────────────────────────────── */

h2 {
  font-size: 1.25em;
  font-weight: 700;
  color: #1d5882;
  border-bottom: 1px solid #dce8f2;
  padding-bottom: 6px;
  margin: 36px 0 14px;
}

h3 {
  font-size: 1.05em;
  font-weight: 700;
  color: #2c4a62;
  margin: 24px 0 10px;
}

/* ── Text & Links ─────────────────────────── */

p {
  margin-bottom: 10px;
}

a {
  color: #1d5882;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #154468;
}

/* ── Lists ────────────────────────────────── */

ul {
  padding-left: 22px;
  margin-bottom: 6px;
}

li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* ── Publications ─────────────────────────── */

.pub-note {
  font-style: italic;
  color: #777;
  font-size: 0.93em;
  margin-bottom: 20px;
}

/* ── Teaching ─────────────────────────────── */

.course-list {
  list-style: none;
  padding: 0;
  margin-top: 6px;
}

.course-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 18px;
  border-left: 3px solid #1d5882;
  background: #f6f9fc;
  margin-bottom: 10px;
  border-radius: 0 4px 4px 0;
}

.course-number {
  font-weight: 700;
  color: #1d5882;
  white-space: nowrap;
  min-width: 130px;
  font-size: 0.95em;
}

.course-title {
  flex: 1;
  color: #333;
}

.course-semester {
  color: #888;
  font-size: 0.88em;
  white-space: nowrap;
}

/* ── People cards ────────────────────────── */

.person {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eef1f5;
}

.person:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.person img {
  width: 145px;
  height: 160px;
  object-fit: cover;
  object-position: top;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.13);
  flex-shrink: 0;
}

.person-info h3 {
  margin-top: 0;
  margin-bottom: 3px;
  font-size: 1.08em;
  color: #1a2e42;
}

.person-role {
  color: #888;
  font-size: 0.9em;
  font-style: italic;
  margin-bottom: 9px;
}

.person-info p {
  font-size: 0.96em;
  line-height: 1.68;
  color: #444;
  margin: 0;
}

/* ── Honors list ──────────────────────────── */

.honors-list {
  list-style: none;
  padding: 0;
}

.honors-list li {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.honors-year {
  font-weight: 700;
  color: #1d5882;
  min-width: 64px;
  padding-top: 1px;
}
