/**
 * Blog list — Figma 3:15020 (mobile) / desktop grid
 */

.navid-blog-list-page {
    font-family: var(--navid-font);
}

/* Breadcrumb — Navid slash style (same as products / post show) */
.navid-blog-list-page .title-breadcrumb-special .breadcrumb {
    margin: 0 0 24px;
    background: transparent;
    padding: 0;
}

.navid-blog-list-page .title-breadcrumb-special .breadcrumb nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    position: static;
}

.navid-blog-list-page .title-breadcrumb-special .breadcrumb nav > a,
.navid-blog-list-page .title-breadcrumb-special .breadcrumb nav > span {
    display: inline-flex;
    align-items: center;
    margin-left: 0 !important;
    position: static;
    color: var(--navid-gray);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
}

.navid-blog-list-page .title-breadcrumb-special .breadcrumb nav > a:hover {
    color: var(--navid-secondary);
}

.navid-blog-list-page .title-breadcrumb-special .breadcrumb nav > span {
    color: var(--navid-secondary);
    font-weight: 500;
}

.navid-blog-list-page .title-breadcrumb-special .breadcrumb nav > *:not(:last-child)::after {
    content: '/' !important;
    display: inline !important;
    margin-inline: 8px;
    color: var(--navid-gray-2);
    font-family: var(--navid-font);
    font-size: 14px;
    font-weight: 400;
    position: static;
    left: auto;
    top: auto;
}

.navid-blog-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    /* Ensure the post card media radius matches Figma (see navid-posts.css) */
    --navid-posts-radius: 4px;
}

.navid-blog-list__item {
    min-width: 0;
}

.navid-blog-list .navid-post-card {
    gap: 12px;
}

.navid-blog-list .navid-post-card__media {
    height: 208px;
}

.navid-blog-list .navid-post-card__body {
    gap: 8px;
    padding: 0 8px;
}

.navid-blog-list .navid-post-card__title {
    font-size: 14px;
    font-weight: 400;
}

.navid-blog-list .navid-post-card__date {
    font-size: 12px;
    color: var(--navid-gray-2, #a3a9b2);
}

.navid-blog-list-page__empty {
    margin: 0;
    padding: 24px 0;
    color: var(--navid-gray);
    font-size: 16px;
    text-align: center;
}

.navid-blog-list-page__pagination {
    margin-top: 40px;
}

.navid-blog-list-page__pagination .pagination {
    justify-content: center;
    gap: 8px;
}

@media (max-width: 991.98px) {
    body.navid-blog-page-active .navid-blog-list-page {
        margin-top: 0;
        margin-bottom: 0;
    }

    body.navid-blog-page-active .main-content.dt-sl {
        margin-top: 0;
        margin-bottom: 0;
    }

    .navid-blog-list-page .title-breadcrumb-special {
        display: none !important;
    }

    .navid-blog-list-page .main-container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .navid-blog-list-page__inner {
        padding: 24px var(--navid-container-padding, 16px);
        box-sizing: border-box;
    }

    .navid-blog-list {
        display: flex;
        flex-direction: column;
        gap: 32px;
        max-width: 358px;
        margin: 0 auto;
    }

    .navid-blog-list__item {
        width: 100%;
    }

    .navid-blog-list-page__pagination {
        margin-top: 32px;
        padding: 0 var(--navid-container-padding, 16px);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navid-blog-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .navid-blog-list {
        /* Match Figma desktop: 3 columns with ~40px horizontal and ~12px vertical gaps */
        grid-auto-flow: column;
        column-gap: 40px;
        row-gap: 12px;
        gap: 12px 40px;
    }
}
