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;
    }


    .blog-container {
        margin-top: 3rem;
    }


}

@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;
    }
}




/*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;}





.author-header {
    display: flex;
    align-items: center;
    max-width: 1200px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    direction: rtl;
    margin-bottom: 30px;
    align-items: center;

    box-shadow: 0 2px 5px rgb(0 0 0 / 9%);
}

.author-avatar {
    text-align: center;
    padding: 10px;
}

.author-avatar img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10%;
    border: 2px solid #ddd;
}

.author-details {
    padding: 10px 20px;
}

.author-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.author-description {
    margin: 0 0 10px;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.author-link {
    display: flex;
        align-items: center;
}

.author-link a {
    display: flex;
    align-items: center;
    color: #0073aa;
    font-size: 15px;
    text-decoration: none;
}

.author-link a:hover {
    text-decoration: underline;
}

.author-link img {
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .author-header {
        flex-direction: column;
        margin: 20px auto;
        padding: 10px;
        align-items: center;
    }

    .author-avatar {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }

    .author-avatar img {
        width: 180px;
        height: 180px;
    }

    .author-details {
        flex: 0 0 100%;
        padding: 0 10px;
        text-align: center;
    }

    .author-title {
        font-size: 24px;
    }

    .author-description {
        font-size: 14px;
        text-align: center;
        width: 100%;
    }

    .author-link {
        justify-content: center;
    }
}








.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;
    }
}






