.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 16px; /* a little side padding helps on very small screens */
    box-sizing: border-box;
}

.resource-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Make the link fill the card so clicks are easy */
.resource-link {
    display: block;
    width: 100%;
}

/* Images scale nicely within the card */
.resource-logo {
    display: block;
    margin: 0 auto;
    max-width: 140px;
    width: 100%;
    height: auto;
}