/* NOVAFIT Editorial 2.0.1 */

body.single-post .nvf-global-header {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-widget-novafit_blog_hero,
.elementor-widget-novafit_article_content,
.elementor-widget-novafit_related_posts,
.elementor-widget-novafit_blog_hero > .elementor-widget-container,
.elementor-widget-novafit_article_content > .elementor-widget-container,
.elementor-widget-novafit_related_posts > .elementor-widget-container {
    min-width: 0;
    max-width: 100%;
}

.nvfe-editorial,
.nvfe-editorial * {
    box-sizing: border-box;
}

.nvfe-editorial {
    --nvfe-bg: #f1efec;
    --nvfe-surface: #ffffff;
    --nvfe-text: #181818;
    --nvfe-muted: #686868;
    --nvfe-accent: #b3264b;
    --nvfe-navy: #253a60;
    --nvfe-max: 1200px;
    --nvfe-content: 720px;
    --nvfe-radius: 28px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    color: var(--nvfe-text);
    font-family: inherit;
}

.nvfe-editorial img,
.nvfe-editorial video,
.nvfe-editorial iframe {
    display: block;
    max-width: 100%;
}

.nvfe-editorial a {
    color: inherit;
}

.nvfe-editorial svg {
    display: block;
    width: 1.15em;
    height: 1.15em;
}

.nvfe-shell {
    width: min(100%, var(--nvfe-max));
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    padding-inline: clamp(20px, 3vw, 36px);
}

.nvfe-label {
    margin: 0;
    color: var(--nvfe-accent);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.nvfe-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.4;
}

/* Single post hero */

.nvfe-post-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(470px, 52vw, 540px);
    overflow: hidden;
    background: var(--nvfe-navy);
    color: #fff;
}

/*
 * The backwards-compatible all-in-one shortcode is commonly placed inside
 * NOVAFIT's Single Post container, which reserves 100px for a non-overlay
 * header. Pull only that legacy hero into the reserved area so the image sits
 * against the page edge behind the floating header. Modular hero widgets stay
 * neutral and follow their Elementor container spacing.
 */
.nvfe-post-hero--flush-top {
    margin-top: -100px;
}

.nvfe-post-hero__media,
.nvfe-post-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.nvfe-post-hero__media {
    z-index: -2;
}

.nvfe-post-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nvfe-post-hero__shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(18, 28, 49, .9) 0%, rgba(18, 28, 49, .68) 48%, rgba(18, 28, 49, .22) 78%, rgba(18, 28, 49, .12) 100%),
        linear-gradient(0deg, rgba(18, 28, 49, .28), transparent 52%);
}

.nvfe-post-hero--no-image .nvfe-post-hero__shade {
    background:
        radial-gradient(circle at 83% 20%, rgba(179, 38, 75, .22), transparent 34%),
        linear-gradient(130deg, #1e3153, var(--nvfe-navy));
}

.nvfe-post-hero__inner {
    display: flex;
    min-height: inherit;
    align-items: flex-end;
    padding-top: clamp(112px, 12vw, 146px);
    padding-bottom: clamp(52px, 6vw, 72px);
}

.nvfe-post-hero__content {
    width: min(100%, 780px);
}

.nvfe-post-hero .nvfe-label {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 7px 13px 6px;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 999px;
    color: #fff;
}

.nvfe-post-hero h1 {
    max-width: 760px;
    margin: 17px 0 18px;
    color: #fff;
    font-size: clamp(38px, 4.15vw, 48px);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.nvfe-post-hero__lead {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.58;
}

.nvfe-post-hero .nvfe-meta {
    color: rgba(255, 255, 255, .72);
}

.nvfe-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-bottom: clamp(24px, 3vw, 34px);
    color: rgba(255, 255, 255, .78) !important;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .12em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: color .25s ease, gap .25s ease;
}

.nvfe-back-link:hover,
.nvfe-back-link:focus-visible {
    gap: 13px;
    color: #fff !important;
}

/* Article content */

.nvfe-post-content {
    background: var(--nvfe-bg);
    padding: clamp(64px, 7vw, 88px) 0 clamp(72px, 8vw, 104px);
}

.nvfe-post-content__grid {
    display: grid;
    grid-template-columns: 190px minmax(0, var(--nvfe-content));
    justify-content: center;
    gap: clamp(38px, 5vw, 64px);
    align-items: start;
}

.nvfe-post-content--no-toc .nvfe-post-content__grid {
    grid-template-columns: minmax(0, var(--nvfe-content));
}

.nvfe-post-content__main,
.nvfe-article-body {
    width: 100%;
    min-width: 0;
}

.nvfe-toc {
    position: sticky;
    top: 116px;
    min-width: 0;
    padding: 3px 0 3px 18px;
    border-left: 2px solid rgba(179, 38, 75, .34);
}

.nvfe-toc nav {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.nvfe-toc a,
.nvfe-toc-mobile a {
    color: var(--nvfe-muted) !important;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none !important;
    transition: color .2s ease;
}

.nvfe-toc a[data-level="3"] {
    padding-left: 10px;
    font-size: 11px;
}

.nvfe-toc a:hover,
.nvfe-toc a:focus-visible,
.nvfe-toc a.is-active,
.nvfe-toc-mobile a:hover,
.nvfe-toc-mobile a:focus-visible,
.nvfe-toc-mobile a.is-active {
    color: var(--nvfe-accent) !important;
}

.nvfe-toc-mobile {
    display: none;
}

.nvfe-story-card {
    margin: 0 0 42px;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(37, 58, 96, .07);
    border-radius: min(var(--nvfe-radius), 24px);
    background: var(--nvfe-surface);
}

.nvfe-story-card blockquote {
    margin: 15px 0 17px;
    padding: 0;
    border: 0;
    color: var(--nvfe-navy);
    font-size: clamp(23px, 2.5vw, 31px);
    font-weight: 650;
    line-height: 1.16;
    letter-spacing: -.025em;
}

.nvfe-story-card__person {
    margin: 0;
    color: var(--nvfe-muted);
    font-size: 13px;
}

.nvfe-story-card__person strong {
    color: var(--nvfe-text);
}

.nvfe-story-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid rgba(37, 58, 96, .1);
}

.nvfe-story-card__facts span {
    color: var(--nvfe-accent);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.nvfe-story-card__facts p {
    margin: 8px 0 0;
    color: var(--nvfe-muted);
    font-size: 14px;
    line-height: 1.55;
}

.nvfe-article-body {
    color: #363636;
    font-size: 17px;
    line-height: 1.74;
}

.nvfe-article-body > :first-child {
    margin-top: 0 !important;
}

.nvfe-article-body > :last-child {
    margin-bottom: 0 !important;
}

.nvfe-article-body p {
    margin: 0 0 22px;
}

.nvfe-article-body h2,
.nvfe-article-body h3,
.nvfe-article-body h4 {
    color: var(--nvfe-text);
    font-weight: 650;
    text-wrap: balance;
}

.nvfe-article-body h2 {
    margin: 54px 0 18px;
    font-size: clamp(31px, 3vw, 38px);
    line-height: 1.09;
    letter-spacing: -.035em;
}

.nvfe-article-body h3 {
    margin: 38px 0 14px;
    font-size: clamp(23px, 2.2vw, 26px);
    line-height: 1.16;
    letter-spacing: -.025em;
}

.nvfe-article-body h4 {
    margin: 30px 0 12px;
    font-size: 20px;
    line-height: 1.25;
}

.nvfe-article-body a {
    color: var(--nvfe-accent) !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.nvfe-article-body ul,
.nvfe-article-body ol {
    margin: 0 0 25px;
    padding-left: 1.3em;
}

.nvfe-article-body li {
    margin-bottom: 8px;
    padding-left: 3px;
}

.nvfe-article-body blockquote {
    margin: 38px 0;
    padding: clamp(26px, 4vw, 38px);
    border: 0;
    border-radius: min(var(--nvfe-radius), 24px);
    background: var(--nvfe-navy);
    color: #fff;
    font-size: clamp(22px, 2.4vw, 29px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.nvfe-article-body blockquote p {
    margin: 0;
    color: inherit;
}

.nvfe-article-body figure,
.nvfe-article-body .wp-block-image,
.nvfe-article-body .wp-block-gallery,
.nvfe-article-body .wp-block-video,
.nvfe-article-body .wp-block-embed {
    max-width: 100%;
    margin: 34px 0;
}

.nvfe-article-body figure img,
.nvfe-article-body .wp-block-image img,
.nvfe-article-body video,
.nvfe-article-body iframe {
    width: 100%;
    border-radius: min(var(--nvfe-radius), 22px);
}

.nvfe-article-body figcaption {
    margin-top: 10px;
    color: var(--nvfe-muted);
    font-size: 12px;
    line-height: 1.5;
}

.nvfe-article-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 14px;
    white-space: nowrap;
}

.nvfe-article-body th,
.nvfe-article-body td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(37, 58, 96, .12);
    text-align: left;
}

.nvfe-article-body pre {
    max-width: 100%;
    overflow-x: auto;
}

/* Related posts and archive */

.nvfe-related {
    padding: clamp(68px, 7vw, 94px) 0 clamp(72px, 8vw, 106px);
    background: #e8e5e1;
}

.nvfe-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 28px;
    align-items: end;
    margin-bottom: clamp(28px, 4vw, 42px);
}

.nvfe-section-heading h2 {
    max-width: 650px;
    margin: 0;
    color: var(--nvfe-text);
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.nvfe-archive {
    padding: clamp(72px, 8vw, 112px) 0 clamp(76px, 8vw, 112px);
    background: var(--nvfe-bg);
}

.nvfe-archive__header {
    max-width: 760px;
    margin: 0 auto clamp(38px, 5vw, 62px);
    text-align: center;
}

.nvfe-archive__header h1 {
    margin: 16px auto 18px;
    color: var(--nvfe-text);
    font-size: clamp(38px, 4.5vw, 52px);
    font-weight: 650;
    line-height: 1.03;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.nvfe-archive__header > p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: var(--nvfe-muted);
    font-size: 17px;
    line-height: 1.62;
}

.nvfe-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: clamp(28px, 4vw, 42px);
}

.nvfe-filters a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border: 1px solid rgba(179, 38, 75, .28);
    border-radius: 999px;
    color: var(--nvfe-accent) !important;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .11em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.nvfe-filters a:hover,
.nvfe-filters a:focus-visible,
.nvfe-filters a[aria-current="page"] {
    border-color: var(--nvfe-accent);
    background: var(--nvfe-accent);
    color: #fff !important;
}

.nvfe-filters a:hover {
    transform: translateY(-1px);
}

.nvfe-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    width: 100%;
    min-width: 0;
}

.nvfe-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(37, 58, 96, .07);
    border-radius: var(--nvfe-radius);
    background: var(--nvfe-surface);
    transition: border-color .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.nvfe-card:hover {
    border-color: rgba(179, 38, 75, .22);
    transform: translateY(-4px);
}

.nvfe-card__link {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    color: inherit !important;
    text-decoration: none !important;
}

.nvfe-card__media {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    background: var(--nvfe-navy);
}

.nvfe-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

.nvfe-card:hover .nvfe-card__media img {
    transform: scale(1.03);
}

.nvfe-card__media--empty {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .2em;
}

.nvfe-card__index {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--nvfe-navy);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    backdrop-filter: blur(8px);
}

.nvfe-card__content {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    padding: clamp(21px, 2.5vw, 28px);
}

.nvfe-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--nvfe-accent);
    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .13em;
}

.nvfe-card__meta span:last-child {
    color: var(--nvfe-muted);
}

.nvfe-card h2,
.nvfe-card h3 {
    margin: 0;
    color: var(--nvfe-text);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 650;
    line-height: 1.09;
    letter-spacing: -.03em;
}

.nvfe-card__content > p {
    margin: 14px 0 0;
    color: var(--nvfe-muted);
    font-size: 14px;
    line-height: 1.58;
}

.nvfe-card__person {
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid rgba(37, 58, 96, .1);
    color: var(--nvfe-navy);
    font-size: 12px;
    font-weight: 700;
}

.nvfe-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 23px;
    color: var(--nvfe-navy);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.nvfe-card__arrow {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--nvfe-navy);
    color: #fff;
    transition: background-color .25s ease, transform .3s ease;
}

.nvfe-card:hover .nvfe-card__arrow {
    background: var(--nvfe-accent);
    transform: translateX(3px);
}

.nvfe-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: clamp(34px, 5vw, 56px);
}

.nvfe-pagination .page-numbers {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(37, 58, 96, .13);
    border-radius: 50%;
    background: var(--nvfe-surface);
    color: var(--nvfe-navy) !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.nvfe-pagination .page-numbers.current,
.nvfe-pagination a.page-numbers:hover {
    border-color: var(--nvfe-navy);
    background: var(--nvfe-navy);
    color: #fff !important;
}

.nvfe-empty {
    display: flex;
    min-height: 160px;
    align-items: center;
    gap: 22px;
    padding: 30px;
    border-radius: var(--nvfe-radius);
    background: var(--nvfe-surface);
}

.nvfe-empty span {
    color: var(--nvfe-accent);
    font-size: 48px;
    font-weight: 650;
    line-height: 1;
}

.nvfe-empty p {
    max-width: 480px;
    margin: 0;
    color: var(--nvfe-muted);
    line-height: 1.6;
}

.nvfe-placeholder {
    padding: 20px;
    border: 1px dashed #b3264b;
    background: #fff;
    color: #181818;
    font: 14px/1.5 sans-serif;
}

@media (max-width: 1024px) {
    .nvfe-post-content__grid {
        grid-template-columns: 165px minmax(0, var(--nvfe-content));
        gap: 36px;
    }

    .nvfe-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nvfe-card-grid--related .nvfe-card:last-child:nth-child(odd) {
        display: none;
    }
}

@media (max-width: 860px) {
    .nvfe-post-hero {
        min-height: 480px;
    }

    .nvfe-post-hero__shade {
        background: linear-gradient(90deg, rgba(18, 28, 49, .88), rgba(18, 28, 49, .45));
    }

    .nvfe-post-content__grid,
    .nvfe-post-content--no-toc .nvfe-post-content__grid {
        grid-template-columns: minmax(0, min(100%, var(--nvfe-content)));
        gap: 24px;
    }

    .nvfe-toc {
        display: none;
    }

    .nvfe-toc-mobile {
        display: block;
        width: 100%;
        margin: 0;
        border: 1px solid rgba(37, 58, 96, .1);
        border-radius: 16px;
        background: var(--nvfe-surface);
    }

    .nvfe-toc-mobile summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 16px 18px;
        color: var(--nvfe-navy);
        font-size: 12px;
        font-weight: 750;
        letter-spacing: .08em;
        list-style: none;
        text-transform: uppercase;
        cursor: pointer;
    }

    .nvfe-toc-mobile summary::-webkit-details-marker {
        display: none;
    }

    .nvfe-toc-mobile nav {
        display: grid;
        gap: 9px;
        padding: 0 18px 18px;
    }
}

@media (max-width: 700px) {
    .nvfe-shell {
        padding-inline: 18px;
    }

    .nvfe-post-hero {
        min-height: 450px;
    }

    .nvfe-post-hero__shade {
        background: linear-gradient(0deg, rgba(18, 28, 49, .9) 0%, rgba(18, 28, 49, .46) 78%, rgba(18, 28, 49, .34) 100%);
    }

    .nvfe-post-hero__inner {
        padding-top: 108px;
        padding-bottom: 42px;
    }

    .nvfe-post-hero h1 {
        font-size: clamp(34px, 10vw, 42px);
    }

    .nvfe-post-content {
        padding: 48px 0 68px;
    }

    .nvfe-story-card {
        margin-bottom: 34px;
        padding: 22px;
        border-radius: 18px;
    }

    .nvfe-story-card__facts {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nvfe-article-body {
        font-size: 16px;
        line-height: 1.72;
    }

    .nvfe-article-body h2 {
        margin-top: 44px;
    }

    .nvfe-section-heading {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .nvfe-card-grid,
    .nvfe-card-grid--related {
        grid-template-columns: 1fr;
    }

    .nvfe-card-grid--related .nvfe-card:last-child:nth-child(odd) {
        display: block;
    }

    .nvfe-archive__header {
        text-align: left;
    }

    .nvfe-archive__header h1,
    .nvfe-archive__header > p:last-child {
        margin-left: 0;
    }

    .nvfe-filters {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nvfe-editorial *,
    .nvfe-editorial *::before,
    .nvfe-editorial *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
