/* ---------- STAFF CARD COMPONENT ---------- */
.card_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: #fff;
  border: 1px solid rgba(15, 32, 42, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 32, 42, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  width: 100%;
  max-width: 340px;
  color: #0f202a;
}

.card_wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(15, 32, 42, 0.15);
  border-color: #d72027;
}

.card_inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Two-column layout when image is present */
.staff_card_img {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

/* When image is not used */
.staff_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  text-align: center;
}

/* Image container */
.staff_img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.staff_img img {
  width: 100px;
  height: 100px;
  object-position: top;
  object-fit: cover;
  border-radius: 50%; /* circular crop */
  border: 3px solid #d72027;
  box-shadow: 0 0 0 3px rgba(215, 32, 39, 0.1);
}

/* Text area */
.staff_card_right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #0f202a;
}

/* Name */
.staff_name {
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #0f202a;
  word-wrap: none;
  white-space: nowrap;
  margin-bottom: 0.25rem;
}

/* Position */
.staff_position {
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  font-style: italic;
  font-weight: 500;
  color: #d72027;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  position: relative;
}

.staff_card_right hr {
  width: 85%;
  margin: 0 auto;
  border: none;
  border-top: 2px solid rgba(215, 32, 39, 0.4);
}

/* Summary */
.staff_summary {
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #394956;
  margin-top: 0.3rem;
}

/* ---------- HOVER INTERACTION ---------- */
.card_wrapper:hover .staff_name {
  color: #d72027;
  transition: color 0.25s ease;
}

/* ---------- RESPONSIVE BEHAVIOR ---------- */
@media (max-width: 600px) {
  .staff_card_img {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .staff_img img {
    margin-bottom: 0.75rem;
  }

  .staff_card_right {
    align-items: center;
  }

  .staff_position hr {
    margin: 0.4rem auto;
  }
}
