/* Home: Community Voices (Skyline speakers pattern) + Stay Informed news — SFELK navy/red */
.sf-voices, .sf-news {
    padding: 3.2rem 0;
}
.sf-news {
    background: #F4F7FB;
    padding: 3.6rem 0 4rem;
}
.sf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.sf-eyebrow {
    margin: 0 0 0.35rem;
    color: #E10600;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.sf-section-head h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    font-weight: 700;
    color: #0C2E78;
    line-height: 1.15;
}
.sf-voices-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sf-voices-tools a {
    color: #E10600;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.sf-voices-tools a:hover {
    text-decoration: underline;
}
.sf-marquee-toggle {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #D5DEEE;
    border-radius: 999px;
    background: #fff;
    color: #0C2E78;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.sf-marquee-toggle svg {
    width: 0.95rem;
    height: 0.95rem;
}
.sf-marquee-toggle:hover {
    border-color: #E10600;
    background: #E10600;
    color: #fff;
    transform: scale(1.06);
}
.sf-marquee-icon-play,
.sf-marquee-toggle[aria-pressed="true"] .sf-marquee-icon-pause {
    display: none;
}
.sf-marquee-toggle[aria-pressed="true"] .sf-marquee-icon-play {
    display: block;
}

.sf-voice-marquee {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-top: -0.4rem;
    padding-top: 0.9rem;
    padding-bottom: 1.6rem;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4.5%, #000 95.5%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4.5%, #000 95.5%, transparent 100%);
    touch-action: pan-y pinch-zoom;
}
.sf-voice-track {
    display: flex;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: sf-voice-marquee 42s linear infinite;
    will-change: transform;
}
.sf-voice-marquee:hover .sf-voice-track,
.sf-voice-marquee:focus-within .sf-voice-track,
.sf-voice-marquee.is-paused .sf-voice-track {
    animation-play-state: paused;
}
@keyframes sf-voice-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.sf-voice-card {
    position: relative;
    flex: none;
    width: 18rem;
    margin-right: 1.25rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(12, 46, 120, 0.1), 0 2px 6px rgba(12, 46, 120, 0.05);
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.55s ease;
}
.sf-voice-card:hover,
.sf-voice-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(12, 46, 120, 0.16);
}
.sf-voice-flip {
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 30%, #d9dce3 0%, #b4b9c2 70%, #a2a7b0 100%);
    perspective: 1400px;
}
.sf-voice-flip-inner {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.95s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sf-voice-card:hover .sf-voice-flip-inner,
.sf-voice-card:focus-within .sf-voice-flip-inner {
    transform: rotateY(180deg);
}
.sf-voice-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.sf-voice-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 24, 70, 0) 50%, rgba(6, 24, 70, 0.18) 74%, rgba(6, 24, 70, 0.5) 100%);
    pointer-events: none;
}
.sf-voice-front img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.95s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sf-voice-card:hover .sf-voice-front img {
    transform: scale(1.06);
}
.sf-voice-ribbon {
    position: absolute;
    right: 0;
    bottom: 1.15rem;
    z-index: 1;
    min-width: 66%;
    height: 2.55rem;
    filter: drop-shadow(0 6px 12px rgba(8, 24, 70, 0.35));
    transform: translate3d(0, 0, 0);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.sf-voice-marquee:not(.is-in) .sf-voice-ribbon {
    transform: translate3d(105%, 0, 0);
}
.sf-voice-ribbon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
    padding: 0 0.95rem 0 1.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0) 48%),
        linear-gradient(90deg, #0A276E 0%, #0C2E78 42%, #14398C 100%);
    -webkit-clip-path: polygon(1.2rem 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(1.2rem 0, 100% 0, 100% 100%, 0 100%);
    color: #fff;
}
.sf-voice-ribbon svg {
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
}
.sf-voice-ribbon-inner > span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.02rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.sf-voice-back {
    display: grid;
    place-items: center;
    transform: rotateY(180deg);
    color: #fff;
    background: #08245F;
}
.sf-voice-back-photo {
    position: absolute;
    inset: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    object-fit: cover;
    filter: blur(6px) saturate(0.8);
    transform: scaleX(-1);
}
.sf-voice-back::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(165deg, rgba(12, 46, 120, 0.92) 0%, rgba(8, 36, 95, 0.95) 60%, rgba(6, 24, 70, 0.97) 100%);
}
.sf-voice-back-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 1.4rem 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.35s, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s;
}
.sf-voice-card:hover .sf-voice-back-content,
.sf-voice-card:focus-within .sf-voice-back-content {
    opacity: 1;
    transform: none;
}
.sf-voice-back-talk {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.02rem;
    font-style: italic;
    line-height: 1.35;
}
.sf-voice-back-name {
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
    font-weight: 600;
}
.sf-voice-card h3,
.sf-voice-card .sf-voice-role,
.sf-voice-card .sf-voice-quote {
    margin: 0;
    padding-right: 1rem;
    padding-left: 1rem;
}
.sf-voice-card h3 {
    padding-top: 0.9rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.08rem;
    color: #0C2E78;
}
.sf-voice-role {
    color: #5C6B80;
    font-size: 0.9rem;
}
.sf-voice-quote {
    padding-bottom: 1rem;
    color: #E10600 !important;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.4;
}

/* News */
.sf-news .sf-section-head {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #E6EDF5;
    margin-bottom: 1.8rem;
    position: relative;
}
.sf-news .sf-section-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 4.5rem;
    height: 3px;
    background: #E10600;
}
.sf-news-all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #E10600;
    border-radius: 0.35rem;
    padding: 0.55rem 1rem;
    color: #E10600 !important;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.sf-news-all:hover {
    background: #E10600;
    color: #fff !important;
}
.sf-news-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sf-news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #E6EDF5;
    border-radius: 0.4rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(12, 46, 120, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.sf-news-card:hover,
.sf-news-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(12, 46, 120, 0.14);
}
.sf-news-media {
    position: relative;
    margin: 0;
}
.sf-news-frame {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0B2C78;
}
.sf-news-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sf-news-card:hover .sf-news-frame img {
    transform: scale(1.06);
}
.sf-news-badge {
    position: absolute;
    left: 1.1rem;
    bottom: -1.4rem;
    display: grid;
    justify-items: center;
    min-width: 4.4rem;
    margin: 0;
    padding: 0.55rem 0.7rem 0.5rem;
    background: #E10600;
    color: #fff;
    box-shadow: 0 10px 20px rgba(225, 6, 0, 0.28);
}
.sf-news-badge strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.55rem;
    line-height: 1;
}
.sf-news-badge span {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.sf-news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 2.3rem 1.4rem 1.4rem;
}
.sf-news-category {
    margin: 0;
    color: #E10600;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.sf-news-board h3 {
    margin: 0.5rem 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}
.sf-news-board h3 a {
    color: #142033;
    text-decoration: none;
    transition: color 0.25s ease;
}
.sf-news-board h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}
.sf-news-card:hover h3 a {
    color: #E10600;
}
.sf-news-excerpt {
    flex: 1;
    margin: 0.65rem 0 0;
    color: #5C6B80;
    font-size: 0.93rem;
    line-height: 1.6;
}
.sf-news-more__link {
    color: inherit;
    text-decoration: none;
}
.sf-news-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1.1rem 0 0;
    padding-top: 0.95rem;
    border-top: 1px solid #E6EDF5;
    color: #E10600;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.sf-news-more span {
    transition: transform 0.3s ease;
}
.sf-news-card:hover .sf-news-more span {
    transform: translateX(5px);
}

@media (max-width: 980px) {
    .sf-news-board {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .sf-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Scroll entrance — Skyline-style staggered reveal */
.sf-voices .reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.sf-voices .reveal.is-in {
    opacity: 1;
    transform: none;
}
/* Marquee must stay visible + animating on phones (reveal opacity blocks perceived motion) */
.sf-voices .sf-voice-marquee.reveal {
    opacity: 1;
    transform: none;
}
/* Stay Informed — images must show immediately (no scroll-reveal hiding) */
.sf-news .sf-section-head.reveal,
.sf-news .sf-news-card.reveal {
    opacity: 1;
    transform: none;
    filter: none;
}
.sf-news-card.reveal {
    transition-delay: calc(var(--reveal-i, 0) * 0.11s);
}
.sf-news .sf-section-head::after {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.sf-news .sf-section-head.is-in::after {
    transform: scaleX(1);
}
.sf-news .sf-news-frame img {
    opacity: 1;
    transform: none;
    animation: none;
}
.sf-news .sf-news-badge {
    opacity: 1;
    transform: none;
    animation: none;
}
@keyframes sf-reveal-settle {
    from { transform: scale(1.08); opacity: 0.65; }
    to { transform: none; opacity: 1; }
}
@keyframes sf-reveal-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.86); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
    .sf-voice-marquee {
        overflow: hidden;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 98%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 98%, transparent 100%);
    }
    .sf-voice-track {
        animation: sf-voice-marquee 34s linear infinite;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .sf-voice-card {
        width: 15.5rem;
        margin-right: 1rem;
    }
    .sf-marquee-toggle {
        display: none;
    }
}
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
    .sf-voice-marquee.is-touch-hold .sf-voice-track {
        animation-play-state: paused;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sf-voice-track {
        animation: none;
    }
    .sf-voices .reveal,
    .sf-news .reveal,
    .sf-voice-marquee:not(.is-in) .sf-voice-ribbon,
    .sf-news .sf-section-head::after {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .sf-news-card.is-in .sf-news-frame img,
    .sf-news-card.is-in .sf-news-badge {
        animation: none;
    }
}
