/* Members Directory Styling */
.amd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

#amd-search {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto 20px;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#amd-alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.amd-letter {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f3f3f3;
  transition: background 0.2s ease, color 0.2s ease;
}

.amd-letter:hover, .amd-letter.active {
  background: #0073aa;
  color: #fff;
}

.amd-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  justify-items: center;
}

.amd-member {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 220px;
}

.amd-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.amd-member img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.amd-member h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 5px 0;
}

.amd-member div {
  font-size: 0.9rem;
  color: #555;
}

@media (min-width: 1200px) {
  .amd-members {
    grid-template-columns: repeat(5, 1fr);
  }
}
