/* 1) Import Jost instead of Lato */
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700&display=swap");

:root {
  --font-family-sans-serif:
    'Source Sans Pro',
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  --font-family-monospace:
    SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* 2) Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-family: var(--font-family-sans-serif);
  font-size: 15px;      /* slightly smaller base size */
  line-height: 1.6;     /* a bit more breathing room */
}
body {
  font-family: var(--font-family-sans-serif);
  line-height: 1.6;
  color: #333;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* Layout */
header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #f8f9fa;
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
} 
header .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-height: 80px;
  max-width: 340px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 5rem;
  width: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 150px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  white-space: nowrap;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  padding: 0.3rem 1rem;
}
.dropdown-menu li:hover {
  background: #f0f0f0;
}

/* Hero */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: #e9ecef;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.1rem;
}

/* Sections */

h2 {
  margin-bottom: 1rem;
  font-weight: normal;
}

/* Two-column layout below About */
.split-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

/* News styling */
.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.news-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  font-weight: normal;
}
.news-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.news-item p {
  margin-bottom: 0.3rem;
}
.news-item a {
  color: #8C1515;
  text-decoration: none;
}

/* Research list styling */
.research-list li {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Person list styling */
#current-members h2 {
  font-size: 2rem;
 /*  margin: 2rem 0 1rem;*/
  text-align: center;
  color: #333; 
  font-weight: normal;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.25rem;
  text-align: center;
}
.person-list {
  list-style: none;
  padding-left: 0;
}
.person-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.person-list img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}
.person-list .info h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  color: #333;
  font-weight: normal;
/*   color: #1167b1; */
}
.person-list .info p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: #f8f9fa;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Non-conflicting additions */
main {
  padding: 2rem 0;
}

#contact {
  padding: 2rem 1rem;
}
#contact h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}
#contact p {
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}
#contact h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-align: center;
    font-weight: normal;

}
#contact a {
  color: var(--primary, #007bff);
  text-decoration: none;
}
#contact a:hover,
#contact a:focus {
  text-decoration: underline;
}

.map-container {
  position: relative;
  width: 100vw;
  max-width: 600px;
  height: 500px;
  margin: 1rem auto;
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Teaching section styling */
.teaching-list {
  list-style: none;
}
.teaching-item {
  margin-bottom: 2rem;
}
.teaching-item .session {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.25rem;
}
.teaching-item .course-title {
  font-size: 1.25rem;
  font-weight: normal;
/*   font-weight: 600; */
}

/* Software grid layout */
.software-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 600px) {
  .software-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { flex-direction: column; gap: 0.5rem; }
}

.software-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.software-title h2 {
  font-size: 2rem;
  text-align: center;
  color: #333; 
  font-weight: normal;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.25rem;
  text-align: center;
}




.software-item h3 {
  font-size: 1.25rem;
  color: #8C1515;
  font-weight: normal;
  margin-bottom: 0.75rem;
}
.software-item h3 a {
  color: #8C1515;
  text-decoration: none;
}
.software-item h3 a:hover {
  text-decoration: underline;
}
.software-item img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}
.software-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}
.software-list {
  list-style: none;
  padding-left: 0;
}

/* Publication listings */
.publication-year {
  margin-bottom: 2rem;
}
.publication-year h3 {
  font-weight: normal;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.25rem;
  text-align: center;
}
.publication-list {
  list-style: none;
  padding-left: 0;
}
.publication-list li {
  margin-bottom: 1.5rem;
}
.publication-list li h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.publication-list li h4 a {
  color: #8C1515;
  text-decoration: none;
  font-weight: normal;
}
.publication-list li h4 a:hover {
  text-decoration: underline;
}
.publication-list li p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.25rem;
}
.publication-list li p em {
  font-style: italic;
}
