#department-list-section .department-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
#department-list-section .department-list-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 350px;
}
#department-list-section .department-list-card .title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  bottom: 0;
  padding: 0 20px 10px;
}
#department-list-section .department-list-card .title-section h2 {
  font-size: 20px;
  color: #fff;
  margin: 0 !important;
}
#department-list-section .department-list-card .title-section img {
  width: 10%;
}
#department-list-section .department-list-card .img-div {
  top: 0;
  height: 100%;
  width: 100%;
}
#department-list-section .department-list-card .img-div img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
#department-list-section .department-list-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  background: linear-gradient(to top, #008b9f, rgba(0, 138, 159, 0) 50%);
  z-index: 0;
}

@media (max-width: 1366px) {
  #department-list-section .department-list {
    grid-template-columns: repeat(3, 1fr);
  }
  #department-list-section .department-list-card .title-section h1 {
    font-size: 20px;
    color: #fff;
  }
  #department-list-section .department-list-card .title-section img {
    width: 10%;
  }
}
@media (max-width: 999px) {
  #department-list-section .department-list {
    grid-template-columns: repeat(2, 1fr);
  }
  #department-list-section .department-list-card .title-section h1 {
    color: #fff;
  }
  #department-list-section .department-list-card .title-section img {
    width: 10%;
  }
}
@media (max-width: 768px) {
  #department-list-section .department-list {
    grid-template-columns: repeat(1, 1fr);
  }
  #department-list-section .department-list-card .title-section h1 {
    color: #fff;
  }
  #department-list-section .department-list-card .title-section img {
    width: 10%;
  }
}
