/* ===========================================================
   Alumni + Results — full redesign components
   Shares tokens with nma-premium.css (loaded after this file).
   =========================================================== */

/* ——— Alumnus card — magazine-style portrait with scrim caption ——— */
.nma-alumnus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}
.nma-alumnus-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--nma-gray-100, #f1f3f6);
    box-shadow: 0 1px 3px rgba(15, 39, 68, 0.08);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.nma-alumnus-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 39, 68, 0.18);
}
.nma-alumnus-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.nma-alumnus-card:hover .nma-alumnus-card__photo {
    transform: scale(1.04);
}
.nma-alumnus-card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 20, 38, 0.92) 0%, rgba(10, 20, 38, 0.45) 42%, transparent 68%);
}
.nma-alumnus-card__batch {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--nma-white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}
.nma-alumnus-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.1rem 1.15rem;
    color: var(--nma-white);
}
.nma-alumnus-card__name {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}
.nma-alumnus-card__role {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}
.nma-alumnus-card__campus {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.72rem;
    color: var(--nma-gold);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.nma-alumnus-card__campus svg { flex-shrink: 0; opacity: 0.9; }

/* ——— Admissions form — unify the intro/form split into one bordered,
   shadowed card instead of a flush edge-to-edge two-column strip. ——— */
.nma-adm-form-v2 {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 39, 68, 0.14);
    border: 1px solid var(--nma-gray-200);
}
@media (max-width: 900px) {
    .nma-adm-form-v2 { border-radius: 16px; }
}

/* ——— Registration panel — restyled outer chrome only; internal form
   fields keep their existing, already-accessible markup/classes ——— */
.nma-alumni-register-v2 {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 39, 68, 0.14);
    border: 1px solid var(--nma-gray-200);
}
.nma-alumni-register-v2 .nma-alumni-register-intro {
    background: linear-gradient(160deg, var(--nma-navy) 0%, #060f2b 100%);
    border-radius: 0;
}
.nma-alumni-register-v2 .nma-alumni-register-card {
    border-radius: 0;
    box-shadow: none;
    border: none;
}
@media (max-width: 900px) {
    .nma-alumni-register-v2 { grid-template-columns: 1fr; border-radius: 16px; }
}

/* ——— Signature reveal: result posters/videos clip-path in rather than
   just fading, per the site's "editorial, cinematic, used selectively"
   motion language. Overrides the site-wide translateY reveal for just
   these two tile types. ——— */
.nma-poster-frame[data-reveal-item],
.nma-video-card[data-reveal-item] {
    transform: none;
    clip-path: inset(0 0 0 100%);
    transition: opacity var(--nma-reveal-duration) var(--nma-reveal-ease),
        clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-delay, 0s) + var(--reveal-i, 0) * 0.06s);
}
/* Revealed state leaves room on the top/left so the trophy badge
   (positioned outside the card's own box at top:-14px; left:-14px)
   doesn't get clipped by the inset() once the wipe completes. */
.nma-poster-frame[data-reveal-item].is-revealed {
    clip-path: inset(-18px 0 0 -18px);
}
.nma-video-card[data-reveal-item].is-revealed {
    clip-path: inset(0 0 0 0%);
}
@media (prefers-reduced-motion: reduce) {
    .nma-poster-frame[data-reveal-item],
    .nma-video-card[data-reveal-item] {
        clip-path: none;
    }
}

/* ——— Results: framed poster showcase — a centered, wrapping row of
   gallery-mounted posters rather than a fixed grid, so it stays balanced
   whether there are 1, 2, or a dozen posters (a bento/masonry grid falls
   apart visually with the low, variable counts this section actually
   has — usually 2-4 posters per session). ——— */
.nma-poster-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}
.nma-poster-frame {
    position: relative;
    display: block;
    width: min(440px, 100%);
    padding: 1.1rem;
    background: linear-gradient(160deg, #ffffff 0%, #fdf9f0 100%);
    border: 1px solid var(--nma-gray-200);
    border-radius: 22px;
    box-shadow: 0 1px 3px rgba(15, 39, 68, 0.07), 0 24px 48px -22px rgba(15, 39, 68, 0.22);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.nma-poster-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 1px 3px rgba(15, 39, 68, 0.08), 0 36px 64px -20px rgba(15, 39, 68, 0.3);
    border-color: rgba(214, 158, 46, 0.55);
}
.nma-poster-frame__badge {
    position: absolute;
    top: -14px;
    left: -14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nma-gold) 0%, var(--nma-gold-dark) 100%);
    color: var(--nma-navy);
    box-shadow: 0 10px 24px rgba(214, 158, 46, 0.45), 0 0 0 4px #fff;
}
.nma-poster-frame__mat {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--nma-navy);
}
.nma-poster-frame__mat::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(214, 158, 46, 0.6);
    border-radius: inherit;
    pointer-events: none;
}
.nma-poster-frame__mat img {
    width: 100%;
    height: auto;
    display: block;
}
.nma-poster-frame__cta {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%, 10px);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: var(--nma-navy);
    color: var(--nma-white);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(15, 39, 68, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.nma-poster-frame:hover .nma-poster-frame__cta {
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (max-width: 768px) {
    .nma-poster-showcase { gap: 1.75rem; }
    .nma-poster-frame__cta { display: none; }
}

/* ——— Results: Posters/Videos switcher ——— */
.nma-results-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.nma-results-dropdown {
    position: relative;
    display: inline-block;
}
.nma-results-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nma-red) 0%, var(--nma-red-dark) 100%);
    color: var(--nma-white);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(169, 32, 32, 0.3);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.nma-results-dropdown__toggle svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.nma-results-dropdown.is-open .nma-results-dropdown__toggle svg {
    transform: rotate(180deg);
}
.nma-results-dropdown__toggle:hover,
.nma-results-dropdown.is-open .nma-results-dropdown__toggle {
    box-shadow: 0 10px 26px rgba(169, 32, 32, 0.4), 0 0 0 4px rgba(214, 158, 46, 0.2);
    transform: translateY(-1px);
}
.nma-results-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 220px;
    background: var(--nma-white);
    border: 1px solid var(--nma-gray-200);
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(15, 39, 68, 0.18);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 5;
}
.nma-results-dropdown.is-open .nma-results-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nma-results-dropdown__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.9rem;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--nma-navy);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.nma-results-dropdown__item:hover {
    background: rgba(169, 32, 32, 0.06);
    color: var(--nma-red);
}
.nma-results-dropdown__item.is-active {
    background: rgba(169, 32, 32, 0.08);
    color: var(--nma-red);
}

/* ——— Results: highlight videos — thumbnail + play button, opens the
   embed in the lightbox on click rather than auto-loading a YouTube
   iframe in the grid. ——— */
.nma-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}
.nma-video-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--nma-white);
    box-shadow: 0 1px 3px rgba(15, 39, 68, 0.06);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nma-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 39, 68, 0.16);
}
.nma-video-card__frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--nma-navy);
    overflow: hidden;
}
.nma-video-card__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.nma-video-card:hover .nma-video-card__frame img {
    transform: scale(1.04);
}
.nma-video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nma-video-card__play::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 39, 68, 0.35) 0%, transparent 45%);
}
.nma-video-card__play svg {
    position: relative;
    width: 60px;
    height: 60px;
    padding: 0.4rem 0 0 0.35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--nma-red);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}
.nma-video-card:hover .nma-video-card__play svg {
    transform: scale(1.08);
    background: var(--nma-white);
}
.nma-video-card__caption {
    display: block;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--nma-navy);
}

/* ——— Lightbox — used for full-size result posters and video playback,
   shared by both content types so there's one consistent modal
   language instead of a poster tab + a plain video grid. ——— */
.nma-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.nma-lightbox[hidden] { display: none; }
.nma-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 38, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nma-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--nma-white);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.nma-lightbox__close:hover {
    background: var(--nma-red);
    border-color: var(--nma-red);
}
.nma-lightbox__stage {
    position: relative;
    z-index: 1;
    max-width: min(960px, 92vw);
    max-height: 88vh;
    width: 100%;
}
.nma-lightbox__stage img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.nma-lightbox__stage iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ——— Results: big-number metric cards, alternating accent (matches the
   About hub cards' red/gold/navy convention for cross-page consistency) ——— */
.nma-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}
.nma-metric-card {
    padding: 1.75rem 1.5rem;
    background: var(--nma-white);
    border: 1px solid var(--nma-gray-200);
    border-radius: 14px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nma-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 39, 68, 0.1);
}
.nma-metric-card--red { border-top: 4px solid var(--nma-red); }
.nma-metric-card--gold { border-top: 4px solid var(--nma-gold); }
.nma-metric-card--navy { border-top: 4px solid var(--nma-navy); }
.nma-metric-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--nma-gray-100, #f1f3f6);
    color: var(--nma-red);
    margin-bottom: 0.9rem;
}
.nma-metric-card--gold .nma-metric-card__icon { color: var(--nma-gold-dark); }
.nma-metric-card--navy .nma-metric-card__icon { color: var(--nma-navy); }
.nma-metric-card strong {
    display: block;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--nma-navy);
    line-height: 1;
}
.nma-metric-card span {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: var(--nma-text-muted);
    font-weight: 600;
}
