.mm-featured-news { padding: clamp(3rem, 4vw + 1rem, 5rem) 0; }
.mm-featured-news--bg-light-grey { background: var(--wp--preset--color--light-grey); }
.mm-featured-news--bg-white      { background: var(--wp--preset--color--mist-0); }
.mm-featured-news--bg-navy       { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--mist-0); }
.mm-featured-news--bg-navy .mm-featured-news__headline,
.mm-featured-news--bg-navy .mm-featured-news__summary { color: var(--wp--preset--color--mist-0); }

.mm-featured-news__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wp--preset--color--mist-6);  /* color spec §4 — eyebrow on light bg → mist-6 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.875rem;
}
.mm-featured-news--bg-navy .mm-featured-news__eyebrow { color: rgba(255, 255, 255, 0.7); }

.mm-featured-news__headline {
    font-family: var(--wp--preset--font-family--azo-sans);
    font-weight: 700;
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    line-height: 1.2;
    color: var(--wp--preset--color--ink);
    margin: 0 0 0.75rem;
}
.mm-featured-news__date {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.55);
    margin: 0 0 0.5rem;
}
.mm-featured-news__summary {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.78);
    margin-bottom: 1.5rem;
}
.mm-featured-news__summary > *:first-child { margin-top: 0; }
.mm-featured-news__summary > *:last-child  { margin-bottom: 0; }

/* -------------------- Spotlight layout (single image + text) -------------------- */
.mm-featured-news__spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
}
.mm-featured-news--image-right .mm-featured-news__spotlight {
    grid-template-columns: 1fr 1fr;
}
.mm-featured-news--image-right .mm-featured-news__media { order: 2; }
.mm-featured-news--image-right .mm-featured-news__copy  { order: 1; }

/* Centered layout: image stacks above text, everything centered. */
.mm-featured-news--image-centered .mm-featured-news__spotlight {
    grid-template-columns: 1fr;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    gap: 1.75rem;
}
.mm-featured-news--image-centered .mm-featured-news__media {
    max-width: 640px;
    margin: 0 auto;
}
.mm-featured-news--image-centered .mm-featured-news__copy {
    text-align: center;
}
.mm-featured-news--image-centered .mm-featured-news__summary {
    margin-left: auto;
    margin-right: auto;
    max-width: 60ch;
}
.mm-featured-news--image-centered .mm-featured-news__eyebrow {
    display: inline-block;
}

@media (max-width: 880px) {
    .mm-featured-news__spotlight { grid-template-columns: 1fr; }
    .mm-featured-news--image-right .mm-featured-news__media,
    .mm-featured-news--image-right .mm-featured-news__copy { order: 0; }
}

.mm-featured-news__media {
    background: var(--wp--preset--color--mist-0);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(0, 30, 102, 0.08);
}
.mm-featured-news__media img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;     /* show the WHOLE image, no cropping */
    display: block;
    margin: 0 auto;
}

/* -------------------- Comparison layout (before/after logo swap) -------------------- */
.mm-featured-news--comparison { text-align: center; }
.mm-featured-news--comparison .mm-featured-news__header {
    margin-bottom: 1.5rem;
}

.mm-featured-news__swap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
    justify-items: stretch;
    max-width: 880px;
    margin: 0 auto 2rem;
}
@media (max-width: 720px) {
    .mm-featured-news__swap {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
    }
    .mm-featured-news__arrow { transform: rotate(90deg); }
}

.mm-featured-news__card {
    background: var(--wp--preset--color--mist-0);
    border-radius: 14px;
    padding: 1.75rem;
    margin: 0;
    box-shadow: 0 6px 22px rgba(0, 30, 102, 0.10);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mm-featured-news__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 30, 102, 0.16);
}

/* Cap height so tall stacked logos fit without overflowing, but allow full
   width of the card's content area so small horizontal logos render large
   enough to read. object-fit:contain is harmless here and preserves aspect. */
.mm-featured-news__card img {
    max-width: 100%;
    max-height: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.mm-featured-news__card-text {
    font-family: var(--wp--preset--font-family--azo-sans, azo-sans-web, sans-serif);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--wp--preset--color--ink);
    text-align: center;
}

/* Arrow column. justify-self:center keeps the SVG centered horizontally
   inside its grid track regardless of card heights. */
.mm-featured-news__arrow {
    width: 112px;
    height: 42px;
    flex-shrink: 0;
    justify-self: center;
    align-self: center;
}
.mm-featured-news__arrow svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mm-featured-news__arrow line,
.mm-featured-news__arrow polyline {
    animation: mm-fn-arrow-pulse 2.4s ease-in-out infinite;
}
@keyframes mm-fn-arrow-pulse {
    0%, 100% { opacity: 0.65; transform: translateX(0); }
    50%      { opacity: 1;    transform: translateX(2px); }
}

.mm-featured-news__copy--centered {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
