
/* ارتباط ساز - Posts Equalizer v2
   Only targets Elementor Posts widgets on the front page. */

body.home .elementor-widget-posts .elementor-posts-container,
body.front-page .elementor-widget-posts .elementor-posts-container {
    align-items: stretch !important;
}

/* Do not use a guessed fixed card height.
   JS calculates the real height after rendering. */
body.home .elementor-widget-posts .elementor-post,
body.front-page .elementor-widget-posts .elementor-post {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: var(--es-equalized-height, auto) !important;
}

/* Keep the image area consistent */
body.home .elementor-widget-posts .elementor-post__thumbnail,
body.front-page .elementor-widget-posts .elementor-post__thumbnail,
body.home .elementor-widget-posts .elementor-post__thumbnail__link,
body.front-page .elementor-widget-posts .elementor-post__thumbnail__link {
    overflow: hidden !important;
}

/* Content fills remaining card space */
body.home .elementor-widget-posts .elementor-post__text,
body.front-page .elementor-widget-posts .elementor-post__text {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

/* Long titles cannot make one card visually different */
body.home .elementor-widget-posts .elementor-post__title,
body.front-page .elementor-widget-posts .elementor-post__title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

/* Read more stays at the bottom */
body.home .elementor-widget-posts .elementor-post__read-more,
body.front-page .elementor-widget-posts .elementor-post__read-more {
    margin-top: auto !important;
}
