/* Astra search results grid */
.search .ast-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.search .ast-article-post {
    width: 100% !important;
    margin: 0 !important;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.search .ast-article-post img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.search .entry-title {
    font-size: 16px;
    line-height: 1.4;
}

.search .entry-content {
    display: none;
}

@media (max-width:768px){
    .search .ast-row {
        grid-template-columns: repeat(2,1fr);
    }
}
/* PDF image size small */
.search .ast-article-post img[src*=".png"],
.search .ast-article-post img[src*="pdf"] {
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: contain;
    display: block;
    margin: 10px auto;
}
/* Elementor blog cards equal height */
.elementor-posts-container article {
    display: flex !important;
    flex-direction: column;
    height: 100% !important;
}

/* Equal card box */
.elementor-post {
    height: 420px !important;
    display: flex !important;
    flex-direction: column;
    border: 1px solid #eee;
    padding: 15px;
}

/* Thumbnail container */
.elementor-post__thumbnail {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Full image without crop */
.elementor-post__thumbnail img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    background: #fff;
}

/* Fix title height */
.elementor-post__title {
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
    line-height: 1.4;
}

/* Content stretch */
.elementor-post__text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Read more button bottom aligned */
.elementor-post__read-more {
    margin-top: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .elementor-post {
        height: auto !important;
    }

    .elementor-post__thumbnail {
        height: 150px;
    }
}