/* Department Outer Container */
.ss-dept-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ss-dept-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Image Wrapper */
.ss-dept-thumb {
  width: 100%;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.ss-dept-thumb img {
  max-width: 100%;
  max-height: 160px;
  height: auto;
  object-fit: contain;
}

/* Department Info */
.ss-dept-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ss-dept-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.ss-dept-desc {
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.6;
}

/* Tablet & Desktop Horizontal Row View */
@media (min-width: 768px) {
  .ss-dept-card {
    flex-direction: row;
    align-items: stretch;
  }

  .ss-dept-thumb {
    width: 220px;
    min-width: 220px;
    border-bottom: none;
    border-right: 1px solid #f1f5f9;
    padding: 12px;
  }

  .ss-dept-thumb img {
    max-height: 140px;
  }

  .ss-dept-body {
    flex: 1;
    justify-content: center;
  }
}
