.wide-events-grid,
.wide-archive-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

h2.wp-block-heading {
	font-family: 'League Spartan', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    font-size: 48px;
	    margin: 48px 0 20px 0;
    position: relative;
}
h2.wp-block-heading:before {
	    content: "";
    width: 40px;
    height: 4px;
    background: #CC0166;
    position: absolute;
    top: -16px;
}

.wide-event-card {
    overflow: hidden;
    border: 1px solid #ddd7d1;
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wide-event-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1.72 / 1;
    overflow: hidden;
    background: #c5005c;
}

.wide-event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wide-event-card__placeholder {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(135deg, #cf0064 0%, #770033 100%);
}

.wide-event-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    justify-content: space-between;
}

.wide-event-card__title {
    margin: 0 0 16px;
    font-size: clamp(26px, 2.1vw, 40px);
    line-height: 1.2;
    font-weight: 800;
}

.wide-event-card__title a {
    color: #071013;
    text-decoration: none;
    font-size: 36px;
    font-weight: 700;
    line-height: 125%;
    font-family: 'League Spartan', Helvetica, Arial, Lucida, sans-serif;
}

.wide-event-card__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 4px 16px;
    border-radius: 50px;
    background: #fff;
    color: #071013;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.wide-event-card__excerpt {
    font-size: 18px;
    font-weight: 400;
    color: #071013;
    line-height: 160%;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

.wide-event-card__meta {
    margin: 16px 0;
}

.wide-event-card__meta-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

.wide-event-card__icon {
    color: #d10065;
    font-weight: 700;
    width: 22px;
    flex: 0 0 22px;
    text-align: center;
}

.wide-event-card__button {
    min-height: 54px;
    border: 2px solid #CC0166;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 20px;
    font-size: 16px;
	background: rgb(204,1,102);
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

.wide-event-card__button:hover,
.wide-event-card__button:focus {
    background: rgba(204,1,102,0.88);
    color: #fff;
}

.wide-event-briefing-link {
    color: #d10065;
    font-weight: 700;
    text-decoration: none;
}

.wide-events-empty {
    padding: 16px 0;
}

.wide-related-card {
    border: 1px solid #DAD7CD;
    padding: 24px;
    border-radius: 12px;
	margin-bottom: 16px;
}

.wide-related-card .wide-related-card__title {
    font-size: 20px;
    font-family: 'League Spartan', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
}

.wide-related-card a {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wide-related-card .wide-related-card__date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wide-related-card .wide-related-card__date-icon {
    height: 25px;
}

.wide-related-card .wide-related-card__date-text {
    color: #071013;
}

.wide-related-card span.wide-related-card__chip {
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
}

.wide-related-card .wide-related-card__chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wide-related-card .wide-related-card__chip--category {
    border: 1px solid #F3752B33;
    background: #F3752B33;
    color: #F3752B;
}

.wide-related-card .wide-related-card__chip--type {
    border: 1px solid #E3E3E3;
    background: #E3E3E3;
    color: #071013;
}

/* Filterable events */
.wide-events-filter {
    width: 100%;
}

.wide-events-filter__controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 40px;
}

.wide-events-filter__field {
    min-width: 0;
}

.wide-events-filter__label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

.wide-events-filter__select {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 45px 0 18px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background-color: #fff;
    color: #071013;
    font-size: 16px;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    cursor: pointer;
    outline: none;
}

.wide-events-filter__select:focus {
    border-color: #CC0166;
}

.wide-events-filter__reset {
    min-height: 54px;
    padding: 0 24px;
    border: 2px solid #CC0166;
    border-radius: 8px;
    background: transparent;
    color: #CC0166;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wide-events-filter__reset:hover,
.wide-events-filter__reset:focus {
    background: #CC0166;
    color: #fff;
}

.wide-events-filter__loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 35px;
    margin-bottom: 20px;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

.wide-events-filter.is-loading .wide-events-filter__loading {
    display: flex;
}

.wide-events-filter__spinner {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #CC0166;
    border-radius: 50%;
    animation: wideEventsSpinner 0.7s linear infinite;
}

@keyframes wideEventsSpinner {
    to {
        transform: rotate(360deg);
    }
}

.wide-events-filter__results {
    transition: opacity 0.2s ease;
}

.wide-events-filter.is-loading .wide-events-filter__results {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 980px) {
    .wide-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wide-events-filter__controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wide-events-filter__reset {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .wide-events-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wide-event-card__body {
        padding: 22px;
    }

    .wide-event-card__title a {
        font-size: 30px;
    }

    .wide-events-filter__controls {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .wide-events-filter__field,
    .wide-events-filter__select,
    .wide-events-filter__reset {
        width: 100%;
    }
}
