/* General body styling */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 20px;
}

/* Page title */
h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

/* Wrapper for all cards */
.card-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Container for each card */
.card-container {
  flex: 1 1 400px;
  max-width: 450px;
  display: flex;
}

/* Individual card styling */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  width: 100%;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.02);
}

/* Flex layout for image and info */
.card-body {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

/* Profile image styling */
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Info section beside image */
.card-info {
  flex: 1;
}

.card-info p {
  margin: 6px 0;
  font-size: 15px;
  color: #444;
}

/* Description box */
.description {
  margin-top: 10px;
  font-style: italic;
  background-color: #f9f9f9;
  padding: 10px;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  color: #555;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-img {
    margin-bottom: 15px;
  }

  .card-info {
    width: 100%;
  }

  .card-container {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
