/* SAJA_ARTICLE_REAL_CLASSES_V5 */
.saja-articles-grid {
    align-items: stretch !important;
}

.saja-article-card {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.saja-article-card-image {
    width: 100% !important;
    height: 245px !important;
    min-height: 245px !important;
    max-height: 245px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    flex: 0 0 245px !important;
}

.saja-article-card-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    line-height: 1.35 !important;
    margin: 22px 24px 0 !important;
    padding: 0 !important;
}

.saja-article-card p,
.saja-article-card-summary {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    line-height: 1.6 !important;
    margin: 12px 24px 0 !important;
}

html[lang="ar"] .saja-article-card {
    direction: rtl !important;
    text-align: center !important;
}

html[lang="en"] .saja-article-card {
    direction: ltr !important;
    text-align: center !important;
}

@media (max-width: 640px) {
    .saja-article-card {
        height: 440px !important;
        min-height: 440px !important;
        max-height: 440px !important;
    }

    .saja-article-card-image {
        height: 205px !important;
        min-height: 205px !important;
        max-height: 205px !important;
        flex-basis: 205px !important;
    }

    .saja-article-card-title {
        height: 68px !important;
        min-height: 68px !important;
        max-height: 68px !important;
        margin: 18px 20px 0 !important;
    }
}
/* SAJA_ARTICLE_TEXT_SIZE_V6 */
.saja-article-card-title {
    font-size: clamp(20px, 1.45vw, 26px) !important;
    line-height: 1.32 !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
}

.saja-article-card p,
.saja-article-card-summary {
    font-size: 15px !important;
    line-height: 1.55 !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
}

@media (max-width: 640px) {
    .saja-article-card-title {
        font-size: 20px !important;
        height: 62px !important;
        min-height: 62px !important;
        max-height: 62px !important;
    }

    .saja-article-card p,
    .saja-article-card-summary {
        font-size: 14px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
}
