/* ================================================
   כרטיסי לולאת הפוסטים - גובה אחיד ומבנה קבוע
   ================================================ */

/* מותח את הכרטיס לגובה מלא של התא ברשת */
.elementor-loop-container .e-loop-item,
.elementor-loop-container .e-loop-item > .e-con {
    height: 100%;
}

.elementor-loop-container .e-loop-item > .e-con > .e-con-inner {
    height: 100%;
    justify-content: flex-start;
}

/* כותרת: שתי שורות קבועות */
.elementor-loop-container .e-loop-item .elementor-widget-theme-post-title .elementor-heading-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

/* תקציר: שתי שורות קבועות */
.elementor-loop-container .e-loop-item .elementor-widget-text-editor {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.1em;
}

/* דוחף את הכפתור לתחתית הכרטיס - כל הכפתורים על אותו קו */
.elementor-loop-container .e-loop-item .elementor-widget-button {
    margin-top: auto;
}

/* הכפתור תמיד שורה אחת */
.elementor-loop-container .e-loop-item .elementor-widget-button .elementor-button-text {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .elementor-loop-container .e-loop-item .elementor-widget-button {
        margin-top: 14px;
    }
    .elementor-loop-container .e-loop-item .elementor-widget-theme-post-title .elementor-heading-title,
    .elementor-loop-container .e-loop-item .elementor-widget-text-editor {
        min-height: 0;
    }
}

/* ================================================
   תבנית הכתבה הבודדת - רוחב תוכן
   ================================================ */

/* נטרול הקופסה הצרה של Astra בפוסטים, Elementor שולט ברוחב */
.single-post .site-content > .ast-container {
    max-width: 100%;
    padding-inline: 0;
    display: block;
}

.single-post.ast-separate-container .ast-article-single {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.single-post.ast-separate-container #primary {
    margin: 0;
    padding: 0;
}

.single-post .site-content {
    background: #ffffff;
}

/* רוחב התוכן בפועל */
.elementor-location-single > .e-con.e-con-boxed > .e-con-inner {
    width: 80%;
    max-width: min(80%, 1140px);
    margin-inline: auto;
}

@media (max-width: 767px) {
    .elementor-location-single > .e-con.e-con-boxed > .e-con-inner {
        width: 92%;
        max-width: 92%;
    }
}

/* ================================================
   רשת הפוסטים האחרונים בתחתית הכתבה
   ================================================ */

/* כרטיסים בגובה אחיד */
.elementor-location-single .elementor-posts-container .elementor-post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.elementor-location-single .elementor-posts--skin-cards .elementor-post__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.elementor-location-single .elementor-posts--skin-cards .elementor-post__text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* כותרת: שתי שורות קבועות */
.elementor-location-single .elementor-posts--skin-cards .elementor-post__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* תקציר: שתי שורות קבועות */
.elementor-location-single .elementor-posts--skin-cards .elementor-post__excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.75;
    margin: 0;
}

/* קרא עוד נדחף לתחתית הכרטיס */
.elementor-location-single .elementor-posts--skin-cards .elementor-post__read-more {
    margin-top: auto;
    padding-top: 14px;
    display: inline-block;
    white-space: nowrap;
}

/* מרווח מהתוכן שמעל */
.elementor-location-single .elementor-widget-archive-posts,
.elementor-location-single .elementor-widget-posts {
    padding-top: 20px;
}

@media (max-width: 767px) {
    .elementor-location-single .elementor-posts--skin-cards .elementor-post__title {
        min-height: 0;
    }
    .elementor-location-single .elementor-posts--skin-cards .elementor-post__read-more {
        margin-top: 10px;
        padding-top: 0;
    }
}

/* ================================================
   תבנית הכתבה הבודדת - מרווחים ונשימה
   ================================================ */

/* תמונה ראשית: פינות מעוגלות */
.elementor-location-single .elementor-widget-theme-post-featured-image img {
    border-radius: 12px;
    display: block;
    margin-inline: auto;
}

/* מרווחים בין אלמנטי הכותרת */
.elementor-location-single .elementor-widget-theme-post-title {
    margin-block: 14px 10px;
}

.elementor-location-single .elementor-widget-theme-post-excerpt {
    margin-bottom: 6px;
    line-height: 1.85;
}

/* גוף הכתבה: נשימה בין פסקאות וכותרות משנה */
.elementor-location-single .elementor-widget-theme-post-content p {
    margin-bottom: 1.3em;
    font-size: 18px;
    line-height: 1.9;
}

.elementor-location-single .elementor-widget-theme-post-content h2 {
    font-size: 24px;
    margin-top: 1.9em;
    margin-bottom: 0.6em;
    line-height: 1.45;
    color: #0d2b45;
}

.elementor-location-single .elementor-widget-theme-post-content h3 {
    font-size: 20px;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5;
    color: #17537f;
}

.elementor-location-single .elementor-widget-theme-post-content ul,
.elementor-location-single .elementor-widget-theme-post-content ol {
    margin-bottom: 1.4em;
    padding-inline-start: 1.4em;
}

.elementor-location-single .elementor-widget-theme-post-content li {
    margin-bottom: 0.7em;
    font-size: 18px;
    line-height: 1.9;
}

.elementor-location-single .elementor-widget-theme-post-content table {
    font-size: 16px;
}


/* תמונות בתוך גוף הכתבה */
.elementor-location-single .elementor-widget-theme-post-content img {
    border-radius: 12px;
    margin-block: 1.2em;
    height: auto;
}

@media (max-width: 767px) {
    /* בנייד: התאריך והקטגוריה יורדים מתחת לכותרת */
    .elementor-location-single .elementor-element-p1000003 {
        order: 1;
    }
    .elementor-location-single .elementor-element-p1000002 {
        order: 2;
        margin-top: 4px;
    }
    .elementor-location-single .elementor-element-p1000004 {
        order: 3;
    }

    .elementor-location-single .elementor-widget-theme-post-featured-image img {
        border-radius: 10px;
    }
    .elementor-location-single .elementor-widget-theme-post-content p,
    .elementor-location-single .elementor-widget-theme-post-content li {
        font-size: 16px;
        line-height: 1.85;
    }
    .elementor-location-single .elementor-widget-theme-post-content h2 {
        font-size: 20px;
    }
    .elementor-location-single .elementor-widget-theme-post-content h3 {
        font-size: 18px;
    }
    .elementor-location-single .elementor-widget-theme-post-content table {
        font-size: 14px;
    }
}

