/* ==========================================================================
   Homepage: "Coming up" (current event)
   Takes the outreach slot while an event is current. Builds on the .orh
   styles in outreach.css, so both sections look like one family.
   ========================================================================== */

.evh-poster-wrap {
    position: relative;
    max-width: 600px;
    padding: 18px 18px 0;
}

.evh-poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3.3;
    padding: 10px 10px 34px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .25);
    transform: rotate(-3deg);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}

@media (hover: hover) {
    .evh-poster:hover { transform: rotate(0deg) scale(1.02); box-shadow: 0 34px 60px -20px rgba(0, 0, 0, .7); }
}

.evh-poster:focus-visible { transform: rotate(0deg) scale(1.02); }

.evh-poster-img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Branded stand-in; sits under the cover image, so it shows if there is no image or it fails to load. */
.evh-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 18px),
        radial-gradient(circle at 30% 20%, rgba(242, 107, 15, .28), transparent 60%),
        #2b3f3a;
    color: #fff;
}

.evh-ph i { font-size: 64px; color: var(--orh-accent-light); }
.evh-ph span { font-family: 'itgraflo', var(--accent-font); font-size: 28px; transform: rotate(-3deg); }

.evh-poster-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Date stamp: same family as the "+N more" sticker on the outreach version */
.evh-date {
    position: absolute;
    right: 0;
    bottom: -14px;
    z-index: 2;
    width: 104px;
    height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px dashed rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: var(--or-accent);
    color: #fff;
    transform: rotate(8deg);
    box-shadow: 0 0 0 6px var(--or-accent), 0 18px 30px -10px rgba(0, 0, 0, .5);
    pointer-events: none;
}

.evh-date strong { font-family: var(--accent-font); font-size: 32px; font-weight: 800; line-height: 1; white-space: nowrap; }
.evh-date span { font-family: 'itgraflo', var(--accent-font); font-size: 20px; line-height: 1; margin-top: 4px; }

/* "Happening today" in place of the handwritten kicker */
.evh-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 7px 16px;
    border-radius: 100px;
    background: var(--or-accent);
    color: var(--or-ink);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.evh-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--or-ink);
    animation: evh-pulse 1.6s ease-in-out infinite;
}

@keyframes evh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.7); }
}

.evh-deadline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -14px 0 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--orh-accent-light);
}

/* The main button opens a page/link here, not a lightbox */
.evh .or-btn { display: inline-flex; align-items: center; gap: 10px; }

/* Date tile in "Also coming up" (instead of a photo thumb) */
.evh-more-date {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.evh-more-date strong { font-family: var(--accent-font); font-size: 18px; font-weight: 800; white-space: nowrap; }
.evh-more-date small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orh-accent-light); margin-top: 3px; }

/* "24–26" style ranges need a smaller number to fit the circle / tile */
.evh-date.evh-date--range strong { font-size: 24px; }
.evh-more-date.evh-date--range strong { font-size: 13px; }

@media (max-width: 991px) {
    .evh-poster-wrap { margin: 0 auto; width: 100%; max-width: 560px; }
}

@media (max-width: 575px) {
    .evh-poster-wrap { padding: 12px 8px 0; }
    .evh-poster { padding: 6px 6px 20px; transform: rotate(-2deg); }
    .evh-ph i { font-size: 48px; }
    .evh-ph span { font-size: 22px; }
    .evh-date { width: 82px; height: 82px; right: -2px; bottom: -18px; }
    .evh-date strong { font-size: 24px; }
    .evh-date span { font-size: 16px; }
    .evh-date.evh-date--range strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .evh-live-dot { animation: none; }
}
