/* Фільтр */
.events-filter-wrapper {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.events-filter-wrapper label {
    font-weight: bold;
}
.events-filter-wrapper select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Список подій */
.events-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Медіа-запити для адаптивності */
@media (min-width: 768px) {
    .events-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .events-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Оформлення картки події */
.event-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.event-thumbnail-wrapper {
    width: 100%;
}
.event-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
    border-radius: 12px;
}
.event-item:hover .event-thumbnail {
    transform: scale(1.05);
}
.event-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 63, 145, 0.66);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.event-item:hover .event-overlay {
    opacity: 1;
}
.event-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
}
.event-title a {
    color: #fff;
    text-decoration: none;
}
.event-date, .event-location, .event-venue {
    font-size: 0.95em;
    margin: 5px 0;
}
.buy-ticket-button {
    margin-top: 15px;
    display: inline-block;
    background: #ffffff;
    color: #003f91;
    padding: 10px 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease;
}
.buy-ticket-button:hover {
    background: #f0f0f0;
    color: #002a61;
}