html, body {
  margin: 0;
  padding: 0;
  background: rgba(20, 20, 20, 0.877);
}



/* ===============================
   STUDENTS GRID
================================ */
#studentsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
h1{
  text-align: center;
  color: #ffffff;
  margin-top: 10px;
}

/* ===============================
   STUDENT CARD
================================ */
.student-card {
  background: #1c1c1c;
  border-radius: 16px;
  
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.student-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

/* ===============================
   PHOTO WRAPPER (IMPORTANT)
================================ */
.student-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #0d6efd;
  background: #111;
}

/* ===============================
   IMAGE ITSELF (CRITICAL FIX)
================================ */
.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===============================
   TEXT
================================ */
.student-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.student-age {
  font-size: 0.95rem;
  color: #bfbfbf;
}

/* ===============================
   SEARCH INPUT
================================ */
#searchInput {
  width: 100%;
  max-width: 420px;
  margin: 20px auto 0;
  padding: 12px 16px;
  /* border-radius: 30px; */
  border: none;
  outline: none;
  background: #2a2a2a;
  color: #fff;
  font-size: 0.95rem;
}

/* ===============================
   MOBILE TUNING
================================ */
@media (max-width: 480px) {
  .student-photo {
    width: 100px;
    height: 100px;
  }

  .student-name {
    font-size: 1.05rem;
  }
}
