/* Almost Family – Salient Team Element styles */

/* Category headings */
.af-team-section-title {
  color: #226fac;
  text-align: center;
  margin: 0 0 18px;
  font-weight: 700;
}

/* Divider + spacing between categories (only after the first section) */
.af-team-section + .af-team-section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 3px solid #226fac;
}

/* Grid columns */
.af-team-grid { display: grid; gap: 24px; }
.af-team-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.af-team-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.af-team-grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.af-team-grid.cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }

/* Responsive collapse for 5 cols */
@media (max-width: 1280px) {
  .af-team-grid.cols-5 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .af-team-grid.cols-5,
  .af-team-grid.cols-4 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .af-team-grid.cols-5,
  .af-team-grid.cols-4,
  .af-team-grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .af-team-grid.cols-5,
  .af-team-grid.cols-4,
  .af-team-grid.cols-3,
  .af-team-grid.cols-2 { grid-template-columns: 1fr; }
}

/* Cards */
.af-team-card {
  text-align: center;
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  background: #fff;
  padding: 14px;
}
.af-team-thumb img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  transition: transform .35s ease;
}

/* Hover lift effect */
.af-team-grid.hover-lift .af-team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.af-team-grid.hover-lift .af-team-card:hover .af-team-thumb img {
  transform: scale(1.03);
}

.af-team-name { margin:.75rem 0 .25rem; font-size:1.1rem; }
.af-team-role { opacity:.85; font-size:.95em; }
.af-team-section { margin-bottom: 48px; }
