:root {
    --ink: #1f2421;
    --gold: #c9a961;
    --paper: #f7f5f0;
    direction: rtl;
    background: var(--paper);
    color: var(--ink);
    font-family: Vazirmatn, IRANSansWeb, Tahoma, sans-serif;
}

.ng-editorial-detail__body a {
    color: var(--nargoon-gold) !important;
}

.ng-journal-page {
    line-height: 1.9;
    overflow: hidden
}

.ng-journal-page * {
    box-sizing: border-box
}

.ng-journal-page a {
    color: inherit
}

.ng-journal-page h1,
.ng-journal-page h2,
.ng-journal-page h3,
.ng-journal-page p {
    margin-top: 0
}

.ng-journal-hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('/themes/nargoon/images/Blog/nargoon-kish-island-sea-view-architecture-hero.webp') center/cover;
    color: #fff
}

.ng-journal-hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 23, 21, .35), rgba(20, 23, 21, .9) 72%), linear-gradient(0deg, rgba(15, 18, 17, .9), transparent 48%)
}

.ng-journal-hero__content {
    position: relative;
    width: min(1180px, 90%);
    margin: auto;
    padding: 8rem 0 7rem
}

.ng-journal-kicker,
.ng-journal-section-number {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em
}

.ng-journal-hero h1 {
    max-width: 780px;
    font-size: clamp(2.5rem, 6vw, 5.7rem);
    font-weight: 300;
    line-height: 1.35;
    margin: 1rem 0
}

.ng-journal-hero h1 em,
.ng-journal-section h2 em {
    color: #d6b875;
    font-style: normal
}

.ng-journal-hero p {
    max-width: 650px;
    color: #eee;
    font-size: 1.1rem
}

.ng-journal-button {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-height: 48px;
    padding: .65rem 1.5rem;
    border: 1px solid var(--gold);
    border-radius: 3px;
    text-decoration: none;
    transition: all .35s ease
}

.ng-journal-button-gold {
    background: var(--gold);
    color: #fff !important
}

.ng-journal-button-gold:hover,
.ng-journal-button-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(184, 151, 88, .25)
}

.ng-journal-button-outline {
    color: var(--gold) !important
}

.ng-journal-button-outline:hover {
    background: var(--gold);
    color: #fff !important
}

.ng-journal-button-dark {
    background: var(--ink);
    color: #fff !important
}

.ng-journal-hero__note {
    position: absolute;
    bottom: 2rem;
    left: 5%;
    display: flex;
    gap: .7rem;
    align-items: center;
    color: #bbb;
    font-size: .64rem;
    letter-spacing: .13em;
    writing-mode: vertical-rl
}

.ng-journal-hero__note span {
    height: 50px;
    border-left: 1px solid var(--gold)
}

.ng-journal-nav {
    position: sticky;
    top: 76px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e6e1d8
}

.ng-journal-nav a {
    text-decoration: none;
    color: #666;
    font-size: .85rem
}

.ng-journal-nav a:hover {
    color: var(--gold)
}

.ng-journal-feature {
    width: min(1180px, 90%);
    margin: 6rem auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 4rem;
    align-items: center
}

.ng-journal-feature__media {
    position: relative;
    min-height: 490px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(31, 36, 33, .15)
}

.ng-journal-feature__media:after {
    content: '';
    position: absolute;
    inset: 1.4rem;
    border: 1px solid rgba(255, 255, 255, .55);
    pointer-events: none
}

.ng-journal-feature__media img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform 1s ease
}

.ng-journal-feature__media:hover img {
    transform: scale(1.05)
}

.ng-journal-feature__stamp {
    position: absolute;
    z-index: 1;
    top: 1.6rem;
    right: 1.6rem;
    padding: .35rem .7rem;
    background: rgba(184, 151, 88, .9);
    color: #fff;
    font-size: .68rem;
    letter-spacing: .1em
}

.ng-journal-feature__copy h2,
.ng-journal-section h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.5;
    margin: .7rem 0 1.2rem
}

.ng-journal-feature__copy p,
.ng-journal-section-head p {
    color: #777;
    font-size: 1rem
}

.ng-journal-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #999;
    font-size: .72rem;
    margin: 1.4rem 0
}

.ng-journal-meta span+span:before {
    content: '•';
    margin-left: 1rem;
    color: var(--gold)
}

.ng-journal-text-link {
    color: var(--gold) !important;
    text-decoration: none
}

.ng-journal-section {
    width: min(1180px, 90%);
    margin: 0 auto;
    padding: 5rem 0
}

.ng-journal-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2.5rem
}

.ng-journal-section-head>div {
    max-width: 720px
}

.ng-journal-section-head>p {
    max-width: 340px;
    margin: 0
}

.ng-journal-filters {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: 2rem
}

.ng-journal-filters button {
    padding: .55rem 1.1rem;
    border: 1px solid rgba(184, 151, 88, .35);
    background: #fff;
    color: #777;
    border-radius: 999px;
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
    transition: all .25s ease
}

.ng-journal-filters button.is-active,
.ng-journal-filters button:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 5px 16px rgba(184, 151, 88, .12)
}

.ng-journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem
}

.ng-journal-card {
    background: #fff;
    border: 1px solid rgba(31, 36, 33, .07);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease
}

.ng-journal-card.is-filtered {
    display: none
}

.ng-journal-card:hover {
    transform: translateY(-8px);
    border-color: rgba(184, 151, 88, .45);
    box-shadow: 0 18px 38px rgba(31, 36, 33, .1)
}

.ng-journal-card>a {
    text-decoration: none
}

.ng-journal-card__media {
    height: 220px;
    position: relative;
    overflow: hidden
}

.ng-journal-card__media:after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), #d6b875, var(--gold));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s ease
}

.ng-journal-card:hover .ng-journal-card__media:after {
    transform: scaleX(1)
}

.ng-journal-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease
}

.ng-journal-card:hover .ng-journal-card__media img {
    transform: scale(1.06)
}

.ng-journal-card__media span {
    position: absolute;
    z-index: 1;
    top: 1rem;
    right: 1rem;
    padding: .3rem .65rem;
    background: rgba(255, 255, 255, .9);
    color: var(--gold);
    font-size: .68rem
}

.ng-journal-card__body {
    padding: 1.4rem
}

.ng-journal-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: .6rem
}

.ng-journal-card p {
    color: #888;
    font-size: .83rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.ng-journal-card .ng-journal-meta {
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: .8rem;
    margin-bottom: 0
}

.ng-journal-lead {
    width: min(1180px, 90%);
    margin: 2rem auto 5rem;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border: 1px solid var(--gold);
    background: linear-gradient(110deg, rgba(184, 151, 88, .17), rgba(255, 255, 255, .35) 65%)
}

.ng-journal-lead h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 300;
    line-height: 1.5;
    margin: .7rem 0
}

.ng-journal-lead p {
    color: #777;
    margin: 0
}

.ng-journal-archive {
    padding-top: 1rem
}

.ng-journal-archive-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center
}

.ng-journal-glossary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.3rem;
    border-top: 1px solid #d6c7aa;
    border-bottom: 1px solid #d6c7aa;
    text-decoration: none;
    color: #777
}

.ng-journal-glossary strong {
    color: var(--ink);
    font-weight: 400
}

.ng-journal-glossary i {
    color: var(--gold)
}

.ng-journal-newsletter {
    width: min(1180px, 90%);
    margin: 0 auto 6rem;
    padding: 3rem 0;
    border-top: 1px solid #d6c7aa;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem
}

.ng-journal-newsletter h2 {
    font-size: 2rem;
    font-weight: 300;
    margin: .7rem 0
}

.ng-journal-newsletter p {
    color: #888;
    margin: 0
}

.ng-journal-newsletter__form {
    display: flex;
    min-width: min(390px, 100%);
    border-bottom: 1px solid var(--ink)
}

.ng-journal-newsletter__form input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    padding: .8rem;
    font: inherit;
    color: var(--ink)
}

.ng-journal-newsletter__form input:focus {
    outline: 0
}

.ng-journal-newsletter__form button {
    border: 0;
    background: transparent;
    color: var(--gold);
    font-size: 1rem;
    cursor: pointer
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media(max-width:900px) {
    .ng-journal-feature {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .ng-journal-feature__media {
        min-height: 390px
    }

    .ng-journal-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .ng-journal-section-head {
        display: block
    }

    .ng-journal-section-head>p {
        margin-top: 1rem
    }

    .ng-journal-lead,
    .ng-journal-newsletter {
        display: block
    }

    .ng-journal-lead .ng-journal-button,
    .ng-journal-newsletter__form {
        margin-top: 1.5rem
    }
}

@media(max-width:620px) {
    .ng-journal-hero__content {
        padding-top: 7rem
    }

    .ng-journal-hero__note {
        display: none
    }

    .ng-journal-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        gap: 1.2rem
    }

    .ng-journal-feature,
    .ng-journal-section,
    .ng-journal-lead,
    .ng-journal-newsletter {
        width: 90%
    }

    .ng-journal-feature {
        margin: 4rem auto
    }

    .ng-journal-feature__media {
        min-height: 300px
    }

    .ng-journal-grid {
        grid-template-columns: 1fr
    }

    .ng-journal-card__media {
        height: 200px
    }

    .ng-journal-lead {
        padding: 2rem 1.4rem
    }

    .ng-journal-archive-actions {
        display: block
    }

    .ng-journal-glossary {
        margin-top: 1rem;
        flex-wrap: wrap
    }

    .ng-journal-newsletter {
        margin-bottom: 4rem
    }

    .ng-journal-newsletter h2 {
        font-size: 1.7rem
    }

    .ng-journal-newsletter__form {
        min-width: 0
    }

    .ng-journal-meta {
        gap: .7rem
    }
}

/* =========================================================
   NARGŌON BLOG — HERO + FEATURED STICKY STORY
   Reference behavior preserved:
   - intro above
   - sticky image column
   - sticky heading + counter
   - scrolling cards
   - diagonal clip-path image transition
   ========================================================= */

.ng-story-services {
    --ngs-ink: #1f2421;
    --ngs-gold: #b89758;
    --ngs-paper: #f7f5f0;
    --ngs-muted: #777;
    --ngs-line: rgba(31, 36, 33, .34);

    /*
      سایت نارگون هدر Sticky دارد.
      در نمونه اصلی مقدار 24px است، اما آن نمونه هدر سایت بالای خود ندارد.
      این مقدار باعث می‌شود عنوان «دفتر نارگون» و شمارنده زیر هدر نروند.
    */
    --ngs-sticky-top: 88px;

    position: relative;
    background: var(--ngs-paper);
    color: var(--ngs-ink);
    direction: rtl;
    overflow: visible;
}

.ng-story-services__inner {
    width: min(1320px, 92%);
    margin: 0 auto;
    padding: 180px 0 90px;
}


/* ---------- Intro ---------- */

.ng-story-services__intro {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    /* فاصله بیشتر بعد از تیتر اصلی */
    margin-bottom: 170px;
}

.ng-story-services__eyebrow {
    margin: 0;
    color: var(--ngs-gold);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .12em;
    direction: ltr;
}

.ng-story-services__lead {
    width: min(100%, 1180px);
    margin: 0;

    /* کوچک‌تر از نسخه قبلی */
    font-size: clamp(36px, 3.55vw, 58px);
    font-weight: 300;
    line-height: 1.42;
    letter-spacing: -.035em;
    color: var(--ngs-ink);
}

.ng-story-services__lead em {
    color: var(--ngs-gold);
    font-style: normal;
}


/* ---------- Desktop layout ---------- */

.ng-story-services__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, .75fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: stretch;

    /* تصویر چپ / محتوا راست */
    direction: ltr;
}

.ng-story-services__visual-column,
.ng-story-services__content-column {
    position: relative;
    align-self: stretch;
    min-width: 0;
}


/* ---------- Sticky image ---------- */

.ng-story-services__visual-sticky {
    position: sticky;
    top: var(--ngs-sticky-top);
    z-index: 5;
}

.ng-story-services__visual {
    position: relative;
    width: 100%;
    height: 550px;
    background: #ebe7de;
    overflow: hidden;
}

.ng-story-services__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;

    /* همان حالت اولیه نمونه اصلی */
    clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    will-change: clip-path;
    z-index: 1;
}

.ng-story-services__image:first-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.ng-story-services__image img {
    display: block;
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center center;
}


/* ---------- Sticky heading + counter ---------- */

.ng-story-services__content-column {
    direction: rtl;
}

.ng-story-services__specialisations {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 25px;

    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ngs-line);

    /*
      دقیقاً مثل نمونه: خود تیتر و شمارنده Sticky هستند.
      تفاوت فقط top است تا زیر هدر سایت نارگون نروند.
    */
    position: sticky;
    top: var(--ngs-sticky-top);
    z-index: 30;

    background: var(--ngs-paper);
    isolation: isolate;
}

/*
  ماسک بالای نوار Sticky:
  کارت‌ها هنگام بالا رفتن نباید از بالای «دفتر نارگون» دیده شوند.
  این همان منطق ماسک سفید نمونه اصلی است.
*/
.ng-story-services__specialisations::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: calc(var(--ngs-sticky-top) + 4px);
    background: var(--ngs-paper);
    pointer-events: none;
    z-index: -1;
}

.ng-story-services__specialisations-title {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.ng-story-services__counter {
    position: relative;
    min-width: 30px;
    height: 32px;
    overflow: hidden;

    color: var(--ngs-gold);
    font-size: 22px;
    font-weight: 500;
    line-height: 32px;
    text-align: left;
    direction: ltr;
}

.ng-story-services__counter-track {
    transform: translateY(0);
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.ng-story-services__counter-track span {
    display: block;
    height: 32px;
}


/* ---------- Scrolling cards ---------- */

.ng-story-services__cards {
    position: relative;
    z-index: 1;
}

.ng-story-card {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    padding: 24px 0;

    opacity: .12;
    transition: opacity .35s ease, transform .35s ease;
}

.ng-story-card.is-active {
    opacity: 1;
}

.ng-story-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.ng-story-card__title {
    margin: 0;
    font-size: clamp(27px, 2.35vw, 38px);
    font-weight: 300;
    line-height: 1.62;
    letter-spacing: -.025em;
    color: var(--ngs-ink);
}

.ng-story-card__title em {
    color: var(--ngs-gold);
    font-style: normal;
}

.ng-story-card__text {
    max-width: 560px;
    margin: 0;
    color: var(--ngs-muted);
    font-size: 16px;
    line-height: 2.05;
}

.ng-story-card__text--lead {
    font-size: 17px;
    line-height: 2.1;
}

.ng-story-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #8d8d87;
    font-size: 12px;
}

.ng-story-card__meta span + span::before {
    content: "•";
    margin-left: 18px;
    color: var(--ngs-gold);
}

.ng-story-card__link {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    position: relative;
    padding-bottom: 6px;

    color: var(--ngs-gold) !important;
    text-decoration: none;
}

.ng-story-card__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 1px;
    background: var(--ngs-gold);

    transform: scaleX(.24);
    transform-origin: right;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.ng-story-card__link:hover::after {
    transform: scaleX(1);
}


/* ---------- Mobile swipe hint ---------- */

.ng-story-services__swipe-hint {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--ngs-muted);
    font-size: 13px;
}

.ng-story-services__swipe-arrow {
    color: var(--ngs-gold);
    font-size: 20px;
    line-height: 1;
}


/* ---------- Tablet ---------- */

@media (max-width: 991.98px) {
    .ng-story-services {
        --ngs-sticky-top: 82px;
    }

    .ng-story-services__inner {
        width: min(94%, 1100px);
    }

    .ng-story-services__intro {
        margin-bottom: 130px;
    }

    .ng-story-services__layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
        gap: 32px;
    }

    .ng-story-services__visual,
    .ng-story-services__image img {
        height: 450px;
    }

    .ng-story-card {
        min-height: 40vh;
    }
}


/* ---------- Mobile: same fallback logic as reference ---------- */

@media (max-width: 767.98px) {
    .ng-story-services {
        overflow-x: hidden;
    }

    .ng-story-services__inner {
        width: 100%;
        padding: 96px 20px 50px;
    }

    .ng-story-services__intro {
        margin-bottom: 80px;
    }

    .ng-story-services__lead {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.5;
    }

    .ng-story-services__layout {
        display: flex;
        flex-direction: column;
        gap: 25px;
        direction: rtl;
    }

    .ng-story-services__visual-column {
        margin-bottom: 25px;
    }

    .ng-story-services__visual-sticky {
        position: relative;
        top: auto;
    }

    .ng-story-services__visual,
    .ng-story-services__image img {
        height: 250px;
    }

    .ng-story-services__specialisations {
        position: relative;
        top: auto;
        padding-bottom: 16px;
        margin-bottom: 12px;
    }

    .ng-story-services__specialisations::before {
        display: none;
    }

    .ng-story-services__counter {
        display: none;
    }

    .ng-story-services__swipe-hint {
        display: flex;
        margin: 0 0 10px;
    }

    .ng-story-services__cards {
        display: flex;
        flex-direction: row;
        direction: ltr;
        align-items: stretch;
        gap: 16px;

        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;

        overflow-x: scroll;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        -webkit-scroll-snap-type: x mandatory;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 6%;
        scrollbar-width: none;

        touch-action: pan-x pan-y;
        padding: 18px 6% 24px;
        margin: 0;
    }

    .ng-story-services__cards::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .ng-story-card {
        direction: rtl;
        box-sizing: border-box;
        flex: 0 0 88%;
        width: 88%;
        min-width: 0;
        min-height: 300px;
        justify-content: space-between;
        opacity: 1;
        padding: 10px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .ng-story-card__title {
        font-size: 27px;
    }

    .ng-story-card__text {
        font-size: 15px;
    }
}


/* ---------- Accessibility ---------- */

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

/* =========================================================
   NARGŌON STORY — FINAL STAGE HOLD
   Keeps stage 04 fully visible before the next section enters.
   ========================================================= */
@media (min-width: 768px) {
    .ng-story-services .ng-story-card:last-child {
        min-height: 92vh;
    }

    .ng-story-services__cards::after {
        content: "";
        display: block;
        height: 34vh;
        pointer-events: none;
    }
}

/* =========================================================
   NARGŌON STORY — EDITORIAL OPENING CONTENT
   Styles only the new opening copy and 4 story kickers.
   ========================================================= */

.ng-story-services__intro-copy {
    width: 100%;
    margin-top: 26px;
}

.ng-story-services__intro-copy p {
    margin: 0;
    color: var(--ngs-muted);
    font-size: 16.5px;
    font-weight: 400;
    line-height: 2.25;
    text-wrap: pretty;
}

.ng-story-services__intro-copy p + p {
    margin-top: 20px;
}

.ng-story-card__kicker {
    display: inline-block;
    margin: 0 0 2px;
    color: var(--ngs-gold);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .1em;
    direction: ltr;
}

@media (max-width: 767.98px) {
    .ng-story-services__intro-copy {
        width: 100%;
        margin-top: 18px;
    }

    .ng-story-services__intro-copy p {
        font-size: 15px;
        line-height: 2.15;
    }

    .ng-story-services__intro-copy p + p {
        margin-top: 16px;
    }

    .ng-story-card__kicker {
        font-size: 10px;
    }
}

/* =========================================================
   NARGŌON BLOG — FINAL EDITORIAL REFINEMENTS
   Scoped overrides only; existing page-wide rules preserved.
   ========================================================= */

/* Opening: stronger hierarchy, less dead space before the story */
.ng-story-services__intro {
    margin-bottom: 126px;
}

.ng-story-services__intro-copy {
    max-width: 1040px;
}

.ng-story-services__intro-copy p {
    max-width: 920px;
}

/* Story: tighter reading rhythm without changing its structure */
@media (min-width: 992px) {
    .ng-story-card {
        min-height: 31vh;
    }
}


/* Story: inactive stages remain legible while the active stage stays dominant */
@media (min-width: 768px) {
    .ng-story-card {
        opacity: .28;
    }

    .ng-story-card.is-active {
        opacity: 1;
    }
}

/* Final stage still gets a deliberate pause, but no oversized blank tail */
@media (min-width: 768px) {
    .ng-story-services .ng-story-card:last-child {
        min-height: 56vh;
    }

    .ng-story-services__cards::after {
        height: 10vh;
    }
}

/* Journal: three equal editorial cards */
@media (min-width: 992px) {
    #ng-journal-grid .ng-journal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(18px, 2vw, 30px);
        align-items: stretch;
    }

    #ng-journal-grid .ng-journal-card__media {
        height: 240px;
    }
}

#ng-journal-grid .ng-journal-card,
#ng-journal-taxonomy .ng-journal-card {
    box-shadow: none;
}

#ng-journal-grid .ng-journal-card:hover,
#ng-journal-taxonomy .ng-journal-card:hover {
    box-shadow: 0 18px 42px rgba(31, 36, 33, .08);
}

/* Intelligence: quieter, research-led treatment; no text background plate */
.ng-journal-lead {
    margin-top: 3rem;
    margin-bottom: 6rem;
    padding: 3.4rem 0;
    border: 0;
    border-top: 1px solid rgba(184, 151, 88, .72);
    border-bottom: 1px solid rgba(184, 151, 88, .38);
    background: transparent;
}

.ng-journal-lead > div {
    max-width: 790px;
}

.ng-journal-lead p {
    max-width: 720px;
    line-height: 2;
}

/* Archive: editorial treatment distinct from the primary Journal grid */
#ng-journal-taxonomy .ng-journal-grid-secondary {
    gap: clamp(22px, 2.4vw, 34px);
    border-top: 1px solid rgba(31, 36, 33, .16);
    padding-top: 26px;
}

#ng-journal-taxonomy .ng-journal-card {
    position: relative;
    border: 0;
    background: transparent;
}

#ng-journal-taxonomy .ng-journal-card::before {
    content: "0" counter(ngArchive);
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .12em;
    direction: ltr;
    text-align: right;
}

#ng-journal-taxonomy .ng-journal-grid-secondary {
    counter-reset: ngArchive;
}

#ng-journal-taxonomy .ng-journal-card {
    counter-increment: ngArchive;
}

#ng-journal-taxonomy .ng-journal-card__media {
    height: 210px;
}

#ng-journal-taxonomy .ng-journal-card__body {
    padding: 1.2rem 0 0;
}

#ng-journal-taxonomy .ng-journal-card .ng-journal-meta {
    border-top-color: rgba(31, 36, 33, .10);
}

#ng-journal-taxonomy .ng-journal-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

/* Newsletter: restrained closing rhythm */
.ng-journal-newsletter {
    padding-top: 3.6rem;
    padding-bottom: 3.6rem;
}

.ng-journal-newsletter > div:first-child {
    max-width: 650px;
}

.ng-journal-newsletter__form {
    transition: border-color .3s ease;
}

.ng-journal-newsletter__form:focus-within {
    border-bottom-color: var(--gold);
}

@media (max-width: 991.98px) {
    .ng-story-services__intro {
        margin-bottom: 104px;
    }

    .ng-journal-lead {
        padding: 2.8rem 0;
    }

    #ng-journal-taxonomy .ng-journal-card {
        border-left: 0;
        border-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .ng-story-services__intro {
        margin-bottom: 68px;
    }

    .ng-journal-lead {
        margin-bottom: 4.5rem;
        padding: 2.4rem 0;
    }

    .ng-journal-newsletter {
        padding-top: 2.8rem;
        padding-bottom: 2.8rem;
    }
}


/* =========================================================
   NARGŌON BLOG — JOURNAL FILTERS / NEWSROOM STYLE
   Scope: #ng-journal-grid filters only.
   Existing filter functionality and all other sections preserved.
   ========================================================= */

#ng-journal-grid .ng-journal-filters {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1.7rem, 3vw, 3.2rem);
    flex-wrap: wrap;
    margin: 0 0 2.5rem;
    padding: 0;
    border: 0;
}

#ng-journal-grid .ng-journal-filters button {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    padding: .65rem 0 .85rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #777;
    font: inherit;
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color .3s ease,
        font-weight .3s ease;
}

#ng-journal-grid .ng-journal-filters button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .38s cubic-bezier(.22, 1, .36, 1);
}

#ng-journal-grid .ng-journal-filters button:hover {
    border-color: transparent;
    color: var(--ink);
    box-shadow: none;
}

#ng-journal-grid .ng-journal-filters button:hover::after {
    transform: scaleX(.34);
}

#ng-journal-grid .ng-journal-filters button.is-active,
#ng-journal-grid .ng-journal-filters button[aria-selected="true"] {
    border-color: transparent;
    color: var(--ink);
    font-weight: 600;
    box-shadow: none;
}

#ng-journal-grid .ng-journal-filters button.is-active::after,
#ng-journal-grid .ng-journal-filters button[aria-selected="true"]::after {
    transform: scaleX(1);
}

/* Tablet / mobile: keep the newsroom treatment and allow clean horizontal browsing. */
@media (max-width: 767.98px) {
    #ng-journal-grid .ng-journal-filters {
        flex-wrap: nowrap;
        gap: 1.6rem;
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: .2rem;
        margin-bottom: 2rem;
    }

    #ng-journal-grid .ng-journal-filters::-webkit-scrollbar {
        display: none;
    }

    #ng-journal-grid .ng-journal-filters button {
        flex: 0 0 auto;
        font-size: .78rem;
    }
}


/* Story stage 04: extra reading runway; no forced scroll or blank section. */
@media (min-width: 768px) {
  .ng-story-services .ng-story-card:last-child { min-height: 85vh; }
  .ng-story-services__cards::after { height: 18vh; }
}


/* NARGŌON STORY — Mobile swipe discovery (scoped, additive) */
@media (max-width: 767.98px) {
    .ng-story-services__swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 11px;
        width: fit-content;
        max-width: 100%;
        margin: 12px auto 8px;
        padding: 10px 16px;
        border: 1px solid rgba(184, 151, 88, .35);
        border-radius: 999px;
        background: rgba(184, 151, 88, .06);
        color: #82693c;
        font-size: 12px;
        transition: opacity .4s ease, visibility .4s ease;
    }

    .ng-story-services__swipe-hint::after {
        content: "برای مشاهده مطالب بیشتر";
        color: #777;
        font-size: 11px;
    }

    .ng-story-services__swipe-arrow {
        display: inline-block;
        animation: ngStorySwipeArrow 2.8s ease-in-out infinite;
    }

    .ng-story-services__swipe-hint.is-dismissed {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .ng-story-services__mobile-progress {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 4px auto 14px;
        direction: ltr;
    }

    .ng-story-services__mobile-progress span {
        display: block;
        width: 7px;
        height: 4px;
        border-radius: 20px;
        background: rgba(184, 151, 88, .3);
        transition: width .35s ease, background .35s ease;
    }

    .ng-story-services__mobile-progress span.is-active {
        width: 26px;
        background: #b89758;
    }
}

@keyframes ngStorySwipeArrow {
    0%, 75%, 100% { transform: translateX(0); }
    85% { transform: translateX(-7px); }
    92% { transform: translateX(0); }
}

@media (min-width: 768px) {
    .ng-story-services__mobile-progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ng-story-services__swipe-arrow { animation: none; }
}


/* =========================================================
   NARGOON STORY — MOBILE DISCOVERABILITY + EXPLICIT CONTROLS
   Mobile only: expose the next card, clarify the gesture,
   and add previous/next controls. Desktop remains unchanged.
   ========================================================= */
@media (max-width: 767.98px) {
    .ng-story-services__swipe-hint {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px 10px !important;
        margin: 12px auto 10px !important;
        padding: 10px 14px !important;
        text-align: center !important;
    }

    .ng-story-services__swipe-hint::after {
        content: none !important;
        display: none !important;
    }

    .ng-story-services__swipe-hint:not(.is-dismissed) {
        opacity: 1;
        visibility: visible;
    }

    .ng-story-services__cards {
        gap: 12px !important;
        padding: 18px 6% 24px !important;
        scroll-padding-inline: 6% !important;
    }

    /* Leave a visible slice of the next card as a swipe cue. */
    .ng-story-services__cards > .ng-story-card {
        flex-basis: 80% !important;
        width: 80% !important;
        scroll-snap-align: center !important;
    }

    .ng-story-services__mobile-progress {
        margin: 5px auto 10px !important;
    }

    .ng-story-services__mobile-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin: 0 auto 18px;
        direction: ltr;
    }

    .ng-story-services__mobile-controls button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 38px;
        padding: 0;
        border: 1px solid rgba(184, 151, 88, .45);
        border-radius: 999px;
        background: rgba(184, 151, 88, .07);
        color: #9b7b43;
        font: inherit;
        font-size: 23px;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background .2s ease, opacity .2s ease, transform .2s ease;
    }

    .ng-story-services__mobile-controls button:active:not(:disabled) {
        transform: scale(.94);
        background: rgba(184, 151, 88, .16);
    }

    .ng-story-services__mobile-controls button:disabled {
        opacity: .3;
        cursor: default;
    }
}

@media (min-width: 768px) {
    .ng-story-services__mobile-controls { display: none !important; }
}


/* =========================================================
   NARGOON BLOG — MOBILE CARDS FULL-WIDTH
   Do not reveal neighboring card content at either edge.
   Keep swipe, snap, progress dots and arrow controls.
   Desktop layout is unaffected.
   ========================================================= */
@media (max-width: 767.98px) {
    .ng-story-services__cards {
        gap: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        scroll-padding-left: 0 !important;
        scroll-padding-right: 0 !important;
    }

    .ng-story-services__cards > .ng-story-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: center !important;
    }
}
