/* ---- Research & Extension infographic ribbon blocks ---- */
.fnf-research-extension-section {
    padding-bottom: 18px;
}

.fnf-re-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1600px;
    margin: 40px auto 0;
    padding: 0 15px;
}

.fnf-re-block {
    display: flex;
    align-items: center;
    width: calc(33.333% - 20px);
    min-width: 320px;
    position: relative;
}

.fnf-re-hex-wrap {
    flex-shrink: 0;
    width: 110px;
    height: 124px;
    background-color: var(--re-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.fnf-re-hex-inner {
    width: 86px;
    height: 98px;
    background-color: #ffffff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-weight: 800;
    font-size: 1.8rem;
    font-family: 'Montserrat', sans-serif;
}

.fnf-re-ribbon {
    flex-grow: 1;
    background-color: var(--re-color);
    color: #ffffff;
    padding: 15px 40px 15px 40px;
    margin-left: -25px;
    min-height: 80px;
    display: flex;
    align-items: center;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    line-height: 1.3;
    z-index: 1;
}

.fnf-re-block-filter {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    display: flex;
    width: 100%;
    align-items: center;
}

.fnf-re-block--yellow { --re-color: #F4C542; }
.fnf-re-block--teal   { --re-color: #5BC0D4; }
.fnf-re-block--orange { --re-color: #F57C00; }
.fnf-re-block--lgray  { --re-color: #BDBDBD; }
.fnf-re-block--dgray  { --re-color: #5F5F5F; }

@media (max-width: 1024px) {
    .fnf-research-extension-section {
        padding-bottom: 14px;
    }

    .fnf-re-block {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .fnf-research-extension-section {
        padding-bottom: 10px;
    }

    .fnf-re-block {
        width: 100%;
        max-width: 450px;
    }
}

/* ---- re-ex KPI dashboard (moved from fnf-re-ex-style.css) ---- */
.fnf-re-ex-section {
    background: #f3f4f6;
    min-height: 720px;
    padding: 56px 46px 64px;
    box-sizing: border-box;
}

.fnf-sh-content {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

.fnf-sh-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 22px;
    align-items: stretch;
    --fnf-sh-row-gap: 16px;
    --fnf-sh-row-height: 102px;
}

.fnf-sh-col {
    display: flex;
    flex-direction: column;
    gap: var(--fnf-sh-row-gap);
}

.fnf-sh-col--feature {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, var(--fnf-sh-row-height)));
    gap: var(--fnf-sh-row-gap);
}

.fnf-sh-col--feature .fnf-sh-feature-card:nth-child(1) {
    grid-row: 1;
}

.fnf-sh-col--feature .fnf-sh-feature-card:nth-child(2) {
    grid-row: 2 / span 2;
}

.fnf-sh-col--feature .fnf-sh-feature-card:nth-child(3) {
    grid-row: 4;
}

.fnf-sh-col--compact {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, var(--fnf-sh-row-height)));
    gap: var(--fnf-sh-row-gap);
}

/* Left column (large cards) */
.fnf-sh-feature-card {
    background: rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    backdrop-filter: blur(12px) saturate(135%);
    overflow: hidden;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.fnf-sh-feature-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 48%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.fnf-sh-feature-body {
    flex: 1;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    column-gap: 14px;
    padding: 18px 20px;
}

.fnf-sh-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53935;
}

.fnf-sh-feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.fnf-sh-feature-label {
    font-family: 'Poppins', 'Arial Narrow', 'Helvetica Neue', sans-serif;
    font-size: clamp(14px, 1.06vw, 16px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111111;
}

.fnf-sh-feature-num {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(38px, 3.2vw, 48px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #090909;
    text-align: right;
    white-space: nowrap;
}

.fnf-sh-feature-bar {
    height: 10px;
    background: #e53935;
}

/* Middle + right columns (compact cards) */
.fnf-sh-compact-card {
    background: rgba(255, 255, 255, 0.36);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.11), 0 2px 6px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    backdrop-filter: blur(10px) saturate(130%);
    overflow: hidden;
    display: flex;
    min-height: 0;
    height: 100%;
    position: relative;
}

.fnf-sh-compact-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.fnf-sh-compact-accent {
    width: 4px;
    background: #e53935;
    flex-shrink: 0;
}

.fnf-sh-compact-body {
    width: 100%;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    column-gap: 10px;
    padding: 12px 14px;
}

.fnf-sh-compact-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e53935;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fnf-sh-compact-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.fnf-sh-compact-label {
    font-family: 'Poppins', 'Arial Narrow', 'Helvetica Neue', sans-serif;
    font-size: clamp(11px, 0.85vw, 13px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #121212;
}

.fnf-sh-compact-num {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #0b0b0b;
    text-align: right;
    white-space: nowrap;
}

/* Entrance animation states driven by JS */
.fnf-sh-col {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.fnf-sh-col.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fnf-sh-layout .fnf-sh-col:nth-child(2).is-visible {
    transition-delay: 80ms;
}

.fnf-sh-layout .fnf-sh-col:nth-child(3).is-visible {
    transition-delay: 160ms;
}

@media (max-width: 1240px) {
    .fnf-re-ex-section {
        padding: 42px 28px 54px;
    }

    .fnf-sh-layout {
        grid-template-columns: minmax(320px, 1fr) minmax(290px, 1fr) minmax(290px, 1fr);
        gap: 16px;
        --fnf-sh-row-height: 94px;
        --fnf-sh-row-gap: 14px;
    }

    .fnf-sh-feature-body {
        grid-template-columns: 42px 1fr auto;
        padding: 16px;
    }

    .fnf-sh-feature-bar {
        height: 9px;
    }
}

@media (max-width: 992px) {
    .fnf-sh-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .fnf-sh-col--feature {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .fnf-sh-col--compact {
        display: grid;
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        grid-template-rows: none;
        gap: 14px;
    }

    .fnf-sh-feature-card {
        min-height: 146px;
        height: auto;
    }

    .fnf-sh-compact-card {
        min-height: 92px;
        height: auto;
    }
}

@media (max-width: 640px) {
    .fnf-re-ex-section {
        padding: 28px 14px 36px;
    }

    .fnf-sh-col--compact {
        grid-template-columns: 1fr;
    }

    .fnf-sh-feature-body {
        grid-template-columns: 38px 1fr;
        row-gap: 10px;
    }

    .fnf-sh-feature-num {
        grid-column: 1 / -1;
        text-align: left;
        font-size: clamp(30px, 10vw, 40px);
    }

    .fnf-sh-compact-body {
        grid-template-columns: 38px 1fr;
        row-gap: 8px;
    }

    .fnf-sh-compact-num {
        grid-column: 1 / -1;
        text-align: left;
        font-size: clamp(24px, 8vw, 34px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fnf-sh-col {
        transition: none;
        opacity: 1;
        transform: none;
    }
}
