
body, h1, h2, p, a {
    font-family: 'Open Sans', sans-serif;
  }
  h1, h2 {
    font-family: 'EB Garamond', serif;
  }

  
  /* Header styles */
  header {
    display: flex;
    align-items: center;
  }

  p {
    font-size: 14px;
    line-height: 1.8;
    font-weight: 300;
  }
 
  
.container {
    display: flex;
    max-width: 1200px;
    padding: 10px;
    gap: 20px;
  }

  /* Sidebar and layout */
  main {
    display: flex;
  }
  
  /* Publications section */
  .publication {
    display: flex;
  }
  
  /* Footer */
  footer {
    text-align: center;
  }

.section-title {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid #AB6B51;
  margin-bottom: 0px;
  font-size: 18px;
}

em.highlight {
    color: #39918C;
  }

h1 {
    margin-bottom: 0.5rem;
    color: #AB6B51;
    font-size: 1.8rem;
}

a {
    color: #914e36;  
    text-decoration: none;
}

a:hover {
    color: #D0B49F; 
    text-decoration: underline;
}
.profile-header {         
    gap: 2rem;
    text-align: left;
}

  
.profile-photo, .hover-img {
    border-radius: 10px !important;
    width: 200px;
    height: 260px;
    object-fit: cover;
    margin-right: 1.5rem;
    padding-top: 4rem;
  }

.short-label { display: none; }
@media (max-width: 768px) {
    .profile-photo {
      width: clamp(80px, 20vw, 150px);
      height: auto;
    }

    .full-label { display: none; }
    .short-label { display: inline; }
    

    .container {
      flex-direction: column;
      padding: 1rem;
    }
  }
  

html {
scroll-behavior: smooth;
}

nav.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* 🔧 prevent wrapping to new line */
  padding: 0.75rem 2rem;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
  max-width: 100%;
  box-sizing: border-box;
  min-height: clamp(28px, 4vw, 64px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #a65b3c;
}

.news-item {
    font-weight: 300;
    font-size: 12px;
    line-height: 1.6;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end; /* 👈 aligns right */
    gap: 2rem;
}

.navbar li a {
    text-decoration: none;
    font-size: small;
    color: #AB6B51;
    font-weight: 400;
}

.navbar li a:hover {
color: #D0B49F;
}

.nav-logo {
  height: clamp(32px, 5vw, 42px);
  width: auto;
  display: block;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
}

.left {
    flex: 0 0 20%;
  }
  
.right {
    flex: 1;
  }
/* Additional styling */
.top-about,
.bottom-pubs {
  padding: 20px;
  border-radius: 10px;
}

.bottom-news ul,
.bottom-pubs ul {
  padding-left: 20px;
}

.content-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 2rem;
  }

.paper-item.container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
    margin-top: 0;
  }

.paper-thumbnail {
    width: 200px;
    height: 110px;
    display: block;
    box-shadow: 0 4px 10px #AB6B51;
    border-radius: 4px;
    justify-content: center;  /* center horizontally */
    align-items: center;      /* center vertically if needed */
    flex-shrink: 0;          /* prevent shrinking */
    margin-bottom: 0.5rem;
}

.paper-authors, .paper-link {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.italic {
    font-style: italic;
}

strong {
    font-weight: 600;

    margin-right: 0.1rem;
}
.paper-highlight  {
    font-size: 12px;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 1rem;
}

.paper-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.paper-venue {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.paper-left {
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

.paper-right {
    flex: 1; 
  }

  @media (max-width: 768px) {
    .paper-thumbnail {
      margin-bottom: 0.5rem; /* adjust as needed */
    }
  
    .paper-item.container {
      flex-direction: column;
    }

    .header {
      align-items: flex-start; /* if you want logo and nav stacked more naturally */
    }
  
    .nav-logo {
      align-self: center;
      display: block;
      margin: 0 auto;
    }

    .navbar {
      flex-direction: column;
      align-items: center;
      width: 100%;
    }

    nav ul {
      justify-content: center;
      flex-wrap: wrap;
      text-align: center;
    }

    .page-container {
      flex-direction: column;
    }

    .grid-container {
      width: 100%;
      justify-items: center; 
      padding-left: 0;
      padding-right: 0;
    }

    .grid-container > div {
      width: 90%;                     /* optional: limit width for aesthetics */
    }
}

.label {
  display: inline-block;
  background-color: #AB6B51;     /* soft neutral background */
  color: #FFFFFF;                /* warm brown text */
  font-size: 14px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  margin-right: 0.5rem;
  vertical-align: middle;
  letter-spacing: 0.2px;         /* optional */
}

.label-static {
  display: inline-block;
  background-color: #f2eee9;
  color: #6e625c;
  font-size: 14px;
  font-weight: 400;
  padding: 2px 8px;
  margin-right: 0rem;
  vertical-align: middle;
  cursor: default;
}

.label-honor {
  display: inline-block;
  background-color: #39918c;
  color: #ffffff; 
  font-size: 14px;
  font-weight: 400;
  padding: 2px 8px;
  margin-right: 0rem;
  vertical-align: middle;
  cursor: default;
  border-radius: 5px;
}

.meta-separator {
  color: #5c504a;
  font-size: 18px;
  opacity: 1;
  vertical-align: center;
  margin: 0 0rem;
}

.extra-strong {
  font-weight: 800;        
  color: #000;             
  letter-spacing: 0.2px;  
}

.note {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #5c504a; /* soft brown color */
}

.broadcast {
  background-color: #fcefe9;
  color: #5a3e34;
  padding: 0.8rem 0.8rem;
  border-left: 4px solid #a05a3c;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 0.05rem;
  margin-top: 1rem;
  border-radius: 4px;
}

.broadcast-email {
  font-weight: 800;
  color: #39918C; /* warm brown color */
}

.broadcast-email:hover {
  color: #4cc0ba; /* lighter brown on hover */
}

.image-hover {
  position: relative;
  display: inline-block;
}

.image-hover img {
  width: 200px;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.image-hover:hover .hover-img {
  opacity: 1;
}

.image-hover:hover .default-img {
  opacity: 0;
}

.grid-container {
  display: grid;
  grid-template-columns: clamp(200px, 20%, 300px) 1fr;
  /* grid-template-columns: 1fr 1fr;  */
  grid-template-rows: auto auto; /* Two rows */
  row-gap: 2rem;
  column-gap: 3.5rem;
  max-width: 1200px;
  margin-left: 15px;
  margin-right: 15px;
  padding: 20px;
  transition: all 0.2s ease;
  grid-template-areas:
  "profile about"
  "news publications";
}

body {
  background-color: #ffffff; /* or just white */
  padding-left: 40px;
  padding-right: 40px;
}


/* Grid placement */
.profile-grid,
.news-grid,
.about-grid,
.publications-grid {
  border-radius: 8px;
  /* other shared styles */
}

.profile-grid {
  grid-area: profile;
}
.about-grid {
  grid-area: about;
}
.news-grid {
  grid-area: news;
}
.publications-grid {
  grid-area: publications;
}
  
  
  
/* Responsive fallback: stack everything */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "about"
      "publications"
      "news";
    /* center the grid */
    justify-items: center;
    padding-left: 0;
    padding-right: 0;
  }

  nav {
    flex-direction: column;
    align-items: stretch;
  }

  nav a {
    width: 100%;
  }

  .nav-logo {
      width: 40px;
  }

  .nav-links {
    flex-direction: row;  /* or row if you want it inline */
    align-items: flex-start;
    gap: 0.5rem;
    width: fit-content;
  }

  .nav-links li a {
    font-size: clamp(0.4rem, 2.5vw, 0.9rem);
    padding: 0.1rem 0.1rem;
    white-space: nowrap;
  }
}

.profile-info {
  font-size: 14px !important;
  line-height: 1.5;
  font-weight: 400 !important;
  margin-bottom: 0.3rem;
  color: #000000; 
}

.inline-space {
  padding-left: 10px;
}