/* Fixed margin image — stays in viewport as user scrolls */
.margin-fixed {
  position: fixed;
  top: 5rem;
  left: 1rem;
  width: 10rem;
  z-index: 10;
}

/* Centered figure captions */
figcaption {
  text-align: center;
}

/* Justified body text */
p {
  text-align: justify;
}

/* Home page cards */
a.home-card, div.home-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  transition: box-shadow 0.2s ease;
}

a.home-card:hover, div.home-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  color: inherit;
  text-decoration: none;
}

.home-card-img {
  width: 100%;
  min-height: 60px;           /* fallback grey shows even before image loads */
  background-color: #e9ecef;
  overflow: hidden;
  border-radius: 6px 6px 0 0;  /* round top corners only */
}

.home-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.home-card-body {
  padding: 0.9rem 1rem;
}

.home-card-body h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.home-card-body p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}
