/* Naujienų srautas v1.4 */
.nms-wrap {
    --nms-accent: #1e73be;
    --nms-radius: 18px;
    width: 100%;
}

.nms-heading-row {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8ebef;
}

.nms-heading {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #20242a !important;
    font-family: inherit;
    font-size: clamp(19px, 2vw, 23px) !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.nms-heading::before,
.nms-heading::after {
    display: none !important;
    content: none !important;
}

.nms-heading-line {
    position: absolute;
    left: 0;
    bottom: -1px;
    display: block;
    width: 82px;
    height: 3px;
    border-radius: 999px;
    background: var(--nms-accent);
}

.nms-stream {
    width: 100%;
}

.nms-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 29%) minmax(0, 1fr);
    min-height: 184px;
    margin: 0 0 16px;
    overflow: hidden;
    border: 1px solid #e9edf1;
    border-radius: var(--nms-radius);
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 31, 45, .045);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.nms-card:last-child {
    margin-bottom: 0;
}

.nms-thumb {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 184px;
    overflow: hidden;
    background: #eef1f4;
    text-decoration: none !important;
}

.nms-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 184px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}

.nms-placeholder {
    background:
        radial-gradient(circle at 28% 24%, rgba(255,255,255,.75), transparent 28%),
        linear-gradient(135deg, #e9edf1, #dfe5ea);
}

.nms-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 55%, rgba(0,0,0,.08));
}

.nms-date-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 11px;
    background: color-mix(in srgb, var(--nms-accent) 90%, #000 10%);
    box-shadow: 0 5px 16px rgba(0,0,0,.14);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.nms-date-badge strong {
    color: inherit;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
}

.nms-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 21px 25px 20px;
}

.nms-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 22px;
    margin-bottom: 7px;
}

.nms-category {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 5px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nms-accent) 10%, #fff 90%);
    color: var(--nms-accent);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.nms-meta-date {
    color: #8b939d;
    font-size: 12px;
    line-height: 1.2;
}

.nms-title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-family: inherit;
    font-size: clamp(18px, 1.55vw, 21px) !important;
    line-height: 1.28 !important;
    font-weight: 780 !important;
    letter-spacing: -.02em;
}

.nms-title::before,
.nms-title::after {
    display: none !important;
    content: none !important;
}

.nms-title a {
    color: #23272d !important;
    text-decoration: none !important;
    transition: color .2s ease;
}

.nms-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 9px 0 0 !important;
    color: #69717b;
    font-size: 14px;
    line-height: 1.55;
}

.nms-read-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    color: var(--nms-accent) !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.nms-arrow {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--nms-accent) 10%, #fff 90%);
    color: var(--nms-accent);
    font-size: 15px;
    line-height: 1;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

/* Reklamų blokams, kuriuos Ad Inserter įterpia tarp postų, paliekamas visas plotis. */
.nms-stream > .code-block,
.nms-stream > [class*="ai-"] {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 22px;
}

@media (hover: hover) {
    .nms-card:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--nms-accent) 22%, #e9edf1 78%);
        box-shadow: 0 13px 34px rgba(20, 31, 45, .09);
    }

    .nms-card:hover .nms-image {
        transform: scale(1.045);
        filter: saturate(1.03) brightness(.97);
    }

    .nms-title a:hover {
        color: var(--nms-accent) !important;
    }

    .nms-read-more:hover .nms-arrow {
        background: var(--nms-accent);
        color: #fff;
        transform: translateX(2px);
    }
}

@media (max-width: 760px) {
    .nms-heading-row {
        margin-bottom: 15px;
        padding-bottom: 11px;
    }

    .nms-heading {
        font-size: 18px !important;
    }

    .nms-heading-line {
        width: 64px;
    }

    .nms-card {
        grid-template-columns: 38% minmax(0, 1fr);
        min-height: 138px;
        margin-bottom: 10px;
        border-radius: 14px;
    }

    .nms-thumb,
    .nms-image {
        min-height: 138px;
        height: 100%;
    }

    .nms-content {
        padding: 14px 15px 13px;
    }

    .nms-meta {
        min-height: 18px;
        margin-bottom: 5px;
    }

    .nms-category {
        min-height: 19px;
        padding: 4px 7px;
        font-size: 8px;
    }

    .nms-date-badge {
        top: 8px;
        left: 8px;
        gap: 3px;
        min-height: 27px;
        padding: 5px 7px;
        border-radius: 8px;
        font-size: 8px;
    }

    .nms-date-badge strong {
        font-size: 13px;
    }

    .nms-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        font-size: 15px !important;
        line-height: 1.28 !important;
    }

    .nms-excerpt {
        display: none;
    }

    .nms-read-more {
        margin-top: 9px;
        font-size: 10px;
    }

    .nms-arrow {
        width: 23px;
        height: 23px;
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .nms-card {
        grid-template-columns: 126px minmax(0, 1fr);
        min-height: 126px;
    }

    .nms-thumb,
    .nms-image {
        min-height: 126px;
    }

    .nms-content {
        padding: 11px 12px;
    }

    .nms-title {
        font-size: 14px !important;
        line-height: 1.27 !important;
    }

    .nms-read-more span:first-child {
        display: none;
    }

    .nms-read-more {
        margin-top: 7px;
    }
}

@media (max-width: 350px) {
    .nms-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .nms-title {
        font-size: 13px !important;
    }
}


/* Saugiai tarp kortelių įterpiamas Ad Inserter blokas */
.nms-ad-between {
    width: 100%;
    margin: 8px 0 24px;
    clear: both;
}

.nms-ad-between:empty {
    display: none;
    margin: 0;
}

@media (max-width: 760px) {
    .nms-ad-between {
        margin: 6px 0 16px;
    }
}


/* Ad Inserter Automatic insertion -> Between posts išvestis. */
.nms-stream > .code-block,
.nms-stream > [class*="code-block"],
.nms-stream > [class^="ai-"],
.nms-stream > [class*=" ai-"],
.nms-stream > .nms-ad-between {
    width: 100%;
    max-width: 100%;
    margin: 6px 0 22px;
    clear: both;
}
