.department-menu {
  border: 1px solid var(--active-color);
  border-radius: 5px;
  overflow: hidden;
}

.menu-item {
  padding: 20px 8px;
  cursor: pointer;
  transition: 0.3s;
}

.menu-item p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
}

.menu-item:hover {
  background: #f1f1f1;
}

.menu-item.active {
  background: var(--green-color);
  color: #fff;
}

.menu-item.active p {
  color: var(--white-color);
}

.department-section {
  background: #f5f7f9;
}

.dept-card {
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #f1f3f6;
  transition: 0.3s;
}

.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dept-thumb > img {
  height: 300px;
  object-fit: cover;
  object-position: center;
}

.dept-icon {
  position: absolute;
  bottom: -30px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.dept-icon img {
  width: 28px;
}

.dept-content {
  padding: 40px 20px 20px;
}

.dept-content h5 {
  color: var(--purple-text);
  margin-bottom: 10px;
  font-family: var(--font-family);
  font-size: 26px;
}

.dept-content p {
  color: var(--black-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  min-height: 68px;
}

.read-more {
  color: var(--blue-text);
  margin-top: 10px;
  gap: 10px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
}

.service-menu-wrapper {
  max-width: 100%;
}

@media (max-width: 768px) {
  .department-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: auto;
    gap: 10px;
  }

  .service-menu-wrapper {
    width: 100%;
  }
}
