.board-page {
  max-width: 90%;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Segoe UI", sans-serif;
  color: #333;
}

.board-page h2 {
  text-align: center;
  font-size: 2rem;
  color: #1a4c3d;
  margin-bottom: 2rem;
}

.board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Card layout: avatar + text */
.board-card {
  background-color: #f0f4f0;
  border-radius: 0.5rem;
  padding: 0.85rem; /* tighter than before */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

  display: grid;
  grid-template-columns: 56px 1fr; /* avatar column */
  column-gap: 0.6rem; /* pulls text closer to headshot */
  align-items: center;
}

/* Avatar */
.board-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  background: #ddd;
}

/* Text stack: reserve a consistent "name area" so titles align */
.board-info {
  display: grid;
  grid-template-rows: 2.4em auto; /* 2 lines @ 1.2 line-height */
  row-gap: 0.15rem; /* tighter vertical spacing */
}

/* Name (clamped to 2 lines) */
.board-info h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.2;
  color: #1a4c3d;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Title */
.board-info .title {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

.board-contact {
  margin-top: 2rem;
  text-align: center;
  font-size: 1rem;
}

.board-contact a {
  color: #006699;
  text-decoration: none;
}

.board-contact a:hover {
  text-decoration: underline;
}

/* Tablet and up */
@media (min-width: 768px) {
  .board-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .board-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .board-page h2 {
    font-size: 2.25rem;
  }
}
