/* =============================================================================
   Nariman Child Theme - Single Post Styles
   Loaded only on is_singular('post')
   ============================================================================= */
#main .fusion-row {
    max-width: 100% !important;
}

html:not(.avada-has-site-width-percent) #main {
    padding: 0 !important;
}

:root {
    --n-font: "Space Grotesk", sans-serif;
    --n-green: #4a7c2f;
    --n-green-light: #6aa84f;
    --n-green-dark: #20361a;
    --n-green-bg: #edf4e7;
    --n-green-border: rgba(74, 124, 47, 0.18);
    --n-cream: #f7f2eb;
    --n-sand: #ddd2c1;
    --n-charcoal: #151715;
    --n-text: #1d211d;
    --n-text-muted: #667067;
    --n-text-light: #8b918b;
    --n-bg-page: #ffffff;
    --n-bg-subtle: #f5f2ec;
    --n-border: rgba(0, 0, 0, 0.08);
    --n-border-strong: rgba(0, 0, 0, 0.14);
    --n-shadow-soft: 0 24px 70px rgba(21, 23, 21, 0.08);
    --n-radius-sm: 4px;
    --n-radius-md: 10px;
    --n-radius-lg: 22px;
    --n-container: 1200px;
    --n-gap: 32px;
    --n-transition: 0.25s ease;
}

.post-single {
    font-family: var(--n-font) !important;
    color: var(--n-text);
    background: var(--n-bg-page);
    line-height: 1.7;
}

.post-single *,
.post-single *::before,
.post-single *::after {
    border-radius: 0 !important;
}

.post-single *,
.post-single *::before,
.post-single *::after {
    box-sizing: border-box;
}

.post-hero__inner,
.post-article__inner,
.post-cta__inner,
.post-related__inner {
    max-width: var(--n-container);
    margin-inline: auto;
    padding-inline: var(--n-gap);
}

.section-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--n-green);
    margin-bottom: 10px;
}

.section-label--light {
    color: rgba(255, 255, 255, 0.6);
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.section-divider__line {
    width: 44px;
    height: 2px;
    background: var(--n-green);
}

.section-divider__dots {
    display: flex;
    gap: 4px;
}

.section-divider__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--n-green);
    opacity: 0.38;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background var(--n-transition), border-color var(--n-transition), color var(--n-transition), transform var(--n-transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--n-charcoal);
    border-color: var(--n-charcoal);
    color: #ffffff;
}

.btn--primary:hover {
    background: var(--n-green);
    border-color: var(--n-green);
    color: #ffffff;
}

.btn--outline {
    background: transparent;
    border-color: var(--n-border-strong);
    color: var(--n-text);
}

.btn--outline:hover {
    border-color: var(--n-green);
    color: var(--n-green);
}

.btn--large {
    min-width: 210px;
}

.wysiwyg-content {
    font-size: 16px;
    color: var(--n-text-muted);
}

.wysiwyg-content > *:first-child {
    margin-top: 0;
}

.wysiwyg-content p,
.wysiwyg-content ul,
.wysiwyg-content ol,
.wysiwyg-content blockquote,
.wysiwyg-content figure {
    margin: 0 0 1.4rem;
}

.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4 {
    font-family: var(--n-font) !important;
    color: var(--n-text);
    line-height: 1.2;
    margin: 3rem 0 1rem;
}

.wysiwyg-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.wysiwyg-content h3 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.wysiwyg-content a {
    color: var(--n-green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.wysiwyg-content strong {
    color: var(--n-text);
    font-weight: 700;
}

.wysiwyg-content ul,
.wysiwyg-content ol {
    padding-left: 1.2rem;
}

.wysiwyg-content li {
    margin-bottom: 0.5rem;
}

.wysiwyg-content blockquote {
    margin-left: 0;
    padding: 28px 28px 28px 32px;
    border-left: 3px solid var(--n-green);
    background: linear-gradient(135deg, rgba(74, 124, 47, 0.1), rgba(255, 255, 255, 0.92));
    color: var(--n-text);
    font-size: 1.05rem;
}

.wysiwyg-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--n-radius-md);
}

.post-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(106, 168, 79, 0.16), transparent 26%),
        linear-gradient(135deg, #fcfbf8 0%, #f0f5ea 44%, #ffffff 100%);
    border-bottom: 1px solid var(--n-border);
}

.post-hero::before {
    content: "";
    position: absolute;
    inset: auto auto 44px 0;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(74, 124, 47, 0.08), transparent);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    pointer-events: none;
}

.post-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px;
    align-items: center;
    padding-top: 84px;
    padding-bottom: 84px;
}

.post-hero__breadcrumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.post-hero__breadcrumbs a {
    color: var(--n-text-light);
    font-size: 12px;
    text-decoration: none;
}

.post-hero__breadcrumbs-separator {
    width: 24px;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.post-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--n-green-border);
    border-radius: 999px;
    color: var(--n-green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.post-hero__title {
    margin: 0 0 18px;
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    line-height: 51.99px !important;
    letter-spacing: -0.05em;
    color: var(--n-text);
    font-weight: 900;
}

.post-hero__excerpt {
    max-width: 620px;
    margin: 0 0 28px;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--n-text-muted);
}

.post-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.post-hero__meta-item {
    padding: 18px 20px;
    border: 1px solid var(--n-border);
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--n-radius-md);
    box-shadow: 0 16px 40px rgba(21, 23, 21, 0.04);
}

.post-hero__meta-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--n-text-light);
}

.post-hero__meta-value {
    font-size: 14px;
    color: var(--n-text);
}

.post-hero__author {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 10px 10px;
    border: 1px solid var(--n-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.post-hero__author-avatar img {
    display: block;
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.post-hero__author-label {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--n-text-light);
}

.post-hero__author-name {
    color: var(--n-text);
    font-size: 15px;
}

.post-hero__frame {
    position: relative;
    min-height: 620px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(245, 242, 236, 0.22), rgba(21, 23, 21, 0.05)),
        #dde4d8;
    box-shadow: var(--n-shadow-soft);
}

.post-hero__frame::before {
    content: "";
    position: absolute;
    inset: 24px 24px auto auto;
    width: 110px;
    height: 110px;
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    border-right: 1px solid rgba(255, 255, 255, 0.65);
    z-index: 1;
}

.post-hero__image,
.post-hero__placeholder {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-hero__placeholder {
    background: linear-gradient(180deg, rgba(247, 242, 235, 0.9), rgba(222, 228, 216, 0.94));
}

.post-hero__floating-card {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 16px 18px;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    background: rgba(21, 23, 21, 0.78);
    backdrop-filter: blur(12px);
    color: #ffffff;
}

.post-hero__floating-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.post-hero__floating-value {
    font-size: 19px;
    line-height: 1.2;
}

.post-article {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
}

.post-article__inner {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.post-article__sidebar {
    position: sticky;
    top: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.post-sidebar-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--n-border);
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(21, 23, 21, 0.04);
}

.post-sidebar-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-sidebar-toc__item + .post-sidebar-toc__item {
    margin-top: 10px;
}

.post-sidebar-toc__item a {
    color: var(--n-text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color var(--n-transition), transform var(--n-transition);
}

.post-sidebar-toc__item a:hover {
    color: var(--n-green);
    transform: translateX(2px);
}

.post-sidebar-toc__item--level-3 {
    padding-left: 16px;
}

.post-sidebar-stats {
    margin: 0;
}

.post-sidebar-stats__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--n-border);
}

.post-sidebar-stats__row:first-child {
    padding-top: 0;
}

.post-sidebar-stats__row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.post-sidebar-stats dt,
.post-sidebar-stats dd {
    margin: 0;
    font-size: 13px;
}

.post-sidebar-stats dt {
    color: var(--n-text-light);
}

.post-sidebar-stats dd {
    color: var(--n-text);
    font-weight: 700;
    text-align: right;
}

.post-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--n-border);
    color: var(--n-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: border-color var(--n-transition), color var(--n-transition), background var(--n-transition);
}

.post-share__link:hover {
    border-color: var(--n-green);
    background: var(--n-green-bg);
    color: var(--n-green-dark);
}

.post-article__header {
    margin-bottom: 32px;
}

.post-article__title {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--n-text);
}

.post-article__main {
    min-width: 0;
}

.post-article__content {
    padding: 38px clamp(22px, 4vw, 54px);
    background: #ffffff;
    border: 1px solid var(--n-border);
    border-radius: 24px;
    box-shadow: var(--n-shadow-soft);
}

.post-article__content > p:first-of-type {
    font-size: 1.15rem;
    color: var(--n-text);
}

.post-article__content > p:first-of-type::first-letter {
    float: left;
    margin: 0.1em 12px 0 0;
    color: var(--n-green-dark);
    font-size: 4rem;
    line-height: 0.8;
    font-weight: 700;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.post-tags__item {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--n-bg-subtle);
    color: var(--n-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--n-transition), color var(--n-transition);
}

.post-tags__item:hover {
    background: var(--n-green-bg);
    color: var(--n-green-dark);
}

.post-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.post-pagination__item {
    display: block;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--n-border);
    background: linear-gradient(180deg, #ffffff, #f8f6f1);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--n-transition), transform var(--n-transition), box-shadow var(--n-transition);
}

.post-pagination__item:hover {
    border-color: var(--n-green);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(21, 23, 21, 0.05);
}

.post-pagination__item--next {
    text-align: right;
}

.post-pagination__label {
    display: block;
    margin-bottom: 8px;
    color: var(--n-text-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.post-pagination__title {
    color: var(--n-text);
    font-size: 15px;
    line-height: 1.45;
}

.post-cta {
    padding: 78px 0;
    background: linear-gradient(135deg, #f2f6ed 0%, #e6eee0 50%, #f7f2eb 100%);
    border-top: 1px solid var(--n-border);
    border-bottom: 1px solid var(--n-border);
}

.post-cta__inner {
    max-width: 940px;
    text-align: center;
}

.post-cta__icon {
    margin-bottom: 20px;
}

.post-cta__title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--n-green-dark);
}

.post-cta__text {
    max-width: 640px;
    margin: 0 auto 28px;
    color: var(--n-text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.post-cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.post-related {
    padding: 78px 0 96px;
    background: var(--n-charcoal);
}

.post-related__header {
    margin-bottom: 34px;
}

.post-related__title {
    margin: 0;
    max-width: 580px;
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.post-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.related-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.related-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.related-card__media img,
.related-card__placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.related-card__media img {
    transition: transform 0.55s ease;
}

.related-card:hover .related-card__media img {
    transform: scale(1.05);
}

.related-card__placeholder {
    background: linear-gradient(135deg, rgba(74, 124, 47, 0.18), rgba(255, 255, 255, 0.04));
}

.related-card__content {
    padding: 20px 20px 22px;
}

.related-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.related-card__title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.18;
}

.related-card__title a {
    color: #ffffff;
    text-decoration: none;
}

.related-card__excerpt {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

.related-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.rtl .wysiwyg-content ul,
body.rtl .wysiwyg-content ol {
    padding-left: 0;
    padding-right: 1.2rem;
}

body.rtl .wysiwyg-content blockquote {
    border-left: none;
    border-right: 3px solid var(--n-green);
    padding: 28px 32px 28px 28px;
}

body.rtl .post-sidebar-toc__item--level-3 {
    padding-left: 0;
    padding-right: 16px;
}

body.rtl .post-article__content > p:first-of-type::first-letter {
    float: right;
    margin: 0.1em 0 0 12px;
}

@media (max-width: 1080px) {
    .post-hero__inner {
        grid-template-columns: 1fr;
    }

    .post-hero__frame,
    .post-hero__image,
    .post-hero__placeholder {
        min-height: 520px;
    }

    .post-article__inner {
        grid-template-columns: 1fr;
    }

    .post-article__sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --n-gap: 20px;
    }

    .post-hero__inner {
        gap: 30px;
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .post-hero__meta {
        grid-template-columns: 1fr;
    }

    .post-hero__frame,
    .post-hero__image,
    .post-hero__placeholder {
        min-height: 360px;
    }

    .post-hero__floating-card {
        left: 16px;
        right: 16px;
        bottom: 16px;
        min-width: 0;
    }

    .post-article {
        padding: 56px 0;
    }

    .post-article__sidebar {
        grid-template-columns: 1fr;
    }

    .post-article__content {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .post-article__content > p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .post-pagination {
        grid-template-columns: 1fr;
    }

    .post-pagination__item--next {
        text-align: left;
    }

    .post-cta,
    .post-related {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .post-cta__actions {
        flex-direction: column;
    }

    .post-cta__actions .btn,
    .btn--large {
        width: 100%;
        min-width: 0;
    }

    .related-card__meta {
        flex-direction: column;
    }
}
