/* Homepage hero: this month's events, one line, one event at a time (home/partials/month-events). */

.mev {
    --mev-purple: var(--e-global-color-primary, #3E2368);
    --mev-yellow: var(--e-global-color-accent, #FBBF24);

    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 760px;                /* same width as the three stat cards above */
    height: 44px;
    margin-top: 16px;
    padding: 0 14px 0 6px;
    border: 1px solid rgba(62, 35, 104, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 6px 18px rgba(62, 35, 104, .06);
    color: var(--mev-purple);
    text-decoration: none;
    font-family: "Outfit", sans-serif;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.mev:hover, .mev:focus-visible { color: var(--mev-purple); border-color: var(--mev-yellow); box-shadow: 0 8px 22px rgba(62, 35, 104, .10); }

.mev__tag {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--mev-yellow);
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mev-purple);
}

/* All events sit on top of each other; only the active one is visible. */
.mev__track { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; }
.mev__item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .45s ease, transform .45s ease;
}
.mev__item.is-active { opacity: 1; transform: translateY(0); }
.mev__item.is-leaving { opacity: 0; transform: translateY(-100%); }

.mev__date {
    flex: 0 0 auto;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.mev__date::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 10px;
    border-radius: 50%;
    vertical-align: middle;
    background: var(--e-global-color-72cc540, #7B75B4);
}
.mev__item--exam .mev__date::after { background: var(--e-global-color-af23060, #F69534); }
.mev__item--holiday .mev__date::after { background: var(--e-global-color-87afab0, #0EA5E9); }

.mev__title {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    color: var(--e-global-color-text, rgba(30, 27, 75, .75));
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mev__go { flex: 0 0 auto; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 767px) {
    .mev { height: 40px; margin-top: 12px; gap: 8px; padding-right: 10px; }
    .mev__tag { padding: 5px 9px; font-size: 10px; }
    .mev__date { font-size: 12px; }
    .mev__date::after { margin-left: 8px; }
    .mev__title { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .mev__item { transition: none; transform: none; }
    .mev__item.is-leaving { transform: none; }
}
