.nav-links {
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    white-space: nowrap;
    min-width: max-content;
}

.tool-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-card h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

@media screen and (max-width: 768px) {
    .nav-links {
        align-items: center;
        padding: 10px;
    }
    
    .tool-card {
        min-height: 180px;
    }
    
    .tool-card h2 {
        font-size: 1.3rem;
    }
}