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

/* Base */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

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

a:hover {
  text-decoration: underline;
}

/* Navigation */
nav {
  background: #1E407C;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-name:hover {
  text-decoration: none;
  opacity: 0.85;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

nav ul li a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  display: block;
}

nav ul li a:hover,
nav ul li a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

/* Banner */
.banner {
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  background: #d8dde6;
  line-height: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
}

/* Main container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 4rem;
}

/* Profile (home page) */
.profile {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.profile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.profile-photo {
  width: 190px;
  height: 235px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  background: #e8e8e8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111;
  margin-bottom: 0.3rem;
}

.profile-info .title {
  font-size: 0.975rem;
  color: #555;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.profile-info .bio {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
}

/* Buttons */
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid #1E407C;
  color: #1E407C;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: #1E407C;
  color: #fff;
  text-decoration: none;
}

.btn.filled {
  background: #1E407C;
  color: #fff;
}

.btn.filled:hover {
  background: #163368;
}

/* Content sections */
section {
  margin-bottom: 2.75rem;
}

section h2 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E407C;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1E407C;
}

section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 0.75rem;
}

section p:last-child {
  margin-bottom: 0;
}

section ul {
  list-style: none;
  padding: 0;
}

section ul li {
  font-size: 0.95rem;
  color: #333;
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
  line-height: 1.6;
}

section ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #1E407C;
  font-weight: 700;
}

section ul li a {
  color: #1E407C;
}

section ul li a:hover {
  text-decoration: underline;
}

/* Research interests two-column grid */
.interests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.interests-col {
  /* no extra styling needed */
}

.interests-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

/* Affiliation logos — stacked under photo */
.affiliation-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.affiliation-logos a {
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.affiliation-logos a:hover {
  opacity: 1;
}

.affiliation-logos img {
  width: 140px;
  height: auto;
  display: block;
}


/* Paper summaries */
.paper-summary {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
  margin-top: 0.35rem;
  display: block;
}

/* Book page */
.book-layout {
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.book-cover {
  width: 190px;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}

.book-info {
  flex: 1;
}

.book-authors {
  font-weight: 600;
  color: #222;
  font-size: 0.95rem;
  margin-bottom: 0.2rem !important;
}

.book-publisher {
  color: #777;
  font-size: 0.875rem;
  margin-bottom: 1rem !important;
}

.book-info p {
  margin-bottom: 0.85rem !important;
}

/* Coming-soon badge */
.badge {
  display: inline-block;
  background: #f0f4fa;
  color: #1E407C;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid #c5d3e8;
  margin-bottom: 0.75rem;
}

/* Publications page */
.scholar-stats {
  display: flex;
  gap: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #f7f8fb;
  border-radius: 6px;
  border: 1px solid #e5eaf2;
  margin: 1.25rem 0 1.75rem;
}

.scholar-stat {
  text-align: center;
}

.scholar-stat .number {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1E407C;
  display: block;
  letter-spacing: -0.02em;
}

.scholar-stat .label {
  font-size: 0.78rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.paper-list {
  list-style: none !important;
  padding: 0 !important;
}

.paper-list li {
  padding: 1rem 0 1rem 0 !important;
  border-bottom: 1px solid #f0f0f0;
  position: relative !important;
}

.paper-list li::before {
  display: none !important;
}

.paper-list li:last-child {
  border-bottom: none;
}

.paper-title {
  font-weight: 600;
  color: #111;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.2rem;
}

.paper-meta {
  font-size: 0.85rem;
  color: #666;
}

/* Footer */
footer {
  border-top: 1px solid #ebebeb;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 720px) {
  .interests-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .profile {
    flex-direction: column;
    align-items: center;
  }

  .profile-left {
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .profile-photo {
    width: 130px;
    height: 160px;
  }

  .affiliation-logos {
    align-items: flex-start;
  }

  .book-layout {
    flex-direction: column;
  }

  .book-cover {
    width: 160px;
  }

  .scholar-stats {
    gap: 1.5rem;
    padding: 1rem;
  }

  .nav-inner {
    height: auto;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0;
  }

  nav ul li a {
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
  }
}
