.eg-wrapper {
    font-family: inherit;
}

.eg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.eg-filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.eg-filter-btn:hover,
.eg-filter-btn.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.eg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.eg-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.eg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.eg-card-img-link {
    display: block;
    width: 100%;
}

.eg-card-img {
    width: 100%;
    padding-bottom: 66%; /* roughly 3:2 ratio */
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.eg-card-no-img {
    background-image: linear-gradient(45deg, #f3f3f3, #e5e5e5);
}

.eg-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.eg-card-cat {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #007aff;
    margin-bottom: 10px;
}

.eg-card-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 15px;
}

.eg-card-title a {
    color: inherit;
    text-decoration: none;
}

.eg-card-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.eg-card-read-more {
    display: inline-block;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
    align-self: flex-start;
}

.eg-card-read-more:hover {
    border-color: #333;
}

.eg-load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.eg-load-more-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.eg-load-more-btn:hover {
    opacity: 0.9;
}

.eg-loading {
    text-align: center;
    padding: 40px 0;
    grid-column: 1 / -1;
    color: #888;
}
