﻿.image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.image-wrapper:hover img {
  transform: scale(1.1);
}

.image-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper:hover .overlay {
  opacity: 1;
}

.image-wrapper .overlay i {
  font-size: 2rem;
  color: white;
}

#syllabus .news-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

#syllabus .news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#syllabus .news-item i {
  font-size: 1.3rem;
  margin-right: 1rem;
}

#syllabus .news-item span {
  flex-grow: 1;
  font-weight: 500;
}

#syllabus .news-item small {
  white-space: nowrap;
}

