/**
 * NHR Editorial Shared UI
 * Shared trust ecosystem + contextual conversion CTA.
 * Used by Blog UI v2 archives and Article UI integration.
 */

/* ============================================================
   Sprint B6 — Trust + contextual conversion CTA
============================================================ */
.nhr-blog-trust {
    padding: clamp(4.5rem, 7vw, 6.5rem) 0 2.25rem;
    background: #fff;
}

.nhr-blog-trust__header {
    max-width: 46rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.nhr-blog-trust__eyebrow,
.nhr-blog-conversion__eyebrow {
    display: inline-block;
    margin-bottom: .55rem;
    color: #605DBA;
    font-size: .69rem;
    line-height: 1.35;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rtl .nhr-blog-trust__eyebrow,
.rtl .nhr-blog-conversion__eyebrow {
    font-size: .78rem;
    line-height: 1.7;
    letter-spacing: 0;
    text-transform: none;
}

.nhr-blog-trust__title {
    margin: 0;
    color: #0F172A;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    line-height: 1.22;
    font-weight: 850;
    letter-spacing: -.022em;
}

.rtl .nhr-blog-trust__title {
    line-height: 1.55;
    letter-spacing: 0;
}

.nhr-blog-trust__copy {
    max-width: 40rem;
    margin: .7rem auto 0;
    color: #64748B;
    font-size: .93rem;
    line-height: 1.72;
}

.rtl .nhr-blog-trust__copy {
    line-height: 1.95;
}

.nhr-blog-trust__panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 72rem;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #E6E8F1;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 16px 45px -35px rgba(15, 23, 42, .34);
}

.nhr-blog-trust__partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-width: 0;
    min-height: 6.6rem;
    padding: 1.2rem 1.35rem;
    border-inline-end: 1px solid #EEF0F5;
    text-align: center;
    transition: background-color .2s ease;
}

.nhr-blog-trust__partner:last-child {
    border-inline-end: 0;
}

.nhr-blog-trust__partner:hover {
    background: #FAFAFD;
}

.nhr-blog-trust__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7.25rem;
    height: 2.4rem;
}

.nhr-blog-trust__logo {
    display: block;
    max-width: 7.25rem;
    max-height: 2rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nhr-blog-trust__partner-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    line-height: 1.25;
}

.nhr-blog-trust__partner-meta span {
    color: #8490A3;
    font-size: .7rem;
    font-weight: 650;
    text-align: center;
}

.nhr-blog-conversion {
    padding: 1.65rem 0 clamp(4.75rem, 7vw, 6.75rem);
    background: #fff;
}

.nhr-blog-conversion__card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(13rem, .8fr) minmax(0, 1.55fr) auto;
    align-items: center;
    gap: clamp(1.5rem, 3.2vw, 3.25rem);
    max-width: 72rem;
    min-height: 11.5rem;
    margin: 0 auto;
    padding: clamp(1.55rem, 2.8vw, 2.4rem);
    overflow: hidden;
    border: 1px solid #E2E2F3;
    border-radius: 1.45rem;
    background:
        radial-gradient(circle at 11% 45%, rgba(96, 93, 186, .13), transparent 26%),
        radial-gradient(circle at 89% 35%, rgba(78, 205, 196, .09), transparent 27%),
        linear-gradient(115deg, #FAF9FF 0%, #F7F7FD 53%, #F4F8FB 100%);
    box-shadow: 0 24px 70px -48px rgba(96, 93, 186, .45);
}

.nhr-blog-conversion__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .42;
    background-image:
        radial-gradient(circle, rgba(96, 93, 186, .20) 1px, transparent 1.2px);
    background-size: 19px 19px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 34%, transparent 69%, #000);
    mask-image: linear-gradient(90deg, #000, transparent 34%, transparent 69%, #000);
}

.nhr-blog-conversion__visual {
    position: relative;
    width: 100%;
    min-height: 7.4rem;
}

.nhr-blog-conversion__visual-grid {
    position: absolute;
    inset: .6rem 0;
    border: 1px solid rgba(96, 93, 186, .12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 15px 35px -28px rgba(15, 23, 42, .45);
}

.nhr-blog-conversion__node {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.45rem;
    padding: .55rem .7rem;
    border: 1px solid rgba(96, 93, 186, .14);
    border-radius: .7rem;
    background: rgba(255, 255, 255, .92);
    color: #344054;
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 28px -22px rgba(15, 23, 42, .45);
}

.nhr-blog-conversion__node i {
    color: #605DBA;
}

.nhr-blog-conversion__node--insight {
    inset-block-start: .1rem;
    inset-inline-start: .65rem;
}

.nhr-blog-conversion__node--roadmap {
    inset-block-end: .1rem;
    inset-inline-end: .55rem;
}

.nhr-blog-conversion__connector {
    position: absolute;
    z-index: 1;
    inset-inline-start: 31%;
    inset-block-start: 51%;
    width: 42%;
    height: 2px;
    background: linear-gradient(90deg, rgba(96, 93, 186, .25), rgba(78, 205, 196, .65));
    transform: rotate(-12deg);
    transform-origin: center;
}

.rtl .nhr-blog-conversion__connector {
    transform: rotate(12deg);
}

.nhr-blog-conversion__shield {
    position: absolute;
    z-index: 3;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.45rem;
    height: 3.45rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #605DBA, #7B68EE 56%, #4ECDC4 140%);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 16px 32px -15px rgba(96, 93, 186, .75);
    transform: translate(-50%, -50%);
}

.rtl .nhr-blog-conversion__shield {
    transform: translate(50%, -50%);
}

.nhr-blog-conversion__content {
    min-width: 0;
}

.nhr-blog-conversion__title {
    max-width: 28ch;
    margin: 0;
    color: #172033;
    font-size: clamp(1.45rem, 2.15vw, 2rem);
    line-height: 1.24;
    font-weight: 850;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.rtl .nhr-blog-conversion__title {
    max-width: 24ch;
    line-height: 1.58;
    letter-spacing: 0;
}

.nhr-blog-conversion__copy {
    max-width: 42rem;
    margin: .62rem 0 0;
    color: #64748B;
    font-size: .9rem;
    line-height: 1.75;
}

.rtl .nhr-blog-conversion__copy {
    line-height: 2;
}

.nhr-blog-conversion__action {
    display: flex;
    justify-content: flex-end;
}

.nhr-blog-conversion__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 3.2rem;
    padding: .78rem 1.25rem;
    border: 1px solid transparent;
    border-radius: .78rem;
    background: linear-gradient(135deg, #605DBA, #7567E5);
    color: #fff;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 16px 34px -20px rgba(96, 93, 186, .72);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nhr-blog-conversion__button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -18px rgba(96, 93, 186, .78);
}

.rtl .nhr-blog-conversion__button i {
    transform: rotate(180deg);
}

.nhr-blog-conversion__button:focus-visible,
.nhr-blog-trust__partner:focus-visible {
    outline: 3px solid rgba(96, 93, 186, .28);
    outline-offset: 3px;
}

@media (max-width: 1023px) {
    .nhr-blog-trust__panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nhr-blog-trust__partner:nth-child(2) {
        border-inline-end: 0;
    }

    .nhr-blog-trust__partner:nth-child(-n+2) {
        border-bottom: 1px solid #EEF0F5;
    }

    .nhr-blog-conversion__card {
        grid-template-columns: minmax(11rem, .75fr) minmax(0, 1.45fr);
    }

    .nhr-blog-conversion__action {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: -.4rem;
    }

    .rtl .nhr-blog-conversion__action {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .nhr-blog-trust {
        padding-top: 3.8rem;
    }

    .nhr-blog-trust__header {
        margin-bottom: 1.5rem;
    }

    .nhr-blog-trust__panel {
        border-radius: 1rem;
    }

    .nhr-blog-trust__partner {
        gap: .6rem;
        min-height: 7rem;
        padding: 1rem .75rem;
    }

    .nhr-blog-conversion {
        padding-bottom: 4.25rem;
    }

    .nhr-blog-conversion__card {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        min-height: 0;
        padding: 1.3rem;
        border-radius: 1.15rem;
    }

    .nhr-blog-conversion__visual {
        min-height: 6.8rem;
    }

    .nhr-blog-conversion__content,
    .nhr-blog-conversion__action {
        grid-column: auto;
    }

    .nhr-blog-conversion__action,
    .rtl .nhr-blog-conversion__action {
        justify-content: stretch;
        margin-top: 0;
    }

    .nhr-blog-conversion__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nhr-blog-trust__partner,
    .nhr-blog-conversion__button {
        transition: none !important;
    }

    .nhr-blog-conversion__button:hover {
        transform: none !important;
    }
}
