/* 1א. הקטנת תמונות התצוגה המקדימה ברשימת הפוסטים (עמוד הבית) - דסקטופ בלבד */
@media (min-width: 701px) {
    .home .featured-media,
    .blog .featured-media {
        width: min(700px, 90%) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* 1. הסתרת התקציר בראש פוסטים ובראש עמודים */
.single .entry-header div.intro-text,
.single .post-excerpt,
.single .entry-excerpt,
.single .tw-excerpt,
.page .entry-header div.intro-text,
.page .post-excerpt,
.page .entry-excerpt,
.page .tw-excerpt,
.entry-content .post-excerpt,
.entry-content .entry-excerpt,
.post-inner > .post-excerpt,
.singular .intro-text-wrapper {
    display: none !important;
}

/* 2. הגדרות טקסט כלליות וקפיצה לעוגן */
body, p, li {
    font-size: 20px !important;
    line-height: 1.5 !important;
}

html, body {
    scroll-padding-top: 150px !important;
    scroll-behavior: smooth !important;
    -webkit-tap-highlight-color: transparent !important;
}

:focus, :target, summary:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* 3. מרווח בין פסקאות */
.entry-content p {
    margin-bottom: 1.5em !important;
}

/* 4. התאמות כלליות לנייד (עד 700px) */
@media (max-width: 700px) {
    body, p, li { font-size: 19px !important; }
    html, body { scroll-padding-top: 120px !important; }
    .links-grid { display: flex !important; flex-direction: column !important; gap: 12px !important; }
    details { width: 100% !important; }
}

/* 5. התאמות לתפריט */
.toggle-inner .toggle-icon svg, 
.toggle-inner .toggle-text { 
    display: none !important; 
}
.toggle-inner .tw-menu-toggle-icon { 
    display: block !important; 
    margin: 0 auto !important; 
}

/* 6. עיצוב רשימות מתקפלות (Details) */
details {
    max-width: 900px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee;
    box-sizing: border-box !important;
}

details[open] > *:not(summary) { 
    padding: 0 20px 15px 20px !important; 
}

details summary {
    font-size: 25px !important;
    font-weight: bold !important;
    cursor: pointer;
    list-style: none;
    outline: none;
    text-indent: 0 !important;
    padding-right: 5px !important;
    box-sizing: border-box !important;
}

details summary::-webkit-details-marker { 
    display: none; 
}

/* 7. עיצוב אחיד לתיבות מעוגלות */
.is-style-info.has-background {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 61px !important;
    margin-bottom: 40px !important;
    padding: 35px 45px !important;
}

/* 8. הגדרות דסקטופ (מעל 700px) */
@media (min-width: 701px) {
    .header-inner.section-inner { 
        max-width: 1100px !important; 
        margin: 0 auto !important;
    }
    .strong-view.strong-view-id-1 .testimonial-heading,
    .strong-view .testimonial-heading,
    .strong-view .testimonial-title {
        font-size: 24px !important;
        margin-bottom: 2px !important; 
        line-height: 1.2 !important;
    }
    .strong-view .testimonial-content p {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .name-small {
        font-size: 18px !important;
        font-weight: normal !important;
    }
    .strong-view .testimonial-inner,
    .strong-view .testimonial {
        padding-bottom: 20px !important;
    }
}

/* 9. התאמות לנייד בלבד (עד 700px) */
@media (max-width: 700px) {
    .strong-view .testimonial-heading,
    .strong-view .testimonial-title,
    .strong-view .testimonial-content h3 {
        font-size: 26px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    .strong-view .testimonial-inner,
    .strong-view .testimonial {
        padding: 1px 0 0 0 !important;
        margin-bottom: 15px !important;
        height: auto !important;
        min-height: 0 !important;
    }
}

/* הצמדה של הבלוק שמתחת לעדויות */
.after-testimonials {
    margin-top: -60px !important;
}

/* הסתרת תאריך ושעה בתגובות בדפים בלבד */
.page .comment-metadata, 
.page .comment-date, 
.page .comment-time {
    display: none !important;
}

/* 10. פתרון ללחיצה בנייד ובטאבלט (עד 1024px) */
@media (max-width: 1024px) {
    .modal-menu .ancestor-wrapper {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
    }
    .modal-menu .ancestor-wrapper .toggle {
        position: static !important;
    }
    .modal-menu .ancestor-wrapper .toggle::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 999 !important;
        background: transparent !important;
        cursor: pointer !important;
    }
    .modal-menu .ancestor-wrapper:hover > a {
        text-decoration: underline !important;
    }
    .modal-menu .ancestor-wrapper .toggle .svg-icon {
        position: relative !important;
        z-index: 1000 !important;
    }
}

.clickable-block {
    position: relative;
    cursor: pointer;
}
.clickable-block a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 11. הכוונת תפריט - גרסה סופית ויציבה למובייל וטאבלט */
@media (max-width: 1024px) {
    .header-inner::after {
        content: "תפריט:" !important;
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        transform: translate(-50%, -51.5%) !important;
        color: #dbdbdb !important;
        font-weight: 400 !important;
        opacity: 0.95 !important;
        white-space: nowrap !important;
        letter-spacing: 0.4px !important;
        pointer-events: none !important;
        left: 24% !important; 
        font-size: 12px !important;
    }
}

@media (min-width: 701px) and (max-width: 1024px) {
    .header-inner::after {
        left: 14% !important; 
        font-size: 14px !important;
    }
}

@media (max-width: 1024px) {
    .site-logo, .header-navigation-wrapper {
        margin: 0 !important;
    }
}

/* 12. יישור גובה תמונות בבלוק פוסטים - גרסה מלבנית וצרה */
.uniform-featured-images img {
    height: 180px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}
/* 13. הקטנת התמונה המובלטת בעמודים בלבד - דסקטופ בלבד */
@media (min-width: 701px) {
    .page .featured-media img.attachment-post-thumbnail {
        max-width: 60% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}