body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f6ff;
  color: #2c2f4b;
}

.container {
  max-width: 700px;
  margin: 50px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #4a63a8;
  margin-bottom: 30px;
}

.friend-list {
  list-style: none;
  padding: 0;
}

.friend {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #e3e7f7;
  transition: background 0.2s ease;
}

.friend:last-child {
  border-bottom: none;
}

.friend:hover {
  background: #eef2ff;
}

.friend img {
  border-radius: 50%;
  margin-right: 15px;
  width: 64px;
  height: 64px;
}

.info h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #354272;
}

.info p {
  margin: 5px 0 0;
  font-size: 0.95rem;
  color: #6b728e;
}

-----------------------

.friend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}

.friend {
  display: flex;
  justify-content: center;
}

.profile-card {
  background: #f5f8ff;
  border: 1px solid #e2e8ff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  width: 240px;
  box-shadow: 0 6px 16px rgba(122, 144, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(122, 144, 255, 0.2);
  background: #ebf0ff;
}

.profile-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.profile-card h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #3b4e8b;
}

.profile-card p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #6c7bbd;
  font-style: italic;
}


.back-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #a0c4ff;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.2s;
}

.back-button:hover {
  background-color: #7eaaff;
  transform: scale(1.05);
}