body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  background: #fff;
  color: #111;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
}

.nav a {
  margin-right: 12px;
  color: #1a5fb4;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

#themeToggle {
  padding: 4px 8px;
  cursor: pointer;
  border: none;
  color:inherit;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.hero {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.profile {
  width: 180px;
  max-width: 100%;
  border: 1px solid #ccc;
}

.news-box {
  height: 140px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 8px;
}

.news-table {
  width: 100%;
  border-collapse: collapse;
}

.news-table td {
  padding: 6px 4px;
  vertical-align: top;
}

.news-date {
  width: 90px;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
}

.dark .news-box {
  border: 1px solid #444;
}

.dark .news-date {
  color: #aaa;
}

.news-table tr:not(:last-child) td {
  border-bottom: 1px solid #ddd;
}

.dark .news-table tr:not(:last-child) td {
  border-bottom: 1px solid #222;
}

.pub-year {
  font-size: 1.5rem;
  font-weight: 300;
  color: #666;
  margin: 28px 0 20px;
  text-align: left;
  border-top: 1px solid #ddd;
  padding-top: 16px;
}

.pub-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}

.pub-tag {
  display: inline-block;
  background: #1a5fb4;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-align: center;
  width: fit-content;
  min-width: 72px;
}

.pub-content {
  font-size: 1.05rem;
  line-height: 1.5;
}

.pub-content em {
  color: #555;
}

.pub-actions {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

/* remove borders completely */
.pub-actions button,
.pub-actions a {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  text-decoration: none;
  color: #1a5fb4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* icon size */
.pub-actions i {
  font-size: 18px;
  opacity: 0.9;
  transition: 0.2s;
}

.pub-detail {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f6f6f6;
  border-left: 3px solid #ccc;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.dark .pub-tag {
  background: #9ecbff;
  color: black;
}

.dark .pub-year {
  color: #888;
  border-top: 1px solid #333;
}

.dark .pub-content em {
  color: #bbb;
}

.dark .pub-actions i {
  opacity: 0.9;
}

.dark .pub-actions button 
{
  color: #9ecbff;
}

.dark .pub-actions button:hover i,
.dark .pub-actions a:hover i {
  opacity: 1;
}


.dark .pub-detail {
  background: #1a1a1a;
  border-left: 3px solid #555;
}

.hidden {
  display: none;
}

.hidden {
  display: none;
}

.dark .pub-entry {
  border-bottom: 1px solid #333;
}

.dark .pub-venue {
  color: #aaa;
}

.dark .pub-detail {
  background: #1b1b1b;
  border-left: 3px solid #555;
}

.buttons {
  margin-top: 10px;
}

.buttons button,
.buttons a {
  margin-right: 10px;
}

.panel {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  white-space: pre-wrap;
}

.hidden {
  display: none;
}

.dark {
  background: #111;
  color: #eee;
}

.dark .nav {
  border-bottom-color: #444;
}

.dark a {
  color: #9ecbff;
}

.dark .news-box,
.dark .profile,
.dark .panel {
  border-color: #444;
}

.dark .panel {
  background: #1b1b1b;
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
  }

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

i {
  margin-right: 6px;
}

.nav i {
  margin-right: 5px;
}

.buttons i {
  margin-right: 4px;
}

a i {
  opacity: 0.9;
}

a:hover i {
  opacity: 1;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.social-icons a {
  font-size: 20px;
  margin-right: 5px;
  color: #1a5fb4;
}

.dark .social-icons a {
  color: #9ecbff;
}

#themeToggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

#themeToggle i {
  transition: 0.2s;
}

#themeToggle:hover i {
  transform: rotate(20deg);
}

body {
  color: #222;
}

.dark {
  color: #eee;
}

.teaching-section {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid #ddd;
}

.teaching-section h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 12px;
  color: #666;
}

.dark .teaching-section {
  border-top: 1px solid #333;
}

.dark .teaching-section h3 {
  color: #aaa;
}

.funding-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin: 24px 0;
}

.funding-icons img {
  height: 80px;
  width: auto;
  object-fit: contain;
  opacity: 1.0;
  transition: 0.2s;
}

html {
  scroll-behavior: smooth;
}

h2 {
  scroll-margin-top: 80px;
}