/* style.css */
body {
  font-family: 'Roboto', sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
  background: #fefefe;
  color: #222;
}

h1, h2 {
  color: #2a3f5f;
}

h1 {
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3em;
}

a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.section {
  margin-bottom: 2rem;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f4f4f4;
  color: #666;
  font-size: 0.9em;
  border-top: 1px solid #ccc;
  padding: 0.5rem 1rem;
  text-align: center;
  z-index: 1000;
}

.contact-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links a {
  background-color: #2a3f5f;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.contact-links a:hover {
  background-color: #3f5f7a;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background-color: #f4f4f4;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

nav h2 {
  margin-top: 0;
}

nav a {
  display: block;
  margin: 10px 0;
  color: #333;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

main {
  margin-left: 220px; /* Leaves space for nav */
  padding: 20px;
  flex-grow: 1;
}

/* Container for each publication card */
.publication-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Remove default list style for cards wrapped in <li> */
.publication-card li {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

/* Link style for titles */
.publication-card a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
}

.publication-card a:hover {
  text-decoration: underline;
}

/* Title and subtitle */
.publication-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #222;
}

/* Bold text block in title */
.publication-card b {
  font-weight: 600;
  color: #333;
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
}

/* Paragraph styling */
.publication-card p {
  margin: 0.75rem 0;
  color: #444;
}

/* Responsive video embed container */
.publication-video {
  margin: 1.5rem 0;
}

.publication-video iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* Make the iframe responsive */
.publication-video > div {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Optional styling for publication images if needed */
.publication-image {
  margin: 1.25rem 0;
  text-align: center;
}

.publication-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Mobile-friendly layout */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  nav h2 {
    display: none;
  }

  nav a {
    margin: 0;
    font-size: 0.9em;
  }

  main {
    margin-left: 0;
    padding-top: 60px; /* Make space for top nav */
  }

  body {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
}

.social-links {
  margin-top: 0.5rem;
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
  transition: transform 0.2s ease-in-out;
}

.social-links a:hover {
  transform: scale(1.1);
}

.social-links img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%) brightness(0%) invert(30%);
  opacity: 0.8;
}

.social-links img:hover {
  filter: none;
  opacity: 1;
}

