/* Rich text rendered from sanitized event content. */
.event-public-rich-text h3,
.event-public-rich-text h4,
.event-public-rich-text p,
.event-public-rich-text ul,
.event-public-rich-text ol,
.event-public-rich-text blockquote {
    margin: 0 0 0.9rem;
}

.event-public-rich-text h3 {
    color: #0b1f3a;
    font-size: 1.28rem;
    font-weight: 950;
    line-height: 1.25;
}

.event-public-rich-text h4 {
    color: #0b1f3a;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
}

.event-public-rich-text ul,
.event-public-rich-text ol {
    padding-left: 1.35rem;
    list-style-position: outside;
}

.event-public-rich-text li + li {
    margin-top: 0.35rem;
}

.event-public-rich-text blockquote {
    border-left: 4px solid rgba(217, 170, 63, 0.72);
    color: rgba(19, 34, 56, 0.76);
    padding-left: 1rem;
}

.event-public-rich-text a {
    color: #1f4f78;
    font-weight: 800;
    text-decoration: underline;
}

.public-events-page {
    background:
        radial-gradient(circle at top left, rgba(217, 170, 63, 0.14), transparent 24rem),
        radial-gradient(circle at bottom right, rgba(31, 79, 120, 0.08), transparent 20rem),
        linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.public-events-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 520px;
    color: #fff;
}

.public-events-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(1.05);
    z-index: -2;
}

.public-events-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 22, 44, 0.92), rgba(7, 22, 44, 0.74), rgba(7, 22, 44, 0.48)),
        radial-gradient(circle at 18% 30%, rgba(217, 170, 63, 0.22), transparent 18rem);
    z-index: -1;
}

.public-events-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 16px),
        linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 34%),
        radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.08), transparent 14rem);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.public-events-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.8fr);
    gap: 1.5rem;
    align-items: end;
}

.public-events-hero__title {
    margin: 1rem 0 0;
    max-width: 5.5em;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.public-events-hero__subtitle {
    margin: 1.1rem 0 0;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.8;
}

.public-events-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.public-events-hero__summary {
    display: grid;
    gap: 0.85rem;
}

.public-events-hero__summary-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 32px rgba(7, 22, 44, 0.22);
}

.public-events-hero__summary-card span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-events-hero__summary-card strong {
    display: block;
    margin-top: 0.45rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 950;
    line-height: 1.35;
}

.public-events-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.85rem;
}

.public-events-section-head__eyebrow {
    margin: 0;
    color: #7f2337;
    font-size: 0.8rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.public-events-section-head__title {
    margin: 0.55rem 0 0;
    color: #0b1f3a;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.public-events-section-head__text {
    max-width: 34rem;
    margin: 0;
    color: rgba(19, 34, 56, 0.72);
    font-size: 0.95rem;
    line-height: 1.8;
}

.public-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.public-premium-enter {
    opacity: 0;
    transform: translateY(18px);
    animation: public-premium-enter 600ms ease forwards;
    animation-delay: var(--enter-delay, 0ms);
}

@keyframes public-premium-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.public-premium-card,
.public-event-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(217, 170, 63, 0.08), transparent 10rem),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 44px rgba(11, 31, 58, 0.1);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.public-premium-card:hover,
.public-event-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 170, 63, 0.22);
    box-shadow: 0 28px 58px rgba(11, 31, 58, 0.14);
}

.public-event-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    margin-bottom: 1.45rem;
}

.public-event-card__featured-media,
.public-event-card__featured-content {
    min-width: 0;
}

.public-event-card__featured-content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.public-event-card__featured-kicker {
    color: #7f2337;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.public-event-card__featured-title {
    margin: 0.85rem 0 0;
    color: #0b1f3a;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1;
}

.public-event-card__featured-text {
    margin: 1rem 0 0;
    color: rgba(19, 34, 56, 0.74);
    font-size: 0.98rem;
    line-height: 1.8;
}

.public-event-card__meta {
    display: grid;
    gap: 0.8rem;
}

.public-event-card__meta--featured {
    margin-top: 1.35rem;
}

.public-event-card__meta-item {
    border-bottom: 1px solid rgba(11, 31, 58, 0.06);
    padding-bottom: 0.8rem;
}

.public-event-card__meta-item span {
    display: block;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f2337;
}

.public-event-card__meta-item strong {
    display: block;
    margin-top: 0.3rem;
    color: #0b1f3a;
    font-size: 0.98rem;
}

.public-event-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.public-event-card__stats--featured {
    margin-top: 1.35rem;
}

.public-event-card__stat {
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem 1.05rem;
}

.public-event-card__stat span {
    display: block;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f2337;
}

.public-event-card__stat strong {
    display: block;
    margin-top: 0.4rem;
    color: #0b1f3a;
    font-size: 1.15rem;
    line-height: 1.1;
}

.public-event-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1.6rem;
}

.public-premium-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #0b1f3a;
}

.public-event-card--featured .public-premium-media {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
}

.public-premium-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease, filter 300ms ease;
}

.public-premium-media::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.15) 44%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.16) 56%, transparent 72%);
    transform: translateX(-130%) skewX(-18deg);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: transform 1300ms ease, opacity 450ms ease;
}

.public-premium-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 35%, rgba(7, 22, 44, 0.46) 100%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
    transition: opacity 300ms ease;
}

.public-premium-card:hover .public-premium-media::before,
.public-event-card:hover .public-premium-media::before {
    transform: translateX(130%) skewX(-18deg);
    opacity: 1;
}

.public-premium-card:hover .public-premium-media::after,
.public-event-card:hover .public-premium-media::after {
    opacity: 0.9;
}

.public-premium-card:hover .public-premium-media img,
.public-event-card:hover .public-premium-media img {
    transform: scale(1.06);
    filter: saturate(1.06);
}

.public-premium-glass-hover {
    position: relative;
}

.public-premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.48rem 0.84rem;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.public-premium-badge--gold {
    background: rgba(255, 244, 207, 0.96);
    color: #8b6918;
    border-color: rgba(217, 170, 63, 0.25);
}

.public-premium-badge--navy {
    background: rgba(255, 255, 255, 0.92);
    color: #0b1f3a;
    border-color: rgba(255, 255, 255, 0.28);
}

.public-premium-badge--soft {
    background: rgba(232, 240, 251, 0.92);
    color: #1f4f78;
    border-color: rgba(31, 79, 120, 0.12);
}

.public-premium-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.95rem;
    border-radius: 999px;
    padding: 0.82rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.public-premium-cta:hover {
    transform: translateY(-1px);
}

.public-premium-cta--primary {
    background: linear-gradient(135deg, #d9aa3f, #f2ce75);
    color: #0b1f3a;
    box-shadow: 0 14px 24px rgba(217, 170, 63, 0.22);
}

.public-premium-cta--secondary {
    border: 1px solid rgba(11, 31, 58, 0.12);
    background: #fff;
    color: #0b1f3a;
}

.public-event-card__badges {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem;
}

.public-event-card__media-caption {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 3;
    padding: 1rem;
}

.public-events-empty {
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.96);
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: 0 16px 36px rgba(11, 31, 58, 0.08);
}

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

    .public-event-card--featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .public-events-hero__content,
    .public-events-grid,
    .public-event-card__stats {
        grid-template-columns: 1fr;
    }

    .public-events-hero {
        min-height: 0;
    }

    .public-events-section-head {
        align-items: flex-start;
    }

    .public-events-hero__actions,
    .public-event-card__actions {
        width: 100%;
    }

    .public-premium-cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-premium-enter {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .public-premium-card,
    .public-event-card,
    .public-premium-media img,
    .public-premium-media::before,
    .public-premium-media::after,
    .public-premium-cta {
        transition: none;
    }
}
