/**
 * Picked Blog Posts Block Styles
 */

.picked-blog-posts {
    margin: 100px 0 50px;
    padding: 100px 0 50px;
    @media (max-width: 992px) {
        margin: 60px 0 30px;
        padding: 60px 0 30px;
    }
    @media (max-width: 640px) {
        margin: 40px 0 20px;
        padding: 40px 0 20px;
    }
    .heading-container {
        .distinct--text {
            @media (max-width: 768px) {
                text-align: left;
            }
        }
    }
}

/* Top Posts Section */
.picked-blog-posts .top-posts {
    margin: 48px 0 0;
    @media (max-width: 540px) {
        margin: 24px 0 0;
    }
}

.picked-blog-posts .top-posts .blog-wrap .title-link h5:hover {
    cursor: pointer;
    color: #1d4ed8;
}

/* All Blogs Grid */
.picked-blog-posts .all-blogs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 40px;
    grid-row-gap: 30px;
}

.picked-blog-posts .all-blogs img {
    height: auto;
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.picked-blog-posts .all-blogs .blog-wrap {
    display: flex;
    flex-direction: column;
    p {
        margin-bottom: 0;
    }
}

.picked-blog-posts .all-blogs .blog-wrap .image-wrap {
    margin-bottom: 18px;
}

.picked-blog-posts .all-blogs .blog-wrap .image-wrap a {
    max-height: 180px;
    width: 100%;
}

.picked-blog-posts .all-blogs .blog-wrap .image-wrap a img {
    border-radius: 8px;
}

.picked-blog-posts .all-blogs .blog-wrap .blog-info {
    margin-bottom: 10px;
}

.picked-blog-posts .all-blogs .blog-wrap a.title-link {
    font-style: normal;
    color: #202223;
}

.picked-blog-posts .all-blogs .blog-wrap a.title-link h5 {
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 12px;
}

.picked-blog-posts .all-blogs .blog-wrap a.title-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.picked-blog-posts .all-blogs .blog-wrap a h5:hover {
    cursor: pointer;
    color: #1d4ed8;
}

.picked-blog-posts .all-blogs .blog-wrap p {
    font-weight: 400;
    font-family: 'Inter';
    font-size: 15px;
    line-height: 24px;
    color: #6e7191;
}

.color_marketing {
    color: #75bdbf !important;
}
.color_marketing:hover {
    color: #69aaac !important;
}

.color_business {
    color: #1d4ed8 !important;
}
.color_business:hover {
    color: #1e40af !important;
}

.color_security {
    color: #f0ac4c;
}
.color_security:hover {
    color: #e39e3b !important;
}

.color_developers {
    color: #87c461;
}
.color_developers:hover {
    color: #79b057 !important;
}

.color_seo {
    color: #8f78bb;
}
.color_seo:hover {
    color: #816ca8 !important;
}

.color_general {
    color: #c67193;
}
.color_general:hover {
    color: #b26684 !important;
}

.color_sms {
    color: #ea7f7f;
}
.color_sms:hover {
    color: #d57070 !important;
}

.color_guides {
    color: #e8894b;
}
.color_guides:hover {
    color: #ca763f !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .picked-blog-posts .top-posts .all-blogs {
        grid-template-columns: 1fr 1fr;
    }

    .picked-blog-posts .top-posts .all-blogs .blog-wrap .image-wrap a {
        max-height: 250px;
    }

    .picked-blog-posts .top-posts .all-blogs .blog-wrap .image-wrap a img {
        height: 250px;
    }

    .picked-blog-posts .top-posts .all-blogs .blog-wrap:last-of-type {
        display: none;
    }
}

@media (max-width: 768px) {
    .picked-blog-posts .top-posts .all-blogs {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .picked-blog-posts .top-posts .all-blogs .blog-wrap .image-wrap a {
        max-height: 337px;
    }

    .picked-blog-posts .top-posts .all-blogs .blog-wrap .image-wrap a img {
        height: 337px;
    }

    .picked-blog-posts .top-posts .all-blogs .blog-wrap p {
        margin: 0;
    }

    .picked-blog-posts .top-posts .all-blogs .blog-wrap:last-of-type {
        display: block;
    }
}

@media (max-width: 600px) {
    .picked-blog-posts .top-posts .all-blogs .blog-wrap .image-wrap a {
        max-height: 337px;
    }

    .picked-blog-posts .top-posts .all-blogs .blog-wrap .image-wrap a img {
        height: auto !important;
    }
}
