.dept {
  padding: 50px 20px;
  background: #f9f9f9;
  text-align: center;
}

.dept-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #222;
}

.expertise-intro {
  font-size: 1rem;
  color: #555;
  max-width: 800px;
  margin: 10px auto 40px auto;
  line-height: 1.6;
  text-align: center;
}

/* Main VIRAT Card (Center) */
.main-dept {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.main-dept a{
  text-decoration: none;
}

.main-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 50px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  width: 320px;
}

.dept-card.main-card img {
  height: 140px !important;
  width: auto;
  margin-bottom: 20px;
  filter: grayscale(0%);
}

.main-card h3 {
  font-size: 26px;
  color: #0f4c61;
  font-weight: 700;
}

.main-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,128,128,0.3);
}

/* Other Department Grid */
.small-depts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.small-depts a{
  text-decoration: none;
}

.dept-card {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  cursor: pointer;
}

.dept-card img {
  height: 120px;
  width: auto;
  margin-bottom: 15px;
  filter: grayscale(100%);
  transition: filter 0.4s;
}

.dept-card:hover img {
  filter: grayscale(0%);
}

.dept-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.dept-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,128,128,0.25);
  border: 1px solid #0f4c61;
}

.dept-card:hover h3 {
  color: #0f4c61;
}

/* Responsive */
@media (max-width: 768px) {
  .main-card {
    width: 90%;
    padding: 30px 20px;
  }

  .main-card h3 {
    font-size: 22px;
  }
}