h1 {
  text-align: center;
  color: #1e90ff;
  margin: 40px 0px;
  font-size: 2rem;
}

.box {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeIn 0.5s ease-in;
  flex-wrap: wrap;
  margin: 40px 20px;
}

.semester-grid {
  margin-top: 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.sem-card {
  background: #1e90ff;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
  font-weight: bold;
  animation: zoomIn 1s ease;
}

.sem-card:hover {
  transform: scale(1.05);
  background: #007be5;
}

.university-box-image {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.course-header {
  margin: 30px 20px;
  padding: 10px 20px;
  font-size: 28px;
  font-weight: bold;
  color: rgb(0, 0, 0);
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.course {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 20px;
  width: 300px;
  height: 350px;
}

.semester-grid a {
  text-decoration: none;
  color: white;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ Responsive Design */
@media screen and (max-width: 768px) {
  .semester-grid {
    grid-template-columns: 1fr;
  }

  .course-header {
    font-size: 24px;
    margin: 20px 10px;
    padding: 10px;
  }

  .course {
    width: 90%;
    height: auto;
    margin: auto;
  }

  h1 {
    font-size: 1.8rem;
  }

  .box {
    flex-direction: column;
    align-items: center;
    margin: 20px 10px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .course-header {
    font-size: 20px;
    margin: 20px 10px;
  }

  .sem-card {
    font-size: 14px;
    padding: 10px 8px;
  }
}
