.tools-grid-section-title {
    font-size: 24px !important;
    font-weight: 700;
    margin-top: 50px !important;
    margin-bottom: 12px !important;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Card */
.tools-grid-card {
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid black;
    border-radius: 0;
    box-shadow: 3px 3px 0 black;
    overflow: hidden;
    color: #000;
    background: #fff;
    text-align: center;
}

.tools-grid-card:hover {
    color: #000;
}

/* Stretched link — makes the whole card clickable via the h3 anchor */
.tools-grid-card-link {
    color: #000;
    text-decoration: none !important;
}

.tools-grid-card-link:hover {
    color: #000;
    text-decoration: none !important;
}

.tools-grid-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* Image area — full image, no cropping */
.tools-grid-card-image {
    width: 100%;
    border-bottom: 1px solid lightgray;
    flex-shrink: 0;
    padding: 12px;
    box-sizing: border-box;
}

.tools-grid-card-image img {
    width: 70%;
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Text area */
.tools-grid-card-body {
    padding: 12px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tools-grid-card-title {
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    margin-bottom: 5px !important;
}

.tools-grid-card-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
