/* General page style */
body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #ffffff;
  color: #222222;
}

/* Main layout */
#container {
  display: flex;
  min-height: 100vh;
}

/* Left sidebar */
#left {
  width: 330px;
  min-height: 100vh;
  background-color: #f7f7f7;
  border-right: 1px solid #dddddd;
  text-align: center;
  padding: 28px 8px;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  top: 0;
}

/* Right content area */
#right {
  margin-left: 360px;
  max-width: 900px;
  padding: 30px 40px;
  box-sizing: border-box;
}

/* Top navigation bar */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  padding: 14px 0 14px 40px;
  margin: -30px -40px 35px -40px;
}

.top-nav a {
  color: #444444;
  font-size: 16px;
  margin-right: 24px;
  text-decoration: none;
  font-family: Lato, Arial, sans-serif;
}

.top-nav a:hover {
  color: #1f4aa8;
  text-decoration: none;
}

/* Avoid section titles being hidden behind sticky nav */
#home,
#publications,
#students {
  scroll-margin-top: 85px;
}

/* Profile photo */
#profile-pic {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  margin-bottom: 18px;
}

/* Name */
#left h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 5px 0 18px 0;
  font-weight: bold;
}

/* Left column text */
#left p {
  font-size: 20px;
  line-height: 1.35;
  margin: 16px 0;
}

/* Links */
a {
  color: #0055cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Social media icons */
.left-column-icons {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.icon-small {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Section titles */
h2 {
  font-size: 28px;
  margin-top: 28px;
  margin-bottom: 14px;
  font-weight: bold;
}

/* Paragraphs in right column */
#right p {
  font-size: 18px;
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 18px;
}

/* Lists */
#right li {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 12px;
}

/* Research interests section */
.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 30px;
}

.research-card {
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 16px 16px 14px 16px;
  box-sizing: border-box;
  min-height: 170px;
}

.research-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  color: #111111;
}

.research-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #777777;
}
/* Research interests section */
/* .research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 24px;
  align-items: start;
}

.research-card {
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 14px 16px;
  box-sizing: border-box;
}

.research-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #111111;
}

.research-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #777777;
} */

/* Recent news scroll box */
.news-container {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background-color: #fafafa;
  padding: 14px 18px;
  margin-top: 8px;
  margin-bottom: 28px;
  box-sizing: border-box;
}

.news-list {
  list-style-type: square;
  padding-left: 22px;
  margin-top: 0;
  margin-bottom: 0;
}

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

/* Publications list */
ol {
  margin-top: 8px;
}

ol li {
  margin-bottom: 12px;
}

/* General unordered lists */
ul {
  margin-top: 8px;
}

/* Blue section vertical bar */
.section-bar {
  font-weight: bold;
  font-size: 24px;
  color: #1f4aa8;
  margin-right: 4px;
}

/* Strong text */
strong {
  font-weight: bold;
}

/* Responsive layout for smaller screens */
@media screen and (max-width: 800px) {
  #container {
    display: block;
  }

  #left {
    position: relative;
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #dddddd;
  }

  #right {
    margin-left: 0;
    padding: 30px 20px;
    max-width: 100%;
  }

  .top-nav {
    margin: -30px -20px 30px -20px;
    padding-left: 20px;
  }

  .top-nav a {
    font-size: 15px;
    margin-right: 18px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  #left h1 {
    font-size: 30px;
  }

  #left p {
    font-size: 18px;
  }

  h2 {
    font-size: 26px;
  }

  #right p,
  #right li {
    font-size: 17px;
  }
}