.tab-content{
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  transition: transform 0.3s;
  padding: 20px;
  margin: 3% 0;
  min-width: 0;
  overflow-wrap: break-word;
}

.card p {
  word-wrap: break-word;
  word-break: break-word;
}

.card:hover {
  transform: translateY(-5px);
}

.top-section {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.avatar-wrapper {
  position: relative;
  margin-right: 15px;
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  /* #7b1337, #c23d8c */
  border: 3px solid #c23d8c;
}

.user-info h2 {
  margin: 0;
  font-size: 17px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.user-info p {
  color: #777;
  margin-top: 3px;
  font-size: 13px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.details {
  margin-top: 15px;
  font-size: 1.5rem;
}

.details p {
  margin: 6px 0;
  word-break: break-word;
}

.details span {
  font-weight: bold;
  color: #7b1337;
}

.actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn.edit {
  background: #1d3557;
  color: #fff;
}

.btn.edit:hover {
  background: #16324f;
}

.btn.delete {
  background: #c23d8c;
  color: #fff;
}

.btn.delete:hover {
  background: #7b1337;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .tab-content{
    display: grid;
    grid-template-columns: auto;
  }
  .card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (min-width: 1024px) {
  .card {
    flex: 1 1 calc(25% - 20px);
  }
}
