/**
 * Navid blog posts — Figma 470:13059
 */

.navid-posts-section {
    --navid-posts-gap: 24px;
    --navid-posts-carousel-gap: 16px;
    --navid-posts-radius: 4px;

    display: flex;
    flex-direction: column;
    gap: var(--navid-posts-gap);
    width: 100%;
    margin: 32px 0;
    font-family: var(--navid-font);
}

.navid-posts-carousel {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--navid-posts-carousel-gap);
    width: 100%;
    direction: ltr;
}

.navid-posts-swiper.swiper-container {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    direction: rtl;
}

.navid-posts-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
    padding-left: 16px;
}

.navid-post-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.navid-post-card__media {
    display: block;
    width: 100%;
    height: 208px;
    border-radius: var(--navid-posts-radius);
    overflow: hidden;
    background: var(--navid-tertiary);
    flex-shrink: 0;
}

.navid-post-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navid-post-card__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.navid-post-card__title {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: var(--navid-gray);
    text-align: justify;
    text-decoration: none !important;
    word-break: break-word;
    transition: color 0.15s;
}

.navid-post-card__title:hover {
    color: var(--navid-secondary);
}

.navid-post-card__date {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    padding-right: 18px;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: var(--navid-gray-2);
    text-align: right;
    list-style: none;
    position: relative;
}

.navid-post-card__date::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--navid-gray-2);
}

.navid-posts-mobile-scroll {
    display: none;
}

.navid-posts-carousel--desktop {
    display: flex;
}

@media (max-width: 767.98px) {
    .navid-posts-section {
        margin: 24px 0;
        gap: 24px;
    }

    .navid-posts-section--home-mobile .navid-products-header,
    .navid-posts-section--home-mobile .navid-products-header--home-mobile {
        padding-inline: var(--navid-container-padding, 16px);
        box-sizing: border-box;
    }

    .navid-posts-section--home-mobile .navid-products-header__title {
        font-size: 20px;
        padding: 4px 0;
    }

    .navid-posts-section--home-mobile .navid-products-header__more {
        gap: 8px;
        min-height: 48px;
        padding: 12px 0;
        font-size: 14px;
    }

    .navid-posts-section--home-mobile .navid-posts-carousel--desktop {
        display: none !important;
    }

    .navid-posts-mobile-scroll {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        width: 100vw;
        max-width: 100vw;
        margin-inline-start: calc(50% - 50vw);
        padding-inline: var(--navid-container-padding, 16px);
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        direction: rtl;
    }

    .navid-posts-mobile-scroll::-webkit-scrollbar {
        display: none;
    }

    .navid-posts-mobile-scroll__item {
        flex: 0 0 241px;
        width: 241px;
        min-width: 241px;
    }

    .navid-posts-mobile-scroll .navid-post-card {
        gap: 12px;
    }

    .navid-posts-mobile-scroll .navid-post-card__media {
        height: 140px;
    }

    .navid-posts-mobile-scroll .navid-post-card__body {
        gap: 8px;
        padding: 0 8px;
    }

    .navid-posts-mobile-scroll .navid-post-card__title {
        font-size: 14px;
        font-weight: 400;
    }

    .navid-post-card__media {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .navid-posts-section:not(.navid-posts-section--home-mobile) .navid-posts-swiper .swiper-slide {
        padding-left: 12px;
    }

    .navid-posts-section:not(.navid-posts-section--home-mobile) .navid-post-card__media {
        height: 160px;
    }
}
