.profile-card {
  max-width: 820px;
  margin: 48px auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
  border: 0;
}

.profile-top {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #fff;
  padding: 28px 30px;
}

/* Layout container for avatar + heading */
.profile-head {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: nowrap;
}

/* Avatar wrapper ensures exact square and keeps the image from stretching */
.avatar-wrap {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: #fff;
  display: inline-block;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* KEEP aspect and crop overflow */
  display: block;
}

.profile-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
}
.profile-role {
  margin: 0;
  font-size: 0.975rem;
  opacity: 0.95;
}

.school-name {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-top: 6px;
}

.card-body {
  padding: 22px;
  background: #fff;
}

.profile-info li {
  margin-bottom: 10px;
  color: #333;
}
.btn-custom {
  background: #4a90e2;
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
}

/* Responsive: stack avatar above text on small screens */
@media (max-width: 767.98px) {
  .profile-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .avatar-wrap {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
  }
  .profile-name {
    font-size: 1.25rem;
  }
}
