.sp-local-upcoming .sp-upcoming-link{display:flex;justify-content:flex-end;margin-bottom:24px}
.sp-local-upcoming .sp-event-grid{align-items:stretch}
.sp-local-upcoming .sp-event-card{display:flex;flex-direction:column;min-width:0;background:white;border-radius:16px;overflow:hidden;box-shadow:0 8px 28px #18365808}
.sp-local-upcoming .sp-event-card>a{display:block}
.sp-local-upcoming .sp-event-card>a>img{display:block;aspect-ratio:16/10;object-fit:cover;width:100%}
.sp-local-upcoming .sp-card-body{display:flex;flex-direction:column;flex:1;padding:26px}
.sp-local-upcoming .sp-card-body h3{font-size:24px;line-height:1.3}
.sp-local-upcoming .sp-card-body>p:not(.sp-eyebrow){font-size:14px;color:#63728a}
.sp-local-upcoming .sp-card-foot{margin-top:auto;flex-wrap:wrap}
.shpik-platform .sp-event-status{display:block;width:fit-content;padding:8px 12px;margin:0 0 18px;border-radius:8px;background:#edf3ff;color:#234fb4;font-size:13px;line-height:1.5;font-weight:600}
.shpik-platform .sp-event-status-ongoing{background:#fff4df;color:#805314}
.shpik-platform .sp-event-status-ended,.shpik-platform .sp-event-status-unscheduled{background:#eef0f4;color:#526075}
/* Join the separate Elementor heading and local event widgets without stacked section padding. */
body .elementor-top-section:has(+ .elementor-top-section .sp-local-upcoming) .text-box-section{padding-bottom:24px}
body .elementor-top-section:has(+ .elementor-top-section .sp-local-upcoming) .text-box-section .text-wrapper{margin-bottom:0}
body .elementor-top-section:has(+ .elementor-top-section .sp-local-upcoming) .text-box-section .text-wrapper>p:last-child{margin-bottom:0}
body .elementor-top-section:has(.text-box-section)+.elementor-top-section .sp-local-upcoming{padding-top:0}
/* Support both the plugin page template and a shortcode inside the live theme. */
body .static-page-box:has(.sp-event-archive){width:100%;max-width:none}
body .sp-shell:has(.sp-event-archive){width:100%;max-width:1464px}
body .sp-event-archive .sp-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}
body .sp-event-archive .sp-filters label{margin:0;min-width:180px;max-width:100%}
body .sp-event-archive .sp-filters select,body.shpik-restyle #container .sp-event-archive .sp-filters select{appearance:none;-webkit-appearance:none;height:48px;min-height:48px;padding:0 40px 0 14px;line-height:normal;width:100%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2353627b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;background-size:16px 16px}
body .sp-event-archive .sp-filters button.sp-button{height:48px;min-height:48px;margin:0;padding:0 24px;align-self:flex-end;line-height:1.4}
.sp-local-upcoming .sp-featured-past-note{grid-column:1/-1;font-size:14px;font-weight:600;color:#536582;margin:0}
@media(max-width:700px){body .sp-event-archive .sp-filters{align-items:stretch}body .sp-event-archive .sp-filters label{width:100%}body .sp-event-archive .sp-filters button.sp-button{align-self:stretch}}

/* Event archive banner: matches the Learn library without affecting other headings. */
body .sp-event-archive > .sp-heading {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: block;
    padding: 40px;
    margin: 40px 0 32px;
    border-radius: 22px;
    color: #fff;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px),radial-gradient(ellipse at top right,#337af7,transparent 65%),linear-gradient(120deg,#1133b3,#1652e4);
    background-size: 96px 96px,96px 96px,auto,auto;
}
body .sp-event-archive > .sp-heading::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    border: 35px solid rgba(255,255,255,.09);
    border-radius: 50%;
    right: -90px;
    top: -70px;
    pointer-events: none;
}
body .sp-event-archive > .sp-heading :is(h2,p,.sp-eyebrow) { color: #fff; }
body .sp-event-archive > .sp-heading h2 { margin: 8px 0 20px; }
body .sp-event-archive > .sp-heading > p { max-width: 680px; margin: 0; }
@media(max-width:767px) {
    body .sp-event-archive > .sp-heading { padding: 28px 24px; border-radius: 16px; margin-top: 24px; }
    body .sp-event-archive > .sp-heading::after { right: -160px; }
}
