body {
    background-color: #f4f4f4;
}

.container {
    padding: 20px 0px;
    display: flex;
}

/* ------------------------------ blog title  ------------------------------  */
.post-title {
    font-size: var(--p-large);
}

/* ------------------------------ Search Bar ------------------------------  */
.search-bar {
    /* position: sticky;
    top: 10%; */
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    place-items: center;
    border: 2px solid #f2f2f2;
    background-color: #fff;
    padding: 5px;
}

.search-input {
    padding: 6px;
    /* border: 1px solid #ccc; */
    border: none;
    outline: none;
    border-radius: 5px;
    width: 95%;
    box-sizing: border-box;
}


/* ------------------------------ Blog post ------------------------------  */

.blog-post {
    flex: 0 0 70%;
    margin-right: 20px;
    background-color: #fff;
    padding: 15px;
    box-sizing: border-box;
}


.post-content {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

}

.blog_post_box {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    flex: 0 0 20%;
    border: 2px solid #f2f2f2;
}

.blog_post_box a {
    text-decoration: none;
}

.thumbnail_box {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.thumbnail_box img {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
    object-fit: cover;
}

.content_info {
    color: #000;
    line-height: 1.8;
    font-size: 14px;
}

.content_info span:nth-child(1) {
    color: blue;
}

.blog_title a {
    text-decoration: none;
    display: block;
    color: #000;
    font-size: var(--p-small);
    font-weight: bold;
}


/* ------------------------------ Pre loader  ------------------------------ */
.loading {
    width: 15px;
    height: 15px;
    border: 5px solid #f2f2f2;
    border-right: 5px solid hotpink;
    border-radius: 200px;
    margin-left: 10px;
    animation-name: preloader;
    animation-duration: 0.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
    display: none;
}

.loading_active {
    animation-play-state: running;
    display: block;
}

.blur_class {
    opacity: 0.3;
    pointer-events: none;
}

@keyframes preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ------------------------------ Responsive Styles ------------------------------ */
@media screen and (max-width: 750px) {
    body .wrapper {
        padding: 0px 20px;
    }

    .container {
        flex-direction: column;
    }

    .blog-post {
        margin-right: 0px;
    }


}

@media screen and (max-width: 320px) {
    .post-content {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }

    .thumbnail_box {
        height: auto;
    }
}