.event-filters {
    margin-bottom: 25px;
    text-align: center;
}

.event-filters a {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #ffffff;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid #e0e0e0;
}

.event-filters a:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

.event-filters a.active {
    background-color: #f0f0f0;
    border-color: #666;
    color: #333;
}

.events-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .events-list {
        grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    }
}

.event-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333;
    direction: ltr;
    border: 1px solid #e0e0e0;
}

.event-card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-featured-image {
    transform: scale(1.05);
}

.event-no-image {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-placeholder {
    color: #666;
    font-size: 48px;
    opacity: 0.8;
}

.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-categories {
    margin-bottom: 12px;
}

.event-category {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    margin-right: 6px;
    margin-bottom: 4px;
    font-weight: 500;
}

.event-title {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    line-height: 1.2;
}

.event-title a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.event-title a:hover {
    color: #666;
}

.event-meta {
    margin-bottom: 12px;
    color: #666;
    font-size: 0.85em;
}

.event-date,
.event-venue {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.event-meta .dashicons {
    margin-left: 8px;
}

.event-excerpt {
    margin-bottom: 15px;
    flex-grow: 1;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.event-read-more {
    margin-top: auto;
}

.event-button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.9em;
    text-decoration: none;
    background: #ffffff;
    color: #666666;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.1s ease-in-out;
}

.event-button:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    color: #333333;
}
.event-date .dashicons,
.event-venue .dashicons {
    margin-right: 8px;
    color: #0073aa;
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.event-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.event-read-more {
    margin-top: auto;
}

.event-button {
    display: inline-block;
    background: #ffffff;
    color: #333;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    border: 1px solid #ddd;

}

.event-button:hover {
    background: #f0f0f0;
    color: #333;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .events-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-image {
        height: 180px;
    }
    
    .event-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .event-image {
        height: 160px;
    }
    
    .event-title {
        font-size: 1.2em;
    }
}
