/* --- Body and General Styles --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  margin: 0;
  background-color: #ffffff;
  color: #2d3748;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px;
}

/* --- Links --- */
a {
  color: #2563a8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4f86;
}

/* --- Simplified Header and Navigation (UPDATED) --- */
header {
  /* text-align: center; (REMOVED) */
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
  background: #fff;
}

/* We'll wrap the nav inside the main content width for better alignment */
header nav {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

nav a {
  margin-right: 24px;
  /* Use margin-right instead of margin on both sides */
  margin-left: 0;
  color: #4a5568;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

nav a:hover {
  color: #2d3748;
}

nav a.active {
  color: #2563a8;
  border-bottom-color: #2563a8;
}

/* --- Single-Column Profile Layout --- */
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-sidebar {
  max-width: 100%;
  text-align: left;
}

.profile-sidebar-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-info {
  flex: 1;
  min-width: 0;
  padding-left: 8px;
}

.profile-main {
  width: 100%;
}

/* --- Sidebar-specific styles (UPDATED) --- */
.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 3px solid #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.profile-info h2 {
  margin: 0 0 6px;
  font-size: 1.5em;
}

.profile-info p {
  margin: 0 0 6px;
  color: #555;
  font-size: 0.95em;
}

.profile-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.profile-links a,
.profile-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2d9e3;
  border-radius: 999px;
  background: #fff;
  color: #4a5568;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 5px 11px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.profile-links a:hover,
.profile-link-button:hover {
  border-color: #2563a8;
  color: #2563a8;
  background: #f8fafc;
}

/* ... other styles remain the same ... */

.content-block {
  padding: 0;
}

.content-block+.content-block {
  margin-top: 28px;
  padding-top: 28px;
}

.content-block h2 {
  font-size: 1.3em;
  font-weight: 600;
  color: #1a202c;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.content-block p,
.content-block li {
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-header h2 {
  margin-bottom: 0;
  flex: 1;
}

.section-actions {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px;
  border: 1px solid #d2d9e3;
  border-radius: 999px;
  background: #f8fafc;
}

.section-action {
  border: 0;
  background: transparent;
  color: #4a5568;
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
}

.section-action.is-active {
  background: #2563a8;
  color: #fff;
}

.content-block ul {
  padding-left: 0;
  list-style: none;
}

.content-block ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #2563a8;
  border-radius: 50%;
}

.timeline-list {
  margin: 0;
}

.timeline-list>li {
  margin-bottom: 12px;
}

.detail-list {
  margin-top: 8px;
  margin-bottom: 0;
}

.content-block .detail-list li {
  padding-left: 18px;
}

.content-block .detail-list li::before {
  top: 11px;
  width: 8px;
  height: 1px;
  background: #718096;
  border-radius: 0;
}

.publication-list {
  margin-top: 18px;
}

.publication-list li {
  padding-left: 0;
  margin-bottom: 18px;
}

.publication-list li::before {
  content: none;
}

.publication-list strong {
  color: #1a202c;
}

.publication-list em {
  color: #5b6472;
}

/* --- Top-tier Venue Highlight --- */
.venue-top-tier {
  font-weight: 700;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
  header nav {
    padding: 0 20px;
  }

  .profile-sidebar {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin-bottom: 0;
    text-align: left;
  }

  .profile-sidebar-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-pic {
    margin: 0 auto;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* --- NEW: Footer Styles --- */
footer {
  text-align: center;
  margin-top: 50px;
  padding: 24px;
  border-top: 1px solid #e2e8f0;
  color: #718096;
  font-size: 0.9em;
  background: #fff;
}

/* --- Blog List --- */
.blog-list {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 2.5em;
}

.blog-entry {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.5em 2em;
  transition: box-shadow 0.2s;
}

.blog-entry:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.blog-date {
  color: #888;
  font-size: 0.95em;
  margin-bottom: 0.2em;
}

.blog-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 0.3em;
}

.blog-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-title a:hover {
  color: #007bff;
}

.blog-summary {
  color: #444;
  font-size: 1.1em;
  margin-top: 0.2em;
}
