  .latest-posts {
    padding-top: 160px;
    padding-bottom: 50px;
}
.latest-posts-title {
    margin-bottom: 40px;
    text-align: center;
}

.latest-posts-title span.line {
    width: 110px;
    height: 2px;
    display: block;
    margin: auto;
    margin-bottom: 30px;
    background-color: #2c3d4f;
}

.latest-posts-title h2 {
    font-weight: 700;
    font-size: 40px;
}
.latest-posts__main {
    border: 3px solid #3ba9bd;
    border-radius: 8px;
    padding: 28px 42px;
    display: flex;
    text-decoration: none;
    margin-bottom: 1rem;
    min-height: 300px;
    transition:all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.latest-posts__main:hover {
    text-decoration: none;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.latest-posts__main .image img {
    width: 240px;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.latest-posts__main .content {
    margin-left: 37px;
}

.latest-posts__main .content h5 {
    color: #304658;
    font-weight: 700;
    font-size: 24px;
}

.latest-posts__main .content p {
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 40px;
    color: #304658;
}

.latest-posts__main .content a {
    display: flex;
    align-items: center;
    color: #2c3d4f;
    font-weight: bold;
    font-size: 18px;
}

.latest-posts__main .content a::after {
    margin-left: 15px;
    height: 24px;
    content: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuOTk5NTEyIDcuNUwxMi42NDI2IDcuNU0xMi42NDI2IDcuNUw2LjY0MjU4IDEzLjVNMTIuNjQyNiA3LjVMNi42NDI1OCAxLjUiIHN0cm9rZT0iIzJDM0Q0RiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K);
}

.latest-posts__filters {
    text-align: center;
    margin-bottom: 40px;
}

.latest-posts__filters a {
    border-radius: 4px;
    background-color: #d5e9f9;
    color: #2c3d4f;
    font-weight: 700;
    font-size: 24px;
    min-width: 240px;
    display: inline-block;
    max-width: 33%;
    margin: 0 12px;
    text-align: center;
    padding: 12px 48px;
    margin-bottom: 20px;
}

.latest-posts__filters a.active {
    background-color: #2c3d4f;
    color: white;
}


.latest-posts__main2 .content h5 {
    color: #304658;
    font-weight: 700;
    font-size: 24px;
}

.latest-posts__main2 {
    border: 3px solid #3ba9bd;
    border-radius: 8px;
    padding: 28px 42px;
    display: flex;
    text-decoration: none;
    margin-bottom: 1rem;
    height:100%;
    transition:all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.latest-posts__main2:hover {
    text-decoration:none;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.latest-posts__main2 .content p {
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 40px;
    color: #304658;
}

.latest-posts__main2 .content a {
    display: flex;
    align-items: center;
    color: #2c3d4f;
    text-decoration:none;
    font-size: 18px;
}

.latest-posts__main2 .content a:hover {
    text-decoration:none;
}

.latest-posts__main2 .content a::after {
    margin-left: 17px;
    height: 24px;
    content: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuOTk5NTEyIDcuNUwxMi42NDI2IDcuNU0xMi42NDI2IDcuNUw2LjY0MjU4IDEzLjVNMTIuNjQyNiA3LjVMNi42NDI1OCAxLjUiIHN0cm9rZT0iIzJDM0Q0RiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K);
}

.latest-posts .read-more {
    border-radius: 4px;
    background-color: #2c3d4f;
    color: white;
    font-weight: 700;
    font-size: 18px;
    display: none;
    max-width: max-content;
    text-align: center;
    padding: 16px 48px;
    margin: auto;
    margin-top: 50px;
    width: 100%;
    max-width: 360px;
}
.latest-posts .read-more.active {
    display: block;
}

.latest-posts .rowitems {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom:2rem;
}

.latest-posts .moremore {
    display: none;
}

@media screen and (max-width: 1250px) {
    .latest-posts__main {
        display: block;
    }
    .latest-posts__main .content {
        margin-left: 0;
    }
    .latest-posts__main .image img {
        width: 100%;
        max-width: 240px;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 991px) {
    .latest-posts__filters a {
        font-size: 18px;
    }
    .latest-posts-title h2 {
        font-size: 36px;
    }
    .latest-posts {
        padding: 50px 0;
    }
    .latest-posts .rowitems {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .latest-posts__filters a {
        background-color: #d5e9f9;
        color: #2c3d4f;
        /* min-width: 100%; */
        width: 100%;
        max-width: 360px;
        margin-left: 0;
        margin-right: 0;
    }
    .latest-posts__filters a.active {
        background-color: #2c3d4f;
        color: white;
    }
}


@media screen and (max-width: 550px) {
    .latest-posts__main .image img {
        width: 100%;
        max-width: 480px;
        margin-bottom: 1rem;
        max-height: 200px;
        margin-bottom: 1rem;
    }
}