בםמ/*
Theme Name: Twenty Twelve Child
Template: twentytwelve
Version: 1.0
*/

/* CSS עבור הלוגו והכותרת */
.site-header hgroup {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.site-logo img {
    max-height: 100px;
    width: auto;
}

/* פנייה לטקסט דרך ה-ID של העטיפה הראשית מעלה את הספציפיות */
#page .site-content {
    color: #1a1a1a;
}

/* פנייה לקישורים ותוכן פוסטים */
.entry-content p, 
.entry-summary p {
    color: #1a1a1a;
}

/* הכהיית התפריט הראשי */
.main-navigation a {
    color: #1a1a1a;
    font-weight: 500;
}


/* צביעת שם האתר בשחור - פנייה ישירה לקישור בתוך הכותרת */
#masthead .site-branding .site-title a {
    color: #0038B8;
}

/* צביעת תיאור האתר בשחור */
#masthead .site-branding .site-description {
    color: #c1121f;
    font-weight: Bold; /* הופך את הפונט למודגש */
    font-size: 1.1rem; /* הגדלה קטנה שתעזור להדגשה לבלוט */
}

/* צמצום המרווח מתחת לקבוצת הכותרת (שם המדינה והלוגו) */
#page #masthead .site-header hgroup {
    margin-bottom: 0;
}

/* הצמדת התפריט הראשי כלפי מעלה */
#page #masthead .main-navigation {
    margin-top: 5px;
}

/* ביטול הריפוד (Padding) התחתון של כל אזור הראש */
#page header[role="banner"] {
    padding-bottom: 0;
}


@media screen and (max-width: 600px) {
    .site-header hgroup {
        flex-direction: column;
        text-align: center;
    }
}

/* הידוק סופי של התפריט הראשי */
#page .main-navigation li a {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1; /* זה יבטל את המרווח המובנה של השורה עצמה */
}

/* הצמדת התפריט לקווים האופקיים (הגבולות) */
#page .main-navigation {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* צבע כחול וקו תחתי לקישורים רגילים */
body.parent-style #page .site-content .entry-content a,
body.parent-style #page .site-content .entry-summary a,
#page .site-content a {
    color: #0038B8;
    text-decoration: underline;
}

/* צבע סגול וקו תחתי לקישורים שביקרו בהם */
body.parent-style #page .site-content .entry-content a:visited,
#page .site-content a:visited {
    color: Purple;
    text-decoration: underline;
}

/* צבע אדום במעבר עכבר */
body.parent-style #page .site-content .entry-content a:hover,
#page .site-content a:hover {
    color: #c1121f;
    text-decoration: none; /* מסיר קו תחתון במעבר עכבר למראה מודרני */
}

/* --- עיצוב בלוק השיר של ביאליק ב-Sidebar עם רקע --- */

.bialik-sidebar-container {
    background-color: #fdf2f2; /* הרקע האדמדם הבהיר שאהבת */
    border-right: 4px solid #c1121f; /* פס אדום עבה בצד */
    padding: 15px 15px 5px 15px;
    margin-bottom: 10;
    border-radius: 2px; /* פינות חדות למראה רשמי */
}

/* שם השיר */
.bialik-title {
    font-size: 1.5rem !important;
    color: #c1121f;
    margin-bottom: 5px !important;
    font-family: "SBL Hebrew", "Times New Roman", serif;
    line-height: 1.2;
    font-weight: bold;
}

/* שורת המחבר והתאריך */
.bialik-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(193, 18, 31, 0.1); /* קו הפרדה עדין בגוון אדום */
    padding-bottom: 8px;
}

.bialik-author {
    font-weight: bold;
    margin-left: 10px;
}

.bialik-date {
    font-style: italic;
}

/* תוכן 4 השורות של השיר */
.bialik-content {
    line-height: 1.6;
    font-style: italic;
    font-size: 0.95rem;
    color: #333;
    margin: 8px 0 10 0;
}

/* קישור קרא עוד */
.read-more-link {
    display: inline-block;
    margin-top: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #0000FF;
    text-decoration: underline;
}

/* הכפלת ה-Class מעלה את הספציפיות לרמה מקסימלית בלי important */
.wp-block-search__label.wp-block-search__label {
    display: none;
    visibility: hidden;
    height: 0;
}

/* הצמדת הבלוק למעלה */
.wp-block-search.wp-block-search {
    margin-top: -25px;
}

/* --- עיצוב הסלוגן ושמירה על מקום לבורר השפות ב-Header --- */
/* פתרון גורף לזרימת הסלוגן ללא שבירות מוקדמות */
#masthead .site-description {
    display: block;
    width: 100% !important; /* תופס את כל הרוחב הזמין */
    max-width: 100% !important;
    color: #c1121f;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 10px;
    
    /* הקטנה עדינה של הגופן כדי שהשפות הארוכות ייכנסו */
    font-size: 0.95rem; 
    
    /* מניעת שבירת מילים כפויה */
    white-space: nowrap; 
}

/* החרגה: אנחנו כן רוצים שבירה איפה שיש <br> ששמנו ב-PHP */
#masthead .site-description br {
    display: block;
    content: "";
    margin-top: 5px;
}

/* תיקון לשפות ימין-שמאל (עברית וערבית) */
body.rtl #masthead .site-description {
    text-align: right;
    direction: rtl;
}

/* תיקון לשפות שמאל-ימין (אנגלית, צרפתית וכו') */
body:not(.rtl) #masthead .site-description {
    text-align: left;
    direction: ltr;
}

/* --- עיצוב בורר שפות: 2 עמודות, עברית וערבית בימין --- */

.site-language-switcher {
    display: grid !important;
    grid-template-columns: repeat(2, auto); /* יצירת 2 עמודות */
    gap: 8px 25px;      /* מרווח בין השורות ובין העמודות */
    background: #f1f1f1;
    padding: 12px 18px;
    border-radius: 4px;
    border: 1px solid #ddd;
    align-self: center; /* ממרכז את התיבה מול הלוגו והסלוגן */
    direction: rtl;    /* גורם לעמודה הראשונה להיות הימנית */
    margin-right: 20px; /* מרווח מהסלוגן */
}

.site-language-switcher a {
    text-decoration: none;
    color: #444;
    font-family: sans-serif;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap; /* מונע שבירת מילים */
    display: block;
    text-align: right;   /* יישור הטקסט בתוך העמודה הימנית */
    transition: color 0.2s;
}

/* התאמה לשפות לטיניות בעמודה השמאלית - יישור לשמאל */
.site-language-switcher a:not([href*="/ar/"]):not([href="https://israel2.org/"]) {
    text-align: left;
}

.site-language-switcher a:hover {
    color: #c1121f; /* האדום של ביאליק והסלוגן */
}

/* התאמה למובייל - חוזר לשורה אחת כדי שלא יהיה צפוף מדי */
@media screen and (max-width: 650px) {
    .site-language-switcher {
        grid-template-columns: repeat(3, auto); /* 3 עמודות במובייל לחיסכון בגובה */
        gap: 10px;
        margin-right: 0;
        margin-top: 15px;
    }
}

/* עיצוב כותרת השיר המנוקדת */
.page-id-6 .entry-title {
    font-family: "Suez One", serif; /* או גופן "דוד" / "פרנק-ריהל" קלאסי */
    color: #1a1a1a;
    text-align: center;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-top: 40px;
    margin-bottom: 50px;
    letter-spacing: -1px;
}


.bialik-link {
    display: block;
    margin-top: 10px;
    color: #c1121f; /* האדום של האתר */
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.bialik-link:hover {
    text-decoration: underline;
    color: #c1121f;
}

#wpforms-49 .wpforms-field-textarea textarea {
    min-height: 200px; /* הגובה ההתחלתי שאתה רוצה */
    height: auto;      /* מאפשר לתיבה לגדול עם הטקסט */
    resize: vertical;  /* מאפשר למשתמש להגדיל את התיבה ידנית רק כלפי מטה */
}

/* התאמה למובייל עם ספציפיות גבוהה */
@media screen and (max-width: 600px) {
    /* פנייה ישירה דרך ה-ID של העטיפה והכותרת */
    body #page #masthead .site-branding {
        max-width: 100%;
        width: auto;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    body #page #masthead .site-title,
    body #page #masthead .site-description {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: block;
        line-height: 1.2;
    }

    /* איפוס השוליים של העמוד כולו כדי שלא יגלוש */
    body #page {
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}



/* --- עיצוב דף השיר של ביאליק (עמוד 6) - מראה רשמי וסמכותי --- */


/* הגדרות תוכן העמוד - שחור עמוק וסמכותי */
.page-id-6 .entry-content {
    max-width: 750px;
    margin: 0 auto;
    font-family: "SBL Hebrew", "Times New Roman", serif;
    line-height: 2.1;
    color: #101010;
}

/* עיצוב גוף השיר - תיבת הטקסט הכהה */
.page-id-6 .entry-content p, 
.page-id-6 .entry-content pre {
    font-size: 1.3rem;
    text-align: right;
    background: #f6f6f6;
    padding: 40px;
    border-right: 5px solid #000000; /* פס שחור עבה וסמכותי */
    color: #000000; /* טקסט שחור מוחלט */
    font-weight: 500; /* עובי אות מודגש מעט ליצירת נוכחות */
    margin-bottom: 30px;
    box-shadow: none;
}

/* התאמה למובייל - לוודא שהשחור נשאר קריא והטקסט לא גולש */
@media screen and (max-width: 600px) {
    .page-id-6 .entry-content p, 
    .page-id-6 .entry-content pre {
        font-size: 1.15rem;
        padding: 25px 15px;
        white-space: pre-wrap;
        border-right-width: 3px;
    }
}

/* עיצוב אזור התגובות שיתאים למראה המשפטי */
#comments {
    margin-top: 50px;
    border-top: 2px solid #0038B8; /* קו כחול רשמי לפני התגובות */
    padding-top: 30px;
}

.comment-author .fn {
    font-weight: bold;
    color: #0038B8; /* שם המגיב בכחול */
}

.comment-content {
    background: #f9f9f9;
    padding: 15px;
    border-right: 3px solid #ddd;
    margin-top: 10px;
}

/* צמצום ריווח שורות ומרג'ין בתקצירים בסרגל הצד */
.widget-area .wp-block-latest-posts__post-excerpt {
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ביטול המרווח הענק שנוצר בין פסקאות בתוך התקציר */
.widget-area .wp-block-latest-posts__post-excerpt p {
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 4px; /* זה הערך שקובע את המרווח בין שורה לשורה אם הן פסקאות */
}

/* צמצום המרווח הכללי של הרשימה */
.widget-area ul.wp-block-latest-posts li {
    margin-bottom: 10px;
}

/* עיצוב ציטוט רשמי למדינת ישראל 2 - עם הגדרות הזחה מוגדלות */
body.rtl .entry-content blockquote, 
body.rtl blockquote.wp-block-quote {
    border-right: 4px solid #000000 !important; /* הקו השחור */
    
    /* הזחה של הטקסט פנימה מהקו */
    padding-right: 30px !important; 
    
    /* הזחה של כל הבלוק (כולל הקו) מהשוליים הימניים */
    margin-right: 20px !important; 
    
    padding-left: 0 !important;
    margin-top: 24px !important;
    margin-bottom: 15px !important;
    font-style: normal !important;
    border-left: none !important;
}

/* עיצוב המקור (שם האומר) */
body.rtl .wp-block-quote cite {
    display: block !important;
    font-size: 0.35em !important;
    color: #555 !important;
    margin-top: 10px !important;
}

/* הוספת קו מפריד סמכותי מעל הערות השוליים */
body.rtl .wp-block-footnotes {
    border-top: 2px solid #555555 !important; /* קו שחור כהה וברור */
    margin-top: 40px !important;              /* רווח מעל הקו (מהטקסט של המאמר) */
    padding-top: 20px !important;             /* רווח מתחת לקו (לפני ההערה הראשונה) */
    display: block !important;
    clear: both !important;                   /* מבטיח שהקו יתפוס שורה מלאה ולא ייצמד לאלמנטים צפים */
}
