/*-- scss:defaults --*/
/* Make ### headers smaller */
.g-col-12 h3,
.g-col-md-4 h3 {
  font-size: 1.1rem;   /* default is ~1.3–1.4rem depending on theme */
  font-weight: 600;    /* keep them bold but not overwhelming */
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: center;  /* optional: center under the image */
  border-bottom: 2px solid #ddd;  /* horizontal line */
  border-radius: 0.5rem;
  color: var(--bs-primary);            /* primary text color (changes with theme) */
  background-color: var(--bs-secondary-bg); /* background follows light/dark body */
  padding: 0.75rem 1rem;   /* top/bottom = 0.75rem, sides = 1rem */
}


/* Crop headshot into a square image */
.headshot-image {
  aspect-ratio: 1/1;         /* keep square */
  object-fit: cover;         /* fill the box without distortion */
  object-position: center;   /* center the crop */
  border-radius: 12px;       /* round corners */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth hover effect */
}

.headshot-image:hover {
  transform: scale(1.05);    /* slight zoom in */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25); /* stronger shadow on hover */
}

/* Pad research pic into a square image */
.research-image {
  aspect-ratio: 1/1;
  object-fit: contain;
  object-position: center;
  background-color: #fff;    /* white background */
  border-radius: 8px;
}

/* Publication cards */
.pub-card {
  background-color: var(--bs-primary-bg); /* light gray in light mode, dark gray in dark mode */
  color: var(--bs-body-color);               /* adapts to light/dark */
  border: 1px solid var(--bs-border-color);  /* adapts to light/dark */
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.pub-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: 0.2s;
}

.read-more {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
  font-size: 0.9em;
  color: var(--bs-link-color);
}
.read-more:hover {
  color: var(--bs-link-hover-color);
  text-decoration: underline;
}

/* Join us cards */
.join-card {
  background-color: var(--bs-primary-bg); /* light gray in light mode, dark gray in dark mode */
  color: var(--bs-body-color);               /* adapts to light/dark */
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 0.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* SVG icon cards */
img.icon,
svg.icon {
  display: inline-block;
  width: 30px;
  margin-bottom: 0rem;
  margin-right: 0.2rem;
}

/* Dark mode – invert for icons */
body.quarto-dark svg.icon,
body.quarto-dark img.icon {
  filter: invert(1) brightness(1.2);
}

/* little tweaks */
subhead {
  color: #777;
  font-weight: normal;
  margin-left: 0.5em;
  font-style: italic;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;             /* Wraps if too many logos fit horizontally */
  justify-content: center;     /* Centers all logos */
  align-items: center;
  gap: 1.5rem;                 /* Space between logos */
  padding: 1rem 0;
  border-top: 1px solid var(--bs-border-color);
  margin-top: 2rem;
}

/* Each logo image */
.logo-strip .logo {
  height: 50px;                /* Uniform height for all logos */
  width: auto;                 /* Keep correct aspect ratio */
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.logo-strip .logo:hover {
  opacity: 1.0;                /* Subtle hover effect */
}

