.listing-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .listing-item {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eee;
  }
  
  .listing-grid {
    display: flex;
    align-items: flex-start;
    /* align-items: center; */
    gap: 1rem;
  }
  
.listing-teaser {
    flex-shrink: 0;
    width: 20%;
    /* height: 100%; */
    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    /* vertical-align: middle; */
    /* align-items: stretch; */
    padding-bottom: 1em;
  }

  .listing-year {
    text-align: center;
    width: 50%;
    margin: auto;
    margin-bottom: 0.5em;
  }

  .listing-type {
    text-align: center;
    width: 90%;
    margin: auto;
    margin-bottom: 0.5em;
  }


  .listing-teaser img {
    /* height: 90%; */
    overflow: hidden;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0px 0px 3px silver;
  }

  .listing-teaser .figg {
    /* height: 70%; */
    /* overflow: hidden; */
    border-radius: 6px;
    /* object-fit: cover; */
    box-shadow: 0px 0px 3px silver;
    /* flex-basis: 100%; */
    aspect-ratio: 1 / 1;
  }
  
  #profile_pic {
    border-radius: 6px;
    box-shadow: 0px 0px 3px silver;
  }
  
  .listing-info {
    flex: 1;
    text-align: justify;
  }
  
  .listing-authors {
    margin: 0;
  }
  
  .listing-title {
    margin: 0.2em 0;
    font-weight: 600;
  }
  
  .listing-proc {
    margin: 0.2em 0;
    font-style: italic;
  }
  
  .listing-extra {
    color: yellowgreen;
    font-size: 0.85em;
    margin: 0;
  }
  
  .listing-links a {
    margin-right: 0.6em;
    font-size: 0.85em;
    color: #44f;
    text-decoration: none;
    /* font-size: 1.1em; */
  }
  
  .listing-links a:hover {
    color: #007bff;
    text-decoration: underline;
  }
  
  .listing-meta {
    font-size: 0.85em;
    color: #777;
    margin: 0;
  }
  
  .listing-meta span {
    margin-right: 1em;
    font-size: 0.85em;
  }
  


  a img {
    height: 0.85em;
  }

  .listing-abstract {
    margin-top: 0.8em;
    padding: 0.8em;
    background-color: #f9f9f9;
    border-left: 4px solid #ddd;
    font-size: 0.85em;
    color: #333;
    text-align: justify;
  }


  h4 {
    background-color: lightgoldenrodyellow;
  }


  .nav-item .img-fluid {
    height: 1.5em;
  }






  h4 {
    /* font-size: 1.25rem; */
    font-weight: 600;
    color: #002b5c;
    /* margin-top: 2rem;
    margin-bottom: 0.5rem; */
    border-bottom: 1px solid #e0e0e0;
    /* padding-bottom: 0.25rem; */
  }
  
  /* === SECTION TITLES === */
h4 {
  font-size: 1.3rem;
  /* font-weight: 600; */
  color: #333399;
  border-left: 4px solid #333399;
  padding-left: 1em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* === STUDENT LIST === */
.student-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.student-entry {
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid #e5e7eb;
  background: #fafafa;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.student-entry:hover {
  background: #f3f6fa;
}

.student-name {
  font-weight: 600;
  color: #111;
  margin: 0 0 0.4rem 0;
}

.student-university {
  font-style: italic;
  font-weight: 400;
  color: #555;
}

/* === DEFINITION LIST === */
.student-entry dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 0.5rem;
  /* row-gap: 0.3rem; */
  margin: 0.2rem 0 0;
}

.student-entry dt {
  font-weight: 500;
  color: #555;
  text-align: right;
}

.student-entry dd {
  margin: 0;
  color: #333;
}

.student-duration-badge {
  float: right;
}








/* Container for horizontal scroll on narrow screens */
.teaching-table {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Table styling */
.teaching-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 600px;
}

/* Header */
.teaching-table thead {
  background: #f7f7f7;
  color: #333;
}

.teaching-table th {
  text-align: center;
  font-weight: 600;
  padding: 0.75em 1em;
  border-bottom: 2px solid #ddd;
}

/* Cells */
.teaching-table td {
  padding: 0.6em 1em;
  border-bottom: 1px solid #eee;
  text-align: center;
  vertical-align: middle;
}

.teaching-table tr:hover {
  background: #f3f6fa;
}

/* Right-align the first column and bold important cells */
.teaching-table td:first-child {
  text-align: right;
  font-weight: 500;
}

/* Highlight total row */
.teaching-table tr:last-child td {
  font-weight: 700;
  background: #fafafa;
  border-top: 2px solid #ddd;
}

/* Small screen adaptation */
@media (max-width: 700px) {
  .teaching-table table {
    font-size: 0.85rem;
  }
  .teaching-table th,
  .teaching-table td {
    padding: 0.5em;
  }
}



details {
  margin: 1em 0;
  padding: 0.6em 0.8em;
  border: 1px solid #ddd;
  border-radius: 0.5em;
  background-color: #fafafa;
  transition: background 0.3s ease;
}

details[open] {
  background-color: #fefefe;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}








.teaching-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.teaching-header .column {
  flex: 1 1 300px;
  min-width: 250px;
}

/* #profile_pic {
  width: 100%;
  height: auto;
  max-width: 200px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
} */

@media (min-width: 900px) {
  .teaching-header .column:nth-child(1) { flex: 0 0 30%; }
  .teaching-header .column:nth-child(2) { flex: 0 0 30%; }
  .teaching-header .column:nth-child(3) { flex: 0 0 40%; }
}



.listing-job {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #222;
  line-height: 1.55;
}

.job-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 1.5rem;
}

.job-card.closed {
  opacity: 0.6;
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.04);
}


.job-card .job-title {
  font-size: 2rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.job-card.closed .job-title {
  text-decoration: line-through;
  color: #990000;
}

.job-image {
  /* make it a vignette */
  /* float: right; */
  /* display: none; */
  height: 10rem;
  width: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-right: 2em;
}

.job-type {
  float: right;
}

.job-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  color: #555;
  font-size: 0.95rem;
}

.job-meta li {
  margin-bottom: 0.2rem;
}

.job-keywords {
  margin: 0.5rem 0 1rem 0;
}

.job-keywords span {
  display: inline-block;
  background: #e6f0ff;
  color: #004d99;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  margin-right: 0.3rem;
}

.job-description {
  margin-bottom: 1rem;
  color: #333;
}

.job-objectives, .job-requirements {
  margin: 0.5rem 0 1.2rem 1.2rem;
  padding: 0;
}

.job-objectives li,
.job-requirements li {
  margin-bottom: 0.4rem;
}

.job-objectives li::marker {
  color: #004d99;
}

.job-requirements li::marker {
  color: #2f7d32;
}

.job-apply {
  background: #f6f8fa;
  border-left: 3px solid #003366;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: #333;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 700px) {
  .job-card {
    padding: 1rem;
  }
}



.navbar-logo {
  height: 1.5em;
}


.logos table {
 vertical-align: middle;
}