.section-heading {
  font-size: 28px;
  font-weight: bold;
  color: #003366;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.section-heading::after {
  content: "";
  width: 60px;
  height: 3px;
  background-color: #007bff;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.carousel-wrapper {
  position: relative;
  padding: 0 60px; /* Adds side margins for arrows */
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px 0;
  margin: 0 20px; /* Left and right margin inside container */
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.dept-card {
  flex: 0 0 calc(25% - 15px); /* 4 cards per row with spacing */
  max-width: calc(25% - 15px);
  min-width: 250px;
}

.card-inner {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.card-inner img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.card-inner h5 {
  font-size: 1rem;
  color: #c00;
  margin-top: 10px;
  font-weight: bold;
}

.card-inner p {
  font-size: 0.9rem;
  color: #444;
}

.carousel-btn {
  background-color: #001a4d;
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  font-size: 28px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background-color: #001a4d;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

@media (max-width: 992px) {
  .dept-card {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

@media (max-width: 576px) {
  .dept-card {
    flex: 0 0 90%;
    max-width: 90%;
  }

  .carousel-prev,
  .carousel-next {
    display: none;
  }
}
