body {
    margin: 0;
    font-family: var(--font-titels), sans-serif;
    background-color:  var(--backmain-color);
    color: hsl(282.46deg 8% 15%);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


.blog-layout {
    display: flex;
    gap: 20px;
    flex-direction: row-reverse;
}

.blog-sidebar {
    width: 25%;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 9%);
    margin-bottom: 20px;
    border: 1px solid #ececec;
}

.posts-list {
    width: 75%;
}

.blog-post {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 9%);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #ececec;
}

.post-main {
    display: flex;
    align-items: stretch;
    flex-direction: row-reverse;
    gap: 15px;
    padding: 15px;
}

.post-thumbnail {
    width: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.post-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    margin-block-start: 0em;
    margin-block-end: 0em;
}

.post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #0073aa;
}

.post-excerpt {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
    margin-block-start: 5px;
    margin-block-end: 1em;
}

.post-meta-container {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
    padding-top: 10px;
    border-top: 1px solid #eee;
    align-items: center;
}


.sidebar-content{padding:10px}

@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }

    .blog-sidebar {
        width: auto;
        order: 2;
        padding: 10px;
    }

    .posts-list {
        width: 100%;
        order: 1;
    }
}

@media (max-width: 768px) {
    .post-main {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    .post-thumbnail {
        width: 100%;
        margin-bottom: 15px;
    }

    .post-content {
        width: 100%;
    }

    .post-meta-container {
        gap: 15px;
    }


    .blog-container {
        margin-top: 3rem;
    }

}




/*navbari*/

.post-viewcomment {
    display: flex;
}

.post-views {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.post-comments{
    display: flex;
    align-items: center;
}



.post-comments img,
.post-views img {
    width: 25px;
    height: 25px;
}


.f-comment{font-family: var(--font-titels);
    font-family: var(--font-titels);
    line-height: 0;
    font-size: 1rem;}

.f-view{font-family: var(--font-titels);
    line-height: 0;
    font-size: 1rem;}









    .post-video-preview {
        width: 100%;
        text-align: center;
        position: relative;
        cursor: pointer;
    }
    
    .video-preview-link {
        display: block;
        width: 100%;
        text-decoration: none; 
        line-height: 0;
    }
    
    .video-preview-link img {
        width: 100%; 
        height: auto;
        object-fit: cover;
        border-radius: 12px;
        transition: filter 0.3s ease;
    }
    
    .post-video-preview:hover .video-preview-link img {
        filter: blur(2px);
    }
    
    .video-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #00000024; 
        border-radius: 50%;
        padding: 12px;
        transition: transform 0.3s ease;
        z-index: 2; 
        pointer-events: none; 
    
        line-height: 0;
    }
    
    .video-icon img {
        width: 40px;
        height: 40px;
        filter: none; 
    }
    
    .post-video-preview:hover .video-icon {
        transform: translate(-50%, -50%) scale(1.2); 
    }
    
    .video-duration {
        position: absolute;
        bottom: 20px;
        right: 9px;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        padding: 2px 6px;
        border-radius: 8px;
        font-size: 12px;
        font-family: var(--font-titels);
        z-index: 2; 
        pointer-events: none; 
    }
    
    
    
    @media (max-width: 768px) {
        .post-video-preview {
            width: 100%;
            margin-bottom: 15px;
        }
    }