/*!
Theme Name: Twenty Twenty-Four Child
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Template: twentytwentyfour
Author: שמך
Author URI: https://example.com
Description: תבנית בת עבור Twenty Twenty-Four
Version: 1.0.0.0.29
*/

/* ייבוא כל הקבצים */

/* === fonts === */
/* ============================================
   FONTS DEFINITIONS
   ============================================ */
/* בדיקה*/
/* Google Fonts - Open Sans נטען דרך enqueue-assets.php */

/* TalentFS Font Family */
@font-face {
    font-family: 'TalentFS';
    src: url('./fonts/woff2/TalentFS-Thin.woff2') format('woff2'),
         url('./fonts/woff/TalentFS-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TalentFS';
    src: url('./fonts/woff2/TalentFS-Extralight.woff2') format('woff2'),
         url('./fonts/woff/TalentFS-Extralight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TalentFS';
    src: url('./fonts/woff2/TalentFS-Light.woff2') format('woff2'),
         url('./fonts/woff/TalentFS-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TalentFS';
    src: url('./fonts/woff2/TalentFS-Regular.woff2') format('woff2'),
         url('./fonts/woff/TalentFS-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TalentFS';
    src: url('./fonts/woff2/TalentFS-Medium.woff2') format('woff2'),
         url('./fonts/woff/TalentFS-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TalentFS';
    src: url('./fonts/woff2/TalentFS-Demibold.woff2') format('woff2'),
         url('./fonts/woff/TalentFS-Demibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TalentFS';
    src: url('./fonts/woff2/TalentFS-Bold.woff2') format('woff2'),
         url('./fonts/woff/TalentFS-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TalentFS';
    src: url('./fonts/woff2/TalentFS-Black.woff2') format('woff2'),
         url('./fonts/woff/TalentFS-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Pompei FS Font Family */
@font-face {
    font-family: 'Pompei FS';
    src: url('./fonts/woff2/Pompei_FS-Thin.woff2') format('woff2'),
         url('./fonts/woff/Pompei_FS-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pompei FS';
    src: url('./fonts/woff2/Pompei_FS-Extralight.woff2') format('woff2'),
         url('./fonts/woff/Pompei_FS-Extralight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pompei FS';
    src: url('./fonts/woff2/Pompei_FS-Light.woff2') format('woff2'),
         url('./fonts/woff/Pompei_FS-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pompei FS';
    src: url('./fonts/woff2/Pompei_FS-Regular.woff2') format('woff2'),
         url('./fonts/woff/Pompei_FS-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pompei FS';
    src: url('./fonts/woff2/Pompei_FS-Medium.woff2') format('woff2'),
         url('./fonts/woff/Pompei_FS-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pompei FS';
    src: url('./fonts/woff2/Pompei_FS-Demibold.woff2') format('woff2'),
         url('./fonts/woff/Pompei_FS-Demibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pompei FS';
    src: url('./fonts/woff2/Pompei_FS-Bold.woff2') format('woff2'),
         url('./fonts/woff/Pompei_FS-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pompei FS';
    src: url('./fonts/woff2/Pompei_FS-Black.woff2') format('woff2'),
         url('./fonts/woff/Pompei_FS-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Discovery Fs Font Family */
@font-face {
    font-family: 'Discovery Fs';
    src: url('./fonts/woff2/Discovery_Fs-Thin.woff2') format('woff2'),
         url('./fonts/woff/Discovery_Fs-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Discovery Fs';
    src: url('./fonts/woff2/Discovery_Fs-Ultralight.woff2') format('woff2'),
         url('./fonts/woff/Discovery_Fs-Ultralight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Discovery Fs';
    src: url('./fonts/woff2/Discovery_Fs-Light.woff2') format('woff2'),
         url('./fonts/woff/Discovery_Fs-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Discovery Fs';
    src: url('./fonts/woff2/Discovery_Fs-Regular.woff2') format('woff2'),
         url('./fonts/woff/Discovery_Fs-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Discovery Fs';
    src: url('./fonts/woff2/Discovery_Fs-Medium.woff2') format('woff2'),
         url('./fonts/woff/Discovery_Fs-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Discovery Fs';
    src: url('./fonts/woff2/Discovery_Fs-Demibold.woff2') format('woff2'),
         url('./fonts/woff/Discovery_Fs-Demibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Discovery Fs';
    src: url('./fonts/woff2/Discovery_Fs-Bold.woff2') format('woff2'),
         url('./fonts/woff/Discovery_Fs-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Discovery Fs';
    src: url('./fonts/woff2/Discovery_Fs-Black.woff2') format('woff2'),
         url('./fonts/woff/Discovery_Fs-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}



/* === variables_and_globals === */
/**   
 * === משתני צבעים וערכי בסיס ===
 * הגדרת משתני CSS גלובליים לשימוש בכל האתר
 * מאפשר שינוי מהיר של ערכי צבעים וסגנונות מרכזיים
 */ 
 :root {
    /* ===  פלטת צבעים === */ 

    /* צבעי מותג בני ברק עכשיו */
    --primary-color-jhhd: #DE0100; /* צבע ראשי מתוג בני ברק עכשיו */
    --secondary-color-jhhd: #1B365D; /*  צבע משנה מתוג בני ברק עכשיו */
    --secondary-color-jhhd-bright: #FAFAFA; /*  צבע משני בהיר מותג בני ברק עכשיו */
    
    /* צבעים ראשיים - פלטה מעודכנת בסגנון מגזין יוקרתי */
    --primary-color: #1a1a1a; /* שחור כמעט */
    --primary-alt: #2d2d2d; /* שחור רך יותר */
    --secondary-color: #1274ac; /* כחול מגזיני */
    --secondary-color-dark: #004e8c; /* כחול עמוק */
    --secondary-color-bright: #3389cc; /* כחול בהיר */
  
    /* גווני אפור למבנה האתר ורקעים */
    --gray-dark: #333333; /* אפור כהה לטקסט */
    --gray-medium: #666666; /* אפור בינוני */
    --gray-mild: #d9d9d9; /* אפור בהיר לגבולות */
    --gray-soft: #f7f7f7; /* אפור עדין מאוד לרקעים */
    --light-gray: #f5f5f5; /* אפור בהיר לרקע האתר */
    
    /* צבעים נייטרליים */
    --white: #ffffff;
    --off-white: #fafafa; /* גרסה עדינה של לבן */
    --text-color: #333333; /* צבע טקסט כללי */
    
    /* צבעים להדגשות עדינות */
    --accent-blue: #e6eef5; /* כחול עדין לרקעים */
    --link-hover: #b22222; /* אדום עמוק להובר של קישורים */
    
    /* צבעי פונקציונליות */
    --alert-red: #b22222; /* אדום מעודן */
    --alert-red-light: #f8e6e6; /* רקע אדום עדין */
    
    /* צבעים ייעודיים */
    --site-title-color: #000000;
    --site-subtitle-color: #4d4d4d;
    --nav-text-color: #000000;
    
    /* אפקטים */
    --box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --subtle-border: 1px solid #e0e0e0;
    
    /* רוחב עמודה */
    --wp--style--global--content-size: 750px;
    --wp--style--global--wide-size: 1200px;
    
    /* === משתני פונטים === */
    --font-family-primary: 'Open Sans', 'Noto Sans Hebrew', 'Heebo', sans-serif;
    --font-family-secondary: 'Open Sans', 'Noto Sans Hebrew', 'Heebo', sans-serif;
    --font-family-accent: 'Open Sans', 'Noto Sans Hebrew', 'Heebo', sans-serif;
    --font-family-serif: 'Open Sans', 'Noto Sans Hebrew', 'Heebo', sans-serif;
    --font-family-sans: 'Open Sans', 'Noto Sans Hebrew', 'Heebo', sans-serif;
    /* ברירת מחדל לעמודות בארכיונים; יתעדכן ע״י מחלקות body */
    --archive-columns: 3;
  }

  /* מחלקות body לקביעת מספר עמודות בארכיונים */
  .archive-columns-1 { --archive-columns: 1; }
  .archive-columns-2 { --archive-columns: 2; }
  .archive-columns-3 { --archive-columns: 3; }
  .archive-columns-4 { --archive-columns: 4; }
  .archive-columns-5 { --archive-columns: 5; }
  .archive-columns-6 { --archive-columns: 6; }
  
  /**
   * === סגנונות כלליים ===
   * איפוס ערכי ברירת מחדל והגדרות בסיסיות לכל האלמנטים
   */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
  font-family: var(--font-family-accent) !important;
  color: var(--text-color);
  direction: rtl;
  line-height: 1.6;
  background-color: var(--white);
  font-size: 18px;
}
  
  /**
   * === טיפוגרפיה בסיסית ===
   * הגדרות עבור כותרות, פסקאות וקישורים
   */
  h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-accent) !important;
  color: #000000;
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}
  
  h1 { 
  font-family: var(--font-family-accent) !important;
  font-size: 2.2rem; 
  font-weight: 800;
}
  h2 { 
  font-family: var(--font-family-accent) !important;
  font-size: 1.8rem; 
  font-weight: 300;
}
  h3 { font-size: 1.4rem; }
  
  p {
  font-family: var(--font-family-accent) !important;
  margin-bottom: 1.2rem;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
}
  
  /**
   * === סגנונות הדגשה בטקסט ===
   * שני סגנונות הדגשה: טקסט מודגש רגיל וטקסט ממורקר עם רקע
   */
  
  /* סגנון טקסט מודגש (bold) */
strong, b, .has-strong-font-weight, .has-bold-font-weight {
  font-weight: 700;
  color: var(--primary-color);
}
  
  /* סגנון טקסט ממורקר ברקע - עם צבע עדין יותר */
  mark, .wp-block-paragraph mark, .has-highlight-background {
    background-color: #f0f7ff;
    color: var(--primary-color);
    font-weight: normal;
    padding: 0 2px;
    border-radius: 0;
  }
  
  a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  a:hover {
    color: var(--link-hover);
  }
  
  /**
   * === מיכלים ומבנה ===
   * הגדרות מיכל מרכזי עבור תוכן האתר
   */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  /**
   * === כפתורים ===
   * עיצוב כפתורים בסגנון מינימליסטי
   */
  .btn, 
  .wp-block-button__link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--secondary-color);
    color: var(--white) !important;
    border-radius: 2px;
    font-weight: 400;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  
  .wp-block-button {
    text-align: center;
  }
  
  .btn:hover, 
  .wp-block-button__link:hover {
    background-color: var(--secondary-color-dark);
  }
  
  .btn-secondary,
  .is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color) !important;
  }
  
  .btn-secondary:hover,
  .is-style-outline .wp-block-button__link:hover {
    background-color: var(--secondary-color);
    color: var(--white) !important;
  }
  
  /* קישור דילוג לתוכן - מוסתר חזותית ומופיע רק בפוקוס (נגישות מקלדת) */
  .skip-to-content-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: #fff;
    z-index: 9999;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: 600;
  }
  
  .skip-to-content-link:focus {
    top: 0;
  }

  /* === התאמות רספונסיביות גלובליות === */
  @media screen and (max-width: 768px) {
    /* הקטנת מרווחים בצדדים למובייל - כדי לנצל מקסימום רוחב מסך */
    .container {
        padding: 0 10px;
    }
    
    /* דריסת padding גלובלי של WordPress במובייל - להתאים לחלק העליון (20px) */
    .wp-site-blocks,
    .wp-block-post-content,
    main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* וידוא שגם הבלוקים הפנימיים לא מקבלים padding נוסף */
    .wp-block-post-content > *:not(.alignfull):not(.alignwide) {
        max-width: 100% !important;
    }
  }
  


/* === header === */
/**
 * === כותרת עליונה ===
 * עיצוב אזור הכותרת העליונה הכולל לוגו, שם האתר ותפריט ניווט
 * בסגנון מינימליסטי מודרני  
 */
 
  /* ברירת מחדל: כותרת צמודה לקצוות בכל העמודים */
  header, 
  .site-header, 
  #masthead {
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin: 0;
    direction: rtl;
    padding-right: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
 
  /* דריסה: נטרול מרווחים שליליים של alignfull/עטיפות בלוקים סביב ההדר */
  .wp-site-blocks > header.site-header,
  .wp-site-blocks > .site-header,
  .wp-site-blocks > #masthead,
  .wp-block-template-part header.site-header,
  .wp-block-template-part .site-header,
  .alignfull > header.site-header,
  header.site-header.alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* ביטול מסגרת בעמודי פוסט כדי למנוע קו כפול */
  body.single .site-header,
  body.single-post .site-header {
    border: none !important;
  }

  /* הסתרת header ריק של FSE (wp-block-template-part) */
  header.wp-block-template-part:empty,
  header.wp-block-template-part:not(.site-header) {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
  }

/* מיכל הכותרת */
.header-container,
.site-header > div,
#masthead > div {
  display: flex;
  align-items: center;
  height: 53px;
  padding: 0 20px;
  max-width: 4400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/**
* === לוגו ותיאור האתר ===
*/
.logo-container,
.site-branding {
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 20px;
  margin-right: 0;
  min-width: 180px;
  justify-content: flex-start;
  overflow: visible; /* שינוי מ-hidden כדי לאפשר תצוגת outline בפוקוס */
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10; /* וידוא שהלוגו יהיה מעל אלמנטים אחרים */
  pointer-events: auto; /* וידוא שהלוגו לחיץ */
}

.logo {
  height: 47px; /* גובה הלוגו מותאם למרכוז בכותרת של 53px */
  width: auto;
  max-width: none;
  object-fit: contain;
  margin-left: 0px;
  margin-right: -1px;
  align-self: center;
  display: block; /* מבטל פער baseline שגורם לרווח תחתון נוסף */
}

/* וידוא שהלינק העוטף את הלוגו ממורכז אנכית וללא פערי טקסט */
.logo-container > a {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 0; /* מבטל גובה שורה שעשוי להוסיף רווחים */
  outline: none; /* מבטל את גבולות האזור הלחיץ */
  z-index: 11; /* וידוא שהלינק יהיה מעל כל אלמנט אחר */
  pointer-events: auto; /* וידוא שהלינק לחיץ */
  position: relative; /* וידוא שה-z-index יעבוד */
}

/* מסגרת פוקוס פנימית על הלוגו - רק בניווט מקלדת */
/* ספציפיות גבוהה לדריסת כללים גלובליים */
html body .site-header .logo-container > a:focus-visible,
html body .logo-container > a:focus-visible {
  outline: 3px solid var(--primary-color-jhhd) !important;
  outline-offset: -6px !important;
  border-radius: 8px;
}

/* הסתרת פוקוס בלחיצת עכבר */
html body .site-header .logo-container > a:focus:not(:focus-visible),
html body .logo-container > a:focus:not(:focus-visible) {
  outline: none !important;
}

/* אזור שם האתר ותיאור - הוסר */
.site-branding-text {
  display: none;
}

/**
 * === החלפת לוגו לפי עמוד ===
 */
/* עיצוב אחיד - רק לוגו נגטיבי (לבן) בכל העמודים */
.logo-home {
  display: none;
}

.logo-other-pages {
  display: block;
}

.site-title {
  font-size: 1.6rem;
  color: var(--primary-color) !important;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0px 0;
  font-family: var(--font-family-accent) !important;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
  letter-spacing: -0.02em;
}

.site-description {
  font-size: 0.9rem;
  color: var(--gray-medium);
  opacity: 1;
  font-weight: 400;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
  font-family: var(--font-family-accent) !important;
}
 
 /**
  * === תפריט ניווט ===
  */
 .nav-menu {
   display: flex;
   margin: 0;
   padding: 0;
   height: 100%;
   align-items: center;
   width: 100%;
   justify-content: center;
   position: absolute;
   left: 50%;
   top: 0;
   transform: translateX(-50%);
   z-index: 5; /* וידוא שהתפריט לא יכסה על הלוגו */
   pointer-events: none; /* מאפשר לחיצה על הלוגו מתחת */
 }
 
 /* התאמת הסגנון לקוד המבני החדש */
 .menu-items-list {
   display: flex;
   list-style: none;
   margin: 0;
   padding: 0 200px; /* רווח פנימי כדי למנוע התנגשות עם הלוגו והחיפוש */
   height: 100%;
   align-items: center;
   justify-content: center;
   width: auto;
   pointer-events: auto; /* מאפשר לחיצה על פריטי התפריט */
 }
 
 .menu-item {
   margin: 0 3px;
   position: relative;
   height: 100%;
   display: flex;
   align-items: center;
 }
 
.menu-item a {
  font-weight: 500;
  font-size: 1.045rem;
  padding: 0 12px;
  color: var(--secondary-color-jhhd);
   position: relative;
   transition: color 0.2s ease;
   display: flex;
   align-items: center;
   height: 100%;
   text-decoration: none;
   white-space: nowrap;
   font-family: var(--font-family-accent) !important;
   letter-spacing: -0.01em;
   outline: none; /* מבטל את גבולות האזור הלחיץ */
 }
 
.menu-item a:hover {
  color: var(--secondary-color-jhhd);
}

 /* מסגרת פוקוס פנימית על לינקים בתפריט - רק בניווט מקלדת */
/* ספציפיות גבוהה לדריסת כללים גלובליים */
html body .site-header .menu-item a:focus-visible,
html body .menu-item a:focus-visible {
  outline: 3px solid var(--primary-color-jhhd) !important;
  outline-offset: -6px !important;
  border-radius: 8px;
}

/* הסתרת פוקוס בלחיצת עכבר */
html body .site-header .menu-item a:focus:not(:focus-visible),
html body .menu-item a:focus:not(:focus-visible) {
  outline: none !important;
}
 
 .menu-item a::after {
  content: "";  /* מרכאות ריקות במקום נקודה פסיק */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color-jhhd);
  transition: width 0.2s ease;
}
 
 .menu-item a:hover::after {
   width: 100%;
 }
 
 /**
  * === חיפוש ===
  */
 
 .controls-container {
   display: flex;
   justify-content: flex-start;
   align-items: center;
   height: 100%;
   overflow: visible;
   position: absolute;
   left: 0;
   top: 0;
   padding-left: 10px;
   z-index: 6; /* מתחת ללוגו אבל מעל התפריט */
   pointer-events: auto; /* מאפשר לחיצה על כפתור החיפוש */
 }
 
 .search-btn {
   display: flex;
   align-items: center;
   justify-content: center;
   background: none;
   border: none;
   padding: 8px 12px;
   cursor: pointer;
   color: var(--secondary-color-jhhd);
   font-size: 0.9rem;
   font-family: var(--font-family-accent) !important;
   font-weight: 500;
   outline: none; /* מבטל את גבולות האזור הלחיץ */
 }

 /* ביטול גבולות גם בעת לחיצה/פוקוס על כפתור החיפוש */
.search-btn:focus,
.search-btn:focus-visible {
  outline: 3px solid var(--primary-color-jhhd) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}
 
 .search-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  /* שימוש ב-mask כדי שהאייקון יירש את הצבע מה-parent */
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

 /* צבע אייקון וכפתור החיפוש - לבן בכל העמודים (עיצוב נגטיבי) */
 .search-btn {
   color: #ffffff !important;
 }
 .search-icon {
   background-color: #ffffff !important;
 }
 
 .search-form-container {
   position: absolute;
   top: 100%;
   left: 0;
   right: 0;
   background-color: var(--white);
   padding: 15px 20px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
   border-top: 1px solid rgba(0, 0, 0, 0.1);
   z-index: 1000;
 }
 
 .search-form {
   display: flex;
   align-items: center;
   max-width: 1000px;
   margin: 0 auto;
   position: relative;
 }
 
 .search-field {
   flex-grow: 1;
   padding: 12px 15px;
   border: 1px solid var(--gray-mild);
   border-radius: 0;
   font-size: 1rem;
   color: var(--text-color);
   font-family: var(--font-family-accent) !important;
 }
 
 .search-field:focus {
   outline: none;
   border-color: var(--secondary-color-jhhd);
 }
 
 .search-close,
 .search-submit {
   background: none;
   border: none;
   padding: 8px;
   cursor: pointer;
   position: absolute;
   outline: none; /* מבטל את גבולות האזור הלחיץ */
 }

 /* ביטול גבולות גם בעת לחיצה/פוקוס על כפתורי טופס החיפוש */
.search-close:focus,
.search-close:focus-visible,
.search-submit:focus,
.search-submit:focus-visible {
  outline: 3px solid var(--primary-color-jhhd) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}
 
 .search-close {
   left: 10px;
   top: 50%;
   transform: translateY(-50%);
 }
 
 .search-submit {
   left: 40px;
   top: 50%;
   transform: translateY(-50%);
 }
 
 .close-icon {
   display: inline-block;
   width: 16px;
   height: 16px;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;
 }
 
 .submit-icon {
   display: inline-block;
   width: 16px;
   height: 16px;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;
 }
 
 /**
  * === עיצוב נגטיבי לכל העמודים (כולל עמוד הבית) ===
  */
 .site-header {
   background-color: var(--secondary-color-jhhd) !important;
   border-color: var(--secondary-color-jhhd) !important;
   box-shadow: 0 2px 8px rgba(27, 54, 93, 0.2) !important;
 }
 
/* טקסט לבן בעיצוב הנגטיבי */
.site-title,
.site-description,
.menu-item a {
  color: #ffffff !important;
}

 .site-description {
   color: #ffffff !important;
   opacity: 0.8;
 }

/* קו תחתון לבן בתפריט בעת ריחוף */
.menu-item a::after {
  background-color: #ffffff !important;
}

.menu-item a:hover {
  color: #ffffff !important;
}

 /* התאמות למסכים קטנים */
@media (max-width: 768px) {
  /* במובייל: כותרת צמודה בכל העמודים */
  header,
  .site-header,
  #masthead {
    top: 0;
    width: 100%;
    margin: 0;
  }
  
  /* מבנה גריד מעודכן */
  .header-container,
  .site-header > div,
  #masthead > div {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 10px;
    height: 42px;
    position: relative;
  }
   
   /* לוגו במרכז */
   .logo-container,
   .site-branding {
     grid-column: 2;
     justify-content: center;
     align-items: center;
     max-width: 100%;
     overflow: visible;
     height: 100%;
     position: static;
     right: auto;
     top: auto;
   }
   
   /* הסתרת תפריט הניווט העליון במובייל */
   .nav-menu {
     display: none;
   }
   
   /* התאמת גודל הלוגו במובייל */
   .logo {
     height: 35px;
     max-height: 35px;
     margin-left: 0;
     margin-right: 0;
     align-self: center;
     display: block;
     position: relative;
     top: 0;
   }
   
   /* וידוא שרק לוגו נגטיבי מוצג במובייל */
   .logo-home {
     display: none !important;
   }
   
   .logo-other-pages {
     display: block !important;
   }
   
   /* וידוא שהלינק של הלוגו ממורכז */
   .logo-container > a {
     display: flex;
     align-items: center;
     justify-content: center;
     height: 100%;
     line-height: 0;
   }
   
   /* התאמת גודל הכותרת במובייל */
   .site-title {
     font-size: 1.2rem;
   }
   
   .site-description {
     font-size: 0.75rem;
   }
   
   /* תיקונים לאזור החיפוש */
   .search-text {
     display: none;
   }
   
   .search-icon {
     margin-left: 0;
   }
   
   /* תיקוני רוחב */
   .site-branding-text {
     max-width: calc(100% - 48px);
   }
   
   /* המיכל הישן של כפתורי מובייל אינו בשימוש */
   .mobile-menu-space {
     display: none !important;
   }

   /* כדי שהמיכל של החיפוש לא יתפוס עמודת גריד */
   .controls-container {
     display: contents;
   }
   
   /* התאמת טופס החיפוש למובייל */
   .search-form-container {
     padding: 10px;
   }
   
   .search-field {
     padding: 10px;
     font-size: 0.95rem;
   }
  
  /* עיצוב נגטיבי למובייל - אחיד בכל העמודים */
  .site-header {
    background-color: var(--secondary-color-jhhd) !important;
    border-color: var(--secondary-color-jhhd) !important;
  }
  
  /* אייקון חיפוש במובייל - לבן טהור כמו כפתור התפריט */
  .search-icon {
    background-color: #ffffff !important;
  }
  
  .search-btn {
    color: #ffffff !important;
  }

  /* צבע כפתור פתיחת תפריט הצד במובייל - לבן טהור */
  .mobile-nav-toggle {
    color: #ffffff !important;
  }
  
  /* ודא שהפסים נצבעים וממורכזים */
  .mobile-nav-toggle span {
    background-color: currentColor !important;
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    margin: 3px auto !important;
  }

  /* מיקומים חדשים: כפתור תפריט מימין (RTL), חיפוש משמאל */
  .mobile-nav-toggle {
    grid-column: 1;
    justify-self: start;
    order: 1;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    height: 100%;
  }
  
  .logo-container {
    order: 2;
  }
  
  .controls-container,
  #search-toggle {
    grid-column: 3;
    justify-self: end;
    order: 3;
    display: flex !important;
    align-items: center !important;
    height: 100%;
    padding-left: 0 !important;
    margin-right: 0 !important;
    position: static;
    left: auto;
    top: auto;
    justify-content: flex-end;
  }
}





/* === header-search === */
/**
 * === עיצוב תפריט החיפוש ===
 * סגנון מודרני ומינימליסטי לשדה החיפוש
 */

/* מיכל כפתור חיפוש */
.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

/* עיצוב לטקסט חיפוש - מוגדר ב-_header.css */

/* הוספת מחלקה למיכל האמצעי בכותרת (עבור החיפוש) */
.middle-header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  grid-column: 2;
  /* מיקום במיכל האמצעי */
}

/* עיצוב תיבת החיפוש המורחבת - עיצוב אחיד לכל העמודים */
.search-form-container,
#search-form-container {
  position: fixed;
  top: 53px;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--secondary-color-jhhd);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(27, 54, 93, 0.2);
  z-index: 101;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

/* מסתיר את האלמנט בלי להשפיע על קוראי מסך */
[hidden] {
  display: none !important;
}

.search-form {
  display: flex;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.search-field {
  width: 100%;
  padding: 12px 40px 12px 40px;
  /* הוספת מקום לאייקון חיפוש בצד שמאל */
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  /* קו תחתון בהיר על רקע כהה */
  border-radius: 0;
  background-color: transparent;
  color: #ffffff;
  font-size: 1rem;
  direction: rtl;
  transition: border-bottom-color 0.2s ease;
  font-family: var(--font-family-accent) !important;
}

.search-field::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* שדה החיפוש - ללא מסגרת פוקוס בלחיצת עכבר */
html body .search-field:focus,
html body .search-field:focus:not(:focus-visible) {
  outline: none !important;
  border-bottom-color: #ffffff;
  box-shadow: none !important;
}

/* שדה החיפוש - מסגרת פוקוס רק בניווט מקלדת */
html body .search-field:focus-visible {
  outline: 2px solid var(--primary-color-jhhd) !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

.search-submit {
  left: 15px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.2s ease;
  z-index: 102;
}

/* הסתרת כפתור הסגירה */
.search-close {
  display: none !important;
  /* הסתרה מוחלטת של כפתור האיקס */
}

.search-submit:hover,
.search-close:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* כאשר טופס החיפוש פתוח */
.search-form-container:not([hidden]),
#search-form-container:not([hidden]) {
  display: block;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* סגנונות לאלמנטי נגישות */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* מיקוד מקלדת - חיוני לתקן נגישות */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--secondary-color-jhhd);
  outline-offset: 2px;
}

/* התאמת מיקום שורת החיפוש למובייל */
@media (max-width: 768px) {
  .search-form-container,
  #search-form-container {
    top: 42px; /* גובה הכותרת במובייל */
  }
}

/* כל ההגדרות עכשיו אחידות לכל העמודים */






/* === footer === */
/**
 * === פוטר מינימליסטי ===
 * עיצוב מינימליסטי לכותרת התחתונה
 */

 .site-footer {
  background-color: #FAFAFA;
  padding: 25px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-family-accent) !important;
  direction: rtl;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* אייקונים חברתיים */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-medium);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.social-icon:hover {
  color: var(--primary-color-jhhd);
  border-color: var(--primary-color-jhhd);
}

.social-icon i {
  font-size: 16px;
}

/* קישורים */
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.footer-links a {
  color: var(--gray-dark);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0 5px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-color-jhhd);
}

.footer-links .separator {
  color: var(--gray-mild);
  font-size: 0.85rem;
}

/* הרשמה לעדכונים  */
.footer-newsletter {
  flex-shrink: 0;
}

.newsletter-wrapper {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: visible; /* שינוי מ-hidden כדי לאפשר תצוגת פוקוס */
  height: 32px; /* מגדיר גובה קטן יותר */
}

.footer-newsletter input {
  border: none;
  padding: 6px 10px; /* פדינג מוקטן */
  font-size: 0.8rem; /* גופן קטן יותר */
  background-color: white;
  color: var(--gray-dark);
  min-width: 150px; /* רוחב מינימלי קטן יותר */
  font-family: var(--font-family-accent) !important;
}

/* הסתרת פוקוס בלחיצת עכבר */
html body .footer-newsletter input:focus,
html body .footer-newsletter input:focus:not(:focus-visible),
html body .footer-newsletter input#newsletter-email:focus,
html body .footer-newsletter input#newsletter-email:focus:not(:focus-visible) {
  outline: none !important;
}

/* מסגרת פוקוס בניווט מקלדת - שדה האימייל */
html body .footer-newsletter input:focus-visible,
html body .footer-newsletter input#newsletter-email:focus-visible {
  outline: 3px solid var(--primary-color-jhhd) !important;
  outline-offset: -2px !important;
  border-radius: 2px;
}

/* הסתרת פוקוס בלחיצת עכבר על הכפתור */
html body .footer-newsletter button:focus:not(:focus-visible) {
  outline: none !important;
}

/* פוקוס על כפתור ההרשמה - בניווט Tab */
html body .footer-newsletter button:focus-visible {
  outline: 3px solid var(--primary-color-jhhd) !important;
  outline-offset: -2px !important;
  border-radius: 2px;
}

/* הרשמה לעדכונים - בסגנון האייקונים החברתיים */
.footer-newsletter button {
  background-color: white; /* רקע לבן כמו האייקונים */
  color: var(--gray-medium); /* צבע טקסט כמו האייקונים */
  border: 1px solid rgba(0, 0, 0, 0.1); /* גבול זהה לאייקונים */
  padding: 0 12px;
  cursor: pointer;
  transition: all 0.2s ease; /* שיניתי מ-background-color ל-all כדי שהכל יהיה באנימציה */
  font-size: 0.8rem;
  height: 100%; /* להתאמה מלאה לגובה השדה */
}

.footer-newsletter button:hover {
  color: var(--primary-color-jhhd); /* שינוי צבע טקסט בהרחפה - כמו באייקונים */
  border-color: var(--primary-color-jhhd); /* שינוי צבע גבול בהרחפה - כמו באייקונים */
  background-color: white; /* נשאר לבן גם בהרחפה */
}

/* זכויות יוצרים */
.footer-copyright {
  color: var(--gray-medium);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  /* סדר האלמנטים במובייל: 1) זכויות יוצרים, 2) ניוזלטר, 3) קישורים */
  .footer-copyright { order: 1; }
  .footer-newsletter { order: 2; }
  .footer-links { order: 3; }

  .footer-links {
    flex-direction: row; /* שיהיו בשורה */
    justify-content: center; /* מרכוז אופקי */
    flex-wrap: nowrap; /* ללא שבירת שורה */
    white-space: nowrap; /* מונע שבירת שורה פנימית */
    gap: 8px; /* רווח קטן יותר בין הקישורים */
    width: 100%; /* מנצל את כל הרוחב */
  }
  
  .footer-links .separator {
    display: inline; /* מציג את המפרידים */
    font-size: inherit; /* שומר על יחס לגודל הטקסט */
  }
  
  .footer-links a {
    font-size: clamp(12px, 2.4vw, 16px); /* מתאים את עצמו לרוחב המסך */
    padding: 2px 4px; /* פדינג מצומצם כדי למנוע גלילה */
    white-space: nowrap; /* מונע שבירת שורה בתוך הטקסט */
  }
  
  .newsletter-wrapper {
    width: 100%;
  }
  
  .footer-newsletter input {
    width: 100%;
    min-width: auto;
  }
}

/* מדיה קוורי לשינוי גודל פונט בהתאם לרוחב המסך */
@media (max-width: 480px) {
  .footer-links {
    gap: 6px; /* מקטין רווחים במסכים הכי קטנים */
  }
  .footer-links a {
    font-size: clamp(11px, 3.4vw, 14px); /* מצמצם עוד יותר במסכים צרים */
    padding: 1px 3px; /* פדינג קטן יותר כדי למנוע גלילה */
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .footer-links a {
    font-size: clamp(12px, 2.2vw, 15px); /* מתאים למסכים בינוניים */
  }
}


/* === sidebar === */
/**
 * === תפריט צד למובייל ===
 * סגנונות לתפריט צד מונגש למובייל
 * גרסה: 2.0.0
 */

/* סגנונות לנגישות */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* מיכל תפריט הצד */
.mobile-side-nav {
    display: none;
}
  
/* תפריט צד - מצב פתוח */
body.mobile-menu-active .mobile-side-nav {
    display: block;
    position: fixed;
    top: 60px;
    right: 0;
    width: 50%; /* שינוי מ-250px ל-50% מרוחב המסך */
    height: calc(100vh - 60px);
    background-color: var(--secondary-color-jhhd-bright);
    color: var(--secondary-color-jhhd);
    z-index: 101;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: -1px 0 8px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* כותרות בתפריט הצד */
.mobile-side-nav h3 {
    color: var(--secondary-color-jhhd);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-mild);
    width: 100%;
    text-align: right;
    font-family: var(--font-family-accent) !important;
    letter-spacing: -0.01em;
}
  
/* קטע תפריט */
.mobile-side-nav-section {
    margin-bottom: 25px;
}
  
/* פריטי התפריט */
.mobile-side-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
  
.mobile-side-nav ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
  
.mobile-side-nav ul li:last-child {
    border-bottom: none;
}
  
.mobile-side-nav ul li a {
    display: block;
    width: 100%;
    text-align: right;
    padding: 12px 0;
    color: var(--secondary-color-jhhd);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease, padding-right 0.2s ease;
    text-decoration: none;
    font-family: var(--font-family-accent) !important;
}
  
.mobile-side-nav ul li a:hover {
    color: var(--secondary-color-jhhd);
    padding-right: 5px;
    background-color: transparent;
}

/* סגנון כפתור סגירה */
.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 0 0 15px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--gray-mild);
}
  
.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--gray-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    position: relative;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 1px;
    background-color: var(--primary-color);
    transform-origin: center;
}

.mobile-menu-close::before {
    transform: rotate(45deg);
}

.mobile-menu-close::after {
    transform: rotate(-45deg);
}

/* מרכוז כפתור התפריט במיכל השמאלי */
.mobile-menu-space {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
}

/* עיצובים לכפתור פתיחת תפריט */
.mobile-nav-toggle {
    display: none; /* מוסתר כברירת מחדל, יוצג רק במובייל */
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
    padding: 0;
    z-index: 100;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mobile-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: currentColor;
    position: absolute;
    transition: transform 0.2s ease;
}

.mobile-nav-toggle span:nth-child(1) {
    top: 10px;
}

.mobile-nav-toggle span:nth-child(2) {
    top: 16px;
}

.mobile-nav-toggle span:nth-child(3) {
    top: 22px;
}

.mobile-nav-toggle:hover span {
    background-color: var(--secondary-color);
}

/* מיקוד נראה היטב */
.mobile-nav-toggle:focus-visible,
.mobile-menu-close:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* כפתור תפריט במצב פתוח */
body.mobile-menu-active .mobile-nav-toggle span:nth-child(1) {
    transform: translate(0, 6px) rotate(45deg);
}

body.mobile-menu-active .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.mobile-menu-active .mobile-nav-toggle span:nth-child(3) {
    transform: translate(0, -6px) rotate(-45deg);
}

/* תיקון סלוגן האתר במובייל */
@media screen and (max-width: 768px) {
    /* הגבלת רוחב הסלוגן והכותרת */
    .site-branding-text {
        max-width: 100%;
        overflow: hidden;
    }
    
    .site-title {
        font-size: 1.2rem;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        max-width: 100%;
    }
    
    .site-description {
        font-size: 0.75rem;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        max-width: 100%;
    }
    
    /* מיכל לוגו ושם האתר */
    .logo-container {
        overflow: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* כפתור התפריט מוצג רק במובייל */
    .mobile-nav-toggle {
        display: flex !important;
    }
    
    /* גובה התפריט מותאם לגובה הכותרת במובייל */
    body.mobile-menu-active .mobile-side-nav {
        top: 60px;
        height: calc(100vh - 60px);
        width: 50%; /* וודא שגם במובייל התפריט יכסה 50% מהמסך */
    }
    
    /* התאמת גודל טקסט במובייל */
    .mobile-side-nav h3 {
        font-size: 1rem;
    }
    
    .mobile-side-nav ul li a {
        font-size: 0.95rem;
    }
}

/* הסתרה במסכי דסקטופ */
@media screen and (min-width: 769px) {
    .mobile-nav-toggle {
        display: none !important;
    }
}



/* === category === */
/**
 * === עיצוב עמוד קטגוריות ===
 * עיצוב בסגנון מינימליסטי ומודרני בהשראת עיתון הארץ
 * מציג פוסטים בפורמט גריד רספונסיבי עם דגש על טיפוגרפיה וקריאות
 */

/* כותרת ראשית של הקטגוריה */
.archive-title {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-top: 60px;
  margin-bottom: 1.5rem; 
  font-weight: 700;
  text-align: right;
  line-height: 1.2;
  font-family: var(--font-family-accent) !important;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.8rem;
}

/* הגבלת רוחב למיכלים הראשיים */
.archive-header,
.category-query {
  max-width: var(--content-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* מיכל הגריד של הפוסטים */
.category-posts-grid {
  display: grid;
  grid-template-columns: repeat(var(--archive-columns, 3), minmax(0, 1fr)); 
  gap: 2.5rem;
  margin: 0 0 3.5rem 0;
  padding: 0;
}

/* כרטיס פוסט בודד - בסגנון "מסגרת עדינה" */
.category-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--secondary-color-jhhd-bright);
  transition: all 0.3s ease;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

/* קישור התמונה */
.category-post-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  padding-top: 66.67%; /* יחס 3:2 */
  margin: 0;
  line-height: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* פיקס ספציפי לבלוק התמונה בוורדפרס */
.category-query figure.wp-block-post-featured-image {
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

/* תמונה ראשית של הפוסט */
.category-post-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  margin: 0;
  padding: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.category-post-image-link:hover .category-post-image {
  transform: scale(1.03);
}

/* בדיקה: צמצום אגרסיבי של המרווח בין התמונה לתוכן בכרטיסי קטגוריה מותאמים */
.category-post-image-link + .category-post-content {
  margin-top: 0;
}

/* תוכן הפוסט */
.category-post-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0.8rem 1.2rem 0.6rem; /* רווח מזערי מהתמונה לטקסט */
  margin: 0;
  background-color: transparent;
}

/* כותרת הפוסט */
.category-post-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0; /* הרווח מהתמונה נשלט דרך padding-top של התוכן */
  line-height: 1.3;
  padding: 0;
  font-family: var(--font-family-accent) !important;
}

.category-post-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
}

.category-post-title a:hover {
  color: var(--secondary-color);
}

/* מצב פוקוס לקישורים - ביטול מסגרת */
.category-post-title a:focus,
.category-post-image-link:focus,
.category-post-read-more:focus,
.category-pagination a:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* כותרת משנה (תקציר הפוסט) */
.category-post-subtitle {
  font-size: 1rem;
  color: var(--gray-medium);
  margin: 0 0 1rem 0;
  padding: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-family-accent) !important;
}

/* מידע על הפוסט (תאריך וכו') */
.category-post-meta {
  margin-top: auto;
  padding-top: 0.8rem;
  margin-bottom: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  color: var(--gray-medium);
  display: flex;
  align-items: center;
  font-family: var(--font-family-accent) !important;
}

/* אייקון התאריך */
.category-post-date {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-weight: 400;
}

/* הסרת האייקון לפני התאריך בארכיונים */
.category-post-date::before {
  content: none;
}

/* כפתור "קרא עוד" */
.category-post-read-more { display: none !important; }

/* ניווט בין עמודים */
.category-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-family-accent) !important;
}

.category-pagination a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background-color: transparent;
  color: var(--secondary-color-jhhd) !important;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--secondary-color-jhhd);
  font-size: 0.9rem;
}

.category-pagination a:hover {
  background-color: var(--secondary-color-jhhd);
  color: var(--white) !important;
}

.category-pagination a:focus {
  background-color: var(--secondary-color-jhhd);
  color: var(--white) !important;
  outline: 2px solid var(--secondary-color-jhhd);
  outline-offset: 2px;
}

.category-pagination-prev::before {
  content: "→";
  margin-left: 0.5rem;
}

.category-pagination-next::after {
  content: "←";
  margin-right: 0.5rem;
}

/* מספרי עמודים */
.category-pagination-numbers {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* מרווח נוסף בין לחצן "הקודם" ללחצני המספרים */
.category-pagination-numbers a.prev {
  margin-left: 20px;
}

/* מרווח נוסף בין לחצני המספרים ללחצן "הבא" */
.category-pagination-numbers a.next {
  margin-right: 20px;
}

.category-pagination-numbers .page-numbers {
  min-width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-pagination-numbers .page-numbers.current {
  background-color: var(--secondary-color-jhhd);
  color: var(--white);
  border: 1px solid var(--secondary-color-jhhd);
}

/* פיקס ספציפי לוורדפרס */
.category-posts-container {
  margin: 0 !important;
  padding-top: 0 !important;
}

/* התאמה לגדלי מסך שונים */
@media screen and (max-width: 1200px) {
  .category-posts-grid {
    grid-template-columns: repeat(var(--archive-columns, 3), 1fr);
    gap: 2rem;
  }
  
  .archive-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  /* תצוגה אופקית במובייל: תמונה מימין, טקסט משמאל */
  .category-posts-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .category-post-card {
    flex-direction: row; /* מסדר את האלמנטים בשורה */
    height: auto; /* הגובה נקבע לפי התוכן/תמונה */
    min-height: 130px; /* גובה מינימלי לכרטיס */
    align-items: stretch; /* מתיחת התמונה והתוכן לגובה הכרטיס */
  }
  
  /* מיכל התמונה במובייל */
  .category-post-image-link {
    width: 40%; /* רוחב התמונה */
    padding-top: 0; /* ביטול יחס גובה-רוחב קבוע */
    flex-shrink: 0;
    position: relative;
  }

  /* התמונה עצמה במובייל */
  .category-post-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* התמונה מכסה את כל השטח */
  }
  
  /* ביטול מרווחים שליליים במובייל */
  .category-post-image-link + .category-post-content {
    margin-top: 0;
  }

  /* מיכל התוכן במובייל */
  .category-post-content {
    width: 60%; /* רוחב התוכן */
    padding: 0.8rem 1rem 0.8rem;
    justify-content: flex-start;
  }
  
  /* כותרת הפוסט במובייל */
  .category-post-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }
  
  /* הסתרת תקציר במובייל או קיצורו */
  .category-post-subtitle {
    display: none; /* אופציונלי: להסתיר תקציר במובייל אם צפוף, או להשאיר עם line-clamp קטן */
  }

  /* מידע נוסף (תאריך) במובייל */
  .category-post-meta {
    margin-top: auto;
    padding-top: 0;
    border-top: none;
    margin-bottom: 0;
    font-size: 0.8rem;
  }
  
  .archive-title {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .category-posts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .category-post-subtitle {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .archive-title {
    font-size: 1.5rem;
    text-align: right;
  }
  
  /* במסכים קטנים, נציג רק קישורי קודם/הבא */
  .category-pagination-numbers {
    display: none;
  }
}

/* תמיכות נגישות */
@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================== */
/* ארכיונים: קטגוריות ותגים */
/* התאמות לתמונות ברשימות פוסטים המבוססות בלוקים */
/* ===================== */

/* מיכל פוסט בארכיונים (קטגוריות/תגיות) */
.archive .wp-block-post {
  background-color: var(--secondary-color-jhhd-bright);
  border-radius: 0;
  overflow: hidden;
  padding: 0; /* מבטיח שאין ריווח סביב התמונה */
}

/* עטיפת התמונה בפוסטים בארכיונים – כפיית יחס 3:2 וביטול עיגול פינות */
.archive .wp-block-post-featured-image {
  aspect-ratio: 3 / 2 !important;
  overflow: hidden;
  border-top-left-radius: inherit !important;
  border-top-right-radius: inherit !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin: 0;
}

/* קישור התמונה ימלא את המיכל */
.archive .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
  border-top-left-radius: inherit !important;
  border-top-right-radius: inherit !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* התמונה עצמה – חיתוך מרכזי ליחס 3:2, ללא פינות מעוגלות */
.archive .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: inherit !important;
  border-top-right-radius: inherit !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  display: block;
}

/* ריווח פנימי לטקסט בארכיוני פוסטים במובייל בלבד (רק לאחים אחרי התמונה) */
@media screen and (max-width: 768px) {
  .archive .wp-block-post .wp-block-post-featured-image ~ * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* הפחתה אגרסיבית של הרווח בין התמונה לכותרת בארכיונים בלבד */
.archive .wp-block-post .wp-block-post-featured-image + * {
  margin-top: 0 !important; /* בדיקה: מרווח שלילי כדי לוודא שזה הסלקטור הנכון */
}

/* מטא של פוסטים בארכיונים: מחבר — תאריך בשורה אחת */
.archive .archive-post-author,
.archive .archive-post-meta-sep,
.archive .wp-block-post-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

/* שם הכתב - טקסט רגיל ללא קישור */
.archive .archive-post-author__name {
  color: #888;
  font-weight: 500;
}

/* תמיכה לאחור בקישור ישן אם קיים */
.archive .archive-post-author__link {
  color: #888;
  text-decoration: none;
  border-bottom: none;
}

.archive .archive-post-author__link:hover {
  color: #888;
  border-bottom: none;
}

/* התאמת מפריד למחבר/תאריך ל־| */
.archive .archive-post-meta-sep {
  font-weight: 400;
  color: var(--gray-medium);
  margin: 0 10px;
}

/* === סגנונות נגישות - ניווט במקלדת === */

/* כרטיס ניתן לניווט */
.category-post-card.card-navigable {
  cursor: pointer;
}

/* פוקוס על כרטיס - רק בניווט מקלדת */
.category-post-card.card-navigable:focus-visible {
  outline: 3px solid var(--primary-color-jhhd) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.1);
}

/* הסתרת פוקוס בלחיצת עכבר */
.category-post-card.card-navigable:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* הסתרת פוקוס מאלמנטים פנימיים */
.category-post-card.card-navigable a:focus,
.category-post-card.card-navigable a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}


/* === search-results === */
/**
 * === עיצוב עמוד תוצאות חיפוש ===
 * עיצוב מינימליסטי ומודרני לעמוד תוצאות חיפוש
 * על בסיס העיצוב החדש של עמודי הקטגוריות
 */

/* עיצוב כותרת תוצאות החיפוש */
.search-title {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 1.5rem; 
  font-weight: 700;
  text-align: right;
  line-height: 1.2;
  font-family: var(--font-family-accent) !important;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.8rem;
}

/* עיצוב טופס החיפוש הראשי */
.search-form-main {
  margin: 0 auto 2.5rem auto;
  max-width: 700px;
}

.search-form-main .wp-block-search__inside-wrapper {
  display: flex;
  flex-direction: row-reverse;
  border: 1px solid var(--gray-mild);
  transition: border-color 0.2s ease;
}

.search-form-main .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--secondary-color);
  outline: none;
}

.search-form-main .wp-block-search__input {
  flex-grow: 1;
  border: none;
  border-radius: 0;
  padding: 14px 16px;
  font-size: 1.05rem;
  color: var(--text-color);
  background-color: var(--white);
  font-family: var(--font-family-accent) !important;
  direction: rtl;
  text-align: right;
  min-height: 52px;
}

.search-form-main .wp-block-search__input:focus {
  outline: none;
}

.search-form-main .wp-block-search__button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0;
  padding: 14px 24px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: var(--font-family-accent) !important;
  font-size: 0.95rem;
  min-width: 120px;
}

.search-form-main .wp-block-search__button:hover {
  background-color: var(--primary-alt);
}

/* הודעת אין תוצאות */
.search-no-results {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--gray-soft);
  margin: 2.5rem auto;
  max-width: 700px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-no-results p {
  font-size: 1.1rem;
  color: var(--gray-dark);
  margin-bottom: 1rem;
  font-family: var(--font-family-accent) !important;
}

.search-no-results p:first-child {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}

/* גריד התוצאות – זהה לארכיונים: עמודות דינמיות לפי --archive-columns */
.search .wp-block-post-template.wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(var(--archive-columns, 3), minmax(0, 1fr));
  gap: 2.5rem;
}

/* כפיית יחס 3:2 וביטול עיגול פינות לתמונות */
.search .wp-block-post-featured-image { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0 !important; }
.search .wp-block-post-featured-image a { display: block; width: 100%; height: 100%; border-radius: 0 !important; }
.search .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 0 !important; display: block; }

/* מחבר — תאריך בשורה אחת */
.search .archive-post-author,
.search .archive-post-meta-sep,
.search .wp-block-post-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.search .archive-post-author__link { color: var(--primary-color); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.1); }
.search .archive-post-author__link:hover { color: var(--secondary-color); border-bottom-color: var(--secondary-color); }

/* שדה חיפוש בכותרת העליונה */
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-family: var(--font-family-accent) !important;
  font-weight: 500;
}

/* .search-icon מוגדר ב-_header.css - לא צריך הגדרה כפולה כאן */

.search-form-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* טקסט הנחיה */
.search-hint {
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin: 1rem 0 2rem;
  text-align: center;
  font-family: var(--font-family-accent) !important;
}

/* התאמה למסכים קטנים */
@media screen and (max-width: 768px) {
  .search .wp-block-post-template.wp-block-post-template {
    grid-template-columns: repeat(var(--archive-columns, 2), 1fr);
    gap: 1.5rem;
  }
  .search-title {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
  }
  
  .search-form-main {
    max-width: 100%;
  }
  
  .search-form-main .wp-block-search__input {
    padding: 12px 14px;
    font-size: 1rem;
    min-height: 48px;
  }
  
  .search-form-main .wp-block-search__button {
    padding: 12px 18px;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .search-no-results {
    padding: 2rem 1.5rem;
    margin: 2rem auto;
  }
  
  .search-no-results p {
    font-size: 1rem;
  }
  
  .search-no-results p:first-child {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .search-title {
    font-size: 1.5rem;
    text-align: right;
  }
  
  .search-form-main .wp-block-search__input {
    padding: 10px 12px;
  }
  
  .search-form-main .wp-block-search__button {
    padding: 10px 16px;
    min-width: 80px;
  }
  
  .search-no-results p:first-child {
    font-size: 1.1rem;
  }
  .search .wp-block-post-template.wp-block-post-template {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}



/* === blocks === */
/**
 * === עיצוב בלוקים של וורדפרס ===
 * עיצוב אחיד לבלוקי התוכן המובנים של וורדפרס
 * בסגנון נקי ומודרני המתאים למגזין יוקרתי
 */


/**
 * === כותרות ===
 * עיצוב כותרות ראשיות וכותרות משנה בסגנון מינימליסטי
 */
.wp-block-heading h1,
h1.wp-block-heading {
  font-family: var(--font-family-accent) !important;
  font-size: 50px;
  color: #000000;
  margin: 1.8rem 0 1rem;
  font-weight: 800;
  line-height: 1.0;
  min-height: 140px;
  position: relative;
  padding-top: 43px !important;
}

/* כותרת פוסט של וורדפרס */
.wp-block-post-title,
h1.entry-title,
h2.entry-title {
  padding-top: 43px !important;
}

.wp-block-heading h2,
h2.wp-block-heading {
  font-family: var(--font-family-accent) !important;
  font-size: 1.5rem;
  color: #000000;
  margin-top: 1.6rem !important;
  margin-bottom: 0 !important;
  font-weight: 500;
  float: none !important;
}

.wp-block-heading h3,
h3.wp-block-heading {
  font-family: var(--font-family-accent) !important;
  font-size: 1.4rem;
  color: #000000;
  margin: 1.2rem 0 0.7rem;
  font-weight: 500;
  line-height: 1.3;
}

.wp-block-heading h4,
h4.wp-block-heading {
  font-size: 1.2rem;
  color: #000000;
  margin: 1.2rem 0 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}

.wp-block-heading h5,
h5.wp-block-heading {
  font-size: 1.1rem;
  color: #000000;
  margin: 1rem 0 0.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.wp-block-heading h6,
h6.wp-block-heading {
  font-size: 1rem;
  color: #000000;
  margin: 1rem 0 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/**
  * === פסקאות ===
  * עיצוב פסקה רגילה ופסקה מודגשת
  */
.wp-block-paragraph p,
p.wp-block-paragraph {
  font-family: var(--font-family-accent) !important;
  margin-bottom: 1.2rem;
  line-height: 1.7;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
}

/* עיצוב ברירת מחדל לכל הקישורים בתוכן האתר */

/* קישורים בפסקאות טקסט */
p a,
.entry-content a,
.wp-block-paragraph a,
article a,
.post-content a {
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 102, 179, 0.3);
  position: relative;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
  font-weight: 400;
}

/* מצב hover */
p a:hover,
.entry-content a:hover,
.wp-block-paragraph a:hover,
article a:hover,
.post-content a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* מצב focus - חשוב לנגישות מקלדת */
p a:focus,
.entry-content a:focus,
.wp-block-paragraph a:focus,
article a:focus,
.post-content a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* מצב active */
p a:active,
.entry-content a:active,
.wp-block-paragraph a:active,
article a:active,
.post-content a:active {
  color: var(--link-hover);
  border-bottom-style: solid;
}

/* חריגים - מניעת החלת הסגנון על קישורים מיוחדים */
.wp-block-navigation a,
.wp-block-social-links a,
.site-header a,
.site-footer a,
.widget a,
.wp-block-button a,
.menu a,
.nav a,
.pagination a,
.wp-block-latest-posts a,
.entry-title a,
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a,
.wp-block-cover a,
.button,
.btn,
button a {
  border-bottom: none;
}

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

/* מיכל ראשי */
.wp-block-post-author,
.custom-author-info {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  color: var(--gray-medium);
  line-height: 1.4;
}

/* תמונת הכתב */
.wp-block-post-author__avatar,
.custom-author-info .author-avatar {
  width: auto;
  height: auto;
  min-width: auto;
  margin-left: 1.2rem;
  margin-right: 0;
  border-radius: 0;
  overflow: visible;
}

.wp-block-post-author__avatar img,
.custom-author-info .author-avatar img {
  width: auto;
  height: auto;
  object-fit: none;
  display: inline;
  max-width: none;
  border-radius: 0;
}

span.author-avatar {
  display: none;
}


/* מיכל תוכן (שם, תפקיד) */
.wp-block-post-author__content,
.custom-author-info .author-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* שם הכתב */
.wp-block-post-author__name,
.custom-author-info .author-name {
  font-family: var(--font-family-accent) !important;
  font-weight: 200;
  color: var(--primary-color);
  font-size: 1.05rem;
  margin: 0 0 0.2rem 0;
  padding: 0;
  line-height: 1.3;
}

/* תפקיד / ביוגרפיה */
.wp-block-post-author__bio,
.custom-author-info .author-role {
  font-size: 0.85rem;
  color: var(--gray-medium);
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

/* תאריך */
.wp-block-post-author .wp-block-post-date,
.wp-block-post-author__meta,
.custom-author-info .author-date {
  font-family: var(--font-family-accent) !important;
  font-weight: 200;
  color: var(--primary-color);
  font-size: 1.05rem;
  margin: 0 0 0.2rem 0;
  padding: 0;
  line-height: 1.3;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding-right: 1rem;
  margin-right: 1rem;
  margin-left: auto;
  height: fit-content;
}

/**
  * === קו הפרדה ===
  */
.wp-block-separator {
  border: 0;
  height: 0px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 0rem auto;
  width: 100%;
  max-width: 100%;
}

.wp-block-separator.is-style-wide {
  max-width: 100%;
}

.wp-block-separator.is-style-dots {
  background: none;
  border: none;
  text-align: center;
  max-width: none;
  line-height: 1;
  height: auto;
}

.wp-block-separator.is-style-dots::before {
  content: "•••";
  color: var(--gray-medium);
  font-size: 20px;
  letter-spacing: 1em;
  padding-left: 1em;
}

/**
  * === בלוקי תמונה ===
  * עיצוב עבור בלוקי תמונה בסיסיים וברוחב מלא
  */

/* בלוק תמונה רגיל עם הסבר */
.wp-block-image {
  margin: 2.5rem auto;
  max-width: 100%;
  text-align: center;
}

.wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* הגבלת רוחב תמונות גדולות לרוחב העמודה (אלא אם כן הן alignfull או alignwide) */
.entry-content .wp-block-image:not(.alignfull):not(.alignwide) img {
  max-width: min(100%, 750px);
  width: auto;
}

/* מרכוז התמונה כאשר היא קטנה מרוחב העמודה */
.wp-block-image figure {
  display: table;
  margin: 0 auto;
}

/* מרכוז ספציפי לתמונות בתוך תוכן הפוסט */
.entry-content .wp-block-image {
  display: block;
  text-align: center;
}

.entry-content .wp-block-image:not(.alignfull):not(.alignwide) img {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: min(100%, 750px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  position: relative !important;
  z-index: 1 !important;
}

/* הגבלת גובה רק לתמונות מאורכות (portrait) */
.entry-content .wp-block-image:not(.alignfull):not(.alignwide) img.portrait-image {
  max-height: 500px !important;
}

/* ביטול יישור ימין של figure - והגבלת רוחב לגודל התמונה */
.entry-content figure.wp-block-image {
  margin-left: auto;
  margin-right: auto;
  display: table;
  width: auto !important;
  max-width: min(100%, 750px) !important;
}

/* מרכוז תמונות רגילות - ללא רקע שחור */
.entry-content figure.wp-block-image:not(.alignfull):not(.alignwide) {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: min(100%, 750px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* הוסר המלבן השחור שהיה משבש את התצוגה */

/* וידוא מרכוז גם עבור תמונות עם classes של יישור */
.entry-content .wp-block-image:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide) {
  display: table !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  clear: both !important;
}

/* ביטול float במידת הצורך */
.entry-content .wp-block-image:not(.alignleft):not(.alignright) img {
  float: none !important;
}

/* יישור הכיתוב לימין */
.wp-block-image:not(.alignleft):not(.alignright) figcaption {
  text-align: right;
  padding-right: 20px;
  padding-left: 0;
  margin: 0;
  margin-top: 0.5rem;
}

.wp-block-image figcaption {
  font-size: 0.95rem;
  color: var(--gray-medium);
  text-align: right;
  padding-right: 20px;
  padding-left: 0;
  font-weight: 300;
  font-family: var(--font-family-accent) !important;
  margin-top: 0.5rem;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* בלוק תמונה עם כותרת והסבר */
.wp-block-image.has-caption figcaption strong,
.wp-block-image.has-caption figcaption b {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  text-align: right;
}

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

/* הסרת ה-before שיוצר את הטשטוש */
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before,
.wp-block-gallery.has-nested-images figure.wp-block-image::before {
  content: none !important;
  display: none !important;
  background: none !important;
  backdrop-filter: none !important;
}

/* דריסת כל הסגנונות של figcaption בגלריה */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
.wp-block-gallery.has-nested-images figcaption {
  /* דריסת position absolute של וורדפרס - חזק מאוד! */
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: auto !important;
  
  /* הסרת רקע מטושטש */
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  
  /* עיצוב חדש - כמו תמונה בודדת */
  display: block !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  padding-right: 20px !important;
  font-size: 0.95rem !important;
  color: var(--gray-medium) !important;
  text-align: right !important;
  text-shadow: none !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  font-weight: 300 !important;
  font-family: var(--font-family-accent) !important;
  box-sizing: border-box !important;
}

/* בלוק גלריה - הגבלת רוחב ל-750px כמו תמונות בודדות */
.wp-block-gallery:not(.alignfull):not(.alignwide) {
  max-width: min(100%, 750px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

/* תמונות בגלריה */
.wp-block-gallery img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* figure של תמונה בתוך גלריה - הגבלת רוחב */
.wp-block-gallery.has-nested-images figure.wp-block-image {
  max-width: 100% !important;
}

/* בלוק תמונה ברוחב מלא */
.wp-block-image.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2.5rem;
  margin-top: 2.5rem;
}

.wp-block-image.alignfull img {
  width: 100%;
  border-radius: 0;
}

.wp-block-image.alignfull figcaption {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  text-align: right;
}

/**
  * === בלוק חיפוש מונגש ===
  */

/* מיכל בלוק החיפוש */
.wp-block-search {
  margin: 2.5rem auto;
  max-width: 600px;
  width: 100%;
  text-align: center;
}

/* תווית השדה - חשובה לנגישות */
.wp-block-search__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color);
  text-align: right;
}

/* מיכל פנימי של החיפוש */
.wp-block-search__inside-wrapper {
  display: flex;
  flex-direction: row-reverse;
  /* כפתור חיפוש בצד ימין */
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--gray-mild);
  transition: border-color 0.2s ease;
  text-align: right;
}

/* מצב מיקוד למיכל הפנימי */
.wp-block-search__inside-wrapper:focus-within {
  border-color: var(--secondary-color);
  outline: none;
}

/* שדה הקלט */
.wp-block-search__input {
  flex-grow: 1;
  padding: 12px 16px;
  border: none;
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--white);
  border-radius: 0;
  font-family: var(--font-family-accent) !important;
  direction: rtl;
  text-align: right;
  min-height: 48px;
}

/* מצב מיקוד לשדה הקלט */
.wp-block-search__input:focus {
  outline: none;
}

/* placeholder בשדה החיפוש */
.wp-block-search__input::placeholder {
  color: var(--gray-medium);
  opacity: 0.8;
}

/* כפתור החיפוש */
.wp-block-search__button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  min-width: 110px;
  min-height: 48px;
  border: none;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: var(--font-family-accent) !important;
  font-size: 0.95rem;
  border-radius: 0;
  margin: 0;
  text-align: center;
}

/* מצב מיקוד לכפתור */
.wp-block-search__button:focus {
  outline: none;
  background-color: var(--primary-alt);
}

/* מצב hover לכפתור */
.wp-block-search__button:hover {
  background-color: var(--primary-alt);
}

/* עיצוב כפתור עם צלמית */
.wp-block-search__button.has-icon {
  padding: 0 16px;
}

.wp-block-search__button svg {
  margin-right: 8px;
  margin-left: 0;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* שנה את הגדרת ברירת המחדל של הפסקאות */
p {
  margin-bottom: 1.2rem;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
}

/* הוסף גם את הסלקטורים האלה */
.entry-content p,
.post-content p,
.wp-block-post-content p,
article p,
.site-content p,
.content-area p {
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  line-height: 1.7;
  margin-block-start: 0.1rem;
}

/* חריג: כותרת משנה - אל תדרוס! */
.entry-content p.post-hero-banner-subtitle,
.post-content p.post-hero-banner-subtitle,
.wp-block-post-content p.post-hero-banner-subtitle,
article p.post-hero-banner-subtitle {
  font-size: 20px !important;
  font-weight: 500 !important;
  color: #000000 !important; /* שחור מוחלט */
}

/* ======= תמיכה ברספונסיביות ======= */

@media screen and (max-width: 768px) {

  /* כותרות */
  .wp-block-heading h1,
  h1.wp-block-heading {
    font-size: 1.8rem;
  }

  .wp-block-heading h2,
  h2.wp-block-heading {
    font-size: 1.5rem;
  }

  .wp-block-heading h3,
  h3.wp-block-heading {
    font-size: 1.25rem;
  }

  /* מידע על הכתב במובייל */
  .wp-block-post-author,
  .custom-author-info {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .wp-block-post-author__avatar,
  .custom-author-info .author-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    margin-left: 0.8rem;
  }

  .wp-block-post-author__name,
  .custom-author-info .author-name {
    font-size: 0.95rem;
  }

  .wp-block-post-author__bio,
  .custom-author-info .author-role {
    font-size: 0.8rem;
  }

  .wp-block-post-author .wp-block-post-date,
  .wp-block-post-author__meta,
  .custom-author-info .author-date {
    padding-right: 0.8rem;
    margin-right: 0.8rem;
    font-size: 0.8rem;
  }

  /* במסכים מאוד קטנים */
  @media screen and (max-width: 480px) {

    .wp-block-post-author,
    .custom-author-info {
      flex-wrap: wrap;
    }

    .wp-block-post-author .wp-block-post-date,
    .wp-block-post-author__meta,
    .custom-author-info .author-date {
      border-right: none;
      padding-right: 0;
      margin-right: 0;
      margin-left: 0;
      margin-top: 0.5rem;
      width: 100%;
      text-align: right;
      padding-right: calc(46px + 0.8rem);
    }
  }

  /* התאמת בלוקי תמונה למובייל */
  .wp-block-image {
    margin: 1.8rem auto;
  }

  .wp-block-image figcaption {
    font-size: 0.9rem;
  }

  .wp-block-image.has-caption figcaption strong,
  .wp-block-image.has-caption figcaption b {
    font-size: 0.9rem;
  }

  .wp-block-image.alignfull figcaption {
    padding: 0 0.8rem;
  }

  /* התאמת pillarbox למובייל - רק לתמונות מאורכות */
  .entry-content .wp-block-image:not(.alignfull):not(.alignwide) img.portrait-image {
    max-height: 450px !important;
  }

  .entry-content figure.wp-block-image:not(.alignfull):not(.alignwide):has(img.portrait-image)::before {
    height: 450px !important;
  }
}

/* התאמה למובייל עבור בלוק חיפוש */
/* התאמה למסכים בינוניים */
@media screen and (max-width: 768px) {
  .wp-block-search {
    margin: 1.5rem auto;
    max-width: 100%;
  }

  .wp-block-search__input {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .wp-block-search__button {
    min-width: 90px;
    padding: 0 12px;
  }

  .wp-block-search__label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
}

/* התאמה למסכים קטנים */
@media screen and (max-width: 480px) {
  .wp-block-search__inside-wrapper {
    flex-direction: row-reverse;
    /* שומר על הסדר הלוגי */
  }

  .wp-block-search__button {
    min-width: 80px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .wp-block-search__input {
    padding: 8px 10px;
  }
}


/* === post-tags === */
/**
 * === עיצוב תגיות פוסט ===
 * עיצוב התגיות המופיעות בסוף כל פוסט
 * בסגנון מודרני עם רקע עדין ומיכל מוגבל ברוחב
 */

/* מיכל ראשי של התגיות - הגבלת רוחב ל-750px */
/* המיכל משובץ בתוך עמודת התוכן ולא כמיכל נפרד */
.wp-block-post-terms.taxonomy-post_tag {
    max-width: 750px;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e0e0e0;
    text-align: right;
    
    /* הגבלת תצוגה לשורה אחת - התגיות נשארות ב-HTML ל-SEO */
    overflow: hidden;
    max-height: 4.5rem; /* גובה מדויק לשורה אחת בלבד, ללא חלק מהשורה הבאה */
    line-height: 1.5;
}

/* קידומת (אם קיימת) - למשל "תגיות:" */
.wp-block-post-terms__prefix {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 0.5rem;
    font-size: 1rem;
}

/* קישור לכל תגית */
.wp-block-post-terms.taxonomy-post_tag a {
    display: inline-block;
    background-color: #f5f5f5;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

/* אפקט hover */
.wp-block-post-terms.taxonomy-post_tag a:hover {
    background-color: var(--primary-color-jhhd);
    color: #ffffff;
    border-color: var(--primary-color-jhhd);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(222, 1, 0, 0.2);
}

/* אפקט focus - לנגישות */
.wp-block-post-terms.taxonomy-post_tag a:focus {
    outline: 2px solid var(--primary-color-jhhd);
    outline-offset: 2px;
    background-color: var(--primary-color-jhhd);
    color: #ffffff;
}

/* מפריד בין תגיות (אם קיים) */
.wp-block-post-terms__separator {
    display: none; /* נסתיר את המפריד כי התגיות כבר מופרדות במרווח */
}

/* סיומת (אם קיימת) */
.wp-block-post-terms__suffix {
    display: inline-block;
    margin-right: 0.5rem;
}

/* התאמה למסכים קטנים */
@media screen and (max-width: 768px) {
    .wp-block-post-terms.taxonomy-post_tag {
        padding: 1rem 0;
        margin: 1.5rem 0;
        max-height: 4rem; /* גובה מותאם לתגיות קטנות יותר */
    }
    
    .wp-block-post-terms.taxonomy-post_tag a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
    }
}

/* התאמה למסכים מאוד קטנים */
@media screen and (max-width: 480px) {
    .wp-block-post-terms.taxonomy-post_tag {
        padding: 0.8rem 0.5rem;
        max-height: 3.5rem; /* גובה מותאם לתגיות קטנות עוד יותר */
    }
    
    .wp-block-post-terms.taxonomy-post_tag a {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
}




/* === quotes === */
/**
 * === בלוקי ציטוט ותיבות מידע והדגשה ===
 * עיצוב מודרני ומינימליסטי בהשראת מגזינים יוקרתיים
 */

/* ציטוט */
.wp-block-quote {
  text-align: right;
  border: none;
  border-right: 4px solid var(--secondary-color);
  padding: 1.5rem 2rem 1.5rem 0;
  margin: 3rem 0;
  font-style: normal;
  background-color: transparent;
  box-shadow: none;
  position: relative;
}

.wp-block-quote p {
  font-family: var(--font-family-accent) !important;
  font-size: 1.4rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--primary-color);
  letter-spacing: -0.01em;
  font-weight: 600;
  font-style: normal;
  position: relative;
  padding-top: 3rem;
}

.wp-block-quote p::before {
  content: '"';
  font-size: 4.5rem;
  color: var(--secondary-color);
  position: absolute;
  top: -0.5rem;
  line-height: 1;
}

.wp-block-quote cite {
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500;
  color: var(--gray-medium);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}



/* יתרונות וחסרונות */
.wp-block-columns.is-style-pros-cons {
  margin: 3rem 0;
  gap: 30px;
}

.wp-block-columns.is-style-pros-cons .wp-block-column {
  background-color: var(--gray-soft);
  padding: 2rem;
  border: none;
  border-top: 2px solid;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
}

/* הגדרה ספציפית של צבעי הגבולות */
.wp-block-columns.is-style-pros-cons .wp-block-column:first-child {
  border-top-color: #107A45; /* ירוק מעודן */
}

.wp-block-columns.is-style-pros-cons .wp-block-column:last-child {
  border-top-color: #B22222; /* אדום מעודן */
}

/* כותרות בתוך הבלוקים */
.wp-block-columns.is-style-pros-cons .wp-block-column:first-child h3,
.wp-block-columns.is-style-pros-cons .wp-block-column:first-child h4 {
  color: #107A45;
  margin-top: 0;
  font-family: var(--font-family-accent) !important;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(16, 122, 69, 0.2);
}

.wp-block-columns.is-style-pros-cons .wp-block-column:last-child h3,
.wp-block-columns.is-style-pros-cons .wp-block-column:last-child h4 {
  color: #B22222;
  margin-top: 0;
  font-family: var(--font-family-accent) !important;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(178, 34, 34, 0.2);
}

/* השוואת נתונים */
.wp-block-columns.is-style-comparison {
  margin: 3rem 0;
  background-color: var(--gray-soft);
  padding: 2.5rem;
}

.wp-block-columns.is-style-comparison .wp-block-column {
  background-color: var(--white);
  padding: 2rem;
  border: 1px solid var(--gray-mild);
  border-top: 2px solid var(--secondary-color);
  position: relative;
  padding-bottom: 90px; /* מקום לכפתור בתחתית */
}

.wp-block-columns.is-style-comparison .wp-block-column:nth-child(even) {
  border-top-color: var(--primary-color);
}

.wp-block-columns.is-style-comparison h3,
.wp-block-columns.is-style-comparison h4 {
  margin-top: 0;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-family-accent) !important;
  font-weight: 600;
  font-size: 1.3rem;
}

.wp-block-columns.is-style-comparison .wp-block-column .wp-block-button {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  text-align: center;
}

/* ======= תמיכה ברספונסיביות ======= */

@media screen and (max-width: 768px) {
  /* ציטוטים */
  .wp-block-quote {
    padding: 1.8rem 1.5rem;
  }
  
  .wp-block-quote p {
    font-size: 1.3rem;
  }
  
  
  /* תיבת יתרונות וחסרונות - במסך קטן */
  .wp-block-columns.is-style-pros-cons {
    gap: 20px;
  }
  
  .wp-block-columns.is-style-pros-cons .wp-block-column {
    padding: 1.5rem;
  }
  
  /* השוואת נתונים */
  .wp-block-columns.is-style-comparison {
    padding: 1.5rem;
  }
  
  .wp-block-columns.is-style-comparison .wp-block-column {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    padding-bottom: 80px;
  }
  
  .wp-block-columns.is-style-comparison h3,
  .wp-block-columns.is-style-comparison h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
  }
  
  .wp-block-columns.is-style-comparison .wp-block-column .wp-block-button {
    bottom: 20px;
  }
}

@media screen and (max-width: 480px) {
  .wp-block-quote p {
    font-size: 1.2rem;
  }
  
  .wp-block-columns.is-style-comparison .wp-block-column {
    padding: 1.2rem;
    padding-bottom: 75px;
  }
}



/* === lists === */
/**
 * === רשימות ===
 * עיצוב מודרני ונקי לרשימות בסגנון מגזין יוקרתי
 */

/* רשימה ממוספרת */
ol.wp-block-list {
  padding-right: 1.5rem;
  margin: 1.5rem 0 2rem;
  counter-reset: item;
  list-style-type: none;
  font-family: var(--font-family-accent) !important;
}

ol.wp-block-list li {
  margin-bottom: 1rem;
  padding-right: 0.5rem;
  position: relative;
  counter-increment: item;
  line-height: 1.7;
}

ol.wp-block-list li::before {
  content: counter(item) ".";
  color: var(--secondary-color);
  font-weight: 500;
  display: inline-block;
  width: 1.5em;
  margin-right: -1.5em;
  margin-left: 0.5em;
  text-align: left;
  font-family: 'Noto Sans Hebrew', 'Heebo', sans-serif;
}

/* רשימה עם נקודות */
ul.wp-block-list {
  padding-right: 1.2rem;
  margin: 1.5rem 0 2rem;
  list-style-type: none;
  font-family: var(--font-family-accent) !important;
}

ul.wp-block-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-right: 0.5rem;
  line-height: 1.7;
}

ul.wp-block-list li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: normal;
  display: inline-block;
  width: 1em;
  margin-right: -1.5em;
  margin-left: 0.5em;
}

/* עיצוב כותרות בתחילת פריטי רשימה */
ul.wp-block-list li strong:first-child,
ol.wp-block-list li strong:first-child {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
  font-family: 'Noto Sans Hebrew', 'Heebo', sans-serif;
}

/* רשימת הגדרות - באמצעות רשימת תבליטים */
ul.wp-block-list.is-style-definition {
  list-style-type: none;
  padding-right: 0;
  margin: 2.5rem 0;
}

ul.wp-block-list.is-style-definition li {
  margin-bottom: 1.5rem;
  padding-right: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding-bottom: 1.2rem;
}

ul.wp-block-list.is-style-definition li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

ul.wp-block-list.is-style-definition li::before {
  display: none;
}

ul.wp-block-list.is-style-definition li strong:first-child {
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-family: 'Noto Sans Hebrew', 'Heebo', sans-serif;
}

ul.wp-block-list.is-style-definition li p {
  margin-top: 0.3rem;
  margin-right: 0;
  line-height: 1.7;
}

/* רשימת סיכום - עם גבול עדין במקום רקע כהה */
ul.wp-block-list.is-style-summary,
ol.wp-block-list.is-style-summary {
  background-color: var(--gray-soft); /* רקע אפור בהיר מאוד */
  padding: 2rem;
  margin: 2.5rem 0;
  border-right: 2px solid var(--secondary-color);
  box-shadow: none;
}

ul.wp-block-list.is-style-summary li,
ol.wp-block-list.is-style-summary li {
  color: var(--primary-color);
}

ul.wp-block-list.is-style-summary li::before,
ol.wp-block-list.is-style-summary li::before {
  color: var(--secondary-color);
}

ul.wp-block-list.is-style-summary li strong:first-child,
ol.wp-block-list.is-style-summary li strong:first-child {
  color: var(--primary-color);
  font-weight: 600;
}

ul.wp-block-list.is-style-summary::before,
ol.wp-block-list.is-style-summary::before {
  content: "סיכום";
  display: block;
  font-family: 'Noto Sans Hebrew', 'Heebo', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* בלוק לקריאה נוספת - עיצוב מחדש */
.wp-block-list.is-style-further-reading {
  border: 1px solid var(--gray-mild);
  border-right: 2px solid var(--secondary-color);
  padding: 2rem;
  margin: 2.5rem 0;
  background-color: transparent;
  box-shadow: none;
  position: relative;
  font-family: 'Noto Sans Hebrew', 'Heebo', sans-serif;
}

.wp-block-list.is-style-further-reading::before {
  content: "לקריאה נוספת";
  display: block;
  font-family: 'Noto Sans Hebrew', 'Heebo', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* התאמות לרשימה עצמה */
.wp-block-list.is-style-further-reading ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* סגנון פריטי הרשימה */
.wp-block-list.is-style-further-reading li {
  position: relative;
  padding-right: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.wp-block-list.is-style-further-reading li:last-child {
  margin-bottom: 0;
}

/* הוספת החץ לפני כל פריט */
.wp-block-list.is-style-further-reading li::before {
  content: "›";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  color: var(--secondary-color);
  font-weight: 400;
  width: auto;
  margin: 0;
}

/* עיצוב הקישורים */
.wp-block-list.is-style-further-reading a {
  color: var(--secondary-color);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
  font-weight: 400;
  line-height: 1.6;
  border-bottom: 1px solid rgba(0, 102, 179, 0.3);
}

.wp-block-list.is-style-further-reading a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* הוספת סגנון למצב focus עבור נגישות מקלדת */
.wp-block-list.is-style-further-reading a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* גרסה חלופית ללא רקע/גבולות */
.wp-block-list.is-style-further-reading.no-background {
  border: none;
  border-right: 2px solid var(--secondary-color);
  padding: 0 1.5rem;
  background-color: transparent;
}

.wp-block-list.is-style-further-reading.no-background::before {
  padding-bottom: 0.5rem;
}

/* התאמה למכשירים ניידים */
@media (max-width: 768px) {
  /* התאמת רשימות ממוספרות לנייד */
  ol.wp-block-list {
    padding-right: 1rem;
    margin: 1.2rem 0 1.5rem;
  }
  
  ol.wp-block-list li {
    margin-bottom: 0.8rem;
  }
  
  /* התאמת רשימות עם נקודות לנייד */
  ul.wp-block-list {
    padding-right: 1rem;
    margin: 1.2rem 0 1.5rem;
  }
  
  ul.wp-block-list li {
    margin-bottom: 0.8rem;
  }
  
  /* התאמת רשימת הגדרות לנייד */
  ul.wp-block-list.is-style-definition li {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
  }
  
  ul.wp-block-list.is-style-definition li strong:first-child {
    font-size: 1.05rem;
  }
  
  /* התאמת רשימת סיכום לנייד */
  ul.wp-block-list.is-style-summary,
  ol.wp-block-list.is-style-summary {
    padding: 1.5rem;
  }
  
  ul.wp-block-list.is-style-summary::before,
  ol.wp-block-list.is-style-summary::before {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  /* התאמת בלוק קריאה נוספת לנייד */
  .wp-block-list.is-style-further-reading {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  
  .wp-block-list.is-style-further-reading::before {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .wp-block-list.is-style-further-reading li {
    padding-right: 1.2rem;
  }
  
  .wp-block-list.is-style-further-reading.no-background {
    padding: 0 1.2rem;
  }
}



/* === tables === */
/**
 * === טבלאות ===
 * עיצוב בסגנון מודרני ומינימליסטי למגזין יוקרתי
 */

/* ======= הגדרות משותפות לכל סוגי הטבלאות ======= */
.wp-block-table {
  position: relative;
  margin: 2.5rem 0;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid rgba(0, 0, 0, 0.15); /* עובי אחיד למסגרת החיצונית */
  table-layout: fixed; /* חשוב! גורם לחלוקה שווה של העמודות */
}

.wp-block-table caption {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0;
  color: var(--primary-color);
  text-align: right;
  caption-side: top;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-accent) !important;
}

/* ======= הגדרות לכותרות בכל סוגי הטבלאות ======= */
.wp-block-table th,
.wp-block-table.is-style-stripes th {
  background-color: #f5f5f5; /* אפור בהיר לכותרות */
  color: var(--primary-color); 
  font-weight: 600;
  padding: 1rem 1.2rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.15); /* קו אחיד סביב כל תא */
  font-family: var(--font-family-accent) !important;
  font-size: 0.95rem;
}

/* ======= הגדרות לתאי טבלה רגילים ======= */
.wp-block-table td,
.wp-block-table.is-style-stripes td {
  padding: 1rem 1.2rem;
  vertical-align: top;
  border: 1px solid rgba(0, 0, 0, 0.15); /* קו אחיד סביב כל תא */
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: var(--font-family-accent) !important;
}

/* עיצוב העמודה הראשונה - יישור, הדגשה וצבע */
.wp-block-table td:first-child,
.wp-block-table.is-style-stripes td:first-child {
  text-align: center; /* ממורכז אופקית */
  vertical-align: middle; /* ממורכז אנכית */
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-family-accent) !important;
}

.wp-block-table td:not(:first-child),
.wp-block-table.is-style-stripes td:not(:first-child) {
  text-align: center;
}

/* ======= צבעים לאחוזים חיוביים ושליליים ======= */
/* תאים עם אחוזים חיוביים - צבע ירוק */
.wp-block-table td.positive-percent,
.wp-block-table.is-style-stripes td.positive-percent {
  color: #107A45; /* ירוק מעודן */
  font-weight: 600;
}

/* תאים עם אחוזים שליליים - צבע אדום */
.wp-block-table td.negative-percent,
.wp-block-table.is-style-stripes td.negative-percent {
  color: #B22222; /* אדום מעודן */
  font-weight: 600;
}

/* ======= טבלה רגילה (לא מפוספסת) ======= */
/* תיקון: ביטול הפספוס בטבלה רגילה */
.wp-block-table:not(.is-style-stripes) tbody tr {
  background-color: var(--white); /* כל השורות בצבע לבן אחיד */
}

/* ======= הגדרות לטבלה מפוספסת ======= */
.wp-block-table.is-style-stripes {
  border-spacing: 0;
}

/* עיצוב שורות מפוספסות בטבלה מפוספסת */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: #f9f9f9; /* שורות כהות: גוון בהיר יותר */
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background-color: var(--white);
}

/* ביטול של הגדרות ברירת מחדל של וורדפרס לטבלאות מפוספסות */
.wp-block-table.is-style-stripes {
  border-bottom: none !important;
}

/* תיקון: וידוא שיש מסגרת לטבלה מפוספסת */
.wp-block-table.is-style-stripes table {
  border: 1px solid rgba(0, 0, 0, 0.15); /* עובי אחיד למסגרת החיצונית */
}

/* תיקון גבולות תאים בטבלה מפוספסת */
.wp-block-table.is-style-stripes th,
.wp-block-table.is-style-stripes td {
  border: 1px solid rgba(0, 0, 0, 0.15); /* וידוא שהגבולות נראים בטבלה מפוספסת */
}

/* ======= תמיכה במכשירים ניידים ======= */
@media screen and (max-width: 768px) {
  .wp-block-table td {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
  }
  
  .wp-block-table th {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 750px) {
  .wp-block-table {
    overflow-x: auto;
    display: block;
  }
  
  /* שומר על המסגרת החיצונית גם במסך קטן */
  .wp-block-table table {
    width: 100%;
    min-width: 100%;
  }
}



/* === contact-form === */
/**
 * עיצוב טופס יצירת קשר נגיש - twentytwentyfour-child
 * מותאם לדרישות נגישות תקן ישראלי 5568 / WCAG 2.0 AA
 * מעוצב בסגנון מינימליסטי מודרני בהתאם לסגנון האתר
 */

.contact-form-container {
  max-width: 700px;
  margin: 3rem auto;
  padding: 3rem;
  background-color: var(--white);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 0.25rem;
  font-family: var(--font-family-accent) !important;
}

.contact-form .required {
  color: var(--primary-color-jhhd);
  font-weight: normal;
  margin-right: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--white);
  transition: all 0.2s ease-in-out;
  font-family: var(--font-family-accent) !important;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #c0c0c0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(18, 116, 172, 0.1);
  background-color: var(--white);
}

/* עיצוב מיוחד למיקוד - חשוב לנגישות */
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form button:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.contact-form [aria-invalid="true"] {
  border-color: var(--primary-color-jhhd);
  background-color: var(--alert-red-light);
}

.contact-form [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(222, 1, 0, 0.1);
}

.error-message {
  color: var(--primary-color-jhhd);
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.25rem;
  font-family: var(--font-family-accent) !important;
  display: block;
  margin-top: 0.25rem;
}

.submit-button {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 3px;
  padding: 0.95rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  max-width: fit-content;
  align-self: flex-start;
  font-family: var(--font-family-accent) !important;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(18, 116, 172, 0.2);
}

.submit-button:hover {
  background-color: var(--secondary-color-dark);
  box-shadow: 0 4px 8px rgba(18, 116, 172, 0.25);
  transform: translateY(-1px);
}

.submit-button:active {
  background-color: var(--secondary-color-dark);
  box-shadow: 0 1px 2px rgba(18, 116, 172, 0.2);
  transform: translateY(0);
}

.submit-button:disabled {
  background-color: var(--gray-mild);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.contact-form-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 1.2rem 1.5rem;
  border-radius: 3px;
  border-right: 3px solid #4caf50;
  border-left: none;
  margin-bottom: 1.8rem;
  font-family: var(--font-family-accent) !important;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
}

/* התאמות לנגישות נוספות */
@media (prefers-reduced-motion: reduce) {
  .contact-form input,
  .contact-form textarea,
  .submit-button {
    transition: none;
  }
}

/* התאמות למסכים קטנים */
@media screen and (max-width: 768px) {
  .contact-form-container {
    padding: 1.8rem;
    margin: 2rem auto;
  }
  
  .contact-form {
    gap: 1.5rem;
  }
  
  .submit-button {
    width: 100%;
    max-width: 100%;
  }
}

/* מסכים מאוד קטנים */
@media screen and (max-width: 480px) {
  .contact-form-container {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.7rem;
    font-size: 0.95rem;
  }
}

/* הגדרות RTL */
.rtl .contact-form .required {
  margin-right: 0;
  margin-left: 0.25rem;
}

.rtl .contact-form-success {
  border-right: 2px solid #107A45;
  border-left: none;
  text-align: right;
}

/* ========================================
   סגנון טופס פניות נגישות
   ======================================== */

.accessibility-form-container {
  border-top: 4px solid var(--secondary-color-jhhd);
  max-width: 650px;
}

.accessibility-form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-mild);
}

.accessibility-form-header .accessibility-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.8rem;
}

.accessibility-form-header h2 {
  color: var(--secondary-color-jhhd);
  font-size: 1.5rem;
  margin: 0 0 0.8rem 0;
  font-weight: 700;
  font-family: var(--font-family-accent) !important;
}

.accessibility-form-intro {
  color: var(--gray-medium);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-family: var(--font-family-accent) !important;
}

/* עיצוב select לסוג הפנייה */
.accessibility-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--white);
  transition: all 0.2s ease-in-out;
  font-family: var(--font-family-accent) !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 1em;
  padding-left: 2.5rem;
}

.accessibility-form select:hover {
  border-color: #c0c0c0;
}

.accessibility-form select:focus {
  outline: none;
  border-color: var(--secondary-color-jhhd);
  box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.1);
}

.accessibility-form select:focus-visible {
  outline: 2px solid var(--secondary-color-jhhd);
  outline-offset: 2px;
}

/* כפתור שליחה ייחודי */
.accessibility-submit {
  background-color: var(--secondary-color-jhhd);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.accessibility-submit:hover {
  background-color: #142843;
}

.accessibility-submit .button-icon {
  font-size: 1.1rem;
}

/* פוטר הטופס */
.accessibility-form-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-mild);
  text-align: center;
}

.accessibility-form-footer p {
  color: var(--gray-medium);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  font-family: var(--font-family-accent) !important;
}

/* הודעת הצלחה ייחודית */
.accessibility-success {
  background-color: #e3f2fd;
  color: #1565c0;
  border-right-color: var(--secondary-color-jhhd);
}

/* התאמות למסכים קטנים */
@media screen and (max-width: 768px) {
  .accessibility-form-header h2 {
    font-size: 1.3rem;
  }
  
  .accessibility-form-intro {
    font-size: 0.9rem;
  }
}



/* === red-mail-page === */
/**
 * עיצוב יעודי לעמוד "המייל האדום"
 * עיצוב בולט ומיוחד בגוונים אדומים של המותג
 */

/* עיצוב כללי לעמוד המייל האדום */
.page-id-434,
.page-template-red-mail {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.page-id-434 .wp-block-post-content,
.page-template-red-mail .wp-block-post-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* כותרת מיוחדת לעמוד */
.page-id-434 h1,
.page-id-434 .entry-title {
  text-align: center;
  color: var(--primary-color-jhhd);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(222, 1, 0, 0.1);
  position: relative;
  padding-bottom: 1.5rem;
}

.page-id-434 h1:after,
.page-id-434 .entry-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary-color-jhhd) 50%, 
    transparent 100%);
}

/* תת-כותרות ופסקאות */
.page-id-434 h2 {
  color: var(--primary-color-jhhd);
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.page-id-434 p {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

/* קונטיינר הטופס - עיצוב אדום מיוחד */
.page-id-434 .contact-form-container {
  max-width: 700px;
  margin: 3rem auto;
  padding: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  border: none;
  box-shadow: 
    0 10px 30px rgba(222, 1, 0, 0.15),
    0 0 0 1px rgba(222, 1, 0, 0.1);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* פס אדום עליון דקורטיבי */
.page-id-434 .contact-form-container:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--primary-color-jhhd) 0%, 
    var(--secondary-color-jhhd) 100%);
}

/* תיבות הטקסט בעמוד המייל האדום */
.page-id-434 .contact-form input,
.page-id-434 .contact-form textarea {
  border: 2px solid #f0f0f0;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
  background-color: #fafafa;
}

.page-id-434 .contact-form input:hover,
.page-id-434 .contact-form textarea:hover {
  border-color: rgba(222, 1, 0, 0.3);
  background-color: var(--white);
}

.page-id-434 .contact-form input:focus,
.page-id-434 .contact-form textarea:focus {
  border-color: var(--primary-color-jhhd);
  box-shadow: 
    0 0 0 3px rgba(222, 1, 0, 0.1),
    0 4px 12px rgba(222, 1, 0, 0.1);
  background-color: var(--white);
}

/* תוויות בצבע אדום */
.page-id-434 .contact-form label {
  color: var(--primary-color-jhhd);
  font-weight: 600;
  font-size: 1rem;
}

/* כפתור שליחה בסגנון אדום מיוחד */
.page-id-434 .submit-button {
  background: linear-gradient(135deg, 
    var(--primary-color-jhhd) 0%, 
    #b50100 100%);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 1.1rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 
    0 4px 15px rgba(222, 1, 0, 0.3),
    0 2px 5px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  align-self: center;
  max-width: 100%;
  width: auto;
}

.page-id-434 .submit-button:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.page-id-434 .submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(222, 1, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-id-434 .submit-button:hover:before {
  width: 300px;
  height: 300px;
}

.page-id-434 .submit-button:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 10px rgba(222, 1, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

/* סימן חובה בצבע אדום */
.page-id-434 .contact-form .required {
  color: var(--primary-color-jhhd);
  font-size: 1.2em;
}

/* הודעות שגיאה */
.page-id-434 .error-message {
  color: var(--primary-color-jhhd);
  background-color: rgba(222, 1, 0, 0.05);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border-right: 3px solid var(--primary-color-jhhd);
}

.page-id-434 .contact-form [aria-invalid="true"] {
  border-color: var(--primary-color-jhhd);
  background-color: rgba(222, 1, 0, 0.03);
}

/* הודעת הצלחה באדום */
.page-id-434 .contact-form-success {
  background: linear-gradient(135deg, 
    rgba(222, 1, 0, 0.08) 0%, 
    rgba(222, 1, 0, 0.05) 100%);
  color: var(--primary-color-jhhd);
  border-right: 4px solid var(--primary-color-jhhd);
  border-radius: 6px;
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(222, 1, 0, 0.1);
  text-align: center;
}

/* אייקון דקורטיבי */
.page-id-434 .contact-form-success:before {
  content: '✉️';
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* התאמות למסכים קטנים */
@media screen and (max-width: 768px) {
  .page-id-434 .contact-form-container {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
  }
  
  .page-id-434 .submit-button {
    width: 100%;
    max-width: 100%;
  }
  
  .page-id-434 h1,
  .page-id-434 .entry-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .page-id-434 .contact-form-container {
    padding: 1.5rem 1rem;
  }
}

/* אנימציה עדינה לכניסה */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-id-434 .contact-form-container {
  animation: fadeInUp 0.6s ease-out;
}

/* ביטול אנימציה למי שמעדיף */
@media (prefers-reduced-motion: reduce) {
  .page-id-434 .contact-form-container {
    animation: none;
  }
  
  .page-id-434 .submit-button:before {
    transition: none;
  }
}





/* === comments === */
/* ===================================
   בלוק התגובות - Comments Block
   =================================== */

/* הסתרת שדות האימייל והאתר בטופס התגובות */
.comment-form-email,
.comment-form-url,
.wp-block-post-comments-form .comment-form-email,
.wp-block-post-comments-form .comment-form-url {
    display: none !important;
}

/* הסתרת השורה על אי-הצגת האימייל ושדות החובה */
.comment-notes,
.wp-block-post-comments-form .comment-notes,
.comment-form .comment-notes {
    display: none !important;
}

/* תיקון גודל פונט אחיד לכל הלייבלים */
.comment-form label,
.wp-block-post-comments-form label {
    font-size: 1rem !important;
    font-weight: normal !important;
    color: #333 !important;
    font-family: inherit !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

/* החלפת טקסט הלייבלים */
.comment-form-comment label,
.wp-block-post-comments-form .comment-form-comment label {
    visibility: hidden;
    position: relative;
}

.comment-form-comment label::after,
.wp-block-post-comments-form .comment-form-comment label::after {
    content: "התגובה שלך";
    visibility: visible;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1rem !important;
    font-weight: normal !important;
    color: #333 !important;
}

/* תיקון יישור הצ'קבוקס והטקסט */
.comment-form-cookies-consent,
.wp-block-post-comments-form .comment-form-cookies-consent {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.comment-form-cookies-consent input[type="checkbox"],
.wp-block-post-comments-form .comment-form-cookies-consent input[type="checkbox"] {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.comment-form-cookies-consent label,
.wp-block-post-comments-form .comment-form-cookies-consent label {
    visibility: hidden;
    position: relative;
    margin: 0 !important;
    flex: 1 !important;
}

.comment-form-cookies-consent label::after,
.wp-block-post-comments-form .comment-form-cookies-consent label::after {
    content: "שמור בדפדפן זה את השם שלי לפעם הבאה שאגיב.";
    visibility: visible;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    font-size: 1rem !important;
    font-weight: normal !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

/* תיקון בעיית הזנת טקסט בכל שדות הטופס */
.comment-form-comment textarea,
.comment-form-author input,
.wp-block-post-comments-form .comment-form-comment textarea,
.wp-block-post-comments-form .comment-form-author input,
#comment,
#author {
    /* איפוס כל האפקטים שעלולים לחסום הזנת טקסט */
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    
    /* וידוא שהשדה ניתן לעריכה */
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    
    /* וידוא שאין חסימה של אירועי עכבר ומקלדת */
    cursor: text;
    
    /* תיקון אפשרי לבעיות עם z-index */
    position: relative;
    z-index: 1;
    
    /* וידוא שהטקסט נראה */
    color: inherit !important;
    background-color: white !important;
    
    /* וידוא שאין הגבלות על הזנת טקסט */
    -webkit-touch-callout: default;
    -webkit-user-modify: read-write;
}

/* הגדרות ספציפיות לשדה התגובה */
.comment-form-comment textarea,
.wp-block-post-comments-form .comment-form-comment textarea,
#comment {
    /* הסרת מגבלות גובה או רוחב שעלולות לגרום לבעיות */
    min-height: 120px;
    resize: vertical;
    -moz-appearance: textfield-multiline;
}

/* הגדרות ספציפיות לשדה השם */
.comment-form-author input,
.wp-block-post-comments-form .comment-form-author input,
#author {
    height: auto;
    min-height: 40px;
}

/* תיקון אפשרי לבעיות עם מיכלים שמקיפים את השדות */
.comment-form-comment,
.comment-form-author,
.wp-block-post-comments-form .comment-form-comment,
.wp-block-post-comments-form .comment-form-author {
    position: relative;
    z-index: auto;
    pointer-events: auto;
}

/* וידוא שהלייבלים לא חוסמים את השדות */
.comment-form-comment label,
.comment-form-author label,
.wp-block-post-comments-form .comment-form-comment label,
.wp-block-post-comments-form .comment-form-author label {
    pointer-events: none;
    position: relative;
    z-index: 0;
    display: block;
    margin-bottom: 5px;
}

/* עיצוב משופר לטופס התגובות */
.comment-form,
.wp-block-post-comments-form .comment-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

/* עיצוב שדה השם */
.comment-form-author input,
.wp-block-post-comments-form .comment-form-author input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: white;
}

/* עיצוב שדה התגובה */
.comment-form-comment textarea,
.wp-block-post-comments-form .comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    background: white;
    font-family: inherit;
}

/* עיצוב כפתור השליחה */
.comment-form .submit,
.comment-form input[type="submit"],
.wp-block-post-comments-form .comment-form .submit,
.wp-block-post-comments-form .comment-form input[type="submit"],
.form-submit input[type="submit"],
#submit {
    background: var(--secondary-color-jhhd) !important;
    color: white !important;
    padding: 8px 18px !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background-color 0.3s ease;
    margin-top: 10px !important;
    
    /* וידוא שהכפתור לחיץ */
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    
    /* וידוא שהכפתור לא מושבת */
    opacity: 1 !important;
    disabled: false;
    
    /* תיקון בעיות פוטנציאליות */
    position: relative;
    z-index: 2;
    display: inline-block;
    text-decoration: none;
    outline: none;
}

.comment-form .submit:hover,
.comment-form input[type="submit"]:hover,
.wp-block-post-comments-form .comment-form .submit:hover,
.wp-block-post-comments-form .comment-form input[type="submit"]:hover,
.form-submit input[type="submit"]:hover,
#submit:hover {
    background: var(--primary-color-jhhd) !important;
}

/* וידוא שהכפתור לא מושבת כשהטופס מלא */
.comment-form .submit:not(:disabled),
.comment-form input[type="submit"]:not(:disabled),
.wp-block-post-comments-form .comment-form .submit:not(:disabled),
.wp-block-post-comments-form .comment-form input[type="submit"]:not(:disabled),
.form-submit input[type="submit"]:not(:disabled),
#submit:not(:disabled) {
    background: var(--secondary-color-jhhd) !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* תיקון למקרה שהכפתור מושבת בטעות */
.comment-form .submit[disabled],
.comment-form input[type="submit"][disabled],
.wp-block-post-comments-form .comment-form .submit[disabled],
.wp-block-post-comments-form .comment-form input[type="submit"][disabled],
.form-submit input[type="submit"][disabled],
#submit[disabled] {
    background: var(--secondary-color-jhhd) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* סלקטורים חזקים יותר לכפתור התגובות */
body .comment-form .submit,
body .comment-form input[type="submit"],
body .wp-block-post-comments-form .comment-form .submit,
body .wp-block-post-comments-form .comment-form input[type="submit"],
body .form-submit input[type="submit"],
body #submit,
.wp-site-blocks .comment-form .submit,
.wp-site-blocks .comment-form input[type="submit"],
.wp-site-blocks .wp-block-post-comments-form .comment-form .submit,
.wp-site-blocks .wp-block-post-comments-form .comment-form input[type="submit"],
.wp-site-blocks .form-submit input[type="submit"],
.wp-site-blocks #submit {
    background-color: var(--secondary-color-jhhd) !important;
    background: var(--secondary-color-jhhd) !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    margin-top: 10px !important;
}

body .comment-form .submit:hover,
body .comment-form input[type="submit"]:hover,
body .wp-block-post-comments-form .comment-form .submit:hover,
body .wp-block-post-comments-form .comment-form input[type="submit"]:hover,
body .form-submit input[type="submit"]:hover,
body #submit:hover,
.wp-site-blocks .comment-form .submit:hover,
.wp-site-blocks .comment-form input[type="submit"]:hover,
.wp-site-blocks .wp-block-post-comments-form .comment-form .submit:hover,
.wp-site-blocks .wp-block-post-comments-form .comment-form input[type="submit"]:hover,
.wp-site-blocks .form-submit input[type="submit"]:hover,
.wp-site-blocks #submit:hover {
    background-color: var(--primary-color-jhhd) !important;
    background: var(--primary-color-jhhd) !important;
}

/* עיצוב כותרת התגובות */
.comment-reply-title,
.wp-block-post-comments-form .comment-reply-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

/* עיצוב טקסט כותרת התגובות הקיימות */
.comments-title,
.wp-block-comments-title,
.wp-block-post-comments .comments-title,
h2.comments-title,
h3.comments-title {
    color: var(--secondary-color-jhhd) !important;
}

/* עיצוב כותרת התגובות בבלוק */
.wp-block-comments .wp-block-heading,
.wp-block-comments h2,
.wp-block-comments h3 {
    color: var(--secondary-color-jhhd) !important;
}

/* עיצוב הודעת הדרישה */
.comment-notes,
.wp-block-post-comments-form .comment-notes {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* עיצוב התגובות הקיימות */
.comment-list,
.wp-block-comments .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment,
.wp-block-comments .commentlist .comment {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-right: 4px solid #007cba;
}

/* עיצוב מחבר התגובה */
.comment-author,
.wp-block-comments .comment-author {
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

/* עיצוב תוכן התגובה */
.comment-content,
.wp-block-comments .comment-content {
    line-height: 1.6;
    color: #333;
}

/* עיצוב תאריך התגובה */
.comment-meta,
.wp-block-comments .comment-meta,
.comment-metadata,
.wp-block-comments .comment-metadata,
.wp-block-comment-date,
.wp-block-comment-date a {
    font-size: 12px;
    color: var(--primary-color-jhhd) !important;
    margin-bottom: 10px;
}

/* עיצוב קישור תגובה */
.comment-reply-link,
.wp-block-comment-reply-link,
.wp-block-comment-reply-link a,
.reply a {
    color: var(--primary-color-jhhd) !important;
    text-decoration: none;
    font-size: 12px;
}

.comment-reply-link:hover,
.wp-block-comment-reply-link:hover,
.wp-block-comment-reply-link a:hover,
.reply a:hover {
    color: var(--secondary-color-jhhd) !important;
    text-decoration: underline;
}

/* תיקונים נוספים לבעיות פוטנציאליות */
.wp-block-post-comments-form,
.comment-respond,
#respond {
    /* וידוא שאין חסימה של האירועים */
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* תיקון לטופס עצמו */
.comment-form,
.wp-block-post-comments-form .comment-form,
#commentform {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* תיקון למיכל הכפתור */
.form-submit,
.wp-block-post-comments-form .form-submit {
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
    margin-top: 15px;
}

/* וידוא שכל השדות עובדים */
.comment-form input,
.comment-form textarea,
.wp-block-post-comments-form input,
.wp-block-post-comments-form textarea {
    pointer-events: auto !important;
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* תיקון בעיות עם overlay או pseudo-elements */
.comment-form-comment::before,
.comment-form-comment::after,
.wp-block-post-comments-form .comment-form-comment::before,
.wp-block-post-comments-form .comment-form-comment::after {
    content: none;
    display: none;
}

/* תיקון בעיות עם position absolute */
.comment-form-comment *,
.wp-block-post-comments-form .comment-form-comment * {
    position: static;
}

.comment-form-comment textarea,
.wp-block-post-comments-form .comment-form-comment textarea {
    position: relative;
}

/* וידוא שאין מסכים או דברים שחוסמים */
.comment-form,
.wp-block-post-comments-form {
    overflow: visible;
}

/* תמיכה ב-RTL */
body.rtl .comment-form,
body.rtl .wp-block-post-comments-form {
    direction: rtl;
    text-align: right;
}

body.rtl .comment-list .comment,
body.rtl .wp-block-comments .commentlist .comment {
    border-right: none;
    border-left: 4px solid #007cba;
}

/* תיקון נוסף לכפתור - מניעת חסימה על ידי אלמנטים אחרים */
.comment-form *,
.wp-block-post-comments-form * {
    box-sizing: border-box;
}

/* וידוא שאין אלמנטים שחוסמים את הכפתור */
.comment-form input[type="submit"],
.wp-block-post-comments-form input[type="submit"],
#submit {
    /* הסרת כל מגבלות אפשריות */
    -webkit-appearance: button !important;
    -moz-appearance: button !important;
    appearance: button !important;
    
    /* וידוא שהכפתור "לחיץ" */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    
    /* הסרת outline שעלול להפריע */
    outline: 0;
    
    /* וידוא שהכפתור נראה כמו כפתור */
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    
    /* מניעת בחירת טקסט בכפתור */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* עיצוב נוסף למובייל */
@media (max-width: 768px) {
    .comment-form,
    .wp-block-post-comments-form .comment-form {
        padding: 10px;
        margin-top: 20px;
    }
    
    .comment-form-author input,
    .comment-form-comment textarea,
    .wp-block-post-comments-form .comment-form-author input,
    .wp-block-post-comments-form .comment-form-comment textarea {
        padding: 10px;
        font-size: 16px; /* למניעת זום במובייל */
    }
    
    .comment-list .comment,
    .wp-block-comments .commentlist .comment {
        padding: 10px;
        margin-bottom: 15px;
    }
}



/* === post-reactions === */
/**
 * סגנונות חזית האתר
 */

/* Container ראשי */
.ttfc-post-reactions {
    margin: 30px auto !important;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid var(--secondary-color-jhhd, #1B365D);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 500px !important;
    width: 100% !important;
}

.ttfc-post-reactions.align-left {
    text-align: left;
}

.ttfc-post-reactions.align-center {
    text-align: center;
}

.ttfc-post-reactions.align-right {
    text-align: right;
}

/* Wrapper לכפתורים */
.reactions-wrapper {
    display: inline-flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* כפתורי תגובה */
.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    outline: none;
    position: relative;
    overflow: hidden;
}

.reaction-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reaction-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.reaction-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.reaction-button.animate {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* אייקונים */
.reaction-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.reaction-icon svg {
    width: 100%;
    height: 100%;
}

/* מונים */
.reaction-count {
    font-weight: 600;
    min-width: 20px;
}

/* סטטיסטיקות */
.reactions-stats {
    margin-top: 15px;
}

.percentage-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.percentage-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* סגנון מודרני */
.style-modern .reaction-button {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.style-modern .reaction-button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.style-modern .like-button.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.style-modern .dislike-button.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* סגנון קלאסי */
.style-classic .reaction-button {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: none;
}

.style-classic .reaction-button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.style-classic .reaction-button.active {
    background: #333;
    color: white;
    border-color: #333;
}

/* סגנון אימוג'י */
.style-emoji .reaction-button {
    background: transparent;
    border: none;
    font-size: 32px;
    padding: 5px 10px;
}

.style-emoji .reaction-icon {
    width: auto;
    height: auto;
    font-size: 32px;
}

.style-emoji .reaction-count {
    font-size: 18px;
    color: #333;
}

.style-emoji .reaction-button:hover {
    transform: scale(1.2);
}

.style-emoji .reaction-button.active {
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.8));
}

/* סגנון מינימליסטי */
.style-minimal .reaction-button {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 4px;
}

.style-minimal .reaction-button:hover {
    border-color: #666;
    background: rgba(0,0,0,0.02);
}

.style-minimal .reaction-button.active {
    border-color: #333;
    background: #333;
    color: white;
}

/* סגנון שטוח */
.style-flat .reaction-button {
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    box-shadow: none;
    padding: 12px 24px;
}

.style-flat .reaction-button:hover {
    background: #e0e0e0;
}

.style-flat .like-button.active {
    background: #4CAF50;
    color: white;
}

.style-flat .dislike-button.active {
    background: #f44336;
    color: white;
}

/* גדלים */
.size-small .reaction-button {
    padding: 6px 12px;
    font-size: 14px;
}

.size-small .reaction-icon {
    width: 18px;
    height: 18px;
}

.size-large .reaction-button {
    padding: 14px 28px;
    font-size: 18px;
}

.size-large .reaction-icon {
    width: 28px;
    height: 28px;
}

/* ערכות צבעים */
.color-blue .reaction-button.active {
    background: #2196F3;
    border-color: #2196F3;
}

.color-green .reaction-button.active {
    background: #4CAF50;
    border-color: #4CAF50;
}

.color-red .reaction-button.active {
    background: #f44336;
    border-color: #f44336;
}

.color-purple .reaction-button.active {
    background: #9C27B0;
    border-color: #9C27B0;
}

.color-dark .reaction-button {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.color-dark .reaction-button:hover {
    background: #34495e;
    border-color: #34495e;
}

.color-dark .reaction-button.active {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* הודעות */
.ttfc-pr-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 300px;
}

.ttfc-pr-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.ttfc-pr-notification.success {
    background: #4CAF50;
    color: white;
}

.ttfc-pr-notification.error {
    background: #f44336;
    color: white;
}

/* RTL Support */
body.rtl .reactions-wrapper {
    direction: rtl;
}

body.rtl .reaction-button {
    flex-direction: row-reverse;
}

body.rtl .ttfc-pr-notification {
    right: auto;
    left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .ttfc-post-reactions {
        padding: 15px;
        margin: 20px auto;
    }
    
    .reactions-wrapper {
        display: inline-flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        justify-content: center !important;
        width: auto !important;
    }
    
    .reaction-button {
        /* השארת הכפתורים בגודל אוטומטי - לא מלוא הרוחב */
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
    }
    
    .ttfc-pr-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .reaction-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .reaction-icon {
        width: 20px;
        height: 20px;
    }
}



/* === banners === */
/**
 * סגנונות חזית לבאנרים
 * TTFC Banner Manager
 * 
 * הערה: כל התמונות משתמשות ב-object-fit: contain
 * כדי להציג את התמונה במלואה עם שוליים ריקים במקום חיתוך
 */

/* === מיכל באנר בסיסי === */
.ttfc-banner-wrapper {
    position: relative;
    margin: 20px 0;
    clear: both;
}

/* ביטול מרווחים כשהבאנר בתוך בלוק תצוגה בעמוד הבית */
.banner-display-block .ttfc-banner-wrapper {
    margin: 0;
}

.ttfc-banner-wrapper.loading {
    min-height: 100px;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* === באנר בסיסי === */
.ttfc-banner {
    display: block;
    width: 100%;
    height: auto;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    /* רקע גרדיאנט כברירת מחדל כדי למלא שוליים ריקים */
    background: inherit;
}

.ttfc-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ttfc-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    /* רקע שקוף כדי שהשוליים יקבלו את צבע הרקע של הקונטיינר */
    background: transparent;
}

/* === סוגי באנרים === */

/* Ultra Wide Hero Banner (19:6) */
.ttfc-banner-ultra_wide_hero {
    aspect-ratio: 19/6;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.ttfc-banner-ultra_wide_hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ultra Wide Panoramic Banner (32:9) */
.ttfc-banner-ultra_wide_panoramic {
    aspect-ratio: 32/9;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.ttfc-banner-ultra_wide_panoramic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.ttfc-banner-ultra_wide_panoramic:hover img {
    transform: scale(1.05);
}

/* אפקט פרלקס לבאנר פנורמי */
.ttfc-banner-ultra_wide_panoramic.has-parallax img {
    transform: translateZ(0);
    will-change: transform;
}

/* טקסט על הבאנר הפנורמי */
.ttfc-banner-ultra_wide_panoramic .banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(5px);
    max-width: 80%;
}

.ttfc-banner-ultra_wide_panoramic .banner-overlay.position-left {
    left: 10%;
    transform: translate(0, -50%);
}

.ttfc-banner-ultra_wide_panoramic .banner-overlay.position-right {
    left: 90%;
    transform: translate(-100%, -50%);
}

.ttfc-banner-ultra_wide_panoramic .banner-overlay.position-center-left {
    left: 25%;
    transform: translate(-50%, -50%);
}

.ttfc-banner-ultra_wide_panoramic .banner-overlay.position-center-right {
    left: 75%;
    transform: translate(-50%, -50%);
}

/* Wide Standard Banner (16:9) */
.ttfc-banner-wide_standard {
    aspect-ratio: 16/9;
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
}

/* Standard Classic Banner (4:3) */
.ttfc-banner-standard_classic {
    aspect-ratio: 4/3;
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
}

/* Square Banner (1:1) */
.ttfc-banner-square {
    aspect-ratio: 1/1;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

/* Portrait Sidebar Banner (3:4) */
.ttfc-banner-portrait_sidebar {
    aspect-ratio: 3/4;
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
    max-width: 300px;
}

/* Banner Narrow (8:1) */
.ttfc-banner-banner_narrow {
    aspect-ratio: 8/1;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
}

/* Mobile Wide Banner (16:5) */
.ttfc-banner-mobile_wide {
    aspect-ratio: 16/5;
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
}

.ttfc-banner-mobile_wide.show-only-mobile {
    display: none;
}

@media (max-width: 768px) {
    .ttfc-banner-mobile_wide.show-only-mobile {
        display: block;
    }
}

/* Flexible Wide Banner - רוחבי גמיש */
.ttfc-banner-flexible_wide {
    background: transparent;
    overflow: hidden;
    display: block;
    width: 100%;
}

/* פינות עגולות רק כשמוגדר במפורש */
.banner-display-block.rounded-corners .ttfc-banner-flexible_wide {
    border-radius: 6px;
}

.banner-display-block.no-rounded .ttfc-banner-flexible_wide {
    border-radius: 0;
}

.ttfc-banner-flexible_wide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* מצב רוחב מלא */
.ttfc-banner-flexible_wide.full-width {
    max-width: 1200px;
    margin: 0 auto;
}

/* מצב מגבלת רוחב */
.ttfc-banner-flexible_wide.width-limited {
    margin: 0 auto;
}

/* מצב מגבלת גובה */
.ttfc-banner-flexible_wide.height-limited {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ttfc-banner-flexible_wide.height-limited img {
    max-height: inherit;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* רספונסיביות לבאנר גמיש */
@media (max-width: 1200px) {
    .ttfc-banner-flexible_wide.full-width {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    /* פינות עגולות במובייל רק כשמוגדר במפורש */
    .banner-display-block.rounded-corners .ttfc-banner-flexible_wide {
        border-radius: 4px;
    }
    
    .banner-display-block.no-rounded .ttfc-banner-flexible_wide {
        border-radius: 0;
    }
    
    /* במובייל, הבאנר הגמיש ממלא את כל רוחב המסך */
    .ttfc-banner-flexible_wide.full-width {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    /* ביטול ה-scaling רק לבאנרים שלא מבקשים scaling מפורש */
    .ttfc-banner-flexible_wide.responsive-scaling {
        transform: none;
        width: 100%;
    }
    
    /* אם רוצים scaling, צריך להוסיף קלאס מיוחד */
    .ttfc-banner-flexible_wide.force-scaling {
        transform: scale(0.95);
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    /* במסכים קטנים מאוד, שומרים על מלוא הרוחב */
    .ttfc-banner-flexible_wide.full-width {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .ttfc-banner-flexible_wide.responsive-scaling {
        transform: none;
        width: 100%;
    }
    
    /* אופציה ל-scaling אם נדרש במפורש */
    .ttfc-banner-flexible_wide.force-scaling {
        transform: scale(0.9);
        margin: 0 auto;
    }
}

/* Hero Banner */
.ttfc-banner-hero_banner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.ttfc-banner-hero_banner img {
    aspect-ratio: 1920 / 600;
    object-fit: contain;
}

/* Leaderboard */
.ttfc-banner-leaderboard {
    max-width: 728px;
    margin: 20px auto;
}

.ttfc-banner-leaderboard img {
    aspect-ratio: 728 / 90;
}

/* Medium Rectangle */
.ttfc-banner-medium_rectangle {
    max-width: 300px;
    margin: 20px 0;
}

.ttfc-banner-medium_rectangle img {
    aspect-ratio: 300 / 250;
}

/* Half Page */
.ttfc-banner-half_page {
    max-width: 300px;
    margin: 20px 0;
}

.ttfc-banner-half_page img {
    aspect-ratio: 300 / 600;
}

/* Mobile Banner */
.ttfc-banner-mobile_banner {
    display: none;
    max-width: 320px;
    margin: 10px auto;
}

@media (max-width: 768px) {
    .ttfc-banner-mobile_banner {
        display: block;
    }
    
    /* הסתרת באנרים גדולים במובייל */
    .ttfc-banner-hero_banner,
    .ttfc-banner-leaderboard {
        display: none;
    }
}

/* Billboard */
.ttfc-banner-billboard {
    max-width: 970px;
    margin: 20px auto;
}

.ttfc-banner-billboard img {
    aspect-ratio: 970 / 250;
}

/* === באנרים מיוחדים === */

/* In-Feed Banner */
.ttfc-banner-in_feed {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

/* Interstitial/Popup */
.ttfc-banner-interstitial {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 90%;
    max-height: 90%;
    background: white;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.ttfc-banner-interstitial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    cursor: pointer;
}

.ttfc-banner-interstitial-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.ttfc-banner-interstitial-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* Sticky Footer */
.ttfc-banner-sticky_footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center;
}

.ttfc-banner-sticky_footer .ttfc-banner {
    margin: 0 auto;
    max-width: 728px;
}

.ttfc-banner-sticky_footer-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Native/Content Banner */
.ttfc-banner-native {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.ttfc-banner-native-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.ttfc-banner-native-content {
    display: flex;
    gap: 20px;
}

.ttfc-banner-native-image {
    flex: 0 0 150px;
}

.ttfc-banner-native-image img {
    width: 100%;
    border-radius: 4px;
}

.ttfc-banner-native-text {
    flex: 1;
}

.ttfc-banner-native-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.ttfc-banner-native-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* === רוטציה === */
.ttfc-banner-block-rotation {
    position: relative;
    overflow: hidden;
}

.ttfc-banner-block-rotation .ttfc-banner {
    display: none;
}

.ttfc-banner-block-rotation .ttfc-banner.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === רספונסיביות === */
@media (max-width: 1200px) {
    .ttfc-banner-billboard {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* התאמות למובייל */
    .ttfc-banner-wrapper {
        margin: 15px 0;
    }
    
    /* ביטול מרווחים כשהבאנר בתוך בלוק תצוגה בעמוד הבית */
    .banner-display-block .ttfc-banner-wrapper {
        margin: 0;
    }
    
    .ttfc-banner-native-content {
        flex-direction: column;
    }
    
    .ttfc-banner-native-image {
        flex: 1;
    }
    
    /* באנרים דביקים במובייל */
    .ttfc-banner-sticky_footer {
        padding: 5px;
    }
}

@media (max-width: 480px) {
    /* באנרים למסכים קטנים במיוחד */
    .ttfc-banner-medium_rectangle,
    .ttfc-banner-half_page {
        max-width: 100%;
    }
}

/* === Lazy Loading === */
.ttfc-banner[data-lazy="true"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ttfc-banner.loaded {
    opacity: 1;
}

/* === הודעת נגישות === */
.ttfc-banner-accessibility {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* === RTL Support === */
[dir="rtl"] .ttfc-banner-interstitial-close {
    right: auto;
    left: 10px;
}

[dir="rtl"] .ttfc-banner-sticky_footer-close {
    right: auto;
    left: 5px;
}

[dir="rtl"] .ttfc-banner-native-content {
    flex-direction: row-reverse;
}

/* === Debug Mode === */
.ttfc-banner-debug {
    position: relative;
}

.ttfc-banner-debug::before {
    content: attr(data-banner-id) " | " attr(data-block-id);
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    z-index: 10;
    pointer-events: none;
}

/* === באנר דביק בתחתית המסך (Sticky Footer Banner) === */
.ttfc-sticky-footer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: auto;
    max-height: 180px;
}

.ttfc-sticky-footer-banner.show {
    transform: translateY(0);
}

.ttfc-sticky-footer-banner.hide {
    transform: translateY(100%);
}

/* תוכן הבאנר */
.ttfc-sticky-footer-banner .ttfc-banner-wrapper,
.ttfc-sticky-footer-banner .rotating-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.ttfc-sticky-footer-banner .ttfc-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    height: auto;
}

.ttfc-sticky-footer-banner .ttfc-banner:hover {
    transform: none;
    box-shadow: none;
}

.ttfc-sticky-footer-banner .ttfc-banner img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* באנרים רספונסיביים */
.ttfc-sticky-footer-banner .custom-dual-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.ttfc-sticky-footer-banner .custom-dual-banner .ttfc-banner-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ttfc-sticky-footer-banner .custom-dual-banner .ttfc-banner-mobile {
    display: none;
}

.ttfc-sticky-footer-banner .custom-dual-banner img {
    display: block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* באנרים רספונסיביים - תמונה למובייל */
@media (max-width: 768px) {
    .ttfc-sticky-footer-banner .custom-dual-banner .ttfc-banner-desktop {
        display: none;
    }
    
    .ttfc-sticky-footer-banner .custom-dual-banner .ttfc-banner-mobile {
        display: block;
    }
}

/* כפתור סגירה */
.ttfc-sticky-footer-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1000;
    line-height: 1;
    padding: 0;
}

.ttfc-sticky-footer-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.ttfc-sticky-footer-close:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* מרווח לגוף העמוד כשהבאנר מוצג */
body.has-sticky-footer {
    padding-bottom: var(--sticky-footer-height, 100px);
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .ttfc-sticky-footer-banner {
        padding: 5px 0;
    }
    
    .ttfc-sticky-footer-close {
        top: 3px;
        right: 5px;
        width: 25px;
        height: 25px;
        font-size: 20px;
    }
}

/* אנימציות */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.ttfc-sticky-footer-banner.animate-in {
    animation: slideUp 0.3s ease-out forwards;
}

.ttfc-sticky-footer-banner.animate-out {
    animation: slideDown 0.3s ease-in forwards;
}

/* תמיכה בבאנרים עם רוחב מלא (Full-Width Sticky) */
.ttfc-sticky-footer-banner .ttfc-banner-responsive_full_width_sticky img {
    max-width: none;
    width: auto;
    max-height: 180px;
}

/* כיווץ אוטומטי במסכים קטנים תוך שמירה על יחס */
@media (max-width: 3840px) {
    .ttfc-sticky-footer-banner .ttfc-banner-responsive_full_width_sticky img {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   באנר אנכי דביק לצד עמודת התוכן (post_sidebar_160x600)
   ============================================ */

/* מיכל ראשי - תוכן + באנר/ים - פשוט flexbox ממורכז */
.ttfc-post-content-with-sidebar-banner {
    display: flex;
    flex-direction: row-reverse; /* RTL - הפוך את הסדר */
    justify-content: center;
    align-items: flex-start;
    gap: 50px; /* מרווח ברירת מחדל */
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

/* עמודת התוכן - רוחב קבוע עם אפשרות כיווץ במסכים קטנים */
.ttfc-post-content-wrapper {
    width: 750px;
    max-width: 750px;
    flex-shrink: 0; /* לא מתכווץ כשיש מקום */
    direction: rtl;
    box-sizing: border-box;
}

/* כשיש רק באנר שמאלי - הוסף מרווח לתוכן */
.ttfc-post-content-with-sidebar-banner.has-left-sidebar:not(.has-both-sidebars):not(.has-right-sidebar) .ttfc-post-content-wrapper {
    margin-right: 30px; /* מרווח מהבאנר השמאלי */
}

/* כשיש רק באנר ימני - הוסף מרווח לתוכן */
.ttfc-post-content-with-sidebar-banner.has-right-sidebar:not(.has-both-sidebars):not(.has-left-sidebar) .ttfc-post-content-wrapper {
    margin-left: 30px; /* מרווח מהבאנר הימני */
}

/* כל התוכן בתוך ה-wrapper מוגבל ל-100% */
.ttfc-post-content-wrapper > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* עמודת באנר - מבנה בסיסי */
.ttfc-post-sidebar-banner-wrapper {
    flex-shrink: 0;
    position: sticky;
    top: calc(55px + 10px);
    align-self: flex-start;
    max-height: calc(100vh - 55px - 10px);
    overflow: visible;
}

/* כאשר יש באנר דביק תחתון */
body.has-sticky-footer .ttfc-post-sidebar-banner-wrapper {
    max-height: calc(100vh - 55px - 10px - var(--sticky-footer-height, 0px));
}

/* מיכל הבאנר */
.sticky-sidebar-banner {
    width: 100%;
    height: auto;
}

/* תמונת באנר */
.sticky-sidebar-banner .post-sidebar-banner-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* הסתרת באנרים במסכים קטנים (פחות מ-960px) */
@media (max-width: 959px) {
    .ttfc-post-sidebar-banner-wrapper {
        display: none !important;
    }
    
    /* התוכן ממלא את כל הרוחב */
    .ttfc-post-content-wrapper {
        width: 100%;
        max-width: 750px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* תיקון: איפוס מרווחים ספציפיים שהוגדרו עבור באנרים צדדיים (High Specificity Override) */
    .ttfc-post-content-with-sidebar-banner.has-left-sidebar:not(.has-both-sidebars):not(.has-right-sidebar) .ttfc-post-content-wrapper,
    .ttfc-post-content-with-sidebar-banner.has-right-sidebar:not(.has-both-sidebars):not(.has-left-sidebar) .ttfc-post-content-wrapper {
        margin-right: auto; /* שימוש ב-auto כדי לאפשר מרכוז אם צריך, או 0 */
        margin-left: auto;
        margin: 0 auto; /* איפוס מלא */
    }
}

/* מסכים קטנים מאוד - תוכן 100% */
@media (max-width: 750px) {
    .ttfc-post-content-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* ========================================
   באנרים צדדיים זוגיים (300x600 + 160x600)
   ======================================== */

/* תמונות הבאנר הזוגי */
.ttfc-dual-sidebar-banner {
    width: 100%;
    height: auto;
}

.ttfc-dual-sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ברירת מחדל: הצג את התמונה הרחבה */
.ttfc-dual-sidebar-banner .ttfc-banner-wide {
    display: block;
}

.ttfc-dual-sidebar-banner .ttfc-banner-narrow {
    display: none;
}

/* === לוגיקה פשוטה לפי רוחב מסך === */

/* מסכים רחבים מאוד: שני באנרים רחבים 300px */
/* 750 + 300*2 + 50*2 = 1450px */
@media (min-width: 1450px) {
    .ttfc-post-sidebar-banner-wrapper.sidebar-pair {
        width: 300px;
    }
    .ttfc-dual-sidebar-banner .ttfc-banner-wide {
        display: block;
    }
    .ttfc-dual-sidebar-banner .ttfc-banner-narrow {
        display: none;
    }
}

/* הקטנת מרווח: 750 + 600 + 60 = 1410px */
@media (max-width: 1449px) and (min-width: 1310px) {
    .ttfc-post-content-with-sidebar-banner.has-both-sidebars {
        gap: 30px;
    }
}

/* מסכים בינוניים-רחבים: באנר שמאלי 300px, באנר ימני 160px */
/* 750 + 300 + 160 + 50*2 = 1310px */
@media (max-width: 1449px) and (min-width: 1310px) {
    .ttfc-post-sidebar-banner-wrapper.sidebar-left.sidebar-pair {
        width: 300px;
    }
    .ttfc-post-sidebar-banner-wrapper.sidebar-left.sidebar-pair .ttfc-dual-sidebar-banner .ttfc-banner-wide {
        display: block;
    }
    .ttfc-post-sidebar-banner-wrapper.sidebar-left.sidebar-pair .ttfc-dual-sidebar-banner .ttfc-banner-narrow {
        display: none;
    }
    
    .ttfc-post-sidebar-banner-wrapper.sidebar-right.sidebar-pair {
        width: 160px;
    }
    .ttfc-post-sidebar-banner-wrapper.sidebar-right.sidebar-pair .ttfc-dual-sidebar-banner .ttfc-banner-wide {
        display: none;
    }
    .ttfc-post-sidebar-banner-wrapper.sidebar-right.sidebar-pair .ttfc-dual-sidebar-banner .ttfc-banner-narrow {
        display: block;
    }
}

/* הקטנת מרווח: 750 + 460 + 60 = 1270px */
@media (max-width: 1309px) and (min-width: 1170px) {
    .ttfc-post-content-with-sidebar-banner.has-both-sidebars {
        gap: 30px;
    }
}

/* מסכים בינוניים: שני באנרים צרים 160px */
/* 750 + 160*2 + 50*2 = 1170px */
@media (max-width: 1309px) and (min-width: 1170px) {
    .ttfc-post-sidebar-banner-wrapper.sidebar-pair {
        width: 160px;
    }
    .ttfc-dual-sidebar-banner .ttfc-banner-wide {
        display: none;
    }
    .ttfc-dual-sidebar-banner .ttfc-banner-narrow {
        display: block;
    }
}

/* הקטנת מרווח: 750 + 320 + 60 = 1130px */
@media (max-width: 1169px) and (min-width: 1150px) {
    .ttfc-post-content-with-sidebar-banner.has-both-sidebars {
        gap: 30px;
    }
}

/* מסכים בינוניים-קטנים: רק באנר שמאלי 300px */
/* 750 + 300 + 50 = 1100px */
@media (max-width: 1169px) and (min-width: 1100px) {
    .ttfc-post-sidebar-banner-wrapper.sidebar-right.sidebar-pair {
        display: none;
    }
    .ttfc-post-sidebar-banner-wrapper.sidebar-left.sidebar-pair {
        width: 300px;
    }
    .ttfc-dual-sidebar-banner .ttfc-banner-wide {
        display: block;
    }
    .ttfc-dual-sidebar-banner .ttfc-banner-narrow {
        display: none;
    }
}

/* הקטנת מרווח: 750 + 300 + 30 = 1080px */
@media (max-width: 1099px) and (min-width: 1080px) {
    .ttfc-post-sidebar-banner-wrapper.sidebar-right.sidebar-pair {
        display: none;
    }
    .ttfc-post-sidebar-banner-wrapper.sidebar-left.sidebar-pair {
        width: 300px;
    }
    .ttfc-dual-sidebar-banner .ttfc-banner-wide {
        display: block;
    }
    .ttfc-dual-sidebar-banner .ttfc-banner-narrow {
        display: none;
    }
    .ttfc-post-content-with-sidebar-banner {
        gap: 30px;
    }
}

/* מסכים קטנים: רק באנר שמאלי 160px */
/* 750 + 160 + 50 = 960px */
@media (max-width: 1099px) and (min-width: 960px) {
    .ttfc-post-sidebar-banner-wrapper.sidebar-right.sidebar-pair {
        display: none;
    }
    .ttfc-post-sidebar-banner-wrapper.sidebar-left.sidebar-pair {
        width: 160px;
    }
    .ttfc-dual-sidebar-banner .ttfc-banner-wide {
        display: none;
    }
    .ttfc-dual-sidebar-banner .ttfc-banner-narrow {
        display: block;
    }
}

/* מסכים קטנים מאוד: הסתרת כל הבאנרים */
@media (max-width: 959px) {
    .ttfc-post-sidebar-banner-wrapper.sidebar-pair {
        display: none;
    }
}

/* === הצגה/הסתרה לפי סוג מכשיר === */
/* הגדרות אלו מיועדות לבלוקים כמו post_header */

/* הצגה רק במובייל - הסתרה בדסקטופ */
@media (min-width: 769px) {
    .ttfc-banner-visibility-mobile_only {
        display: none !important;
    }
}

/* הצגה רק בדסקטופ - הסתרה במובייל */
@media (max-width: 768px) {
    .ttfc-banner-visibility-desktop_only {
        display: none !important;
    }
}

/* === באנרים זוגיים (Dual Banners) - כללי לכל הבלוקים === */
/* תמיכה בזוגות באנרים עם תמונה לדסקטופ ותמונה למובייל */

.custom-dual-banner {
    display: block;
    width: 100%;
    line-height: 0;
}

/* ברירת מחדל: הצג דסקטופ, הסתר מובייל */
.custom-dual-banner .ttfc-banner-desktop {
    display: block;
}

.custom-dual-banner .ttfc-banner-mobile {
    display: none;
}

/* מובייל: הצג מובייל, הסתר דסקטופ */
@media (max-width: 768px) {
    .custom-dual-banner .ttfc-banner-desktop {
        display: none;
    }
    
    .custom-dual-banner .ttfc-banner-mobile {
        display: block;
    }
}

.custom-dual-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* === באנר כותרת פוסט (post_header) === */

.ttfc-banner-block-post_header {
    margin: 0 0 20px 0;
    text-align: center;
    width: 100%;
}

/* ברירת מחדל: מוגבל ל-750px כמו התוכן */
.ttfc-post-content-wrapper .ttfc-banner-block-post_header {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* כשיש באנרים צדדיים - רוחב מלא (יוגדר ב-JavaScript) */
.ttfc-banner-block-post_header.with-sidebar-banners {
    /* max-width יוגדר דינמית ב-JavaScript */
    margin-left: auto;
    margin-right: auto;
}

.ttfc-banner-block-post_header .ttfc-banner {
    max-width: 100%;
    height: auto;
}

/* התאמה למובייל - תמיד רוחב מלא */
@media (max-width: 768px) {
    .ttfc-banner-block-post_header {
        max-width: 100% !important;
        margin-top: -10px !important;
        margin-bottom: -25px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}



/* === popup-banner === */
/* ========================================
   Popup Banner Block Styles
   ======================================== */

/* Popup Overlay */
.ttfc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none; /* התחלה מוסתרת */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.8); /* רקע כהה */
}

/* Popup Container */
.ttfc-popup-container {
    position: relative;
    background: transparent; /* רקע שקוף לבאנרים זוגיים */
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    overflow: visible; /* שינוי ל-visible כדי לראות את התמונות */
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    animation: popupSlideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Close Button */
.ttfc-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttfc-popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.ttfc-popup-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* RTL Support */
[dir="rtl"] .ttfc-popup-close {
    right: auto;
    left: 15px;
}

/* Popup Content */
.ttfc-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner Wrapper inside Popup */
.ttfc-popup-banner-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.ttfc-popup-banner-wrapper .ttfc-banner {
    display: block;
    width: 100%;
    height: 100%;
}

.ttfc-popup-banner-wrapper .ttfc-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ttfc-popup-banner-wrapper .ttfc-banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.ttfc-popup-banner-wrapper .ttfc-banner-html {
    padding: 20px;
    text-align: center;
}

/* Dual Banner Support - תמיכה בזוגות באנרים */
.ttfc-popup-dual-banner .ttfc-popup-container {
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.ttfc-popup-dual-banner .ttfc-popup-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ttfc-popup-dual-banner .ttfc-popup-banner-desktop {
    display: block;
}

.ttfc-popup-dual-banner .ttfc-popup-banner-mobile {
    display: none;
}

/* הצגת באנר בגודל מקורי ללא מתיחה */
.ttfc-popup-dual-banner .ttfc-banner-image {
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.ttfc-popup-dual-banner .ttfc-banner-link {
    display: block;
    width: auto;
    height: auto;
    line-height: 0;
}

/* Animations */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupZoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.ttfc-popup-overlay.animation-fade {
    animation: popupFadeIn 0.3s ease;
}

.ttfc-popup-overlay.animation-slide .ttfc-popup-container {
    animation: popupSlideIn 0.3s ease-out;
}

.ttfc-popup-overlay.animation-zoom .ttfc-popup-container {
    animation: popupZoomIn 0.3s ease-out;
}

/* Banner Type Adaptations */

/* Hero Banner in Popup */
.ttfc-popup-banner-wrapper .ttfc-banner-hero_banner {
    min-height: 400px;
}

.ttfc-popup-banner-wrapper .ttfc-banner-hero_banner .ttfc-banner-image {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Leaderboard in Popup */
.ttfc-popup-banner-wrapper .ttfc-banner-leaderboard {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Medium Rectangle in Popup */
.ttfc-popup-banner-wrapper .ttfc-banner-medium_rectangle {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Billboard in Popup */
.ttfc-popup-banner-wrapper .ttfc-banner-billboard {
    min-height: 250px;
}

/* Interstitial (already designed for popup) */
.ttfc-popup-banner-wrapper .ttfc-banner-interstitial {
    min-height: 400px;
}

/* Native Content in Popup */
.ttfc-popup-banner-wrapper .ttfc-banner-native {
    background: #fff;
    padding: 30px;
    text-align: center;
}

.ttfc-popup-banner-wrapper .ttfc-banner-native::before {
    content: "תוכן ממומן";
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ttfc-popup-overlay {
        padding: 15px;
    }
    
    .ttfc-popup-container {
        max-width: 95vw;
        max-height: 85vh;
        border-radius: 6px;
    }
    
    .ttfc-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    [dir="rtl"] .ttfc-popup-close {
        right: auto;
        left: 10px;
    }
    
    .ttfc-popup-banner-wrapper .ttfc-banner-html {
        padding: 15px;
        font-size: 14px;
    }
    
    /* Adjust hero banner for mobile */
    .ttfc-popup-banner-wrapper .ttfc-banner-hero_banner {
        min-height: 250px;
    }
    
    .ttfc-popup-banner-wrapper .ttfc-banner-hero_banner .ttfc-banner-image {
        aspect-ratio: 16/10;
    }
    
    /* תמיכה בזוגות באנרים - העברת התצוגה למובייל */
    .ttfc-popup-dual-banner .ttfc-popup-banner-desktop {
        display: none;
    }
    
    .ttfc-popup-dual-banner .ttfc-popup-banner-mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    .ttfc-popup-overlay {
        padding: 10px;
    }
    
    .ttfc-popup-container {
        max-width: 98vw;
        max-height: 90vh;
        border-radius: 4px;
    }
    
    .ttfc-popup-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    [dir="rtl"] .ttfc-popup-close {
        right: auto;
        left: 8px;
    }
    
    .ttfc-popup-banner-wrapper .ttfc-banner-native {
        padding: 20px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ttfc-popup-container {
        box-shadow: 0 15px 60px rgba(0, 0, 0, 0.4);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ttfc-popup-container {
        background: #1a1a1a;
        color: #fff;
    }
    
    .ttfc-popup-banner-wrapper .ttfc-banner-native {
        background: #1a1a1a;
        color: #fff;
    }
    
    .ttfc-popup-banner-wrapper .ttfc-banner-native::before {
        color: #aaa;
    }
}

/* Accessibility */
.ttfc-popup-overlay:focus-within {
    outline: none;
}

.ttfc-popup-container:focus-within {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .ttfc-popup-container,
    .ttfc-popup-overlay {
        animation: none !important;
        transition: none !important;
    }
    
    .ttfc-popup-close {
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .ttfc-popup-overlay {
        display: none !important;
    }
}

/* Custom Scrollbar for Popup Content */
.ttfc-popup-content::-webkit-scrollbar {
    width: 8px;
}

.ttfc-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ttfc-popup-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.ttfc-popup-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading State */
.ttfc-popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.ttfc-popup-loading::before {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.ttfc-popup-error {
    padding: 30px;
    text-align: center;
    color: #d32f2f;
}

.ttfc-popup-error::before {
    content: "⚠";
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}

/* Success State */
.ttfc-popup-success {
    padding: 30px;
    text-align: center;
    color: #2e7d32;
}

.ttfc-popup-success::before {
    content: "✓";
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}

/* Special Effects */
.ttfc-popup-glow {
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}

.ttfc-popup-blur-background .ttfc-popup-backdrop {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Popup Variants */
.ttfc-popup-rounded .ttfc-popup-container {
    border-radius: 20px;
}

.ttfc-popup-square .ttfc-popup-container {
    border-radius: 0;
}

.ttfc-popup-shadow .ttfc-popup-container {
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}

/* Integration with existing banner styles */
.ttfc-popup-banner-wrapper .ttfc-banner:hover {
    transform: none; /* Disable hover transforms in popup */
}

.ttfc-popup-banner-wrapper .ttfc-banner-wrapper.hover .ttfc-banner-image {
    transform: none; /* Disable hover effects */
}





/* === post-hero-banner === */
/* ================================
   Post Hero Banner - עיצוב חזית לגולשים
   ================================ */

/* סגנונות בסיסיים לבלוק */
.post-hero-banner {
    position: relative;
    width: 100vw;
    margin-right: calc(-50vw + 50%);
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    overflow: visible; /* שינוי מ-hidden ל-visible כדי לאפשר גלישת כותרת */
    padding-bottom: 50px; /* רווח לגלישת כותרת למטה */
}

/* Wrapper for the banner */
.post-hero-banner-wrapper {
    position: relative;
    width: 100%;
}

/* תמונת רקע - יחס 19:6 */
.post-hero-banner-image-wrapper {
    position: relative;
    width: 100%;
    overflow: visible; /* שינוי מ-hidden ל-visible - מאפשר לכותרת לגלוש */
    background: #f0f0f0;
}

.post-hero-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Placeholder כשאין תמונה */
.post-hero-banner-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-hero-banner-placeholder .placeholder-message {
    color: white;
    font-size: 18px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

/* מיכל התוכן - ממורכז עם רוחב קבוע */
.post-hero-banner-content {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    z-index: 1;
    pointer-events: none;
}

/* אפשר אינטראקציה עם כל האלמנטים בתוך המיכל הפנימי */
.post-hero-banner-inner {
    background: #ffffff; /* רקע לבן זהה לרקע העמוד */
    padding: 30px 40px;
    border-radius: 5px;
    box-shadow: none; /* ללא צל כדי להתמזג עם הרקע */
    max-height: none; /* מאפשר גובה חופשי */
    overflow: visible; /* מאפשר גלישת תוכן */
    pointer-events: auto; /* אפשר לחיצה על קישורים בתוך המיכל */
}

/* וודא שכל הקישורים בבלוק לחיצים וללא קו תחתון */
.post-hero-banner-inner a {
    pointer-events: auto;
    text-decoration: none !important;
}

.post-hero-banner-inner a:hover {
    text-decoration: none !important;
}

/* תגית קטגוריה */
.post-hero-banner-category {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--secondary-color-jhhd, #1B365D) !important;
    border-radius: 20px;
    background: transparent !important;
    color: var(--secondary-color-jhhd, #1B365D) !important;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    box-shadow: none !important;
    pointer-events: auto;
    transition: all 0.3s ease;
}

/* עיצוב נגטיבי ב-hover */
.post-hero-banner-category:hover {
    text-decoration: none !important;
    background: var(--secondary-color-jhhd, #1B365D) !important;
    color: #ffffff !important;
    border: 1px solid var(--secondary-color-jhhd, #1B365D) !important;
}

/* ביטול pseudo-elements שעלולים ליצור קווים */
.post-hero-banner-category::before,
.post-hero-banner-category::after {
    display: none !important;
    content: none !important;
}

/* כותרת עילית */
.post-hero-super-title {
    display: inline-block;
    background: #DE0100;
    color: #ffffff;
    padding: 6px 16px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    border-radius: 4px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* כותרת ראשית */
.post-hero-banner-title {
    margin: 0 0 15px 0;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a; /* טקסט כהה על רקע לבן */
    letter-spacing: -0.5px;
}

/* כותרת משנה */
.post-hero-banner-subtitle,
.entry-content .post-hero-banner-subtitle,
.wp-block-post-content .post-hero-banner-subtitle,
.post-hero-classic-content .post-hero-banner-subtitle {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    color: #000000 !important; /* שחור מוחלט */
}

/* ================================
   סגנון קלאסי
   ================================ */

.banner-style-classic.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(-50vw + 50%);
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
}

.post-hero-classic-wrapper {
    width: 100%;
    max-width: 100%;
}

.post-hero-classic-wrapper > * {
    margin-top: 0;
    margin-bottom: 0;
}

.post-hero-classic-content {
    padding-top: 25px;
    padding-bottom: 5px;
    max-width: 800px;
    margin: 0 auto 0 auto;
    padding: 25px 20px 5px;
}

.post-hero-classic-image-wrapper {
    max-width: 800px;
    margin: 5px auto 2.5rem auto;
    padding: 0 20px;
    /* wrapper רק מכיל - לא חותך את הכיתוב */
}

.post-hero-classic-image {
    width: 100%;
    aspect-ratio: 16/9; /* יחס 16:9 - יחס פנורמי רחב (סטנדרט וידאו) */
    height: auto;
    object-fit: cover; /* מציג רק את החלק המרכזי, חותך שוליים */
    object-position: center; /* ממרכז את התמונה */
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0; /* ביטול border-radius שעלול להשפיע על תמונות רגילות */
}

/* כיתוב התמונה בסגנון קלאסי - בדיוק כמו תמונות רגילות */
.post-hero-classic-caption {
    font-size: 0.95rem;
    color: var(--gray-medium);
    text-align: right;
    padding-right: 20px;
    padding-left: 0;
    font-weight: 300;
    font-family: var(--font-family-accent) !important;
    margin-top: 0.5rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* ================================
   פרטי מחבר בתוך הבלוק
   ================================ */

.post-hero-author-section {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.post-hero-author-section .author-avatar {
    margin-left: 10px;
}

.post-hero-author-section .author-info {
    flex: 1;
}

.post-hero-author-section .author-meta-line {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.post-hero-author-section .author-name-wrapper {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
}

/* מיכל לתגית קטגוריה וכפתור שיתוף */
.post-hero-author-section .author-meta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* תגית קטגוריה בתוך שורת המחבר - בצד שמאל */
.post-hero-author-section .category-in-meta {
    flex-shrink: 0;
    margin: 0;
}

/* כפתור שיתוף בווטסאפ */
.post-hero-author-section .whatsapp-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: none;
    flex-shrink: 0;
    pointer-events: auto;
}

.post-hero-author-section .whatsapp-share-button:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.post-hero-author-section .whatsapp-share-button::before,
.post-hero-author-section .whatsapp-share-button::after {
    display: none !important;
    content: none !important;
}

.post-hero-author-section .whatsapp-share-button svg {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.post-hero-author-section .author-name-wrapper.has-author-bio {
    flex-direction: column;
    align-items: flex-start;
}

.post-hero-author-section .author-primary-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.post-hero-author-section .author-name {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    right: 4px;
    pointer-events: auto;
    border-bottom: none !important;
    box-shadow: none !important;
}

.post-hero-author-section .author-name:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* סימן הפרדה בין שם המחבר לתאריך */
.post-hero-author-section .author-date-separator {
    margin: 0 8px;
    color: #999;
    font-size: 14px;
    font-weight: 300;
}

.post-hero-author-section .post-date {
    font-size: 14px;
    color: #666;
}

.post-hero-author-section .author-secondary-meta {
    position: relative;
    left: 4px;
}

.post-hero-author-section .author-bio {
    font-size: 13px;
    font-weight: 300;
    color: #666;
    margin-top: 5px;
}

/* עיצוב זמן קריאה בתוך ה-Post Hero Banner */
.wp-block-ttfchild-post-hero-banner .ttfc-reading-time__text {
    font-size: 14px;
}

span.ttfc-reading-time.ttfc-reading-time--inline {
    left: 4px;
    position: relative;
}

/* ================================
   התאמות רספונסיביות
   ================================ */

@media (max-width: 1024px) {
    .post-hero-banner-content {
        max-width: 90%;
        width: calc(100% - 40px);
    }
    
    .post-hero-banner-inner {
        padding: 25px 30px;
    }
    
    .post-hero-banner-title {
        font-size: 36px;
    }
    
    .post-hero-banner-subtitle,
    .entry-content .post-hero-banner-subtitle,
    .wp-block-post-content .post-hero-banner-subtitle {
        font-size: 18px !important;
    }
}

/* ================================
   WhatsApp Join Group Block - עיצוב חזית
   ================================ */

/* בלוק קריאה להצטרפות לקבוצת ווטסאפ */
.whatsapp-join-group-block {
    border: 2px solid var(--secondary-color-jhhd, #1B365D);
    border-radius: 8px;
    background: #f9f9f9;
    margin: 30px auto;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
}

.whatsapp-join-group-block .wp-block-columns {
    margin-bottom: 0;
}

.whatsapp-join-group-block .wp-block-column {
    display: flex;
    align-items: center;
}

/* כל הצירופים האפשריים של העמודה */
.whatsapp-button-column,
.whatsapp-button-column.is-layout-flow,
.whatsapp-button-column.wp-block-column-is-layout-flow,
.wp-block-column.whatsapp-button-column,
div.whatsapp-button-column {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* הסרת כל padding ו-margin מכל האלמנטים בתוך העמודה */
.whatsapp-button-column > *,
.whatsapp-button-column .wp-block-button,
.whatsapp-button-column.is-layout-flow > *,
.whatsapp-button-column.wp-block-column-is-layout-flow > *,
.whatsapp-button-column .is-layout-flow,
div.whatsapp-button-column > * {
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
}

.whatsapp-join-text {
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    font-size: 16px;
}

/* הכפתור עצמו - הקישור בתוך ה-wrapper */
.whatsapp-join-button .wp-block-button__link,
.red-mail-button .wp-block-button__link {
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    width: 44px !important;
    height: 36px !important;
    min-height: auto !important;
    margin: 0 !important;
}

.whatsapp-join-button .wp-block-button__link {
    background: #25D366 !important;
    color: #ffffff !important;
    border: 2px solid #25D366 !important;
}

.whatsapp-join-button .wp-block-button__link:hover,
.red-mail-button .wp-block-button__link:hover {
    transform: scale(1.02) !important;
    text-decoration: none !important;
}

.whatsapp-join-button .wp-block-button__link:hover {
    background: #ffffff !important;
    color: #25D366 !important;
    border: 2px solid #25D366 !important;
    box-shadow: 0 3px 6px rgba(37, 211, 102, 0.25) !important;
}

.whatsapp-join-button .wp-block-button__link::before,
.whatsapp-join-button .wp-block-button__link::after,
.red-mail-button .wp-block-button__link::before,
.red-mail-button .wp-block-button__link::after {
    display: none !important;
    content: none !important;
}

.whatsapp-join-button .wp-block-button__link svg,
.red-mail-button .wp-block-button__link svg {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

/* ================================
   Red Mail Button - עיצוב חזית
   ================================ */

.contact-row {
    margin-bottom: 0;
}

.red-mail-row {
    margin-top: 8px;
}

.red-mail-text {
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    font-size: 16px;
}

.red-mail-button-column {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.red-mail-button-column > *,
.red-mail-button-column .wp-block-button {
    padding: 0 !important;
    margin: 0 !important;
}

.red-mail-button .wp-block-button__link {
    background: #DE0100 !important;
    color: #ffffff !important;
    border: 2px solid #DE0100 !important;
}

.red-mail-button .wp-block-button__link:hover {
    background: #ffffff !important;
    color: #DE0100 !important;
    border: 2px solid #DE0100 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(222, 1, 0, 0.25) !important;
    text-decoration: none !important;
}

.red-mail-button .wp-block-button__link::before,
.red-mail-button .wp-block-button__link::after {
    display: none !important;
    content: none !important;
}

.red-mail-button .wp-block-button__link svg {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive - בלוק ווטסאפ */
@media (max-width: 768px) {
    .whatsapp-join-group-block {
        margin: 20px 0;
        padding: 8px 12px;
    }
    
    .whatsapp-join-text {
        font-size: 15px;
        text-align: right;
    }
    
    /* דריסה חזקה מאוד - כל הסלקטורים + דריסת WordPress core */
    .whatsapp-join-group-block > .wp-block-columns,
    .whatsapp-join-group-block > .wp-block-columns.is-layout-flex,
    .whatsapp-join-group-block > .wp-block-columns-is-layout-flex,
    .whatsapp-join-group-block > .is-layout-flex.wp-block-columns,
    .whatsapp-join-group-block > .are-vertically-aligned-center {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    /* עמודות - דריסה של כל האפשרויות */
    .whatsapp-join-group-block .wp-block-column,
    .whatsapp-join-group-block .wp-block-column.is-layout-flow,
    .whatsapp-join-group-block .wp-block-column-is-layout-flow,
    .whatsapp-join-group-block > .wp-block-columns > .wp-block-column {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* עמודת הטקסט (ראשונה) - תופסת את רוב המקום */
    .whatsapp-join-group-block .wp-block-column:first-child,
    .whatsapp-join-group-block > .wp-block-columns > .wp-block-column:first-child {
        flex: 1 1 auto !important;
        max-width: calc(100% - 60px) !important;
        padding-left: 10px !important;
    }
    
    /* עמודת הכפתור (שנייה) - רוחב קבוע קטן בצד שמאל */
    .whatsapp-button-column,
    .red-mail-button-column,
    .whatsapp-join-group-block .whatsapp-button-column,
    .whatsapp-join-group-block .red-mail-button-column,
    .whatsapp-join-group-block > .wp-block-columns > .whatsapp-button-column,
    .whatsapp-join-group-block > .wp-block-columns > .red-mail-button-column {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        flex: 0 0 50px !important;
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
    }
    
    .whatsapp-join-button,
    .red-mail-button {
        width: 44px !important;
        flex: 0 0 auto !important;
    }
}

@media (max-width: 768px) {
    .post-hero-banner-content {
        top: 65%;
        max-width: 95%;
        width: calc(100% - 20px);
    }
    
    .post-hero-banner-inner {
        padding: 20px;
    }
    
    .post-hero-banner-title {
        font-size: 28px;
    }
    
    .post-hero-banner-subtitle,
    .entry-content .post-hero-banner-subtitle,
    .wp-block-post-content .post-hero-banner-subtitle {
        font-size: 18px !important;
    }
    
    .post-hero-author-section {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
        width: 100%;
    }

    .post-hero-author-section .author-info {
        width: 100%;
    }
    
    .post-hero-author-section .author-avatar {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .post-hero-banner-title {
        font-size: 24px;
    }
    
    .post-hero-banner-subtitle,
    .entry-content .post-hero-banner-subtitle,
    .wp-block-post-content .post-hero-banner-subtitle {
        font-size: 17px !important;
    }
    
    .post-hero-banner-inner {
        padding: 15px;
    }
}

/* תמיכה ב-align wide ו-full */
.post-hero-banner.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* פריסה מלאה מצד לצד - דורס את ההגבלות של entry-content */
.wp-block-ttfchild-post-hero-banner.alignfull {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
}

/* וידוא שהמיכל הפנימי נשאר ממורכז גם ב-alignfull */
.wp-block-ttfchild-post-hero-banner.alignfull .post-hero-banner-content {
    left: 50%;
    transform: translateX(-50%);
}

.post-hero-banner.alignfull {
    max-width: 100%;
    width: 100%;
}

/* ================================
   Single Banner Block 
   ================================ */

/* ביטול העיצוב של מלוא רוחב המסך כשהבלוק בתוך תוכן */
.single-banner.gutenberg-block {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-bottom: 50px !important; /* מרווח לתצוגת מיכל הטקסט שמתגלש מתחת לתמונה */
    overflow: visible !important;
    box-sizing: border-box;
}

/* וודא שהלינק והמעטפת לא גולשים */
.single-banner.gutenberg-block .single-banner-link {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.single-banner.gutenberg-block .single-banner-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: visible;
}

/* התאמה למיכל הפוסט */
.entry-content .single-banner.gutenberg-block,
.wp-block-post-content .single-banner.gutenberg-block {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
}

/* כשרוצים מלוא רוחב - צריך להוסיף class מיוחד */
.single-banner.gutenberg-block.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw;
}

.single-banner.gutenberg-block.alignwide {
    width: 100%;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* התאמות למסכים קטנים */
@media (max-width: 768px) {
    /* במובייל - ביטול כל הרחבות */
    .single-banner.gutenberg-block,
    .single-banner.gutenberg-block.alignfull {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* תיקון לתצוגה בתוך מיכלים צרים */
.wp-block-column .single-banner.gutenberg-block,
.wp-block-group .single-banner.gutenberg-block {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100%;
    left: auto;
    right: auto;
}

.wp-block-column .single-banner.gutenberg-block .single-banner-link {
    width: 100%;
}

/* התאמות לנושאים שונים */
body.logged-in .single-banner.gutenberg-block {
    margin-top: 0;
}

/* דריסה מוחלטת של סגנונות עמוד הבית כשהבלוק בפוסט */
.entry-content .single-banner,
.wp-block-post-content .single-banner,
.single-post .single-banner.gutenberg-block,
.single-page .single-banner.gutenberg-block {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 !important;
    transform: none !important;
}

/* תיקון ספציפי לתמונה */
.single-banner.gutenberg-block .single-banner-image {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}




/* === video-player === */
/**
 * TTFC Video Player - עיצוב נגן וידאו
 * מנוהל על ידי TTFC Video Manager
 */

/* מיכל הוידאו */
.ttfc-video-player {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    direction: rtl;
    cursor: pointer;
}

.ttfc-video-player video,
.wp-block-video {
    cursor: pointer;
}

.ttfc-video-player video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #000;
}

/* כפתור Play/Pause במרכז */
.ttfc-video-play-button,
.wp-block-video .ttfc-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: all;
}

.ttfc-video-play-button:hover,
.wp-block-video .ttfc-video-play-button:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 0 3px rgba(222, 1, 0, 0.3);
}

/* אייקון Play (משולש) */
.ttfc-video-play-button::after,
.wp-block-video .ttfc-video-play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent #fff;
}

/* אייקון Pause (שתי פסים) */
.ttfc-video-play-button.paused::after,
.wp-block-video .ttfc-video-play-button.paused::after {
    border: none;
    width: 8px;
    height: 30px;
    background: #fff;
    transform: translate(-150%, -50%);
    box-shadow: 16px 0 0 0 #fff;
}

/* הסתר כשמשחק (יופיע שוב כשעוצרים) */
.ttfc-video-player.playing .ttfc-video-play-button,
.wp-block-video.playing .ttfc-video-play-button {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* הצג כשעוברים עם העכבר */
.ttfc-video-player:hover .ttfc-video-play-button,
.wp-block-video:hover .ttfc-video-play-button {
    opacity: 1;
}

/* אנימציה של דופק */
@keyframes ttfc-video-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(222, 1, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(222, 1, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(222, 1, 0, 0);
    }
}

/* דופק כשהוידאו מושהה */
.ttfc-video-play-button:not(.paused),
.wp-block-video .ttfc-video-play-button:not(.paused) {
    animation: ttfc-video-pulse 2s infinite;
}

/* במובייל - תמיד נראה */
@media (max-width: 768px) {
    .ttfc-video-play-button,
    .wp-block-video .ttfc-video-play-button {
        width: 70px;
        height: 70px;
    }
    
    .ttfc-video-play-button::after,
    .wp-block-video .ttfc-video-play-button::after {
        border-width: 12px 0 12px 20px;
    }
    
    /* במובייל הכפתור תמיד נראה */
    .ttfc-video-player.playing .ttfc-video-play-button,
    .wp-block-video.playing .ttfc-video-play-button {
        opacity: 0.3;
    }
    
    .ttfc-video-player.playing:active .ttfc-video-play-button,
    .wp-block-video.playing:active .ttfc-video-play-button {
        opacity: 1;
    }
}

/* וידאו מאונך (portrait) - הגבלת גובה */
.ttfc-video-player.portrait,
.wp-block-video.portrait {
    max-width: 100%;
    background: #000;
    padding: 20px 0;
    border-radius: 8px;
}

.ttfc-video-player.portrait video,
.wp-block-video.portrait video {
    max-height: 70vh;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

/* למובייל - וידאו מאונך יכול להיות יותר גבוה */
@media (max-width: 768px) {
    .ttfc-video-player.portrait video,
    .wp-block-video.portrait video {
        max-height: 85vh;
    }
}

/* טעינה */
.ttfc-video-player.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ttfc-video-spin 1s linear infinite;
}

@keyframes ttfc-video-spin {
    to {
        transform: translate(50%, -50%) rotate(360deg);
    }
}

/* התאמות לבלוק הוידאו הסטנדרטי של WordPress */
.wp-block-video {
    margin: 20px 0;
}

.wp-block-video video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #000;
    object-fit: contain;
}

/* Controls customization */
.ttfc-video-player video::-webkit-media-controls-panel,
.wp-block-video video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* Responsive */
@media (max-width: 768px) {
    .ttfc-video-player,
    .wp-block-video {
        margin: 15px 0;
    }
    
    .ttfc-video-player video,
    .wp-block-video video {
        border-radius: 0;
    }
}

/* Lazy loading */
.ttfc-video-player[data-loaded="false"] video {
    opacity: 0.3;
    pointer-events: none;
}

.ttfc-video-player[data-loaded="true"] video {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Poster fallback */
.ttfc-video-player video[poster],
.wp-block-video video[poster] {
    object-fit: cover;
}

/* כיתובי וידאו - עיצוב זהה לכיתובי תמונות */
.wp-block-video figcaption,
.wp-block-video .wp-element-caption,
.ttfc-video-player figcaption {
    font-size: 0.95rem;
    color: var(--gray-medium);
    text-align: right;
    padding-right: 20px;
    padding-left: 0;
    font-weight: 300;
    font-family: var(--font-family-accent) !important;
    margin-top: 0.5rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* סיום */




/* === maybe-interesting === */
/**
 * בלוק "אולי יעניין אותך"
 * מציג כתבות ממומנות וכתבות אחרונות לסירוגין
 */

.maybe-interesting-block {
    max-width: 750px;
    margin: 40px auto;
    padding: 0 20px;
}

.maybe-interesting-block .block-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color-jhhd, #1B365D);
    text-align: center;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color-daat, #DE0100);
}

.maybe-interesting-block .posts-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.maybe-interesting-block .posts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch; /* גובה אחיד לשני הכרטיסים */
}

/* כרטיס כתבה */
.maybe-interesting-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* מלוא גובה המיכל */
}

.maybe-interesting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* מיכל פנימי של הכרטיס */
.maybe-interesting-card .card-inner {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* קישור מוסתר */
.maybe-interesting-card .card-link-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* === סגנונות נגישות - ניווט במקלדת === */

/* כרטיס ניתן לניווט */
.maybe-interesting-card.card-navigable {
    cursor: pointer;
    position: relative;
}

/* פוקוס על כרטיס - רק בניווט מקלדת */
.maybe-interesting-card.card-navigable:focus-visible {
    outline: 3px solid var(--primary-color-jhhd, #DE0100) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.1);
}

/* הסתרת פוקוס בלחיצת עכבר */
.maybe-interesting-card.card-navigable:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* תמונה */
.maybe-interesting-card .card-image {
    width: 100%;
    padding-bottom: 66.67%; /* יחס 3:2 (גובה = 2/3 מהרוחב) */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* תוכן */
.maybe-interesting-card .card-content {
    padding: 0 20px 20px 20px; /* אפס מלמעלה - צמוד לתמונה */
    flex: 1; /* מאפשר למיכל התוכן לתפוס את כל המקום הפנוי */
    display: flex;
    flex-direction: column;
}

/* כותרת עילית */
.maybe-interesting-card .super-title-container {
    min-height: 28px;
    margin-top: 5px; /* מרווח בין התמונה לכותרת העילית */
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.maybe-interesting-card .super-title-link {
    text-decoration: none;
    display: inline-block;
    outline: none; /* הסרת קו תכלת */
    border: none; /* הסרת קו תכלת */
}

.maybe-interesting-card .super-title-link:focus {
    outline: none; /* הסרת קו תכלת גם ב-focus */
}

.maybe-interesting-card .super-title-tag {
    display: inline-block;
    background-color: var(--primary-color-jhhd, #DE0100);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.maybe-interesting-card .super-title-link:hover .super-title-tag {
    opacity: 0.85;
}

.maybe-interesting-card .card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0; /* מרווח תחתון בין הכותרת לשורת המטא */
    color: var(--secondary-color-jhhd, #1B365D);
    transition: color 0.3s ease;
}

.maybe-interesting-card:hover .card-title {
    color: var(--primary-color-daat, #DE0100);
}

.maybe-interesting-card .card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-top: auto; /* דוחף את המטא לתחתית - כל המרווח יהיה מעל */
}

.maybe-interesting-card .card-author {
    font-weight: 500;
}

.maybe-interesting-card .meta-separator {
    color: #999;
}

.maybe-interesting-card .card-date {
    color: #999;
}

/* רספונסיביות */
@media (max-width: 768px) {
    .maybe-interesting-block {
        padding: 0;
        margin: 30px auto;
    }
    
    .maybe-interesting-block .block-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .maybe-interesting-block .posts-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .maybe-interesting-card .card-image {
        padding-bottom: 66.67%; /* יחס 3:2 גם במובייל */
    }
    
    .maybe-interesting-card .card-content {
        padding: 15px;
    }
    
    .maybe-interesting-card .card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .maybe-interesting-block .block-title {
        font-size: 20px;
    }
    
    .maybe-interesting-card .card-image {
        padding-bottom: 66.67%; /* יחס 3:2 גם במסכים קטנים */
    }
    
    .maybe-interesting-card .card-title {
        font-size: 15px;
    }
    
    .maybe-interesting-card .card-meta {
        font-size: 13px;
    }
}




/* === accessibility-widget === */
/**
 * TTFC Accessibility Widget Styles
 * 
 * עיצוב ווידג'ט הנגישות - משולב במערכת העיצוב של האתר
 */

/* ========================================
   כפתור פתיחה - דסקטופ בלבד
   ======================================== */

/* מיכל הווידג'ט - מוסתר במובייל */
#ttfc-accessibility-widget {
    position: fixed;
    z-index: 999;
    bottom: 20px;
    left: 20px;
}

/* כפתור פתיחה/סגירה - סגנון עדין */
.ttfc-accessibility-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--secondary-color-jhhd);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.85;
}

/* התאמת האייקון לכפתור - האייקון הוא הכפתור כולו */
.ttfc-accessibility-toggle i {
    line-height: 1;
    font-size: 32px;
}

.ttfc-accessibility-toggle:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ttfc-accessibility-toggle:focus {
    outline: 3px solid var(--primary-color-jhhd);
    outline-offset: 2px;
    opacity: 1;
}

/* הסתרה במובייל - הכפתור יהיה בתפריט הצד */
@media (max-width: 768px) {
    #ttfc-accessibility-widget {
        display: none;
    }
}

/* ========================================
   פאנל הגדרות - דסקטופ
   ======================================== */

.ttfc-accessibility-panel {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 300px;
    max-height: 550px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: none;
    overflow-y: auto;
    border: 1px solid var(--gray-mild);
}

.ttfc-accessibility-panel.open {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* כותרת הפאנל */
.ttfc-accessibility-panel h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--secondary-color-jhhd);
    border-bottom: 2px solid var(--secondary-color-jhhd);
    padding-bottom: 8px;
    font-family: var(--font-family-accent);
    font-weight: 700;
}

/* פקד בודד */
.ttfc-accessibility-control {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-mild);
}

.ttfc-accessibility-control:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ttfc-accessibility-control > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-dark);
    font-size: 14px;
    font-family: var(--font-family-accent);
}

/* ========================================
   כפתורי פעולה
   ======================================== */

.ttfc-control-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ttfc-control-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 10px;
    background-color: var(--gray-soft);
    border: 1px solid var(--gray-mild);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    text-align: center;
    color: var(--gray-dark);
    font-family: var(--font-family-accent);
    font-weight: 500;
}

.ttfc-control-btn:hover {
    background-color: var(--gray-mild);
    border-color: var(--secondary-color-jhhd);
}

.ttfc-control-btn.active {
    background-color: var(--secondary-color-jhhd);
    color: #fff;
    border-color: var(--secondary-color-jhhd);
}

.ttfc-control-btn:focus {
    outline: 2px solid var(--primary-color-jhhd);
    outline-offset: 1px;
}

/* ========================================
   מתג on/off
   ======================================== */

.ttfc-toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
}

.ttfc-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ttfc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-mild);
    transition: 0.3s;
    border-radius: 24px;
}

.ttfc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.ttfc-toggle-switch input:checked + .ttfc-toggle-slider {
    background-color: var(--secondary-color-jhhd);
}

.ttfc-toggle-switch input:checked + .ttfc-toggle-slider:before {
    transform: translateX(22px);
}

.ttfc-toggle-switch:focus-within {
    outline: 2px solid var(--primary-color-jhhd);
    outline-offset: 2px;
    border-radius: 24px;
}

/* ========================================
   כפתור איפוס
   ======================================== */

.ttfc-reset-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--gray-medium);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.2s ease;
    font-family: var(--font-family-accent);
}

.ttfc-reset-btn:hover {
    background-color: var(--gray-dark);
}

.ttfc-reset-btn:focus {
    outline: 2px solid var(--primary-color-jhhd);
    outline-offset: 2px;
}

/* ========================================
   סגנונות למצבי נגישות שונים
   ======================================== */

body.ttfc-high-contrast {
    filter: contrast(1.5);
}

body.ttfc-inverted-colors {
    filter: invert(1) hue-rotate(180deg);
}

body.ttfc-inverted-colors img,
body.ttfc-inverted-colors video {
    filter: invert(1) hue-rotate(180deg);
}

body.ttfc-monochrome {
    filter: grayscale(1);
}

/* ========================================
   מצב עיוורי צבעים
   מגביר הבדלים בין צבעים ומשפר ניגודיות
   ======================================== */
body.ttfc-colorblind-mode {
    filter: saturate(2) contrast(1.1);
}

body.ttfc-colorblind-mode img,
body.ttfc-colorblind-mode video {
    filter: saturate(1.5);
}

/* ========================================
   החרגת ווידג'ט הנגישות מהפילטרים
   ======================================== */

/* מבטל פילטרים על הווידג'ט עצמו כדי שיישאר נראה */
body.ttfc-high-contrast #ttfc-accessibility-widget,
body.ttfc-inverted-colors #ttfc-accessibility-widget,
body.ttfc-monochrome #ttfc-accessibility-widget,
body.ttfc-colorblind-mode #ttfc-accessibility-widget {
    filter: none !important;
}

/* שמירת צבעי הכפתור המקוריים */
body.ttfc-inverted-colors .ttfc-accessibility-toggle,
body.ttfc-monochrome .ttfc-accessibility-toggle {
    background-color: var(--secondary-color-jhhd) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* שמירת הפאנל קריא */
body.ttfc-high-contrast .ttfc-accessibility-panel,
body.ttfc-inverted-colors .ttfc-accessibility-panel,
body.ttfc-monochrome .ttfc-accessibility-panel,
body.ttfc-colorblind-mode .ttfc-accessibility-panel {
    filter: none !important;
    background-color: #fff !important;
    border: 2px solid var(--secondary-color-jhhd) !important;
}

/* שמירת טקסט הפאנל קריא */
body.ttfc-inverted-colors .ttfc-accessibility-panel *,
body.ttfc-monochrome .ttfc-accessibility-panel * {
    color: inherit !important;
}

/* החרגה גם במובייל */
body.ttfc-high-contrast .mobile-side-nav .ttfc-mobile-accessibility-panel,
body.ttfc-inverted-colors .mobile-side-nav .ttfc-mobile-accessibility-panel,
body.ttfc-monochrome .mobile-side-nav .ttfc-mobile-accessibility-panel,
body.ttfc-colorblind-mode .mobile-side-nav .ttfc-mobile-accessibility-panel {
    filter: none !important;
}

body.ttfc-large-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M2 2 L2 28 L10 20 L14 30 L18 28 L14 18 L22 18 Z" fill="black"/></svg>') 4 4, auto;
}

body.ttfc-readable-font,
body.ttfc-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

body.ttfc-highlight-links a {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    background-color: rgba(27, 54, 93, 0.08) !important;
    padding: 2px 4px !important;
}

/* הדגשת כותרות */
body.ttfc-highlight-headings h1,
body.ttfc-highlight-headings h2,
body.ttfc-highlight-headings h3,
body.ttfc-highlight-headings h4,
body.ttfc-highlight-headings h5,
body.ttfc-highlight-headings h6 {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 4px !important;
    text-decoration-color: var(--secondary-color-jhhd) !important;
}

body.ttfc-no-animations *,
body.ttfc-no-animations *::before,
body.ttfc-no-animations *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

/* ========================================
   גדלי טקסט - רק פסקאות בתוכן
   ======================================== */

/* הגדלת טקסט - 80% */
body.ttfc-text-size-80 .entry-content p:not(.post-hero-banner-title):not(.post-hero-banner-subtitle):not(.author-name):not(.post-date) {
    font-size: 14.4px !important;
}

/* הגדלת טקסט - 120% */
body.ttfc-text-size-120 .entry-content p:not(.post-hero-banner-title):not(.post-hero-banner-subtitle):not(.author-name):not(.post-date) {
    font-size: 21.6px !important;
}

/* הגדלת טקסט - 140% */
body.ttfc-text-size-140 .entry-content p:not(.post-hero-banner-title):not(.post-hero-banner-subtitle):not(.author-name):not(.post-date) {
    font-size: 25.2px !important;
}

/* הגדלת טקסט - 160% */
body.ttfc-text-size-160 .entry-content p:not(.post-hero-banner-title):not(.post-hero-banner-subtitle):not(.author-name):not(.post-date) {
    font-size: 28.8px !important;
}

/* ========================================
   כפתור נגישות בתפריט המובייל
   ======================================== */

/* במובייל - הכפתור מופיע בתפריט הצד */
.mobile-side-nav .accessibility-menu-item {
    display: block;
    width: 100%;
    text-align: right;
    padding: 12px 0;
    color: var(--secondary-color-jhhd);
    font-size: 1rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, padding-right 0.2s ease;
    font-family: var(--font-family-accent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-side-nav .accessibility-menu-item:hover {
    color: var(--secondary-color-jhhd);
    padding-right: 5px;
}

.mobile-side-nav .accessibility-menu-item i.icon {
    margin-left: 8px;
    font-size: 1.1em;
}

/* פאנל נגישות במובייל - מוצג בתוך התפריט */
.mobile-side-nav .ttfc-mobile-accessibility-panel {
    display: none;
    background-color: rgba(27, 54, 93, 0.05);
    padding: 15px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid var(--gray-mild);
}

.mobile-side-nav .ttfc-mobile-accessibility-panel.open {
    display: block;
}

/* התאמות לפאנל במובייל */
.mobile-side-nav .ttfc-accessibility-control {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.mobile-side-nav .ttfc-control-buttons {
    gap: 5px;
}

.mobile-side-nav .ttfc-control-btn {
    min-width: 60px;
    padding: 6px 8px;
    font-size: 12px;
}

/* ========================================
   קו מפריד ולחצן משוב נגישות
   ======================================== */

.ttfc-accessibility-divider {
    border: none;
    height: 1px;
    background-color: var(--gray-mild);
    margin: 15px 0;
}

/* ========================================
   לחצן וסעיף קיצורי מקלדת
   ======================================== */

.ttfc-shortcuts-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background-color: var(--gray-soft);
    color: var(--gray-dark);
    border: 1px solid var(--gray-mild);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-family: var(--font-family-accent);
}

.ttfc-shortcuts-toggle-btn:hover {
    background-color: var(--gray-mild);
    border-color: var(--secondary-color-jhhd);
}

.ttfc-shortcuts-toggle-btn:focus {
    outline: 2px solid var(--primary-color-jhhd);
    outline-offset: 2px;
}

.ttfc-shortcuts-toggle-btn i {
    font-size: 14px;
}

/* רשימת קיצורי מקלדת */
.ttfc-shortcuts-list {
    background-color: var(--gray-soft);
    border-radius: 4px;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid var(--gray-mild);
}

.ttfc-shortcuts-list .shortcuts-list-header {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-mild);
    font-size: 13px;
    color: var(--secondary-color-jhhd);
}

.ttfc-shortcuts-list ul {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
}

.ttfc-shortcuts-list li {
    padding: 6px 0;
    font-size: 12px;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ttfc-shortcuts-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ttfc-shortcuts-list kbd {
    display: inline-block;
    padding: 3px 6px;
    font-size: 11px;
    font-family: monospace;
    color: var(--gray-dark);
    background-color: #fff;
    border: 1px solid var(--gray-mild);
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.ttfc-shortcuts-list .shortcuts-list-note {
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--gray-mild);
    font-size: 11px;
    line-height: 1.6;
    color: var(--gray-dark);
}

.ttfc-shortcuts-list .shortcuts-list-note strong {
    color: var(--secondary-color-jhhd);
}

/* קיצורי מקלדת במובייל */
.mobile-side-nav .ttfc-shortcuts-toggle-btn {
    margin-top: 10px;
}

.mobile-side-nav .ttfc-shortcuts-list {
    margin-top: 8px;
}

.mobile-side-nav .ttfc-shortcuts-list li {
    font-size: 11px;
}

.ttfc-feedback-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background-color: var(--secondary-color-jhhd);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: var(--font-family-accent);
}

.ttfc-feedback-btn:hover {
    background-color: var(--primary-color-jhhd);
    color: #fff;
    transform: translateY(-1px);
}

.ttfc-feedback-btn:focus {
    outline: 2px solid var(--primary-color-jhhd);
    outline-offset: 2px;
    color: #fff;
}

.ttfc-feedback-btn i {
    font-size: 14px;
}

/* לחצן משוב במובייל */
.mobile-side-nav .ttfc-feedback-btn {
    margin-top: 10px;
}



