.cer-events-grid {
    display: grid;
    gap: 28px;
    margin: 30px 0;
}

.cer-columns-1 { grid-template-columns: 1fr; }
.cer-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cer-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cer-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cer-event-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cer-event-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.11);
    box-shadow: 0 11px 28px rgba(0, 0, 0, 0.10);
}

.cer-event-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.cer-event-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cer-event-card-body {
    padding: 22px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.cer-event-card-title {
    margin: 0 0 14px;
    line-height: 1.2;
}

.cer-event-card-title a {
    text-decoration: none;
}

.cer-event-card-meta {
    width: 100%;
    margin-bottom: 18px;
    font-size: 0.9em;
    line-height: 1.35;
}

.cer-event-card-date,
.cer-event-card-time,
.cer-event-card-location {
    position: relative;
    padding-left: 24px;
}

.cer-event-card-date,
.cer-event-card-time {
    color: #607986;
}

.cer-event-card-date {
    font-weight: 600;
    margin-bottom: 4px;
}

.cer-event-card-time {
    margin-bottom: 10px;
}

.cer-event-card-location {
    color: #333;
    margin-top: 2px;
}

.cer-event-card-date::before,
.cer-event-card-time::before,
.cer-event-card-location::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 15px;
    height: 15px;
    background-color: currentColor;
    opacity: 0.72;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.cer-event-card-date::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2h2v2h6V2h2v2h2a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h2V2Zm12 8H5v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9ZM6 6a1 1 0 0 0-1 1v1h14V7a1 1 0 0 0-1-1H6Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2h2v2h6V2h2v2h2a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h2V2Zm12 8H5v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9ZM6 6a1 1 0 0 0-1 1v1h14V7a1 1 0 0 0-1-1H6Z'/%3E%3C/svg%3E");
}

.cer-event-card-time::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm1 3v4.59l3.2 3.2-1.41 1.42L11 12.41V7h2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm1 3v4.59l3.2 3.2-1.41 1.42L11 12.41V7h2Z'/%3E%3C/svg%3E");
}

.cer-event-card-location::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a7 7 0 0 1 7 7c0 5.25-7 13-7 13S5 14.25 5 9a7 7 0 0 1 7-7Zm0 2a5 5 0 0 0-5 5c0 3.16 3.2 7.81 5 10.17C13.8 16.81 17 12.16 17 9a5 5 0 0 0-5-5Zm0 2.5A2.5 2.5 0 1 1 12 11a2.5 2.5 0 0 1 0-5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a7 7 0 0 1 7 7c0 5.25-7 13-7 13S5 14.25 5 9a7 7 0 0 1 7-7Zm0 2a5 5 0 0 0-5 5c0 3.16 3.2 7.81 5 10.17C13.8 16.81 17 12.16 17 9a5 5 0 0 0-5-5Zm0 2.5A2.5 2.5 0 1 1 12 11a2.5 2.5 0 0 1 0-5Z'/%3E%3C/svg%3E");
}

.cer-event-card-location .cer-location-venue,
.cer-event-card-location .cer-location-address,
.cer-event-detail-location .cer-location-venue,
.cer-event-detail-location .cer-location-address {
    display: block;
}

.cer-location-venue {
    font-weight: inherit;
}

.cer-event-card-location .cer-location-address {
    margin-top: 2px;
    font-size: 0.92em;
    line-height: 1.35;
    opacity: 0.82;
}

.cer-event-card-location .cer-location-virtual {
    display: block;
    margin-top: 2px;
    font-size: 0.92em;
    line-height: 1.35;
    opacity: 0.82;
}

.cer-button {
    display: inline-block;
    margin-top: auto;
    cursor: pointer;
}

.cer-event-card-body > .cer-button {
    margin-top: auto !important;
}

.cer-single-event {
    margin-bottom: 30px;
}

.cer-single-event-has-image {
    display: grid;
    grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.cer-single-event-image {
    margin: 0;
}

.cer-single-event-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.cer-event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.cer-single-event:not(.cer-single-event-has-image) .cer-event-details {
    margin-bottom: 30px;
}

.cer-event-detail-schedule,
.cer-event-detail-location,
.cer-event-detail-virtual,
.cer-event-detail-full {
    grid-column: span 2;
}

.cer-event-date-line,
.cer-event-time-line {
    display: block;
}

.cer-event-time-line {
    margin-top: 2px;
}

.cer-event-detail {
    background: #fff;
    padding: 15px 18px;
}

.cer-event-detail strong,
.cer-event-detail span {
    display: block;
}

.cer-event-detail strong {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.cer-event-content {
    margin-bottom: 36px;
}

.cer-rsvp-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.cer-rsvp-form {
    max-width: 650px;
}

.cer-form-field {
    margin-bottom: 16px;
}

.cer-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.cer-form-field input {
    width: 100%;
    box-sizing: border-box;
}

.cer-turnstile-wrap {
    margin: 18px 0;
}

.cer-rsvp-form .cer-button {
    background: #5b7f95 !important;
    border: 1px solid #5b7f95 !important;
    color: #fff !important;
    box-shadow: none;
}

.cer-rsvp-form .cer-button:hover,
.cer-rsvp-form .cer-button:focus,
.cer-rsvp-form .cer-button:active {
    background: #5b7f95 !important;
    border-color: #5b7f95 !important;
    color: #fff !important;
}

.cer-rsvp-form .cer-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 127, 149, 0.25);
}

.cer-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.cer-message {
    padding: 12px 15px;
    margin: 0 0 18px;
    border: 1px solid rgba(0, 0, 0, 0.16);
}

.cer-message-success {
    border-left: 4px solid #46b450;
}

.cer-message-error {
    border-left: 4px solid #d63638;
}

.cer-message-notice {
    border-left: 4px solid #dba617;
}

@media (max-width: 989px) {
    .cer-columns-3,
    .cer-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cer-single-event-has-image {
        grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 767px) {
    .cer-columns-2,
    .cer-columns-3,
    .cer-columns-4,
    .cer-event-details,
    .cer-single-event-has-image {
        grid-template-columns: 1fr;
    }

    .cer-single-event-has-image {
        gap: 20px;
    }

    .cer-single-event-image img {
        max-height: 320px;
    }

    .cer-event-detail-schedule,
    .cer-event-detail-location,
    .cer-event-detail-virtual,
    .cer-event-detail-full {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cer-event-card {
        transition: none;
    }

    .cer-event-card:hover {
        transform: none;
    }
}
