/* ========== Members Page Styling (Circle Layout) ========== */

.members-container {
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  overflow-x: hidden; /* stop horizontal scroll */
}

/* Section title */
.section-title {
  text-align: center;
  color: #12083f;
  font-size: clamp(1.5rem, 2.5vw, 1.8rem);
  margin: 20px 20px 20px;
  font-weight: 600;
  text-decoration: none;   /* removes underline if it exists */
  border-bottom: none;     /* removes any bottom border */
}


/* 3 per row */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  justify-items: center;
  margin-top: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Center orphan card */
.member-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

/* Card */
.member-card {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-align: center;
}

/* Image */
.member-card img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
  border: 3px solid #a7a0a0;
}

/* Text */
.member-card h3 {
  font-size: 1.1rem;
  color: #444;
  margin: 4px 0 4px;
}

.member-card p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 900px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .member-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .member-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .member-card img {
    width: 120px;
    height: 120px;
  }
}
