/* Container for all staff cards */
.staff-container {
  display: flex;
  flex-direction: column;
  /* gap: 2rem; */
  /* padding: 20px 0px; */
  /* max-width: 750px; */
  margin: 0 auto;
}

/* --- Default "Mobile First" Styles --- */
/* On narrow screens, we'll stack the image and text vertically. */
.staff-card {
  display: flex;
  flex-direction: column; /* Stack image ON TOP of text */
  align-items: center;   /* Center-align everything */
  text-align: center;    /* Center the text content */
  padding-bottom: 2rem;
  padding-top: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.staff-card:last-child {
  border-bottom: none;
}

/* Staff photo - now smaller */
.staff-card img {
  width: 150px !important;
  height: 150px !important;
  border-radius: 50%;
  object-fit: cover !important;
  object-position: top;
  margin-bottom: 1rem;
}

.staff-card .intro {
  text-align: left; /* Keep longer paragraphs left-aligned for readability */
}


/* --- Responsive Styles for Wider Screens --- */
/* When the screen is 576px or wider, switch to a side-by-side layout. */
@media (min-width: 576px) {
  .staff-card {
    flex-direction: row; /* Switch to side-by-side layout */
    text-align: left;    /* Align text to the left */
    align-items: center; /* Vertically center image and text */
    gap: 1.5rem;
  }

  .staff-card img {
    margin-bottom: 0; /* Remove bottom margin in side-by-side view */
  }
}

/* --- Unchanged Text Styles --- */
.staff-card h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  color: #333;
}

.staff-card .details {
  font-size: 0.9em;
  color: #555;
  margin-top: 0;
  margin-bottom: 1rem;
}

.staff-card .intro {
  font-size: 0.95em;
  color: #444;
  line-height: 1.5;
  margin: 0;
}