.article26-posts-widget {
    --article26-posts-primary: #b3202a;
    --article26-posts-dark: #151515;
    --article26-posts-muted: #777;
    --article26-posts-soft: rgba(179, 32, 42, 0.10);
    direction: rtl;
    width: 100%;
}

.article26-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article26-posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article26-post-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    isolation: isolate;
}

.article26-post-card:before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--article26-posts-primary);
    opacity: .95;
    z-index: 2;
}

.article26-posts-hover-lift .article26-post-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 55px rgba(179, 32, 42, 0.18);
}

.article26-posts-equal-height .article26-post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article26-post-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(179, 32, 42, .10), rgba(20, 20, 20, .08));
}

.article26-post-card-media img,
.article26-post-card-placeholder {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform .5s ease;
}

.article26-posts-image-zoom .article26-post-card:hover .article26-post-card-media img {
    transform: scale(1.06);
}

.article26-post-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    font-weight: 800;
    color: var(--article26-posts-primary);
    background:
        radial-gradient(circle at 20% 20%, rgba(179, 32, 42, .18), transparent 28%),
        linear-gradient(135deg, #f8eeee, #ffffff);
}

.article26-post-card-placeholder span {
    border: 1px dashed rgba(179, 32, 42, .45);
    border-radius: 999px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, .72);
}

.article26-post-card-content {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article26-post-card-category-wrap {
    min-height: 30px;
    margin-bottom: 10px;
}

.article26-post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--article26-posts-soft);
    color: var(--article26-posts-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.article26-post-category:before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(179, 32, 42, .12);
}

.article26-post-card-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.45;
}

.article26-post-card-title a {
    color: var(--article26-posts-dark);
    text-decoration: none;
    transition: color .2s ease;
}

.article26-post-card-title a:hover {
    color: var(--article26-posts-primary);
}

.article26-post-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--article26-posts-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.article26-post-meta-separator {
    color: var(--article26-posts-primary);
    opacity: .65;
}

.article26-post-card-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 18px;
}

.article26-post-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--article26-posts-primary);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(179, 32, 42, .22);
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.article26-post-read-more:hover {
    color: #fff;
    transform: translateX(-3px);
    box-shadow: 0 16px 32px rgba(179, 32, 42, .30);
}

.article26-post-read-more svg {
    transform: scaleX(-1);
}

.article26-posts-layout-list .article26-post-card {
    display: grid;
    grid-template-columns: minmax(240px, 36%) 1fr;
    align-items: stretch;
}

.article26-posts-layout-list .article26-post-card-media img,
.article26-posts-layout-list .article26-post-card-placeholder {
    height: 100%;
    min-height: 235px;
}

.article26-posts-layout-featured .article26-post-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(320px, 48%) 1fr;
}

.article26-posts-layout-featured .article26-post-card-featured .article26-post-card-media img,
.article26-posts-layout-featured .article26-post-card-featured .article26-post-card-placeholder {
    height: 100%;
    min-height: 360px;
}

.article26-posts-layout-featured .article26-post-card-featured .article26-post-card-title {
    font-size: clamp(26px, 3vw, 38px);
}

.article26-posts-empty {
    padding: 26px;
    border: 1px dashed rgba(179, 32, 42, .35);
    border-radius: 20px;
    background: rgba(179, 32, 42, .06);
    color: var(--article26-posts-primary);
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1024px) {
    .article26-posts-layout-featured .article26-post-card-featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .article26-posts-layout-featured .article26-post-card-featured .article26-post-card-media img,
    .article26-posts-layout-featured .article26-post-card-featured .article26-post-card-placeholder {
        min-height: 260px;
    }
}

@media (max-width: 767px) {
    .article26-posts-grid {
        grid-template-columns: 1fr;
    }

    .article26-posts-layout-list .article26-post-card {
        grid-template-columns: 1fr;
    }

    .article26-posts-layout-list .article26-post-card-media img,
    .article26-posts-layout-list .article26-post-card-placeholder {
        height: 220px;
        min-height: 220px;
    }

    .article26-post-card-title {
        font-size: 20px;
    }
}
