.blog-grid{
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px -50px;

    & li{
        width: 33.33%;
        padding: 0 20px;
        margin-bottom: 50px;
        display: flex;
        flex-wrap: wrap;

        & .blog-item{
            display: flex;
            flex-wrap: wrap;
            width: 100%;
            height: 100%; 
            border-radius: 0 0 20px 20px;

            & .blog-media{
                overflow: hidden;

                & img{
                    border-radius: 20px 20px 0 0;
                    transition: all 0.5s linear;
                    -webkit-transition: all 0.5s linear;
                    -moz-transition: all 0.5s linear;
                    -o-transition: all 0.5s linear;
                }

            }

            & .blog-post{
                display: flex;
                flex-wrap: wrap;
                padding: 35px 50px 50px;
                border: 1px solid var(--border-color);
                border-top: none;         
                border-radius: 0 0 20px 20px;

                & .head-20{
                    font-weight: var(--font-bold);
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    line-clamp: 3; 
                    -webkit-line-clamp: 2; 
                    overflow: hidden;
                    min-height: 42px;
                    margin-bottom: 22px;
                    flex: 1;
                    transition: all 0.5s linear;
                    -webkit-transition: all 0.5s linear;
                    -o-transition: all 0.5s linear;
                    -moz-transition: all 0.5s linear;
                }

                & p{
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    line-clamp: 3; 
                    -webkit-line-clamp: 3; 
                    overflow: hidden;
                    min-height: 81px;
                    margin-bottom: 35px;
                }

                & .alink::after{
                    content: "";
                    position: absolute;
                    bottom: -2px;
                    left:0;
                    width: 0;
                    height: 2px;
                    background-color: var(--theme);
                    transition: all 0.5s linear;
                    -webkit-transition: all 0.5s linear;
                    -o-transition: all 0.5s linear;
                    -moz-transition: all 0.5s linear;
                }
            }
        }
    }
}

.blog-wrapper{
    max-width: 835px;
    margin: 0 auto 100px;
}
.blog-wrapper > *:not(:last-child):not(h1):not(h2):not(h3):not([class*="heading-"]) {
    margin-bottom: 45px;
}
.blog-wrapper [class*="heading-"] + ul{
    margin-top: 30px;
}
.content-box{
    border: 1px solid #70C8B3;
    background-color: #E0EDEA;
    border-radius: 20px;
    padding: 45px 105px 45px 60px;
    display: flex;
    column-gap: 25px;

    & .quote-icon{
        width: 35px;
    }

    & .quote-ctent{
        width: calc(100% - 35px);
    }
}

.blog-grid {
    & li {
        & .blog-item:hover {
            box-shadow: 0 0 12px rgb(0 0 0 / 20%);

            & .head-20{
                color: var(--theme);
            }

            & .alink::after{
                right: 0;
                width: 100%;
            }

            & .blog-media {
                & img {
                    transform: scale(1.1);
                }
            }

        }
    }
}


.blog-slider:not(.slick-initialized) li:nth-child(n+4){display: none;}

.blog-grid + .pagination {
    margin-top: 50px;
}

.pagination{
    display: flex;
    flex-wrap: wrap;
    gap:10px;
    justify-content: center;
}
.pagination .page-numbers{
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;

    &:hover,
    &.current{
        background-color: var(--theme);
        color: var(--white);
        border-color: var(--theme);
    }
}
.pagination .next.page-numbers ,
.pagination .prev.page-numbers{
    width: auto;
    border:0;

    &:hover{
        background-color: transparent;
        color: var(--theme);
    }
}

/* ********* || MEDIA QUERY || ********* */

@media screen and (max-width: 1439.98px){
    .blog-grid {
        & li {
            & .blog-item {
                & .blog-post {
                    padding: 30px;

                    & .head-20{
                        margin-bottom: 12px;
                    }
                    & p{
                        margin-bottom: 20px;
                    }
                }
            }
        }
    }
    .blog-wrapper{
       margin: 0 auto 60px; 
    }
}



@media screen and (max-width: 1199.98px){

    .blog-wrapper > *:not(:last-child):not(h1):not(h2):not(h3):not([class*="heading-"]) {
        margin-bottom: 30px;
    }
    .blog-wrapper{
       margin: 0 auto 40px; 
    }
    .latest-blog-wrapper .blog-grid{
        margin-bottom: 30px;

        & .slick-prev{
            left:calc(50% - 45px);
        }
        & .slick-next{
            right:calc(50% - 45px);
        }
    }


    .content-box{
        border-radius: 10px;
        padding: 30px;
        gap: 15px;
        flex-wrap: wrap;

        & .quote-ctent {
            width: 100%;
        }
    }
    
    .blog-grid {
        margin: 0 -10px -30px;

        & li {
            padding: 0 10px;
            margin-bottom: 30px;

            & .blog-item {
                & .blog-post {
                    padding: 20px;

                    & .head-20{
                        min-height: 65px;
                    }
                    & p{
                        min-height: 70px;
                    }
                }
            }
        }
    }
}


@media screen and (max-width: 991.98px){
    .content-box{
        padding: 25px;
    }
    
    .blog-grid {
        margin: 0 -5px -30px;

        & li {
            padding: 0 5px;
            width: 50%;
        }
    }
    .blog-slider:not(.slick-initialized) li:nth-child(n+3){display: none;}
}

@media screen and (max-width: 991.98px){
    
    .blog-grid {
        & li {
            & .blog-item {
                & .blog-media{
                    & img {
                        border-radius: 10px 10px 0 0;
                    }
                }
                
                & .blog-post {
                    padding: 15px;
                    border-radius: 0 0 10px 10px;

                    & p {
                        min-height: 65px;
                        line-height: 22px;
                    }

                    & .head-20 {
                        font-size: 16px;
                        min-height: 58px;
                    }
                }
            }
        }
    }

    .blog-page .blog-grid{
        margin: 0 -5px -12px;

        & li{
            margin-bottom: 12px;
        }

    }

}


@media screen and (max-width: 480px) {

    .hm-blog .blog-slider li{width: 100%;}
    .blog-slider:not(.slick-initialized) li:nth-child(n+2){display: none;}

}