﻿
.blog-post .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hrTitle {
    position: relative;
    width: 1908px;
    left: 417px;
    top: -56px;
    border: -0.5px solid;
    color: gray;
}

/* --- שם הכותב --- */
.author-name {
    text-align: right;
    font-size: 26px;
    color: #1dbfdd;
    font-weight: bold;
    margin-bottom: 4px;
    margin-top: -45px;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
}


/* --- תאריך פרסום --- */
.publish-date {
    text-align: right;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    justify-content: flex-end;
}

.post-action {
    font-size: 18px;
    text-decoration: none;
    color: #555;
    transition: color 0.2s;
}

    .post-action:hover {
        color: #1dbfdd;
        cursor: pointer;
    }


/* --- כותרת --- */
.blog-post h1 {
    font-family: 'FbAbsolutiHeb-Regular';
    font-size: 46px;
    font-weight: bold;
    text-align: right;
    color: #1a1a1a;
    margin-bottom: 30px;
    color: #4D4D4D;
}

/* --- תמונה ראשית --- */
.post-main-image {
    text-align: center;
    margin-bottom: 40px;
}

    .post-main-image img {
        width: 100%;
        height: 80%;
        object-fit: cover;
        margin-right: 19px;
        display: block;
    }

/* --- תוכן הפוסט --- */
.post-content-wrapper {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 10px;
}

.post-content {
    font-size: 18px;
    line-height: 1.9;
    color: #4D4D4D;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 60px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

    .post-content * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .post-content img {
        width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 8px;
        display: block;
    }

    .post-content table {
        display: block;
        overflow-x: auto;
        width: 100%;
        border-collapse: collapse;
    }

    .post-content iframe,
    .post-content video {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 20px 0;
    }

/* --- כתבות נוספות --- */
.related-posts {
    margin: 0px auto 180px;
    max-width: 1485px;
    padding: 0 0px;
}

.hrBottom {
    margin-top: 50px;
}

.related-posts h2 {
    font-family: 'FbAbsolutiHeb-Regular';
        font-weight: bold;
    margin-bottom: 1rem;
    color: #4D4D4D;
    text-align: right;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.related-posts a {
    text-decoration: none;
}

.related-posts .post-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    align-items: flex-start;
}

.related-posts .post-card {
    width: 31%;
    padding: 5px;
    box-sizing: border-box;
}

    .related-posts .post-card img {
        width: 100%;
        height: 290px;
        object-fit: cover;
        margin-bottom: 12px;
        display: block;
    }

.related-meta {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contentRelated {
    min-height: 200px;
}

.related-posts .post-card h3 {
    font-family: 'FbAbsolutiHeb-Regular';
    margin-bottom: 8px;
    color: #4D4D4D;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
    font-weight:bold;
}

.related-posts .post-card p {
    font-size: 14px;
    color: #4D4D4D;
    margin-bottom: 6px;
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.related-posts .post-card span {
    display: block;
    font-size: 13px;
    color: #4D4D4D;
}

@media (max-width: 768px) {
    .hrTitle {
        position: static;
        width: 100%;
        top: auto;
        left: auto;
        margin: 1rem 0;
        border: 0.5px solid #ccc;
    }

    .blog-post .container {
        padding: 20px 15px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .blog-post h1 {
        font-size: 24px;
        margin: 20px 0;
        text-align: center;
    }

    .author-name {
        font-size: 20px;
        margin-top: 0;
        margin-bottom: 10px;
        text-align: right;
    }

    .author-meta {
        flex-direction: row;
        align-items: center;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .publish-date {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .post-main-image {
        margin-bottom: 20px;
    }

        .post-main-image img {
            width: 100%;
            height: auto;
            margin: 0;
            border-radius: 12px;
        }

    .post-content {
        font-size: 16px;
        line-height: 1.7;
        margin: 0 auto;
        padding: 0 5px;
    }
        .post-content strong {
font-weight:bold
        }

    .related-posts .post-list {
        flex-direction: column;
        gap: 30px;
    }

    .related-posts .post-card {
        width: 100%;
    }

        .related-posts .post-card img {
/*            height: auto;*/
            border-radius: 8px;
        }

        .related-posts .post-card h3 {
            font-size: 16px;
            -webkit-line-clamp: 2;
        }

        .related-posts .post-card p {
            font-size: 14px;
            -webkit-line-clamp: 3;
        }

    .contentRelated {
        min-height: auto;
    }

    .pagination {
        flex-wrap: wrap;
        width: 100%;
        height: auto;
        gap: 8px;
        padding: 0.5rem;
        margin-top: 2rem;
        border-radius: 30px;
        justify-content: center;
    }

        .pagination a,
        .pagination span {
            width: 36px;
            height: 36px;
            font-size: 14px;
        }

        .pagination .arrow {
            font-size: 16px;
            width: 32px;
            height: 32px;
            line-height: 32px;
        }
}
