/* /plugins/charity-directory/shortcodes/taxonomy-feed/taxonomy-feed.css */
.taxonomy-term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.taxonomy-term-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.taxonomy-term-item-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.taxonomy-term-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.taxonomy-term-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.taxonomy-term-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.taxonomy-term-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
}

.taxonomy-term-content {
    padding: 20px;
    flex-grow: 1;
}

.taxonomy-term-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
}

.taxonomy-term-description {
    font-size: 1rem;
    color: #555;
}