/* ══════════════════════════════════════════════════
   Teacher listing page (teacher.php)
   .page-hero / .sec-wrap-alt / .sec-inner are shared across several page
   templates (Institution.php, staff.php, member.php, etc.) and live in the
   sitewide assets/css/style.css instead. This file only has what's unique
   to the teacher grid — scoped under .person-grid so it never bleeds into
   the differently-structured .person-card used on the home page (Home
   Members block).
   ══════════════════════════════════════════════════ */

/* GRID */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

/* CARD */
.person-grid .person-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid oklch(90% 0.01 90);
  transition: transform 0.25s, box-shadow 0.25s;
}
.person-grid .person-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.person-grid .person-card-top {
  height: 5px;
  background: linear-gradient(90deg, var(--green-700), var(--gold-500));
}

/* PHOTO */
.person-grid .person-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), var(--gold-100));
}
.person-grid .person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* INFO */
.person-grid .person-info {
  padding: 18px 16px 20px;
  text-align: center;
}
.person-grid .person-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-900);
}
.person-grid .person-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-500);
  margin-top: 4px;
  text-transform: uppercase;
}
.person-grid .person-divider {
  width: 40px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 2px;
  margin: 12px auto;
}
.person-grid .person-dept {
  font-size: 13px;
  color: var(--text-600);
}

/* ACTION BUTTONS */
.person-grid .t-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.person-grid .t-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}
.person-grid .t-btn.btn-green {
  background: var(--green-50);
  color: var(--green-700);
}
.person-grid a.t-btn.btn-green:hover {
  background: var(--green-700);
  color: white;
  transform: translateY(-2px);
}
.person-grid .icon-svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.person-grid .icon-svg[fill="none"] {
  fill: none;
  stroke: currentColor;
}

/* RESPONSIVE */
@media (max-width: 560px) {
  .person-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .person-grid .person-info { padding: 14px 10px 16px; }
}
