.ps8-section {
    direction: rtl;
    width: 100%;
    margin: 0;
}

.ps8-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8edf5;
}

.ps8-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
    color: #11233d;
    position: relative;
    padding-right: 12px;
    letter-spacing: -0.2px;
}

.ps8-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2f66c7 0%, #60a5fa 100%);
}

.ps8-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ps8-card {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(16, 34, 63, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
}

.ps8-card:hover {
    transform: translateY(-3px);
    border-color: #d7e1ef;
    box-shadow: 0 14px 28px rgba(16, 34, 63, 0.09);
}

.ps8-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ps8-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f4f7fb;
    overflow: hidden;
    position: relative;
}

.ps8-thumb-wrap::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: rgba(47, 102, 199, 0.12);
}

.ps8-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ps8-card:hover .ps8-thumb {
    transform: scale(1.03);
}

.ps8-thumb-placeholder {
    background:
        linear-gradient(135deg, #edf2fb 0%, #dde8fb 100%);
}

.ps8-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 138px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ps8-card-title {
    margin: 0;
    color: #0f2340;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 800;
    letter-spacing: -0.1px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps8-excerpt {
    margin: 0;
    color: #5c6b82;
    font-size: 13px;
    line-height: 1.85;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps8-footer {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.ps8-loadmore-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #d7e4fb;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    color: #1d4fa8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 6px 14px rgba(47, 102, 199, 0.08);
}

.ps8-loadmore-btn:hover {
    transform: translateY(-1px);
    border-color: #bcd3fb;
    box-shadow: 0 10px 18px rgba(47, 102, 199, 0.12);
}

.ps8-loadmore-btn:disabled {
    opacity: 0.75;
    cursor: default;
    transform: none;
}

.ps8-loadmore-btn.is-loading .ps8-loadmore-text {
    opacity: 0.7;
}

.ps8-loadmore-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid #c7d8f6;
    border-top-color: #2f66c7;
    border-radius: 50%;
    animation: ps8spin 0.7s linear infinite;
}

.ps8-loadmore-btn.is-loading .ps8-loadmore-spinner {
    display: inline-block;
}

@keyframes ps8spin {
    to { transform: rotate(360deg); }
}

/* تبلت */
@media (max-width: 1100px) {
    .ps8-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ps8-title {
        font-size: 20px;
    }

    .ps8-body {
        min-height: 126px;
    }

    .ps8-card-title {
        font-size: 15px;
    }

    .ps8-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

/* موبایل */
@media (max-width: 640px) {
    .ps8-header {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .ps8-title {
        font-size: 18px;
        padding-right: 10px;
    }

    .ps8-title::before {
        width: 3px;
    }

    .ps8-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ps8-card {
        border-radius: 12px;
    }

    .ps8-thumb-wrap {
        aspect-ratio: 16 / 9;
    }

    .ps8-body {
        min-height: auto;
        padding: 10px 10px 12px;
        gap: 6px;
    }

    .ps8-card-title {
        font-size: 14px;
        line-height: 1.6;
    }

    .ps8-excerpt {
        font-size: 12px;
        line-height: 1.75;
        -webkit-line-clamp: 2;
    }

    .ps8-loadmore-btn {
        width: 100%;
        max-width: 220px;
        height: 40px;
        font-size: 13px;
    }
}