.ps6-section {
    direction: rtl;
    width: 100%;
    margin: 0;
}

.ps6-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.ps6-card {
    background: #ffffff;
    border: 1px solid #e8e1d7;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(34, 26, 18, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
    position: relative;
}

.ps6-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5e34 0%, #c89b63 55%, #e3c08d 100%);
    z-index: 2;
}

.ps6-card:hover {
    transform: translateY(-3px);
    border-color: #dccdb8;
    box-shadow: 0 12px 24px rgba(34, 26, 18, 0.09);
}

.ps6-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ps6-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f4efe8;
    overflow: hidden;
}

.ps6-thumb-wrap::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: rgba(139, 94, 52, 0.18);
}

.ps6-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ps6-card:hover .ps6-thumb {
    transform: scale(1.03);
}

.ps6-thumb-placeholder {
    background:
        linear-gradient(135deg, #f1ebe3, #e5dacb);
}

.ps6-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fdfcf9 100%);
    min-height: 132px;
}

.ps6-title {
    margin: 0;
    color: #2d2218;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 800;
    letter-spacing: -0.1px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps6-excerpt {
    margin: 0;
    color: #6a5b4b;
    font-size: 13px;
    line-height: 1.8;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* فوکوس */
.ps6-link:focus-visible {
    outline: 2px solid #8b5e34;
    outline-offset: 2px;
    border-radius: 14px;
}

/* تبلت بزرگ */
@media (max-width: 1200px) {
    .ps6-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .ps6-body {
        min-height: 124px;
    }

    .ps6-title {
        font-size: 14px;
    }

    .ps6-excerpt {
        font-size: 12px;
    }
}

/* تبلت */
@media (max-width: 900px) {
    .ps6-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ps6-card {
        border-radius: 12px;
    }

    .ps6-body {
        padding: 10px 10px 12px;
        min-height: 116px;
    }

    .ps6-title {
        font-size: 14px;
        line-height: 1.65;
    }

    .ps6-excerpt {
        font-size: 12px;
        line-height: 1.75;
        -webkit-line-clamp: 2;
    }

    .ps6-link:focus-visible {
        border-radius: 12px;
    }
}

/* موبایل */
@media (max-width: 640px) {
    .ps6-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ps6-card {
        border-radius: 10px;
    }

    .ps6-thumb-wrap {
        aspect-ratio: 16 / 9;
    }

    .ps6-body {
        min-height: auto;
        padding: 10px 10px 12px;
        gap: 6px;
    }

    .ps6-title {
        font-size: 14px;
        line-height: 1.65;
        -webkit-line-clamp: 2;
    }

    .ps6-excerpt {
        font-size: 12px;
        line-height: 1.7;
        -webkit-line-clamp: 2;
    }

    .ps6-link:focus-visible {
        border-radius: 10px;
    }
}