/* Container for all student cards */
.student-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Individual student card */
.student-card {
  flex: 1 1 calc(50% - 20px); /* 2 cards per row */
  background: #ffffff;
  border: 2px solid #ddd;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

/* Hover effect */
.student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Image on the left */
.student-card img {
  border-radius: 10px;
  width: 120px;
  height: auto;
  float: left;
  margin-right: 15px;
}

/* Card text details */
.student-card h2 {
  color: #333;
  margin-bottom: 5px;
}

.student-card .details {
  overflow: hidden;
}

.student-card .about {
  text-align: justify;
  color: #555;
  margin-top: 10px;
}

/* Links */
.student-card a {
  color: #0077b5;
  text-decoration: none;
  margin-right: 10px;
}

.student-card a:hover {
  text-decoration: underline;
}

/* Icons below */
.icon-links {
  margin-top: 10px;
}
.icon-links img {
  vertical-align: middle;
}

/* Responsive for small screens (1 card per row) */
@media (max-width: 768px) {
  .student-card {
    flex: 1 1 100%;
  }
}
