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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #7A7D81;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #2a6496;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Top Navigation ===== */
.top-nav {
  background-color: #505458;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav ul {
  list-style: none;
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.top-nav li {
  margin: 0;
}

.top-nav a {
  display: block;
  color: #ccc;
  padding: 12px 20px;
  font-size: 0.95rem;
  transition: color 0.2s, background-color 0.2s;
}

.top-nav a:hover,
.top-nav a.active {
  color: #fff;
  background-color: #3a3d40;
  text-decoration: none;
}

/* ===== Site Wrapper (Two-Column Layout) ===== */
.site-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 46px);
}

/* ===== Sidebar ===== */
.sidebar {
  background-color: #f5f5f5;
  padding: 30px 25px;
  border-right: 1px solid #ddd;
}

.sidebar-inner {
  position: sticky;
  top: 76px;
}

.profile-photo {
  width: 100%;
  max-width: 220px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.sidebar-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.3;
}

.sidebar-info {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 18px;
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  margin-bottom: 6px;
}

.sidebar-links a {
  font-size: 0.88rem;
  color: #2a6496;
}

/* ===== Main Content ===== */
.content {
  background-color: #fff;
  padding: 30px 35px 50px;
}

.content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-top: 20px;
  margin-bottom: 8px;
}

.content p {
  margin-bottom: 12px;
}

.content ul,
.content ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 4px;
}

.content strong {
  font-weight: 600;
}

.content em {
  font-style: italic;
}

.content hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 28px 0;
}

/* ===== Paper Entries ===== */
.paper-entry {
  margin-bottom: 24px;
}

.paper-title {
  margin-bottom: 1px;
}

.paper-links {
  font-size: 0.9rem;
  margin-top: 3px;
}

.paper-links a {
  color: #2a6496;
  cursor: pointer;
}

.paper-venue {
  color: #555;
  font-size: 0.92rem;
}

.paper-authors {
  color: #555;
  font-size: 0.92rem;
}

.paper-media {
  font-size: 0.88rem;
  color: #666;
  margin-top: 4px;
}

.paper-award {
  font-size: 0.88rem;
  color: #8b6914;
  font-style: italic;
  margin-top: 4px;
}

.book-info {
  font-size: 0.92rem;
  color: #555;
  font-style: italic;
}

/* ===== Abstract Accordion ===== */
.abstract-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background-color: #f9f9f9;
  border-left: 3px solid #2a6496;
  padding: 0 18px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #444;
  border-radius: 0 3px 3px 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.abstract-content.show {
  max-height: 2000px;
  opacity: 1;
  padding: 14px 18px;
  margin: 10px 0 6px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .site-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #ddd;
    text-align: center;
    padding: 25px 20px;
  }

  .sidebar-inner {
    position: static;
  }

  .profile-photo {
    max-width: 160px;
    margin: 0 auto 15px;
    display: block;
  }

  .content {
    padding: 25px 20px 40px;
  }

  .top-nav ul {
    justify-content: center;
  }

  .top-nav a {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .top-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .top-nav a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .content h1 {
    font-size: 1.3rem;
  }

  .content h2 {
    font-size: 1.1rem;
  }
}
