.nm-blog-page {
    background: #ffffff;
}

.nm-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.nm-blog-hero {
    padding: 90px 0 55px;
    background: linear-gradient(135deg, #f7f8fb 0%, #ffffff 100%);
    border-bottom: 1px solid #eeeeee;
}

.nm-blog-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.nm-blog-hero h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    color: #111827;
}

.nm-blog-hero p {
    max-width: 720px;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
}

.nm-blog-content {
    padding: 70px 0 90px;
}

.nm-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nm-blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nm-blog-card:hover {
    transform: translateY(-5px);
    border-color: #d1d5db;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.11);
}

.nm-blog-card__image {
    display: block;
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #f3f4f6;
}

.nm-blog-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nm-blog-card:hover .nm-blog-card__image img {
    transform: scale(1.04);
}

.nm-blog-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #f9fafb 100%);
}

.nm-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px;
}

.nm-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.nm-blog-card__meta span {
    position: relative;
}

.nm-blog-card__meta span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 10px;
    vertical-align: middle;
    border-radius: 50%;
    background: #9ca3af;
}

.nm-blog-card__title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: #111827;
}

.nm-blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.nm-blog-card__title a:hover {
    color: #374151;
}

.nm-blog-card__excerpt {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

.nm-blog-card__button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nm-blog-card__button:hover {
    background: #374151;
    color: #ffffff;
    transform: translateY(-1px);
}

.nm-blog-pagination {
    margin-top: 55px;
}

.nm-blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nm-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}

.nm-blog-pagination .page-numbers.current,
.nm-blog-pagination .page-numbers:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.nm-blog-empty {
    padding: 50px;
    border-radius: 22px;
    background: #f9fafb;
    text-align: center;
}

.nm-blog-empty h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.nm-blog-empty p {
    margin: 0;
    color: #4b5563;
}

@media (max-width: 1024px) {
    .nm-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nm-blog-hero {
        padding: 70px 0 45px;
    }
}

@media (max-width: 767px) {
    .nm-container {
        width: min(100% - 28px, 1180px);
    }

    .nm-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nm-blog-hero {
        padding: 55px 0 35px;
    }

    .nm-blog-hero p {
        font-size: 16px;
    }

    .nm-blog-content {
        padding: 45px 0 65px;
    }

    .nm-blog-card__image {
        height: 210px;
    }

    .nm-blog-card__body {
        padding: 22px;
    }
}


/* ================================
   SINGLE POST — CUSTOM BLOG STYLE
   Static Astra classes only
================================ */


body.single-post .site-content {
    background: #f6f3ee;
    padding: 70px 0 90px;
}


body.single-post .site-content > .ast-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}


body.single-post #primary {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}


body.single-post .site-main {
    width: 100%;
}


body.single-post article.type-post.ast-article-single {
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(46, 36, 24, 0.12);
}


body.single-post .ast-post-format- {
    width: 100%;
}


body.single-post .entry-header {
    padding: 56px 60px 0;
    margin: 0;
    text-align: left;
}


body.single-post .entry-title {
    max-width: 860px;
    margin: 0 0 18px;
    color: #2b2118;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.single-post .entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
    color: #8a6f54;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}


body.single-post .entry-meta a,
body.single-post .ast-terms-link a {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: #efe6da;
    color: #6f4f2f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

body.single-post .entry-meta a:hover,
body.single-post .ast-terms-link a:hover {
    background: #6f4f2f;
    color: #ffffff;
}


body.single-post .post-thumb-img-content,
body.single-post .post-thumb {
    margin: 0;
    padding: 0;
}

body.single-post .post-thumb-img-content img,
body.single-post .post-thumb img,
body.single-post .wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    margin: 0;
}


body.single-post .entry-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 58px 60px 70px;
    color: #382d23;
    font-size: 18px;
    line-height: 1.85;
}


body.single-post .entry-content p {
    margin: 0 0 24px;
}


body.single-post .entry-content strong {
    color: #2b2118;
    font-weight: 700;
}


body.single-post .entry-content h2 {
    margin: 52px 0 20px;
    color: #2b2118;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.single-post .entry-content h3 {
    margin: 38px 0 16px;
    color: #2b2118;
    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.25;
    font-weight: 700;
}


body.single-post .entry-content ul,
body.single-post .entry-content ol {
    margin: 0 0 28px 22px;
    padding: 0;
}

body.single-post .entry-content li {
    margin-bottom: 10px;
}


body.single-post .entry-content a {
    color: #6f4f2f;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.single-post .entry-content a:hover {
    color: #2b2118;
}


body.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}


body.single-post .entry-content blockquote {
    margin: 38px 0;
    padding: 28px 32px;
    border-left: 4px solid #6f4f2f;
    border-radius: 0 18px 18px 0;
    background: #f6f3ee;
    color: #382d23;
    font-size: 20px;
    line-height: 1.65;
}


body.single-post .entry-content table {
    width: 100%;
    margin: 34px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}

body.single-post .entry-content th,
body.single-post .entry-content td {
    padding: 14px 16px;
    border: 1px solid #e6ded4;
    text-align: left;
}

body.single-post .entry-content th {
    background: #efe6da;
    color: #2b2118;
    font-weight: 700;
}


body.single-post .entry-content hr {
    margin: 42px 0;
    border: 0;
    border-top: 1px solid #e6ded4;
}


@media (max-width: 921px) {
    body.single-post .site-content {
        padding: 48px 0 70px;
    }

    body.single-post article.type-post.ast-article-single {
        border-radius: 22px;
    }

    body.single-post .entry-header {
        padding: 42px 36px 0;
    }

    body.single-post .entry-content {
        padding: 44px 36px 56px;
        font-size: 17px;
    }
}


@media (max-width: 600px) {
    body.single-post .site-content {
        padding: 30px 0 55px;
    }

    body.single-post .site-content > .ast-container {
        padding: 0 14px;
    }

    body.single-post article.type-post.ast-article-single {
        border-radius: 18px;
    }

    body.single-post .entry-header {
        padding: 32px 22px 0;
    }

    body.single-post .entry-title {
        margin-bottom: 16px;
        font-size: 32px;
    }

    body.single-post .entry-meta {
        margin-bottom: 24px;
    }

    body.single-post .entry-content {
        padding: 34px 22px 46px;
        font-size: 16px;
        line-height: 1.75;
    }

    body.single-post .entry-content p {
        margin-bottom: 20px;
    }

    body.single-post .entry-content h2 {
        margin-top: 40px;
        font-size: 26px;
    }

    body.single-post .entry-content h3 {
        margin-top: 30px;
        font-size: 22px;
    }

    body.single-post .entry-content blockquote {
        padding: 22px;
        font-size: 18px;
    }
}

/* ================================
   BLOG ARCHIVE / CATEGORY / TAG PAGE
   Static Astra classes only
================================ */

body.archive .ast-archive-description{
    margin-bottom: 5vh;
    text-align: center;
}

/* Общий фон архивов: категория, тег, blog */
body.archive .site-content,
body.blog .site-content {
    background: #f6f3ee;
    padding: 70px 0 90px;
}

/* Основной контейнер архива */
body.archive .site-content > .ast-container,
body.blog .site-content > .ast-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Primary */
body.archive #primary,
body.blog #primary {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Main */
body.archive .site-main,
body.blog .site-main {
    width: 100%;
}

/* Заголовок архива / категории / тега */
body.archive .page-header,
body.blog .page-header {
    max-width: 1180px;
    margin: 0 auto 42px;
    padding: 48px 56px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(46, 36, 24, 0.09);
}

/* Название категории / тега */
body.archive .page-title,
body.blog .page-title {
    margin: 0;
    color: #2b2118;
    font-size: clamp(36px, 4.5vw, 58px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Описание категории / тега */
body.archive .taxonomy-description,
body.blog .taxonomy-description {
    max-width: 760px;
    margin-top: 18px;
    color: #6f6257;
    font-size: 18px;
    line-height: 1.7;
}

body.archive .taxonomy-description p,
body.blog .taxonomy-description p {
    margin: 0;
}

/* Сетка wpisów */
body.archive .site-main,
body.blog .site-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

/* Header архива должен занимать всю ширину */
body.archive .site-main .page-header,
body.blog .site-main .page-header {
    grid-column: 1 / -1;
}

/* Карточка wpisu */
body.archive article.type-post,
body.blog article.type-post {
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(46, 36, 24, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.archive article.type-post:hover,
body.blog article.type-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 75px rgba(46, 36, 24, 0.14);
}

/* Wewnętrzny layout Astra */
body.archive article.type-post .ast-post-format-,
body.blog article.type-post .ast-post-format- {
    height: 100%;
}

/* Obrazek wpisu */
body.archive article.type-post .post-thumb-img-content,
body.blog article.type-post .post-thumb-img-content,
body.archive article.type-post .post-thumb,
body.blog article.type-post .post-thumb {
    margin: 0;
    padding: 0;
}

body.archive article.type-post .post-thumb img,
body.blog article.type-post .post-thumb img,
body.archive article.type-post .wp-post-image,
body.blog article.type-post .wp-post-image {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: cover;
    margin: 0;
}


/* Заголовок wpisu */
body.archive article.type-post .entry-title,
body.blog article.type-post .entry-title {
    margin: 10px 0;
    color: #2b2118;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.02em;
    width: 95%;
    padding: 0 2.5%;
}

.site-main .ast-blog-single-element>p{
    width: 95%;
    padding: 0 2.5%;
}

body.archive article.type-post .entry-title a,
body.blog article.type-post .entry-title a {
    color: inherit;
    text-decoration: none;
}

body.archive article.type-post .entry-title a:hover,
body.blog article.type-post .entry-title a:hover {
    color: #6f4f2f;
}

/* Meta карточки */
body.archive article.type-post .entry-meta,
body.blog article.type-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    color: #8a6f54;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    width: 95%;
    padding: 0 2.5%;
}

body.archive article.type-post .entry-meta a,
body.blog article.type-post .entry-meta a,
body.archive article.type-post .ast-terms-link a,
body.blog article.type-post .ast-terms-link a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #efe6da;
    color: #6f4f2f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

body.archive article.type-post .entry-meta a:hover,
body.blog article.type-post .entry-meta a:hover,
body.archive article.type-post .ast-terms-link a:hover,
body.blog article.type-post .ast-terms-link a:hover {
    background: #6f4f2f;
    color: #ffffff;
}

body.archive article.type-post .read-more{
    padding-left: 2.5%;
}

/* Treść / excerpt карточки */
body.archive article.type-post .entry-content,
body.blog article.type-post .entry-content,
body.archive article.type-post .entry-summary,
body.blog article.type-post .entry-summary {
    padding: 0 34px 34px;
    color: #5b5148;
    font-size: 16px;
    line-height: 1.75;
}

body.archive article.type-post .entry-content p,
body.blog article.type-post .entry-content p,
body.archive article.type-post .entry-summary p,
body.blog article.type-post .entry-summary p {
    margin: 0 0 20px;
}

/* Link "Dowiedz się więcej" / read more */
body.archive article.type-post .read-more,
body.blog article.type-post .read-more,
body.archive article.type-post .ast-button,
body.blog article.type-post .ast-button,
body.archive article.type-post .more-link,
body.blog article.type-post .more-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 10px;
    color: #6f4f2f;
    font-weight: 700;
    text-decoration: none;
}

body.archive article.type-post .read-more:hover,
body.blog article.type-post .read-more:hover,
body.archive article.type-post .more-link:hover,
body.blog article.type-post .more-link:hover {
    color: #2b2118;
}

/* Paginacja */
body.archive .navigation.pagination,
body.blog .navigation.pagination {
    grid-column: 1 / -1;
    margin-top: 28px;
}

body.archive .nav-links,
body.blog .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.archive .page-numbers,
body.blog .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    border-radius: 999px;
    background: #ffffff;
    color: #2b2118;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(46, 36, 24, 0.08);
}

body.archive .page-numbers.current,
body.blog .page-numbers.current,
body.archive .page-numbers:hover,
body.blog .page-numbers:hover {
    background: #6f4f2f;
    color: #ffffff;
}

/* Mobile / tablet */
@media (max-width: 921px) {
    body.archive .site-content,
    body.blog .site-content {
        padding: 48px 0 70px;
    }

    body.archive .site-main,
    body.blog .site-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body.archive .page-header,
    body.blog .page-header {
        padding: 38px 34px;
        border-radius: 22px;
    }

    body.archive article.type-post .post-thumb img,
    body.blog article.type-post .post-thumb img,
    body.archive article.type-post .wp-post-image,
    body.blog article.type-post .wp-post-image {
        height: 280px;
    }
}

@media (max-width: 600px) {
    body.archive .site-content,
    body.blog .site-content {
        padding: 30px 0 55px;
    }

    body.archive .site-content > .ast-container,
    body.blog .site-content > .ast-container {
        padding: 0 14px;
    }

    body.archive .page-header,
    body.blog .page-header {
        padding: 30px 24px;
        border-radius: 18px;
        margin-bottom: 28px;
    }

    body.archive .page-title,
    body.blog .page-title {
        font-size: 32px;
    }

    body.archive .taxonomy-description,
    body.blog .taxonomy-description {
        font-size: 16px;
    }

    body.archive article.type-post,
    body.blog article.type-post {
        border-radius: 20px;
    }

    body.archive article.type-post .post-thumb img,
    body.blog article.type-post .post-thumb img,
    body.archive article.type-post .wp-post-image,
    body.blog article.type-post .wp-post-image {
        height: 220px;
    }

    body.archive article.type-post .entry-header,
    body.blog article.type-post .entry-header {
        padding: 24px 22px 0;
    }

    body.archive article.type-post .entry-title,
    body.blog article.type-post .entry-title {
        font-size: 24px;
    }

    body.archive article.type-post .entry-content,
    body.blog article.type-post .entry-content,
    body.archive article.type-post .entry-summary,
    body.blog article.type-post .entry-summary {
        padding: 0 22px 26px;
        font-size: 15px;
    }
}