/* --- Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Global Theme & Minimal Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #222222;
  background-color: #ffffff;
  padding-bottom: 60px;
}

a {
  color: #0044cc;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: #002288;
  text-decoration: underline;
}

/* --- Layout Container --- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 25px;
}

/* --- Redesigned Professor Brand Header --- */
.site-header {
  background-color: #16213E;
  padding: 60px 0 40px 0;
}

.profile-block {
  display: flex;
  align-items: center;
  gap: 40px;
}

.profile-pic {
  width: 120px;
  height: 155px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #AFC6E8;
}

.profile-info h1 {
  font-family: 'Inter', sans-serif;
  font-size: 34px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.profile-info p {
  font-size: 14.5px;
  color: #C6D0E8;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: left;
}

.profile-info p a {
  color: #9DC0F5;
}

.profile-info p a:hover {
  color: #ffffff;
}

/* --- Modernized Navbar --- */
.nav-wrapper {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.navbar {
  display: flex;
  gap: 24px;
}

.navbar a {
  display: inline-block;
  padding: 16px 0;
  color: #555555;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px; /* Slightly tracked out for a cleaner look */
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.navbar a:hover {
  color: #0044cc;
  text-decoration: none;
}

.navbar a.active {
  color: #111111;
  border-bottom: 2px solid #B08D2C;
  font-weight: 600;
  text-decoration: none;
}

/* --- Content Grid Layout --- */
.main-content {
  margin-top: 40px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 50px;
}

.layout-grid > main,
.layout-grid > aside {
  min-width: 0;
}

.pamphlet-thumb {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .profile-block {
    flex-direction: column;
    text-align: center;
  }
  .profile-info p {
    text-align: center;
  }
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .navbar {
    justify-content: center;
    gap: 16px;
  }
  .navbar a {
    font-size: 13px;
    padding: 12px 0;
  }
}

/* --- Clean Content Cards --- */
.paper-card, .research-card, .info-card {
  background: #ffffff;
  padding: 10px 0 24px 0;
  border-bottom: 1px solid #f1f3f5;
  margin-bottom: 20px;
}

.paper-card:last-child, .research-card:last-child, .info-card:last-child {
  border-bottom: none;
}

.paper-card h3, .research-card h3, .info-card h3 {
  font-family: 'Inter', sans-serif;
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 21px;
  color: #111111;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-left: 12px;
  border-left: 3px solid #B08D2C;
}

.news-date {
  display: inline-block;
  background-color: #FBF3E1;
  color: #8A6A1E;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 8px;
}

/* --- Core Typography --- */
p {
  font-size: 15px;
  color: #333333;
  margin-bottom: 16px;
  text-align: justify;
}

ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

li {
  font-size: 15px;
  margin-bottom: 10px;
}

/* --- Content headings inside plain content pages (not card-based) --- */
.main-content > h2,
.main-content > div > h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: #111111;
  margin: 40px 0 18px 0;
  padding-left: 14px;
  border-left: 4px solid #B08D2C;
}
.main-content > h2:first-child,
.main-content > div > h2:first-child {
  margin-top: 0;
}

.main-content h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #151515;
  margin: 30px 0 14px 0;
  padding-left: 12px;
  border-left: 3px solid #B08D2C;
}

.main-content h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16.5px;
  color: #1a1a1a;
  margin: 24px 0 10px 0;
}
.main-content h4 a { color: #0044cc; }

.main-content h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666666;
  margin: 20px 0 8px 0;
}

.main-content img {
  border-radius: 4px;
  border: 1px solid #e1e4e6;
}

.main-content a {
  color: #0044cc;
}

.main-content a:hover {
  color: #002288;
}

.pub-type-tag {
  font-size: 11px;
  text-transform: uppercase;
  color: #888888;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 28px 0 12px 0;
  display: block;
}

.venue-text {
  font-style: italic;
  color: #495057;
}

/* --- Clean Profile Links Table --- */
.directory-table {
  width: 100%;
  border-collapse: collapse;
}

.directory-table td {
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid #f1f3f5;
}

.directory-table tr:last-child td {
  border-bottom: none;
}

.directory-table a {
  font-size: 14.5px;
  color: #555555;
  display: block;
}

.directory-table a:hover {
  color: #0044cc;
  text-decoration: none;
}

/* --- Sidebar Pamphlet Card --- */
.pamphlet-thumb {
  display: block;
  width: 100%;
  border-radius: 4px;
  border: 1px solid #e1e4e6;
  transition: border-color 0.2s ease;
}

.pamphlet-thumb:hover {
  border-color: #B08D2C;
}

/* --- Research Field Cards with Thumbnails --- */
.research-card{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  align-items: start;
}

.research-thumb-wrap{
  display: block;
}

.research-thumb{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e1e4e6;
  background: #f4f5f6;
  display: block;
}

.research-thumb-wrap:hover .research-thumb{
  border-color: #0044cc;
}

.view-pubs-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0044cc;
}

.view-pubs-link:hover{
  color: #002288;
  text-decoration: underline;
}

@media (max-width: 768px){
  .research-card{
    grid-template-columns: 1fr;
  }
  .research-thumb{
    height: 180px;
  }
}

/* --- Publication section jump-target highlight --- */
.paper-card{
  scroll-margin-top: 90px;
  transition: background-color 1.8s ease;
}

.paper-card:target{
  background-color: #eef4ff;
  animation: fadeHighlight 2.4s ease forwards;
}

@keyframes fadeHighlight{
  from{ background-color: #dfeaff; }
  to{ background-color: transparent; }
}

/* --- Minimal Footer --- */
.footer {
  text-align: center;
  padding: 40px 0;
  font-size: 13px;
  color: #888888;
  margin-top: 60px;
  border-top: 1px solid #eaeaea;
}

/* --- People Page: Student Tiles --- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin: 24px 0 8px 0;
}

.student-tile {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  border-color: #e1d2a8;
}

.student-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f4f5f6;
}

.student-avatar-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #1a2a4a, #3B5BA5);
  letter-spacing: 0.02em;
}

.student-tile-body {
  padding: 14px 16px 18px 16px;
}

.student-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: #111111;
  margin-bottom: 4px;
}

.student-role {
  display: inline-block;
  font-family: 'IBM Plex Mono', 'Inter', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8A6A1E;
  background-color: #FBF3E1;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.student-spec {
  font-size: 12.5px;
  color: #555555;
  line-height: 1.5;
  text-align: left;
}

.student-spec.pending {
  color: #999999;
  font-style: italic;
}

/* --- People Page: Alumni Lists --- */
.alumni-section {
  margin-top: 8px;
}

.alumni-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 8px;
}

.alumni-columns h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #333333;
  margin-bottom: 10px;
}

.alumni-list {
  list-style: none;
  padding-left: 0;
}

.alumni-list li {
  font-size: 13.5px;
  color: #444444;
  padding: 7px 0;
  border-bottom: 1px solid #f1f3f5;
  margin-bottom: 0;
}

.alumni-list li:last-child {
  border-bottom: none;
}

.alumni-list .alum-note {
  display: block;
  font-size: 12px;
  color: #888888;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .people-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
