/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Navbar */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.navbar .logo {
  font-size: 1.1rem;
  color: rgb(75, 75, 75);
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}
.nav-links a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 60px 0;
  text-align: center;
  background: #f9f9f9;
}
.hero .subtitle {
  font-size: 1.2rem;
  color: #000;
  margin-top: 8px;
  margin-bottom: 15px;
  text-align: center;
}

/* Sections */
.section {
  padding: 40px 0;
  text-align: left;
  background: #f9f9f9;
}
.section h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  color: rgb(34, 110, 148);
  text-align: center;
}
.section h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: rgb(34, 110, 148);
  text-align: left;
}
.container {
  max-width: 1000px;     /* Controls how narrow the content is */
  margin: 0 auto;       /* Centers it horizontally */
  padding: 0 20px;      /* Adds spacing on small screens */
}

/* Footer */
.footer {
  padding: 20px 0;
  text-align: left;
  color: rgb(75, 75, 75);
  border-top: 1px solid #ddd;
  background: #fafafa;
  font-size: 0.85rem;
}

.hero p {
  text-align: left;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
}

a:link {
  color: rgb(15, 109, 135);
}

/* Visited link */
a:visited {
  color: rgb(15, 109, 135);
}

#publications ul {
  padding-left: 20px;
}

#publications ul li {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 0.97rem;
}

#talks ul {
  padding-left: 20px;
}

#talks ul li {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 0.97rem;
}

/* Center the title and subtitle above the flexbox */
.hero-header {
  text-align: center;
  margin-bottom: 40px;  /* spacing between title/subtitle and content */
}

/* Flex layout for image + text */
.home-layout {
  display: flex;
  align-items: center;   /* vertically center the image */
  gap: 40px;
}

/* Image styling */
.home-image img {
  width: 240px;
  border-radius: 8px;
}

/* Make text take the remaining space */
.home-text {
  flex: 1;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .home-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-image img {
    width: 180px;
  }
}

body {
  background: #f9f9f9; /* matches .section and .hero */
}
.footer {
  background: #fafafa; /* optional: keep footer a different shade */
}

.social-icons a {
  text-decoration: none;   /* removes underline */
  display: inline-block;   /* better control of spacing */
  vertical-align: middle;  /* aligns icons nicely */
}

.social-icons img {
  display: block;          /* removes small gaps under images */
  margin-right: 10px;      /* space between icons */
}