/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
}

/* Container for sidebar + content */
.container {
  display: flex;
  min-height: 100vh;
}
.award-text {
  color: red;
  font-weight: bold;
}

#pub-list li.award {
  color: red !important;   /* force red text */
  font-weight: bold !important; /* force bold */
}
/* Sidebar */
.sidebar {
  width: 300px; /* increased width */
  background: #2c3e50;
  color: #fff;
  padding: 2rem 1rem;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  text-align: center;
}

.sidebar img.profile {
  width: 150px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem auto;
}

.sidebar h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar nav a {
  display: block;
  color: #ecf0f1;
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: bold;
}

.sidebar nav a:hover {
  color: #1abc9c;
}

/* Main content */
.content {
  margin-left: 300px; /* match sidebar width */
  padding: 3rem 2rem;
  flex: 1;
}

section {
  margin-bottom: 1rem;
  position: relative;
  padding: 1rem 2rem 1rem 2rem; /* shift text slightly left */
}

/* horizontal line connecting to sidebar */
section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0; /* start from left edge */
  width: 100%; /* full width */
  border-top: 2px solid #2c3e50; /* match sidebar color */
}

section:first-of-type::before {
  display: none; /* no line before first section */
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0;
  border-bottom: none; /* remove line after title */
}

ul { margin-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }

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

footer {
  text-align: center;
  color: #777;
  padding: 2rem 0;
  font-size: 0.9rem;
}
#pub-list li {
  display: none; /* hide all by default */
}
#pub-list li.visible {
  display: list-item; /* show items with 'visible' class */
}
#news-list li {
  display: none;
}
#news-list li.visible {
  display: list-item;
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
  .content {
    margin-left: 0;
    padding: 2rem 1rem;
  }
  section::before {
    left: 0;
    width: 100%;
  }
}