﻿
@import url('customregisterform.css');
.hrTitle {
    position: relative;
    width: 1908px;
    left: 417px;
    top: -16px;
    border: -0.5px solid;
    color: gray;
}
h1 {
    text-align: center;
    color: #2AABE2;
    font-family: 'FbAbsolutiHeb-Regular';
    font-weight: bold;
    margin-bottom: 40px;
}

.post-list-title {
    text-align: center;
    font-family: 'FbAbsolutiHeb-Regular';
    margin-bottom: 21px;
    margin-top: 64px;
    color: #4D4D4D;
    font-weight: bold;
}

.pagination {
    direction: rtl;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 100px;
    padding: 0;
    background-color: #fff;
    border: 1px solid #a0d1aa;
    border-radius: 999px;
    overflow: hidden;
    gap: 0;
    flex-direction: row-reverse;
    width: 250px;
    height: 30px;
}

    .pagination a:nth-child(2) {
        border-left: 1px solid;
    }

    .pagination a,
    .pagination span {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 56px;
        height: 48px;
        font-weight: bold;
        text-decoration: none;
        color: #1d0034;
        background-color: #fff;
        font-size: 16px;
        border-right: 1px solid;
        transition: background-color 0.2s ease-in-out;
        cursor: pointer;
        z-index: 10;
    }

        .pagination a:hover {
            background-color: #f0f0f0;
        }

    .pagination .current {
        background-color: #6ee79c;
        color: black;
    }

    .pagination .arrow {
        border-radius: 50%;
        font-size: 20px;
        width: 48px;
        height: 48px;
        line-height: 48px;
        background-color: transparent;
        border: none;
        color: #1d0034;
        padding: 0;
    }

    .pagination .dots {
        pointer-events: none;
        background: none;
        border-right: 1px solid;
        color: #1d0034;
        font-size: 18px;
    }


/* --- Latest Post Design --- */
.latest-post {
    background: #F8F8F8;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    opacity: 1;
    border-radius: 40px;
    width: 1371px;
    margin-right: -110px;
}

.latest-post-wrapper {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.latest-post-image img {
    width: 491px;
    height: 334px;
    border-radius: 22px;
    margin-top: 17px;
    object-fit: cover;
}

.latest-post-image {
    width: 517px;
    height: 369px;
    opacity: 1;
    border-radius: 22px;
}

.latest-post-content {
    position: relative;
    flex: 2;
    text-align: right;
    width: 624px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    color: #4D4D4D;
    margin-right: 40px;
}



/*.latest-label {
    color: #6d6d6d;
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}
*/
.latest-title {
    line-height: 48px;
    letter-spacing: -1px;
    text-align: right;
    font-family: 'FbAbsolutiHeb-Regular';
    color: #4D4D4D;
    font-weight: bold;
}

.latest-meta {
    font-size: 13px;
    /*    color: #999;*/
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-weight: bold;
}

    .latest-meta .dot {
        margin: 0 4px;
        color: #999;
    }

.latest-text {
    flex-grow: 1; /* גורם לטקסט לתפוס את כל הגובה הפנוי */
}

.latest-summary {
    color: #4D4D4D;
    font-size: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* מוסיף שלוש נקודות (...) בסוף */
    word-break: break-word;
    overflow-wrap: break-word;
}

.btn-read-more {
    display: inline-block;
    background-color: #38B54A;
    color: #FFFFFF;
    font-weight: bold;
    text-decoration: none;
    width: 216px;
    height: 52px;
    border-radius: 68px;
    padding-top: 13px;
    padding-right: 72px;
    padding-bottom: 17px;
    padding-left: 71px;
    margin-top: auto;
    align-self: flex-start;
    font-size: 19px;
}

    .btn-read-more:hover {
        color: #ffffff;
    }

hr {
    width: 1070px;
    margin-right: 39px;
}


/* --- Post Cards --- */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-right: 35px;
}

/* כל כרטיס פוסט */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 1.5rem;
    transition: background-color 0.2s;
    width: 1146px;
    height: 318px;
    justify-content: space-between;
    opacity: 1;
    margin-bottom: 15px;
}

.post-card-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-image img {
    width: 490px;
    height: 318px;
    border-radius: 22px;
    object-fit: cover;
}

.post-content {
    text-align: right;
    max-width: 500px;
    max-height: 280px;
    opacity: 1;
    gap: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 40px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.post-date {
    display: block;
    color: #1dbfdd;
    font-weight: 600;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 20px;
    letter-spacing: 2px;
    text-align: right;
    text-transform: uppercase;
}

.post-title {
    font-family: 'FbAbsolutiHeb-Regular';
    margin: 0.2rem 0;
    color: #4D4D4D;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
    font-weight: bold;
}

.post-summary {
    font-size: 1rem;
    color: #4D4D4D;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* מוסיף שלוש נקודות (...) בסוף */
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    .container {
        padding: 0 1rem;
        margin: 0 auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    h1, .post-list-title {
        font-size: 1.5rem;
        text-align: center;
        margin: 1rem 0;
        line-height: 1.3;
    }

    .hrTitle,
    hr {
        width: 100%;
        margin: 1.5rem 0;
        position: static;
        left: unset;
        top: unset;
    }

    /* פוסט אחרון */
    .latest-post {
        width: 100%;
        padding: 1rem;
        border-radius: 20px;
        box-sizing: border-box;
        margin-right: 0px;
    }

    .latest-post-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .latest-post-image,
    .latest-post-image img {
        width: 100%;
/*        height: auto;*/
        border-radius: 16px;
        object-fit: cover;
    }

    .latest-post-content {
        width: 100%;
        text-align: right;
        padding: 0;
        min-height: unset;
        box-sizing: border-box;
        margin-right:0px; 

    }

    .latest-title {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .latest-meta {
        font-size: 0.95rem;
        flex-wrap: wrap;
        display: flex;
        gap: 0.5rem;
        color: #666;
    }

    .latest-summary {
        font-size: 1rem;
        line-height: 1.5;
        -webkit-line-clamp: 4;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .btn-read-more {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        text-align: center;
        border-radius: 32px;
        margin-top: 1rem;
        background-color: #38B54A;
        color: white;
        text-decoration: none;
    }

    /* פוסטים נוספים */
    .post-list {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin: 0;
        padding: 0;
    }

    .post-card {
        width: 100%;
        height: auto;
        padding-bottom: 1rem;
        box-sizing: border-box;
    }

    .post-card-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .post-image img {
        width: 100%;
        height: auto;
        border-radius: 16px;
        object-fit: cover;
    }

    .post-content {
        width: 100%;
        margin-top: 0;
        gap: 0.5rem;
        max-height: none;
        display: flex;
        flex-direction: column;
        text-align: right;
    }

    .post-title {
        font-size: 1.2rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .post-summary {
        font-size: 1rem;
        color: #4D4D4D;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .post-date {
        font-size: 0.9rem;
        color: #1dbfdd;
    }

    /* פגניישן */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        height: auto;
        gap: 0.25rem;
        padding: 0.5rem;
        margin: 2rem 0;
        border-radius: 30px;
        direction: rtl;
    }

        .pagination a,
        .pagination span {
            width: 38px;
            height: 38px;
            font-size: 14px;
            border: 1px solid #a0d1aa;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0;
        }

        .pagination .current {
            background-color: #6ee79c;
            color: black;
        }

        .pagination .arrow {
            font-size: 16px;
            width: 36px;
            height: 36px;
            line-height: 36px;
            border-radius: 50%;
            background-color: transparent;
        }

        .pagination .dots {
            font-size: 16px;
            border: none;
        }
}
