body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Profile cards */
.profile-card {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}
.profile-card.appear {
  opacity: 1;
}
.profile-card:hover {
  transition: translateY 0.125s ease-in-out;
  transform: translateY(-0.5em);
}

/* Image Loading Animation */
/* Pulse Border */
.loader {
  background: #fff;
  width: 100%;
  height: 10rem;
  transition: opacity 0.5s ease-in;
  opacity: 1;
  line-height: 150px;
  position: absolute;
  box-sizing: border-box;
  z-index: 0;
}
.loader.disappear {
  opacity: 0;
}
.loader:before,
.loader:after {
  opacity: 0;
  box-sizing: border-box;
  content: "\0020";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid #ccc;
}
.loader:after {
  z-index: 1;
  animation: pulseloader 3s infinite 1.5s;
}
.loader:before {
  z-index: 2;
  animation: pulseloader 3s infinite;
}
@keyframes pulseloader {
  0%   { opacity: 0; transform: scale(0); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

.robot-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.robot-card img {
  width: 80px;           /* fixed width */
  height: 80px;          /* same as width to force a square */
  border-radius: 50%;    /* make it circular */
  object-fit: cover;     /* crop image instead of stretching */
  object-position: center;
}

.profile-card img.card-img-top {
  width: 10rem;         /* same width for all */
  height: 10rem;        /* same height → square */
  border-radius: 50%;    /* circle */
  object-fit: cover;     /* crop image without stretching */
  object-position: center;
  display: block;        /* remove inline gaps */
  margin: 0 auto;        /* center inside card */
}


#toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#toc li {
  margin: 8px 0;
}

#toc a {
  text-decoration: none;
  color: #000000;
}

#toc a:hover {
  text-decoration: underline;
}

/* Optional: Smooth scroll */
html {
  scroll-behavior: smooth;
}


.page-container {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 110px;
  padding-right: 110px;
}

#toc {
  position: fixed;
  top: 100px;
  left: calc(50% - 600px - 200px); /* Centers relative to main content */
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  z-index: 1000;
  height: fit-content;
  overflow-y: auto;
}

/* Main content: centered relative to page */
main#people {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hide TOC when screen is too narrow */
@media (max-width: 1600px) {
  #toc {
    left: 20px; /* Fallback to left edge on smaller screens */
  }
}

@media (max-width: 992px) {
  #toc {
    display: none; /* Hide completely on mobile */
  }
}

