/* Compact, clean, and DRY styles for all pages */
body {
  margin: 0;
  font-family: 'Courier New', Arial, sans-serif;
}

header {
  background: #000061;
  color: #fff;
  padding: 0;
}

.container {
  display: flex;
  min-height: 100vh;
}

.fas, .fab, .fa-solid, .fa-brands, .fa-calendar, .fa-bookmark, .fa-thumbs-up{
    color: #000061;
}

.sidebar {
  background: #f5f5f5;
  width: 280px;
  padding: 2rem 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image, .photo-row .photo, .photo {
  border-radius: 50%;
  object-fit: cover;
  width: 200px;
  height: 200px;
  display: block;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-area {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.side-nav {
  background: #000061;
  padding: 0;
}
.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #444;
}
.side-nav li {
  margin: 0;
}
.side-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 1rem 2rem;
  font-weight: bold;
  transition: background 0.2s;
}
.side-nav a:hover {
  background: #004791;
}

.main-content {
  padding: 2rem;
  background: #fff;
  flex: 1;
}

/* Layout to contain main content and right logos column */
.main-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.right-logos {
  width: 220px;
  background: #fafafa;
  border-left: 1px solid #eee;
  padding: 1.2rem;
  box-sizing: border-box;
  text-align: center;
}
.right-logos h2 {
  margin-top: 0;
  color: #000061;
  font-size: 1.1rem;
}
.logos-intro {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.6rem;
}
.logos-list {
  list-style: none;
  margin: 0.6rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}
.logos-list li {
  width: 100%;
}
.logos-list img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  object-fit: contain;
  max-height: 48px;
}
.logos-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #666;
}

/* Announcements + News two-column layout */
.announcements-news {
  display: flex;
  /* gap: 2rem; */
  align-items: flex-start;
  /* Keep them side-by-side on wide screens */
  flex-wrap: nowrap;
  width: 100%;
}
.announcements {
  /* make announcements slightly wider than news */
  flex: 2 1 0;
  min-width: 260px;
}
.news {
  flex: 1 1 240px;
  min-width: 220px;
  /* background: #f9fbff; */
  /* border-left: 1px solid #eee; */
  padding-left: 1rem;
}
.news-list li {
  margin-bottom: 0.8em;
}

h1, h2, h3 {
  color: #000061;
}

/*
p, li {
  color: #6298D2;
}
*/

.sidebar-info p {
  margin: 0.5em 0;
  display: flex;
  align-items: center;
  font-size: 1em;
}
.sidebar-info i {
  margin-right: 0.6em;
  min-width: 1.2em;
  text-align: center;
}
.sidebar-info a {
  color: #222;
  text-decoration: none;
}
.sidebar-info a:hover {
  text-decoration: underline;
}

/* List styles for publications, teaching, cv, etc. */
.cv-list {
  padding-left: 1.2em;
  margin-bottom: 2em;
}
/* Fix for ol number alignment */
ol.cv-list {
  padding-left: 0.0em;
  list-style-position: inside;
}
.cv-list li {
  margin-bottom: 1em;
  line-height: 1.4;
}
.cv-list .fa-link {
  margin-left: 0.4em;
  color: #000061;
}
.cv-meta {
  color: #555;
  font-style: italic;
  font-size: 1em;
}

/* Modal styles */
#modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
#modal img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
#modal.close {
  cursor: pointer;
}

/* Flex row for photo + text side by side */
.photo-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 1em;
}
.photo-row .photo {
  flex-shrink: 0;
  width: 200px;
  height: auto;
}
.photo-row .description {
  margin: 0;
}

/* Talk entry styles */
.talk-entry {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 2rem;
}

.talk-entry-img {
  flex: 0 0 auto;
}

.talk-entry-content {
  flex: 1 1 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    min-height: unset;
  }
  .main-row { flex-direction: column-reverse; }
  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 0.5rem;
  }
  .profile-image {
    width: 100px;
    height: 100px;
    margin-right: 1rem;
  }
  .sidebar-info {
    flex: 1;
  }
  .side-nav ul {
    flex-direction: column;
    border-bottom: none;
  }
  .side-nav a {
    padding: 0.75rem 1rem;
    font-size: 1.1em;
  }
  .main-content {
    padding: 1rem;
  }
  .talk-entry {
    flex-direction: column;
    gap: 12px;
  }
  .talk-entry-img, .photo-row .photo {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .photo, .profile-image {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 15px;
  }
  .main-content {
    padding: 0.5rem;
  }
  .sidebar {
    padding: 0.5rem 0.2rem;
  }
  .profile-image, .photo {
    width: 70px;
    height: 70px;
  }
  h1, h2 {
    font-size: 1.2em;
  }
  .talk-entry-content h2 {
    font-size: 1em;
  }
}



