.community-index #view-events {
    --event-cyan: #4adcf4;
    --event-mint: #43dfa8;
    --event-violet: #9a70ff;
    --event-pink: #f7509a;
    --event-amber: #ffc857;
}

.community-index .events-public-hero {
    position: relative;
    isolation: isolate;
    min-height: 230px;
    margin-bottom: 18px;
    padding: clamp(28px, 5vw, 52px);
    overflow: hidden;
    border: 1px solid rgba(94, 213, 241, .17);
    border-radius: 28px;
    background:
        linear-gradient(112deg, rgba(45, 15, 54, .92), rgba(18, 19, 38, .96) 55%, rgba(9, 50, 63, .88)),
        #0c0f1c;
}
.community-index .events-public-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .38;
    background-image: radial-gradient(circle, rgba(255,255,255,.2) 1px, transparent 1.5px);
    background-size: 24px 24px;
    mask-image: linear-gradient(90deg, transparent 30%, #000 72%, transparent);
}
.community-index .events-public-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    right: clamp(80px, 13vw, 190px);
    width: 180px;
    height: 180px;
    border: 28px solid rgba(74, 220, 244, .07);
    border-right-color: rgba(247, 80, 154, .11);
    border-radius: 50%;
    transform: translateY(-50%) rotate(22deg);
}
.community-index .events-public-hero > div { max-width: 840px; }
.community-index .events-public-hero h1 { max-width: 820px; font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .91; letter-spacing: -.06em; }
.community-index .events-public-hero p { max-width: 650px; color: #adb4ca; font-size: clamp(.95rem, 1.5vw, 1.12rem); }
.community-index .events-public-hero .icon-button { align-self: flex-start; border-color: rgba(255,255,255,.16); background: rgba(8,10,20,.48); backdrop-filter: blur(12px); }

.community-index .event-public-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(16, 19, 33, .78);
}
.community-index .event-filter-tabs { display: flex; gap: 5px; min-width: 0; }
.community-index .event-filter-tabs button {
    min-height: 39px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #858da7;
    cursor: pointer;
    font: 800 .76rem "Outfit", sans-serif;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.community-index .event-filter-tabs button:hover { color: #e8ebf7; background: rgba(255,255,255,.045); }
.community-index .event-filter-tabs button:active { transform: scale(.96); }
.community-index .event-filter-tabs button.is-active { border-color: rgba(74,220,244,.2); background: rgba(74,220,244,.1); color: #bdf5ff; }
.community-index .event-filter-tabs button:focus-visible { outline: 2px solid var(--event-cyan); outline-offset: 2px; }
.community-index .event-public-count { padding: 0 10px; color: #8e96ad; font-size: .73rem; font-weight: 800; white-space: nowrap; }

.community-index .event-agenda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.community-index .event-agenda-card {
    display: grid;
    grid-template-columns: minmax(160px, 40%) minmax(0, 1fr);
    min-height: 265px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.014)), #111422;
}
.community-index .event-agenda-card.is-featured { grid-column: 1 / -1; grid-template-columns: minmax(320px, 52%) minmax(0, 1fr); min-height: 390px; border-color: rgba(74,220,244,.28); }
.community-index .event-agenda-card.is-past { filter: saturate(.68); }
.community-index .event-agenda-card.is-live { border-color: rgba(67,223,168,.4); box-shadow: 0 0 0 1px rgba(67,223,168,.08), 0 20px 55px rgba(0,0,0,.25); }
.community-index .event-agenda-card .event-card-cover { height: 100%; min-height: 265px; aspect-ratio: auto; }
.community-index .event-agenda-card.is-featured .event-card-cover { min-height: 390px; }
.community-index .event-agenda-card .event-card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(11,14,26,.28)), linear-gradient(0deg, rgba(5,7,15,.5), transparent 40%); pointer-events: none; }
.community-index .event-agenda-card .event-card-body { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(20px, 3vw, 34px); }
.community-index .event-agenda-card .event-card-body h2 { margin: 10px 0; font-size: clamp(1.35rem, 2.5vw, 2.25rem); }
.community-index .event-agenda-card.is-featured .event-card-body h2 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: .94; }
.community-index .event-agenda-card .event-card-body p { min-height: auto; -webkit-line-clamp: 3; }
.community-index .event-organizer {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 15px;
    padding: 7px 11px 7px 7px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
}
.community-index .event-organizer-logo {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 11px;
    background: #fff;
}
.community-index .event-organizer-logo img { width: 100%; height: 100%; object-fit: contain; }
.community-index .event-organizer > span:last-child { min-width: 0; }
.community-index .event-organizer small,
.community-index .event-organizer strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-index .event-organizer small { color: #818aa4; font-size: .58rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.community-index .event-organizer strong { max-width: 210px; margin-top: 2px; color: #e9ecf7; font-size: .74rem; }

.community-index .event-status-pill {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 999px;
    background: rgba(7,9,18,.76);
    color: #f2f4fb;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}
.community-index .event-status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--event-cyan); box-shadow: 0 0 12px rgba(74,220,244,.72); }
.community-index .is-live .event-status-pill i { background: var(--event-mint); box-shadow: 0 0 12px rgba(67,223,168,.8); animation: eventStatusPulse 1.6s ease-in-out infinite; }
.community-index .is-past .event-status-pill i { background: #8f96aa; box-shadow: none; }
.community-index .event-date-tile {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    min-width: 60px;
    min-height: 64px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 13px;
    background: rgba(7,9,18,.8);
    color: #fff;
    backdrop-filter: blur(12px);
}
.community-index .event-date-tile strong { font-size: 1.45rem; line-height: 1; }
.community-index .event-date-tile small { margin-top: 4px; color: var(--event-cyan); font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.community-index .event-card-resources { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; margin-top: 16px; }
.community-index .event-card-resources span { padding: 5px 8px; border: 1px solid rgba(154,112,255,.22); border-radius: 7px; background: rgba(154,112,255,.09); color: #cbbcff; font-size: .65rem; font-weight: 850; }
.community-index .event-card-resources:empty { display: none; }
.community-index .event-agenda-card .event-card-body footer { align-items: center; margin-top: 17px; }
.community-index .event-agenda-card .event-card-body footer strong { display: inline-flex; align-items: center; gap: 7px; color: var(--event-cyan); }
.community-index .event-agenda-card .event-card-body footer b { transition: transform .25s ease; }
.community-index .event-agenda-card:hover .event-card-body footer b { transform: translateX(4px); }
.community-index .event-card-location { position: relative; padding-left: 14px; }
.community-index .event-card-location::before { content: ""; position: absolute; top: .32em; left: 0; width: 7px; height: 7px; border: 2px solid #78839d; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

@keyframes eventStatusPulse { 50% { opacity: .5; transform: scale(.75); } }

@media (max-width: 980px) {
    .community-index .event-agenda-grid { grid-template-columns: 1fr; }
    .community-index .event-agenda-card.is-featured { grid-column: auto; grid-template-columns: minmax(250px, 46%) minmax(0, 1fr); min-height: 340px; }
    .community-index .event-agenda-card.is-featured .event-card-cover { min-height: 340px; }
}
@media (max-width: 900px) {
    .community-index #view-events { min-width: 0; padding-bottom: 20px; overflow: clip; }
    .community-index .events-public-hero { display: block; min-height: 0; margin-bottom: 12px; padding: 22px 18px 20px; border-radius: 21px; }
    .community-index .events-public-hero::after { display: none; }
    .community-index .events-public-hero h1 { max-width: 11ch; margin: 10px 0 9px; font-size: clamp(2rem, 9.7vw, 2.65rem); line-height: .96; }
    .community-index .events-public-hero p { margin: 0; font-size: .88rem; line-height: 1.5; }
    .community-index .events-public-hero .icon-button { position: absolute; top: 16px; right: 16px; width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
    .community-index .event-public-toolbar { align-items: stretch; flex-direction: column; gap: 7px; margin-bottom: 12px; padding: 6px; }
    .community-index .event-filter-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
    .community-index .event-filter-tabs button { min-width: 0; min-height: 38px; padding-inline: 4px; font-size: .67rem; white-space: nowrap; }
    .community-index .event-public-count { overflow: hidden; padding: 2px 8px 4px; font-size: .67rem; text-overflow: ellipsis; }
    .community-index .event-agenda-grid { gap: 12px; }
    .community-index .event-agenda-card,
    .community-index .event-agenda-card.is-featured { display: block; min-height: 0; }
    .community-index .event-agenda-card .event-card-cover,
    .community-index .event-agenda-card.is-featured .event-card-cover { width: 100%; height: clamp(180px,44vw,225px); min-height: 0; aspect-ratio: auto; }
    .community-index .event-agenda-card .event-card-cover > img { width: 100%; height: 100%; }
    .community-index .event-agenda-card .event-card-body { min-width: 0; padding: 18px 16px 17px; }
    .community-index .event-agenda-card .event-card-body h2,
    .community-index .event-agenda-card.is-featured .event-card-body h2 { overflow-wrap: anywhere; font-size: 1.5rem; line-height: 1.02; }
    .community-index .event-agenda-card .event-card-body footer { align-items: flex-start; gap: 10px; flex-direction: column; }
    .community-index .event-card-location { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .community-index .event-organizer { margin-top: -42px; margin-bottom: 18px; position: relative; z-index: 3; background: rgba(14,17,29,.94); box-shadow: 0 10px 28px rgba(0,0,0,.3); }
    .community-index .event-organizer-logo { width: 54px; height: 54px; flex-basis: 54px; }
    .community-index .event-card-resources { margin-top: 12px; }
}
@media (max-width: 370px) {
    .community-index .events-public-hero h1 { font-size: 1.9rem; }
    .community-index .event-filter-tabs button { font-size: .61rem; }
}
@media (prefers-reduced-motion: reduce) {
    .community-index .is-live .event-status-pill i { animation: none; }
}
