.class-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.class-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.class-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.class-image img {
  width: 500px;
  height: 310px;
  object-fit: cover;
  object-position: top;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.class-item:hover .class-image img {
  transform: scale(1.1);
}

.class-info h5 {
  margin: 15px 0;
  font-size: 1.6rem;
  font-weight: bold;
  color: #0056b3;
  text-align: center;
}

.class-action .btn-primary {
  background-color: #0056b3;
  border-color: #0056b3;
  font-size: 1rem;
  padding: 10px 20px;
  margin-top: 15px;
}

.class-action .btn-primary:hover {
  background-color: #003f7f;
  border-color: #003f7f;
}

.input-group {
  max-width: 1000px;
  margin: 0 auto 30px auto;
}

.input-group .form-control {
  border-radius: 20px 0 0 20px;
  border: 1px solid #ddd;
  padding: 10px 15px;
  font-size: 1rem;
}

.input-group .btn-primary {
  border-radius: 0 20px 20px 0;
  background-color: #0056b3;
  border: none;
  font-size: 1rem;
  padding: 7px 20px;
}

.input-group .btn-primary:hover {
  background-color: #003f7f;
}

.student-stats {
  text-align: center;
}

.stats-title {
  font-size: 2rem;
  font-weight: bold;
  color: #0056b3;
  margin-bottom: 30px;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stats-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stats-card h4 {
  font-size: 1.2rem;
  color: #0056b3;
  margin-bottom: 10px;
}

.stats-card p {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}