.elementor-blog-widget * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.elementor-blog-widget {
    max-width: 1413px;
    margin: 0 auto;
    padding: 1em;
}

.elementor-blog-widget h2 {
    text-align: center;
}

.elementor-blog-widget .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-template-rows: repeat(auto-fit, minmax(350px, 450px));
    gap: 2em;
    margin-block-start: 2em;
}

.elementor-blog-widget .card {
    box-shadow: 0px 0px 10px 0px rgba(218.2375, 218.2375, 218.2375, 0.9);
    border-radius: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-image 0.3s ease;
    margin-bottom: 0 !important;
    /* Force zero bottom margin */
}

.elementor-blog-widget .card:hover {
    transform: scale(1.02);
}

.elementor-blog-widget .card .card-img {
    width: 100%;
    height: 100%;
    border-radius: 30px;
}

.elementor-blog-widget .card .card-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.elementor-blog-widget .card .card-content {
    border-radius: inherit;
    margin-block-start: 1em;
    padding: 3em 1em 1em 1em;
    position: absolute;
    inset: auto 0 0 0;
    color: white;
    transition: background-image 0.3s ease;
}

.elementor-blog-widget .card .card-content a {
    cursor: pointer;
    transition: color 0.3s ease;
}

.elementor-blog-widget .card .card-content h3 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.elementor-blog-widget .card .card-content h3.card_title {
    color: #f1f1f1;
}

.elementor-blog-widget .card .card-content p {
    margin-block-start: .6em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.elementor-blog-widget .pagination {
    text-align: center;
    margin-top: 2em;
}

.elementor-blog-widget .pagination a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.elementor-blog-widget .pagination a:hover {
    background-color: #f1f1f1;
}

@media screen and (max-width: 700px) {
    .elementor-blog-widget .container .card .card-content {
        padding: 3em 1.5em 1.5em 1.5em;
    }
}

@media screen and (min-width: 700px) {
    .elementor-blog-widget .container .card:nth-of-type(1) {
        grid-column: 1/3;
        grid-row: 1/2;
    }
}