
.nls-latest-posts-block .nls-block-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four columns of equal width */
    gap: 25px; /* Space between grid items */
}


.custom-post-content-wrap h2 a {
    display: -webkit-box; /* Use flexbox for text truncation */
    -webkit-line-clamp: 2; /* Limit text to 2 lines */
    -webkit-box-orient: vertical; /* Vertical box orientation */
    overflow: hidden; /* Hide overflowing text */
    text-overflow: ellipsis; /* Add ellipsis (...) at the end */
    white-space: normal; /* Allow text wrapping */
    font-size: 18px; /* Adjust font size as needed */
    line-height: 1.4; /* Adjust line height for readability */
    color: #001E30;
    font-family: Livvic;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
}

.custom-post-content-wrap .meta a {
    color: #001E30;
    text-decoration: none;
}

.nls-latest-posts-block .nls-title, .nls-latest-posts-block .nls-desc {
    text-align: center;
}
.nls-latest-posts-block .nls-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: auto 0;
}
.nls-latest-posts-block .title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.nls-latest-posts-block .custom-post-display-item {
    background-color: #fff;
    border-radius: 15px;
}
.nls-latest-posts-block .custom-post-content-wrap {
    padding: 0 22px 22px 22px;
}
.nls-latest-posts-block .post-image img {
    border-radius: 15px 15px 0 0;
}
.nls-latest-posts-block .nls-block-container {
    margin: 50px 0;
}


.nls-latest-posts-block .post-image img {
    border-radius: 15px 15px 0 0;
    width: 100%; /* Ensure the image takes up the full width of its container */
    height: auto; /* Maintain the aspect ratio */
    object-fit: cover; /* Ensures the image covers the container, cropping as needed */
    aspect-ratio: 5 / 3;
    display: block; /* Removes inline spacing issues */
    position: relative; /* Ensures proper positioning inside its container */
}


@media (max-width: 980px) {
    .nls-latest-posts-block .nls-block-container {
        display: block;    
    }
    .nls-latest-posts-block .custom-post-display-item {
       margin-bottom: 32px;
    }
    .nls-latest-posts-block .title-wrapper {
        display: block; 
    }
    .custom-post-cta {
        text-align: center;
        margin-top: 12px;
    }
    .nls-latest-posts-block .nls-block-wrapper {
        padding-bottom: 0px;
    }
}