/*!
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.1.65
*/

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

/* === fonts === */
/* ============================================
   FONTS DEFINITIONS
   ============================================ */

/* 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-daat: #273B6B; /* צבע ראשי מתוג דעת */
    --secondary-color-daat: #7183C0; /*  צבע משנה מתוג דעת */
    --secondary-color-daat-bright: #F0F0F3; /*  צבע משני בהיר מותג דעת */
    
    /* צבעים ראשיים - פלטה מעודכנת בסגנון מגזין יוקרתי */
    --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: 'TalentFS', 'Noto Serif Hebrew', 'Frank Ruhl Libre', serif;
    --font-family-secondary: 'Pompei FS', 'Noto Sans Hebrew', 'Heebo', sans-serif;
    --font-family-accent: 'Discovery Fs', 'Noto Serif Hebrew', serif;
    --font-family-serif: 'Noto Serif Hebrew', 'Frank Ruhl Libre', serif;
    --font-family-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: var(--primary-color);
  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: 1rem;
  font-weight: 200;
}
  
  /**
   * === סגנונות הדגשה בטקסט ===
   * שני סגנונות הדגשה: טקסט מודגש רגיל וטקסט ממורקר עם רקע
   */
  
  /* סגנון טקסט מודגש (bold) */
strong, b, .has-strong-font-weight, .has-bold-font-weight {
  font-weight: 400;
  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;
  }
  


/* === header === */
/**
 * === כותרת עליונה ===
 * עיצוב אזור הכותרת העליונה הכולל לוגו, שם האתר ותפריט ניווט
 * בסגנון מינימליסטי מודרני 
 */
 
  /* ברירת מחדל: כותרת צמודה לקצוות בכל העמודים */
  header, 
  .site-header, 
  #masthead {
    background-color: var(--secondary-color-daat-bright);
    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.home header,
  body.home .site-header,
  body.home #masthead {
    top: 10px;
    width: calc(100% - 40px);
    margin: 10px 20px 0 20px;
  }
  
  body.home .wp-site-blocks > header.site-header,
  body.home .wp-site-blocks > .site-header,
  body.home .wp-site-blocks > #masthead,
  body.home .wp-block-template-part header.site-header,
  body.home .wp-block-template-part .site-header,
  body.home .alignfull > header.site-header,
  body.home header.site-header.alignfull {
    margin-left: 20px !important;
    margin-right: 20px !important;
    width: calc(100% - 40px) !important;
  }

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

/* מיכל הכותרת */
.header-container,
.site-header > div,
#masthead > div {
  display: grid;
  grid-template-columns: 25% 55% 20%;
  height: 53px;
  padding: 0 20px;
  max-width: 4400px;
  margin: 0 auto;
  width: 100%;
}

/**
* === לוגו ותיאור האתר ===
*/
.logo-container,
.site-branding {
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 0;
  margin-right: 0;
  min-width: 180px;
  order: -1;
  justify-content: flex-start;
  overflow: hidden;
}

.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; /* מבטל את גבולות האזור הלחיץ */
}

/* ביטול גבולות גם בעת לחיצה/פוקוס על הלוגו */
.logo-container > a:focus,
.logo-container > a:focus-visible {
  outline: none;
}

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

/**
 * === החלפת לוגו לפי עמוד ===
 */
/* ברירת מחדל: הסתרת לוגו העמודים האחרים */
.logo-other-pages {
  display: none;
}

/* בעמוד הבית: הצגת לוגו הבית */
body.home .logo-home {
  display: block;
}

body.home .logo-other-pages {
  display: none;
}

/* בשאר העמודים: הצגת לוגו העמודים האחרים */
body:not(.home) .logo-home {
  display: none;
}

body:not(.home) .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: relative;
 }
 
 /* התאמת הסגנון לקוד המבני החדש */
 .menu-items-list {
   display: flex;
   list-style: none;
   margin: 0;
   padding: 0;
   height: 100%;
   align-items: center;
   justify-content: center;
   width: 100%;
 }
 
 .menu-item {
   margin: 0 3px;
   position: relative;
   height: 100%;
   display: flex;
   align-items: center;
 }
 
 .menu-item a {
   font-weight: 500;
   font-size: 0.95rem;
   padding: 0 12px;
   color: var(--primary-color);
   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(--primary-color-daat);
 }

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

 /* ביטול גבולות גם בעת לחיצה/פוקוס על כפתור החיפוש */
 .search-btn:focus,
 .search-btn:focus-visible {
   outline: none;
 }
 
 .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;
}

 /* צבע אייקון וכפתור החיפוש בעמוד הבית בלבד */
 body.home .search-btn {
   color: var(--primary-color-daat) !important;
 }
 body.home .search-icon {
   background-color: var(--primary-color-daat) !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(--primary-color-daat);
 }
 
 .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: none;
 }
 
 .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;
 }
 
 /**
  * === עיצוב נגטיבי לכל העמודים מלבד עמוד הבית ===
  */
 body:not(.home) .site-header {
   background-color: var(--primary-color-daat) !important;
   border-color: rgba(255, 255, 255, 0.2) !important;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
 }
 
 /* טקסט בהיר בעיצוב הנגטיבי */
 body:not(.home) .site-title,
 body:not(.home) .site-description,
 body:not(.home) .menu-item a,
 body:not(.home) .search-btn {
   color: #ffffff !important;
 }
 
 body:not(.home) .site-description {
   color: rgba(255, 255, 255, 0.7) !important;
 }
 
 /* אייקון חיפוש בהיר בעמודים שאינם עמוד הבית */
body:not(.home) .search-icon {
  background-color: #ffffff !important;
}
 
 /* קו תחתון בהיר בתפריט בעת ריחוף */
 body:not(.home) .menu-item a::after {
   background-color: #ffffff !important;
 }
 
 body:not(.home) .menu-item a:hover {
   color: rgba(255, 255, 255, 0.8) !important;
 }

 /* התאמות למסכים קטנים - מעודכן */
@media (max-width: 768px) {
  /* ברירת מחדל במובייל: כותרת צמודה */
  header,
  .site-header,
  #masthead {
    top: 0;
    width: 100%;
    margin: 0;
  }
  
  /* רק בעמוד הבית במובייל: מרווחים */
  body.home header,
  body.home .site-header,
  body.home #masthead {
    top: 10px;
    width: calc(100% - 20px);
    margin: 10px 10px 0 10px;
  }
  
  body.home .wp-site-blocks > header.site-header,
  body.home .wp-site-blocks > .site-header,
  body.home .wp-site-blocks > #masthead,
  body.home .wp-block-template-part header.site-header,
  body.home .wp-block-template-part .site-header,
  body.home .alignfull > header.site-header,
  body.home header.site-header.alignfull {
    margin-left: 10px !important;
    margin-right: 10px !important;
    width: calc(100% - 20px) !important;
  }
  
  /* מבנה גריד מעודכן */
  .header-container,
  .site-header > div,
  #masthead > div {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 10px;
    height: 42px;
  }
   
   /* לוגו במרכז */
   .logo-container,
   .site-branding {
     grid-column: 2;
     justify-content: center;
     align-items: center;
     max-width: 100%;
     overflow: visible;
     height: 100%;
   }
   
   /* הסתרת תפריט הניווט העליון במובייל */
   .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-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;
   }
  
  /* עיצוב נגטיבי למובייל בכל העמודים מלבד עמוד הבית */
  body:not(.home) .site-header {
    background-color: var(--primary-color-daat) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
  }
  
  /* אייקון חיפוש במובייל בעמודים שאינם עמוד הבית */
  body:not(.home) .search-icon {
    background-color: #ffffff !important;
  }
  
  body:not(.home) .search-btn {
    color: #ffffff !important;
  }

  /* צבע כפתור פתיחת תפריט הצד במובייל: בית מול שאר העמודים */
  body.home .mobile-nav-toggle {
    color: var(--primary-color-daat) !important;
  }
  body:not(.home) .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;
  }
}
 


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

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

/* עיצוב לטקסט חיפוש */
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  width: auto;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0 12px;
  transition: color 0.2s ease;
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-family-accent) !important;
}

.search-btn .fa-search {
  margin-right: 8px;
  font-size: 14px;
}

.search-btn:hover {
  color: var(--secondary-color);
}

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

/* עיצוב תיבת החיפוש המורחבת */
.search-form-container {
  position: fixed;
  top: 53px;
  /* ברירת מחדל: צמוד לכותרת ללא מרווח */
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--white);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 101;
  border: 1px solid var(--gray-mild);
  border-radius: 0;
}

/* בעמוד הבית: התאמה למרווח הכותרת */
body.home .search-form-container {
  top: 63px;
  /* מותאם לגובה הכותרת עם מרווח (53px + 10px margin) */
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
}

/* מסתיר את האלמנט בלי להשפיע על קוראי מסך */
[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 #000000;
  /* קו תחתון שחור */
  border-radius: 0;
  background-color: var(--white);
  color: var(--text-color);
  font-size: 1rem;
  direction: rtl;
  transition: border-bottom-color 0.2s ease;
  font-family: var(--font-family-accent) !important;
}

.search-field:focus {
  outline: none;
  border-bottom-color: #000000;
  /* שמירה על קו תחתון שחור גם בפוקוס */
  box-shadow: none;
}

.search-submit {
  left: 15px;
  background: none;
  border: none;
  color: #000000;
  /* צבע שחור לאיקון */
  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: var(--secondary-color);
}

/* כאשר טופס החיפוש פתוח */
.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);
  outline-offset: 2px;
}

/**
 * === עיצוב נגטיבי לחיפוש בכל העמודים מלבד עמוד הבית ===
 */
body:not(.home) .search-form-container {
  background-color: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

body:not(.home) .search-field {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

body:not(.home) .search-field::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

body:not(.home) .search-field:focus {
  border-bottom-color: #ffffff !important;
}

body:not(.home) .search-submit {
  color: #ffffff !important;
}

/* אייקון חיפוש בעמודים שאינם עמוד הבית - בתוך טופס החיפוש */
body:not(.home) .search-submit .search-icon {
  background-color: #ffffff !important;
}

body:not(.home) .search-submit:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* התאמות למסכים קטנים */
@media (max-width: 768px) {

  /* מבנה חיפוש מותאם למובייל */
  .search-form-container {
    top: 42px;
    /* ברירת מחדל: צמוד לכותרת במובייל */
    padding: 12px 10px;
  }

  /* בעמוד הבית במובייל: התאמה למרווח */
  body.home .search-form-container {
    top: 52px;
    /* מותאם לגובה הכותרת עם מרווח במובייל (42px + 10px margin) */
  }

  .search-field {
    padding: 10px 35px 10px 35px;
    /* הוספת מקום לאיקון חיפוש בשני הצדדים */
    font-size: 0.9rem;
    border: none;
    border-bottom: 1px solid #000000;
    /* קו תחתון שחור גם במובייל */
  }

  /* הסתרת טקסט החיפוש במסכים קטנים */
  .search-text {
    display: none;
  }

  .search-btn {
    padding: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color) !important;
  }

  .search-btn .fa-search {
    margin-right: 0;
  }

  /* תיקון מיקום כפתור החיפוש */
  .middle-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* כפתורי סגירה והגשה במובייל */
  .search-submit,
  .search-close {
    font-size: 0.9rem;
  }

  /* וידוא שכפתור הסגירה נשאר בצד ימין גם במובייל */
  .search-close {
    right: 12px;
  }
}


/* === footer === */
/**
 * === פוטר מינימליסטי ===
 * עיצוב מינימליסטי לכותרת התחתונה
 */

 .site-footer {
  background-color: var(--secondary-color-daat-bright);
  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-daat);
  border-color: var(--primary-color-daat);
}

.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-daat);
}

.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: 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;
}

.footer-newsletter input:focus {
  outline: none;
}

/* הרשמה לעדכונים - בסגנון האייקונים החברתיים */
.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-daat); /* שינוי צבע טקסט בהרחפה - כמו באייקונים */
  border-color: var(--primary-color-daat); /* שינוי צבע גבול בהרחפה - כמו באייקונים */
  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-daat-bright);
    color: var(--primary-color-daat);
    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(--primary-color-daat);
    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(--primary-color-daat);
    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-daat);
    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;
    }
}



/* === homepage-styles === */
/**
 * === עיצוב עמוד הבית === 
 * ייבוא של כל בלוקי עמוד הבית
 */

/* משתנים גלובליים צריכים להיות מוגדרים לפני הייבוא */
:root {
    /* צבעים */
    --primary-color-daat: #273B6B; /* צבע ראשי מתוג דעת */
    --secondary-color-daat: #7183C0; /*  צבע משנה מתוג דעת */
    --secondary-color-daat-bright: #F0F0F3; /*  צבע משני בהיר מותג דעת */

    --primary-color: #333333;
    --secondary-color: #1274ac;
    --secondary-color-dark: #005f8c;
    --white: #ffffff;
    --gray-soft: #f7f7f7;
    --gray-mild: #e0e0e0;
    --gray-medium: #777777;
    --gray-dark: #444444;
    
    /* מרווחים */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* צללים */
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    
    /* מעברים */
    --transition-default: all 0.3s ease;
    
    /* מרווחים בין עמודות במיכלים */
    --column-gap: 10px;
}

/* ייבוא סגנונות משותפים ובלוקים */
/* === Imported from: homepage-blocks/_homepage-common.css === */
/**
 * === סגנונות משותפים לכל בלוקי עמוד הבית ===
 */

/* ================================
   === איפוס והגדרות בסיסיות ===
   ================================ */

.homepage-template {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.section-container {
  width: 100%;
  margin-bottom: var(--space-lg);
  padding: 0 5%;
  box-sizing: border-box;
}



/* תיקון גלישה במובייל */
@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
  }

  .homepage-template,
  .section-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* מניעת גלישה של כל בלוקי עמוד הבית */
  [class*="-wrapper"],
  [class*="-section"],
  [class*="-container"] {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

.homepage-section-divider {
  margin: var(--space-xl) auto;
  width: 100%;
  border-top: 1px solid var(--gray-mild);
  opacity: 0.7;
}

.section-title {
  font-family: 'Noto Sans Hebrew', 'Heebo', sans-serif;
  font-size: 1.8rem;
  color: var(--primary-color-daat);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  right: -10px;
}

.wp-block-group .section-title:before {
  content: "";
  position: relative;
  top: 20px;
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin-left: 15px;

  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCEtLSBHZW5lcmF0ZWQgYnkgUGl4ZWxtYXRvciBQcm8gMy42LjEwIC0tPgo8c3ZnIHdpZHRoPSIyNjQiIGhlaWdodD0iMjY0IiB2aWV3Qm94PSIwIDAgMjY0IDI2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGlkPSJQYXRoIiBmaWxsPSIjMjczYjZiIiBzdHJva2U9Im5vbmUiIGQ9Ik0gMjEuMTQwMDE1IDIzMy41NTk5OTggTCA5LjE5MDAwMiAyNTEgTCA4NSAyNTEgQyA4OS40NzAwOTMgMjUxLjAwMDk3NyA5My42NTMwMTUgMjQ4Ljc5NzI0MSA5Ni4xNzk5OTMgMjQ1LjEwOTk4NSBMIDEyNy4yNSAxOTkuNjcwMDQ0IEwgMTU1LjE3OTk5MyAxNTguODI5OTU2IEwgMjQyLjQwMDAyNCAzMS4yODk5NzggTCAyNTQuNDAwMDI0IDEzLjgwOTk5OCBMIDE3OSAxMy44MDk5OTggQyAxNzQuMjUyMTM2IDEzLjgwNzYxNyAxNjkuODA5NTcgMTYuMTUwNTEzIDE2Ny4xMzAwMDUgMjAuMDcwMDA3IFoiLz4KICAgIDxwYXRoIGlkPSJwYXRoMSIgZmlsbD0iIzI3M2I2YiIgc3Ryb2tlPSJub25lIiBkPSJNIC00OTUuODYwMDE2IDIyNi41NTk5OTggTCAtNTA3LjgwOTk5OCAyNDQgTCAtNDMyIDI0NCBDIC00MjcuNTI5OTM4IDI0NC4wMDA5NzcgLTQyMy4zNDY5ODUgMjQxLjc5NzI0MSAtNDIwLjgyMDAwNyAyMzguMTA5OTg1IEwgLTM4OS43NSAxOTIuNjcwMDQ0IEwgLTM2MS44MjAwMDcgMTUxLjgyOTk1NiBMIC0yNzQuNjAwMDA2IDI0LjI4OTk3OCBMIC0yNjIuNjAwMDA2IDYuODA5OTk4IEwgLTMzOCA2LjgwOTk5OCBDIC0zNDIuNzQ3ODY0IDYuODA3NjE3IC0zNDcuMTkwNDYgOS4xNTA1MTMgLTM0OS44Njk5OTUgMTMuMDcwMDA3IFoiLz4KICAgIDxwYXRoIGlkPSJwYXRoMiIgZmlsbD0iIzI3M2I2YiIgc3Ryb2tlPSJub25lIiBkPSJNIC0zODAuODU5OTg1IDIyNi41NTk5OTggTCAtMzkyLjgwOTk5OCAyNDQgTCAtMzE3IDI0NCBDIC0zMTIuNTI5OTM4IDI0NC4wMDA5NzcgLTMwOC4zNDY5ODUgMjQxLjc5NzI0MSAtMzA1LjgyMDAwNyAyMzguMTA5OTg1IEwgLTI3NC43NSAxOTIuNjcwMDQ0IEwgLTI0Ni44MjAwMDcgMTUxLjgyOTk1NiBMIC0xNTkuNjAwMDA2IDI0LjI4OTk3OCBMIC0xNDcuNjAwMDA2IDYuODA5OTk4IEwgLTIyMyA2LjgwOTk5OCBDIC0yMjcuNzQ3ODY0IDYuODA3NjE3IC0yMzIuMTkwNDYgOS4xNTA1MTMgLTIzNC44Njk5OTUgMTMuMDcwMDA3IFoiLz4KICAgIDxwYXRoIGlkPSJwYXRoMyIgZmlsbD0iIzI3M2I2YiIgc3Ryb2tlPSJub25lIiBkPSJNIDEzNi40Nzk5OCA3MDcuNTMwMDI5IEwgMTE3LjA5OTk3NiA2NzkuMjAwMDEyIEwgOTIuNzUgNjQzLjU5OTk3NiBMIDExNy4wOTk5NzYgNjA4IEwgMTM2LjQ3OTk4IDU3OS42Njk5ODMgTCAxOTcgNDkxLjEzMDAwNSBMIDIwNS4zMjAwMDcgNDc5IEwgMTUzIDQ3OSBDIDE0OS43MDk3MTcgNDc5LjAwNDYzOSAxNDYuNjMyMjYzIDQ4MC42Mjc1MDIgMTQ0Ljc3MDAyIDQ4My4zNDAwMjcgTCA0My40ODk5OSA2MzEuNDg5OTkgTCAzNS4yMTk5NzEgNjQzLjU3MDAwNyBMIDM1LjIxOTk3MSA2NDMuNTcwMDA3IEwgMzUuMjE5OTcxIDY0My41NzAwMDcgTCAzNS4yMTk5NzEgNjQzLjU3MDAwNyBMIDM1LjIxOTk3MSA2NDMuNTcwMDA3IEwgNDMuNDg5OTkgNjU1LjY1MDAyNCBMIDE0NC44MDk5OTggODAzLjg0OTk3NiBDIDE0Ni42NzIzMDIgODA2LjU2MjUgMTQ5Ljc0OTc1NiA4MDguMTg1MzY0IDE1My4wMzk5NzggODA4LjE5MDAwMiBMIDIwNS4zMjAwMDcgODA4LjE5MDAwMiBMIDE5NyA3OTYuMDU5OTk4IFoiLz4KICAgIDxwYXRoIGlkPSJwYXRoNCIgZmlsbD0iIzI3M2I2YiIgc3Ryb2tlPSJub25lIiBkPSJNIC0zMTMuMDc5OTg3IDc0MC4wOTAwMjcgTCAtMzEzLjA3OTk4NyA2ODQuMjM5OTkgTCAtMzEzLjA3OTk4NyA2NzguMzQwMDI3IEwgLTMxNy45NTAwMTIgNjc1LjAyMDAyIEwgLTMzMC41ODk5OTYgNjY2LjM2OTk5NSBMIC0zMTcuOTUwMDEyIDY1Ny43Mjk5OCBMIC0zMTMuMDc5OTg3IDY1NC40MDAwMjQgTCAtMzEzLjA3OTk4NyA2NDguNTEwMDEgTCAtMzEzLjA3OTk4NyA1OTIuNjU5OTczIEwgLTMxMy4wNzk5ODcgNTcxLjQ3OTk4IEwgLTMzMC41NTk5OTggNTgzLjQyOTk5MyBMIC0zOTEuMjA5OTkxIDYyNC45MDk5NzMgTCAtMzkxLjIwOTk5MSA2MjQuOTA5OTczIEwgLTQ1MS44Mjk5ODcgNjY2LjM2OTk5NSBMIC0zMzAuNTU5OTk4IDc0OS4zMDk5OTggTCAtMzEzLjA3OTk4NyA3NjEuMjcwMDIgTCAtMzEzLjA3OTk4NyA3NDAuMDkwMDI3IFoiLz4KICAgIDxwYXRoIGlkPSJwYXRoNSIgZmlsbD0iIzcxODFiZiIgc3Ryb2tlPSJub25lIiBkPSJNIC0yNzcuMTkwMDAyIDY2Ni4zNjk5OTUgQyAtMjc3LjE5MDAwMiA2ODYuNjk5NTg1IC0yOTMuNjcwNDEgNzAzLjE3OTk5MyAtMzE0IDcwMy4xNzk5OTMgQyAtMzM0LjMyOTU5IDcwMy4xNzk5OTMgLTM1MC44MDk5OTggNjg2LjY5OTU4NSAtMzUwLjgwOTk5OCA2NjYuMzY5OTk1IEMgLTM1MC44MDk5OTggNjQ2LjA0MDQwNSAtMzM0LjMyOTU5IDYyOS41NTk5OTggLTMxNCA2MjkuNTU5OTk4IEMgLTI5My42NzA0MSA2MjkuNTU5OTk4IC0yNzcuMTkwMDAyIDY0Ni4wNDA0MDUgLTI3Ny4xOTAwMDIgNjY2LjM2OTk5NSBaIi8+CiAgICA8cGF0aCBpZD0icGF0aDYiIGZpbGw9IiM3MTgxYmYiIHN0cm9rZT0ibm9uZSIgZD0iTSAxMzguODA5OTk4IDExNS40MjAwNDQgQyAxMzguODA5OTk4IDEzNS43NDk2MzQgMTIyLjMyOTU5IDE1Mi4yMjk5OCAxMDIgMTUyLjIyOTk4IEMgODEuNjcwNDEgMTUyLjIyOTk4IDY1LjE5MDAwMiAxMzUuNzQ5NjM0IDY1LjE5MDAwMiAxMTUuNDIwMDQ0IEMgNjUuMTkwMDAyIDk1LjA5MDM5MyA4MS42NzA0MSA3OC42MDk5ODUgMTAyIDc4LjYwOTk4NSBDIDEyMi4zMjk1OSA3OC42MDk5ODUgMTM4LjgwOTk5OCA5NS4wOTAzOTMgMTM4LjgwOTk5OCAxMTUuNDIwMDQ0IFoiLz4KPC9zdmc+Cg==');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  right: 8px;
}

/* =======================================
   === עקיפת מגבלות רוחב בעמוד הבית ===
   ======================================= */

/* הסרת מגבלת רוחב מקסימלית מכל האלמנטים בעמוד הבית */
body.home,
body.home .wp-site-blocks,
body.home #content,
body.home .site-content,
body.home .entry-content>*,
body.home .wp-block-group.alignwide,
body.home main>.wp-block-group,
body.home .wp-block-post-content>*,
body.home .wp-block-group>*,
body.home main>*,
body.home .section-container>* {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* וידוא שה-wrapper הראשי לא מגביל */
body.home .wp-site-blocks {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* התפרסות מלאה של התוכן */
body.home {
  width: 100vw !important;
  overflow-x: hidden !important;
}

/* וידוא שהכותרת צפה ולא דוחפת את התוכן - תוך שמירת ריווח 20px בצדדים */
body.home .site-header,
body.home header.wp-block-template-part {
  position: fixed !important;
  top: 10px !important;
  left: auto !important;
  right: auto !important;
  z-index: 999999 !important;
  /* וידוא שהכותרת מעל הכל */
  width: calc(100% - 40px) !important;
  margin: 10px 20px 0 20px !important;
}

/* התאמה כשיש admin bar */
body.admin-bar.home .site-header,
body.admin-bar.home header.wp-block-template-part {
  top: 42px !important;
  /* 32px admin bar + 10px מרווח ההדר */
}

/* וידוא שהתוכן מתחיל מהתחלה ללא מרווח */
body.home .wp-site-blocks>*:first-child:not(header) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .wp-site-blocks,
body.home #content,
body.home .site-content {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* הגדרת מרווחי שוליים אחידים לכל תוכן האתר */
body.home .site-content,
body.home .homepage-template {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  /* הוספת איפוס padding עליון */
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  /* הוספת איפוס margin עליון */
}

/* החרגת הכותרת העליונה והתחתונה: שימור ריווח בהדר, רוחב מלא לפוטר */
body.home header.wp-block-template-part,
body.home .wp-site-blocks>header {
  max-width: 100% !important;
  width: calc(100% - 40px) !important;
  margin-left: 20px !important;
  margin-right: 20px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: auto !important;
  right: auto !important;
  position: fixed !important;
  top: 10px !important;
  box-sizing: border-box !important;
}

body.home footer.wp-block-template-part,
body.home .wp-site-blocks>footer {
  max-width: 100% !important;
  width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* מניעת גלישה אופקית */
body.home {
  overflow-x: hidden !important;
}

/* ======================
   === נגישות ===
   ====================== */

.article-card a:focus,
.opinion-card a:focus,
.category-card a:focus,
.most-read-article a:focus,
.read-more-button a:focus,
.ad-button:focus {
  outline: 2px solid var(--secondary-color-daat);
  outline-offset: 2px;
}

/* קונטרסט גבוה למצב נגישות */
@media (forced-colors: active) {

  .article-card,
  .opinion-card,
  .category-card,
  .most-read-article {
    border: 1px solid CanvasText;
  }
}

/* ========================
   === התאמות למובייל ===
   ======================== */

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

  /* הסרת כל המרווחים מהתוכן העליון בעמוד הבית */
  body.home .site-content,
  body.home .wp-site-blocks,
  body.home .entry-content,
  body.home main,
  body.home .homepage-template {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* הקטנת גדלי טקסט */
  .section-title {
    font-size: 1.5rem;
    right: 10px;
    content: " ";
  }

  /* צמצום מרווחים */
  .homepage-section-divider {
    margin: var(--space-md) auto;
  }

  /* התאמת article-meta: הקטנת גופן אוטומטית כשאין מקום */
  .article-meta {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }

  .article-meta .author,
  .article-meta .date,
  .article-meta .separator {
    font-size: inherit !important;
  }

  /* הפיכת כרטיסים לקונטיינרים כדי להקטין רק כשהם צרים */
  body.home .article-card,
  body.home .article-card-square,
  body.home .grid-item,
  body.home .post-card,
  body.home .vertical-posts-column {
    container-type: inline-size;
  }

  /* הקטנה מדורגת לפי רוחב הקונטיינר */
  @container (max-width: 340px) {
    .article-meta {
      font-size: 0.95rem !important;
    }
  }

  @container (max-width: 300px) {
    .article-meta {
      font-size: 0.875rem !important;
    }
  }

  @container (max-width: 260px) {
    .article-meta {
      font-size: 0.8rem !important;
    }
  }

  /* הקטנת מרווח אנכי בין הבלוקים במובייל */
  body.home .posts-grid-square-section,
  body.home .all-posts-grid-section,
  body.home .posts-tabs-section,
  body.home .mixed-layout-section.section-container,
  body.home .featured-posts-split-section,
  body.home .popular-articles-section.section-container,
  body.home .leading-articles-section.section-container {
    margin: 16px auto !important;
  }

  /* ריווח מובייל גורף: wrapper > section כדי להשפיע על כל הבלוקים */
  body.home .homepage-template [class*="-wrapper"] > [class*="-section"] {
    margin: 16px auto !important;
  }
}

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

  /* הקטנת גדלי טקסט נוספת */
  .section-title {
    font-size: 1.3rem;
    margin-top: 0 !important;
    /* הסרת מרווח עליון מכותרות */
  }

  .wp-block-group .section-title:before {
    right: -8px;
    margin-left: 0px;
    top: 17px;
  }

  .wp-block-group .section-title::after {
    right: 33px;
  }

  /* הסרת הקו המפריד במובייל */
  .homepage-section-divider {
    display: none !important;
    /* הסתרה מוחלטת של הקו המפריד */
    margin: 0 !important;
  }

  /* צמצום נוסף למסכים קטנים מאוד */
  .article-meta {
    font-size: 0.95rem !important;
  }

  /* מרווח קטן יותר מאוד במסכים קטנים מאוד */
  body.home .posts-grid-square-section,
  body.home .all-posts-grid-section,
  body.home .posts-tabs-section,
  body.home .mixed-layout-section.section-container,
  body.home .featured-posts-split-section,
  body.home .popular-articles-section.section-container,
  body.home .leading-articles-section.section-container {
    margin: 12px auto !important;
  }

  /* ריווח קטן יותר למסכים קטנים מאוד לכל wrapper > section */
  body.home .homepage-template [class*="-wrapper"] > [class*="-section"] {
    margin: 0px auto !important;
  }
}

/* === Imported from: homepage-blocks/_headline-banner.css === */
/**
 * === בלוק כותרת ראשית עם באנר ===
 */

/* מיכל ראשי של הכותרת */
.main-headline-section {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 5% !important;
  box-sizing: border-box !important;
}

/* מיכל שמכיל את העמודות */
.main-headline-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  gap: 5% !important;
  margin: var(--space-md) 0 !important;
  justify-content: flex-start !important;
}

/* מיכל התוכן הראשי (תמונה + טקסט) */
.main-headline-content {
  display: flex !important;
  flex-direction: row !important;
  gap: var(--space-md) !important;
  width: 70% !important;
  flex: 0 0 70% !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* מיכל התמונה הראשית */
.main-headline-image {
  flex: 0 0 60% !important;
  width: 60% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.main-headline-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* מיכל הטקסט הראשי */
.main-headline-text {
  flex: 0 0 40% !important;
  width: 40% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding-right: var(--space-md) !important;
}

.main-headline-title {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: var(--space-sm);
}

.main-headline-excerpt {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: auto;
  flex-grow: 1;
}

.headline-meta {
  font-size: 1rem;
  color: var(--gray-medium);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

/* מיכל הבאנר הפרסומי */
.main-headline-ad-banner {
  width: 25% !important;
  flex: 0 0 25% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
}

/* תוכן הבאנר הפרסומי */
.ad-banner-container {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  border-radius: 5px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-md);
  box-sizing: border-box;
  color: var(--white);
  text-align: center;
}

.ad-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.ad-content h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin: 0 0 clamp(10px, 3vh, 20px) 0;
  line-height: 1.2;
  font-weight: 700;
}

.ad-content p {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  margin: 0 0 clamp(15px, 4vh, 25px) 0;
  font-weight: 600;
}

.ad-button-container {
  margin-top: auto;
  padding-top: 15px;
}

.ad-button {
  display: inline-block;
  background-color: #ffdd59;
  color: #2c3e50;
  padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 20px);
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-default);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ad-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* התאמות למובייל */
@media screen and (max-width: 768px) {
  body.home .main-headline-section {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  body.home .main-headline-container {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  body.home .main-headline-content,
  body.home .main-headline-ad-banner {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  body.home .main-headline-content {
    flex-direction: column !important;
  }
  
  /* תמונה מלאה במובייל */
  body.home .main-headline-image {
    flex: 0 0 100% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
  }
  
  body.home .main-headline-text {
    flex: 0 0 100% !important;
    width: 100% !important;
    padding: var(--space-sm) 5% !important;
  }
  
  body.home .main-headline-ad-banner {
    height: 200px !important;
    margin-top: var(--space-md) !important;
    padding: 0 5% !important;
  }
}

@media screen and (max-width: 480px) {
  .main-headline-excerpt {
    display: none !important;
  }
}


/* === Imported from: homepage-blocks/_dual-headline-banner.css === */
/* בלוק כותרת ראשית כפולה */
.dual-headline-banner {
    position: relative;
    width: 100vw;
    margin-right: calc(-50vw + 50%);
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    height: 95vh;
    /* גובה הבלוק המלא */
    max-height: 95vh;
    height: 95dvh;
    max-height: 95dvh;
    overflow: hidden;
}

.dual-headline-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    /* מונע בחירת טקסט בזמן גרירה */
}

.dual-headline-container.grabbing {
    cursor: grabbing !important;
}

/* שכבת overlay לתפיסת אירועי גרירה */
.dual-headline-drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* מעל התמונות אבל מתחת לכותרות */
    background: transparent;
    pointer-events: none;
    /* לא חוסם לחיצות כברירת מחדל */
}

.dual-headline-drag-overlay.dragging {
    cursor: grabbing;
}

/* בזמן גרירה */
.dual-headline-container.dragging {
    cursor: grabbing !important;
}

.dual-headline-container.dragging * {
    cursor: grabbing !important;
}

/* בזמן גרירה, בטל אינטראקציה עם לינקים */
.dual-headline-banner.dragging .dual-headline-link {
    pointer-events: none;
}

/* בזמן גרירה, הסר transitions כדי שהתנועה תהיה חלקה */
.dual-headline-banner.dragging .dual-headline-slide {
    transition: none !important;
}

/* אפקט צל בזמן גרירה */
.dual-headline-banner.dragging .dual-headline-slide.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dual-headline-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    /* מונע בחירת טקסט בזמן גרירה */
}

/* הסרנו את ה-cursor מכאן כי הוא יתווסף רק בלחיצה ארוכה */

.dual-headline-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: none;
    will-change: transform, opacity;
    /* אופטימיזציה לביצועים */
}

.dual-headline-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dual-headline-slide.prev {
    transform: translateX(-100%);
}

.dual-headline-slide.next {
    transform: translateX(100%);
}

.dual-headline-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.dual-headline-item.first {
    margin-left: 0;
}

.dual-headline-item.second {
    margin-right: 0;
}

.dual-headline-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    text-decoration: none;
    user-select: none;
    /* מונע בחירת טקסט בתוך הלינקים */
    cursor: pointer;
    /* סמן יד ללחיצה */
}

.dual-headline-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dual-headline-image {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    -webkit-user-drag: none;
    /* מונע גרירת תמונה ב-Webkit */
    /* user-drag הוסר בגלל אזהרת לינט לא נתמכת */
}

/* מניעת בחירת טקסט/גרירה על תוכן הכותרת בזמן גרירה */
.dual-headline-content {
    -webkit-user-drag: none;
}

.dual-headline-link:hover .dual-headline-image {
    transform: translate(50%, -50%) scale(1.05);
}

.dual-headline-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

/* תוכן הכותרת */
.dual-headline-content {
    /* Paragraph+Overlay+VerticalBorder */



    position: absolute;
    bottom: 20px;
    right: 20px;
    /* שינוי ל-right עבור RTL */
    background: rgba(39, 59, 107, 0.8);
    background: color-mix(in srgb, var(--primary-color-daat) 80%, transparent);
    padding: 20px 25px;
    width: 50%;
    /* חצי מרוחב התמונה */
    max-width: 600px;
    /* רוחב מקסימלי למסכים גדולים */
    transition: all 0.3s ease;
    z-index: 6;
    /* מעל ה-overlay */
    user-select: none;
    /* מונע בחירת טקסט בזמן גרירה */
    pointer-events: auto;
    /* מאפשר לחיצה על התוכן */
    border-right: 5px solid var(--secondary-color-daat);
    /* פס כחול בצד ימין */

    position: absolute;
    width: 350px;
    height: 200px;
    right: 50px;
    bottom: 44px;
    background: rgba(39, 59, 107, 0.8);
}

.dual-headline-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 5px 0;
    /* הקטנת המרווח מ-10px ל-5px */
    text-align: right;
    direction: rtl;
    /* וידוא כיוון RTL */
    word-wrap: break-word;
    /* שבירת מילים ארוכות */
    overflow-wrap: break-word;
    /* תמיכה בדפדפנים נוספים */
    hyphens: auto;
    /* מקפים אוטומטיים בסוף שורה */
}

.dual-headline-author {
    color: #ffffffcc;
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0 0 8px 0;
    text-align: right;
    direction: rtl;
}

.dual-headline-cta {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    direction: rtl;
    /* וידוא כיוון RTL */
}

.dual-headline-link:hover .dual-headline-content {
    background: rgba(39, 59, 107, 0.7);
    background: color-mix(in srgb, var(--primary-color-daat) 70%, transparent);
}

.dual-headline-link:hover .dual-headline-cta {
    opacity: 1;
}

/* כפתורי ניווט - מוסתרים */
.dual-headline-nav {
    display: none !important;
}

.dual-headline-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.dual-headline-prev {
    left: 20px;
    /* כפתור "קודם" בצד שמאל */
}

.dual-headline-next {
    right: 20px;
    /* כפתור "הבא" בצד ימין */
}

.dual-headline-nav svg {
    width: 24px;
    height: 24px;
    color: #333;
}

/* אינדיקטורים - מוסתרים */
.dual-headline-indicators {
    display: none !important;
}



.dual-headline-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dual-headline-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.dual-headline-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* הצגת הסליידר הנכון בהתאם לגודל המסך */
.dual-headline-mobile {
    display: none;
}

.dual-headline-desktop {
    display: flex;
}

.dual-headline-indicators-mobile {
    display: none;
}

.dual-headline-indicators-desktop {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

/* סגנון למצב תמונה בודדת בדסקטופ */
.dual-headline-banner.single-mode .dual-headline-desktop .dual-headline-item.single {
    width: 100%;
    flex: 1 0 100%;
}

.dual-headline-banner.single-mode .dual-headline-desktop .dual-headline-content {
    width: 40%;
    /* רוחב התוכן במצב single */
    max-width: 600px;
}

/* רספונסיב - טאבלט */
@media (max-width: 1024px) {
    .dual-headline-banner {
        height: 90vh;
        /* גובה מותאם לטאבלט */
        max-height: 90vh;
        height: 90dvh;
        max-height: 90dvh;
        margin-bottom: 0;
    }

    .dual-headline-link {
        height: 100%;
        max-height: 100%;
    }

    .dual-headline-title {
        font-size: 1.25rem;
    }

    .dual-headline-author {
        font-size: 0.875rem;
        margin-bottom: 6px;
    }

    .dual-headline-content {
        padding: 15px 20px;
        bottom: 15px;
        right: 15px;
        /* שינוי ל-right עבור RTL */
        width: 60%;
        /* רוחב גדול יותר לטאבלט */
        max-width: 450px;
    }
}

/* רספונסיב - מובייל */
@media (max-width: 768px) {

    /* הצג את הסליידר של מובייל והסתר את הדסקטופ */
    .dual-headline-mobile {
        display: flex;
    }

    .dual-headline-desktop {
        display: none;
    }

    /* הצג את האינדיקטורים של מובייל והסתר את הדסקטופ */
    .dual-headline-indicators-mobile {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 12px;
        z-index: 10;
    }

    .dual-headline-indicators-desktop {
        display: none;
    }

    .dual-headline-banner {
        height: 90vh;
        /* גובה 90% ממסך המכשיר */
        max-height: 90vh;
        height: 90dvh;
        max-height: 90dvh;
        margin-bottom: 0;
    }

    .dual-headline-item {
        width: 100%;
        height: 100%;
    }

    /* אין צורך להסתיר את הכתבה השנייה כי כל כתבה בסלייד נפרד */
    .dual-headline-item.single {
        width: 100%;
        height: 100%;
    }

    .dual-headline-link {
        height: 100%;
        max-height: 100%;
    }

    .dual-headline-content {
        bottom: 15px;
        right: 15px;
        /* שינוי ל-right עבור RTL */
        padding: 15px 20px;
        width: calc(100% - 30px);
        /* רוחב מלא במובייל */
        max-width: calc(100% - 30px);
    }

    .dual-headline-title {
        font-size: 2.1875rem;
        line-height: .9;
    }

    .dual-headline-author {
        font-size: 0.9375rem;
        margin-bottom: 8px;
    }

    .dual-headline-cta {
        font-size: 1rem;
    }

    /* כפתורי ניווט מוסתרים גם במובייל */
}

/* מסכים קטנים מאוד */
@media (max-width: 480px) {
    .dual-headline-banner {
        height: 90vh;
        /* גובה 90% למסכים קטנים מאוד */
        max-height: 90vh;
        height: 90dvh;
        max-height: 90dvh;
        margin-bottom: 0;
    }

    .dual-headline-link {
        height: 100%;
        max-height: 100%;
    }

    .dual-headline-content {
        bottom: 20px;
        right: 10px;
        /* שינוי ל-right עבור RTL */
        padding: 12px 15px;
        width: calc(100% - 20px);
        /* רוחב מלא במסכים קטנים */
        max-width: calc(100% - 20px);
    }

    .dual-headline-title {
        font-size: 2.1875rem;
        line-height: .9;
    }

    .dual-headline-author {
        font-size: 0.9375rem;
        margin-bottom: 8px;
    }

    .dual-headline-cta {
        font-size: 1rem;
    }
}

/* תמיכה במסכי מגע */
@media (hover: none) {
    .dual-headline-link:active .dual-headline-image {
        transform: translate(50%, -50%) scale(1.02);
    }

    /* הסר את ה-overlay במסכי מגע כי יש touch events */
    .dual-headline-drag-overlay {
        display: none;
    }
}

/* === Imported from: homepage-blocks/_single-banner.css === */
/* בלוק באנר כתבה בודדת */
.single-banner {
    position: relative;
    width: 100vw;
    margin-right: calc(-50vw + 50%);
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0; 
    overflow: visible; /* מאפשר גלישת כותרת */
    padding-bottom: 50px; /* רווח לגלישת כותרת למטה */
}

.single-banner-link {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
    overflow: visible; /* שינוי מ-hidden ל-visible */
}

.single-banner-image-wrapper {
    position: relative;
    width: 100%;
    /* ה-padding-top נקבע inline בהתאם ליחס שנבחר */
    overflow: visible; /* שינוי מ-hidden ל-visible - מאפשר לכותרת לגלוש */
}

.single-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.single-banner-link:hover .single-banner-image {
    transform: scale(1.05);
}

.single-banner-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

/* תוכן הכותרת */
.single-banner-content {
    position: absolute;
    /* המיקום והרוחב נקבעים inline בהתאם להגדרות */
    padding: 20px 30px;
    transition: all 0.3s ease;
    z-index: 2;
    /* רקע ברירת מחדל - יוחלף אם הוגדר צבע מותאם */
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0;
    /* הסרנו את transform: translateY(-50%) כי זה גורם לבעיות במיקום */
    max-height: none; /* מאפשר גובה חופשי */
}

/* תיקון למקרה שהכותרת ארוכה */
.single-banner-content::-webkit-scrollbar {
    display: none; /* מסתיר את פס הגלילה */
}

/* כאשר הכותרת מתחת לתמונה לגמרי */
.single-banner.title-below-image .single-banner-content {
    position: relative;
    top: auto !important;
    right: auto !important;
    transform: none;
    width: 100% !important;
    margin-top: 0;
    border-radius: 0;
}

.single-banner.title-below-image .single-banner-image-wrapper {
    margin-bottom: 0;
}

.single-banner-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-align: right;
    direction: rtl;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.single-banner-link:hover .single-banner-content:not([style*="background"]) {
    background: rgba(0, 0, 0, 1);
}

/* רספונסיב - טאבלט */
@media (max-width: 1024px) {
    .single-banner-title {
        font-size: 1.5rem;
    }
    
    .single-banner-content {
        padding: 18px 25px;
    }
    
    .single-banner {
        padding-bottom: 40px;
    }
}

/* רספונסיב - מובייל */
@media (max-width: 768px) {
    .single-banner-image-wrapper {
        /* יחס 1:1 למובייל - תמיד */
        padding-top: 100% !important;
    }
    
    .single-banner-title {
        font-size: 1.35rem;
    }
    
    .single-banner-content {
        /* במובייל תמיד מיקום ברירת מחדל */
        position: absolute !important;
        top: auto !important;
        bottom: 10% !important;
        right: 5% !important;
        width: 90% !important;
        transform: none !important;
        padding: 15px 20px;
        /* אם אין רקע מותאם, השתמש בברירת המחדל */
    }
    
    .single-banner-content:not([style*="background"]) {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 100%);
    }
    
    /* במובייל, אם הכותרת אמורה להיות מתחת לתמונה */
    .single-banner.title-below-image .single-banner-content {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        right: auto !important;
        width: 100% !important;
        margin-top: 0;
    }
    
    .single-banner {
        padding-bottom: 30px;
    }
}

/* מסכים קטנים מאוד */
@media (max-width: 480px) {
    .single-banner-title {
        font-size: 1.2rem;
        line-height: 1.35;
    }
    
    .single-banner-content {
        padding: 12px 15px;
        bottom: 5% !important;
    }
}

/* תמיכה במסכי מגע */
@media (hover: none) {
    .single-banner-link:active .single-banner-image {
        transform: scale(1.02);
    }
}

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

.single-banner-content {
    animation: fadeInUp 0.6s ease-out;
}

/* === Imported from: homepage-blocks/_posts-grid.css === */
/**
 * === בלוק רשימת כתבות (גריד) ===
 */

/* Wrapper ראשי להגבלת רוחב, בדומה ל-grid המרובע */
.posts-grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* עוקף כללים גלובליים בעמוד הבית שמאלצים רוחב מלא */
body.home .posts-grid-wrapper {
  max-width: 1200px !important;
  width: auto !important;
}

/* יישור ומרווחים של המיכל הפנימי, זהה ל-grid המרובע */
.posts-grid-wrapper .leading-articles-section.section-container {
  margin: 40px auto;
  padding: 0 20px;
  max-width: 1200px;
}

body.home .posts-grid-wrapper .leading-articles-section.section-container {
  margin: 40px auto !important;
  padding: 0 20px !important;
  width: auto !important;
}

/* גריד כתבות */
.leading-articles-section .articles-grid {
  display: flex;
  gap: var(--space-md);
  width: 100%;
  margin-top: -0.1rem; /* מרווח שלילי כדי להקטין את הרווח מהכותרת */
  justify-content: space-between;
}

/* התאמה דינמית למספר עמודות */
.articles-grid[data-columns="3"] .wp-block-column {
  flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
}

.articles-grid[data-columns="4"] .wp-block-column {
  flex: 0 0 calc(25% - var(--space-md) * 3 / 4);
}

.articles-grid[data-columns="5"] .wp-block-column {
  flex: 0 0 calc(20% - var(--space-md) * 4 / 5);
}

.articles-grid[data-columns="6"] .wp-block-column {
  flex: 0 0 calc(16.666% - var(--space-md) * 5 / 6);
}

/* כרטיסיית כתבה סטנדרטית */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-default);
}

.article-card:hover {
  transform: translateY(-5px);
}

/* פינות מעוגלות */
.rounded-corners .article-card {
  border-radius: 10px;
}

.rounded-corners .article-card figure {
  border-radius: 10px 10px 0 0;
}

.article-card figure {
  margin-bottom: var(--space-xs);
  overflow: hidden;
  aspect-ratio: var(--aspect-ratio, 3 / 2);
  width: 100%;
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: var(--transition-default);
}

.article-card:hover img {
  transform: scale(1.03);
}

.article-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.article-excerpt {
  display: none; /* הסתרת התקציר בכתבות מובילות */
  font-size: 1rem;
  color: var(--gray-dark);
  margin-bottom: var(--space-xs);
}

.posts-grid-wrapper .article-card .article-meta {
  font-size: 1rem !important; /* קטן מהכותרת (~1.2rem) ובולט פחות */
  color: var(--gray-medium);
  margin-top: auto;
}

/* תגית קטגוריה (תואם לעיצוב ב-grid המרובע) */
.category-tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 1rem;;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.category-tag:hover {
  background-color: var(--primary-color, #0073aa);
  color: #fff;
  transform: translateY(-1px);
}

/* וידוא שהתווית לא מתפרסת לרוחב מלא בתוך כרטיס הכתבה */
.article-card .category-tag {
  display: inline-block;
  width: auto;
}

/* חיזוק סגוליות כדי למנוע התפרסות לרוחב מלא */
.leading-articles-section .article-card > a.category-tag {
  display: inline-flex !important;
  align-self: flex-start !important; /* ב-RTL זה מצמיד לימין */
  width: auto !important;
  max-width: max-content;
  white-space: nowrap;
  text-align: right;
  margin: 0 0 var(--space-xs) 0 !important; /* ביטול מרג'ינים אוטומטיים שממרכזים */
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important; /* דוחף את התגית לקו ההתחלה (ימין ב-RTL) */
}

/* התאמות למסכים בינוניים */
@media screen and (max-width: 1200px) {
  .articles-grid {
    flex-wrap: wrap;
  }
  
  .articles-grid .wp-block-column {
    flex-basis: 31% !important;
    margin-bottom: var(--space-md);
  }
}

/* טאבלטים */
@media screen and (max-width: 768px) {
  .articles-grid .wp-block-column {
    flex-basis: 48% !important;
  }
}

/* מובייל */
@media screen and (max-width: 480px) {
  .articles-grid .wp-block-column {
    flex-basis: 100% !important;
  }
}


/* === Imported from: homepage-blocks/_opinion-authors.css === */
/**
 * === בלוק רשימת דעות עם תמונות מחברים ===
 */

/* הגדרה מיוחדת למקטע הדעות - כל העמודות באותו גובה */
.opinion-section .articles-grid {
  align-items: stretch;
}

/* התאמה דינמית למספר עמודות */
.opinion-articles-grid[data-columns="3"] .wp-block-column {
  flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
}

.opinion-articles-grid[data-columns="4"] .wp-block-column {
  flex: 0 0 calc(25% - var(--space-md) * 3 / 4);
}

.opinion-articles-grid[data-columns="5"] .wp-block-column {
  flex: 0 0 calc(20% - var(--space-md) * 4 / 5);
}

/* העמודה האחרונה (באנר) במקטע דעות - גובה קבוע */
.opinion-section .articles-grid .wp-block-column:last-child {
  height: 384px !important;
  max-height: 384px !important;
  overflow: hidden;
}

/* כרטיס דעה */
.opinion-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background-color: var(--gray-soft);
  height: 384px;
  border-radius: 2px;
  transition: var(--transition-default);
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.opinion-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

/* מיכל עבור תמונת המחבר ושמו */
.author-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.opinion-author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-xs) auto;
}

.opinion-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.opinion-author {
  font-size: 1rem;
  color: var(--gray-medium);
  text-align: center;
  margin: 0 auto var(--space-xs) auto;
}

/* הסתרת שם הכותב בתחתית הכרטיס */
.opinion-card > .opinion-author:not(.in-container) {
  display: none;
}

.opinion-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  text-align: center;
  line-height: 1.3;
  font-weight: 600;
}

.opinion-excerpt {
  display: none;
  font-size: 1rem;
  color: var(--gray-dark);
}

/* באנר פרסומת במדור הדעות */
.opinion-ad-banner {
  height: 384px;
  max-height: 384px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

.opinion-ad-container {
  width: 100%;
  height: 100%;
  max-height: 384px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border-radius: 2px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-md);
  box-sizing: border-box;
  color: var(--white);
  text-align: center;
}

/* הגבלת גובה לכל תוכן מותאם אישית בבאנר */
.opinion-ad-banner > *,
.opinion-ad-container > * {
  max-height: 100%;
  overflow: hidden;
}

/* וידוא שתוכן HTML מותאם אישית לא יחרוג מהגובה */
.opinion-ad-banner iframe,
.opinion-ad-banner img,
.opinion-ad-banner video,
.opinion-ad-container iframe,
.opinion-ad-container img,
.opinion-ad-container video {
  max-height: 100% !important;
  height: auto !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
}

.opinion-ad-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.opinion-ad-content h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin: 0 0 clamp(10px, 3vh, 20px) 0;
  line-height: 1.2;
  font-weight: 700;
}

.opinion-ad-content p {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  margin: 0 0 clamp(15px, 4vh, 25px) 0;
  font-weight: 600;
}

/* התאמות למובייל */
@media screen and (max-width: 768px) {
  .opinion-articles-grid .wp-block-column {
    flex-basis: 48% !important;
  }
  
  .opinion-card {
    height: auto !important;
    min-height: 250px;
  }
  
  .opinion-ad-banner {
    height: auto !important;
    min-height: 150px;
  }
}

@media screen and (max-width: 480px) {
  .opinion-articles-grid .wp-block-column {
    flex-basis: 100% !important;
  }
  
  .author-container {
    flex-direction: column;
    align-items: center;
  }
  
  .opinion-author-image {
    margin-bottom: var(--space-xs);
  }
  
  .opinion-author {
    margin-right: 0;
    text-align: center;
    width: 100%;
  }
}


/* === Imported from: homepage-blocks/_categories-grid.css === */
/**
 * === בלוק רשימת קטגוריות ===
 */

/* Wrapper ראשי */
.categories-grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* מיכל רקע */
.category-section.with-background-container .featured-categories-grid {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.featured-categories-grid {
  display: grid;
  gap: var(--space-md);
  width: 100%;
  margin-top: var(--space-md);
}

/* התאמה דינמית למספר קטגוריות */
.featured-categories-grid[data-columns="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.featured-categories-grid[data-columns="4"] {
  grid-template-columns: repeat(4, 1fr);
}

.featured-categories-grid[data-columns="5"] {
  grid-template-columns: repeat(5, 1fr);
}

.featured-categories-grid[data-columns="6"] {
  grid-template-columns: repeat(6, 1fr);
}

.category-card {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 2px;
  transition: var(--transition-default);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background: #fff;
}

/* פינות מעוגלות */
.featured-categories-grid.rounded-corners .category-card {
  border-radius: 5px;
}

/* יחס תמונה דינמי */
.featured-categories-grid[data-aspect-ratio="16:9"] .category-card {
  aspect-ratio: 16 / 9;
  height: auto;
}

.featured-categories-grid[data-aspect-ratio="4:3"] .category-card {
  aspect-ratio: 4 / 3;
  height: auto;
}

.featured-categories-grid[data-aspect-ratio="1:1"] .category-card {
  aspect-ratio: 1 / 1;
  height: auto;
}

.featured-categories-grid[data-aspect-ratio="3:2"] .category-card {
  aspect-ratio: 3 / 2;
  height: auto;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card a {
  display: block;
  width: 100%;
  height: 100%;
}

.category-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: var(--white);
}

/* ללא מסגרת טקסט */
.featured-categories-grid.no-frame .category-card-overlay {
  background: none;
  position: relative;
  color: var(--primary-text-color);
  padding: var(--space-sm) 0;
}

.featured-categories-grid.no-frame .category-card-title {
  color: var(--primary-text-color);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
}

.category-card-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: var(--white);
}

/* סגנון כהה */
.featured-categories-grid.style-dark {
  background: #2a2a2a;
  padding: 30px;
  border-radius: 5px;
}

.featured-categories-grid.style-dark .category-card {
  background: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-categories-grid.style-dark .category-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.featured-categories-grid.style-dark .category-card-title {
  color: #fff;
}

.featured-categories-grid.style-dark.no-frame .category-card-title {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

/* סגנון בהיר - ברירת מחדל */
.featured-categories-grid.style-light {
  /* כבר מוגדר בעיצוב הבסיסי */
}

/* מיכל רקע משופר */
.category-section.with-background-container {
  padding: 40px 20px;
  background: #f5f5f5;
  border-radius: 12px;
  margin: 40px 0;
}

.category-section.with-background-container .section-title {
  margin-bottom: 30px;
}

/* מיכל רקע עם סגנון כהה */
.category-section.with-background-container .featured-categories-grid.style-dark {
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* אנימציות והובר אפקטים */
.category-card {
  transition: all 0.3s ease;
}

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

.featured-categories-grid.style-dark .category-card:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* שילוב הגדרות מרובות */
.featured-categories-grid.style-dark.rounded-corners .category-card {
  border-radius: 5px;
  overflow: hidden;
}

.featured-categories-grid.style-dark.no-frame .category-card-overlay {
  background: none;
  padding: 10px;
}

/* התאמות למסכים בינוניים */
@media screen and (max-width: 1200px) {
  .featured-categories-grid[data-columns="5"],
  .featured-categories-grid[data-columns="6"] {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .category-section.with-background-container {
    padding: 30px 15px;
  }
}

/* טאבלטים */
@media screen and (max-width: 768px) {
  body.home .featured-categories-grid,
  .featured-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-md) !important;
    width: 100% !important;
  }
  
  /* במובייל - כל הקטגוריות באותו יחס */
  .featured-categories-grid[data-aspect-ratio] .category-card {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
  }
  
  body.home .category-card,
  .category-card {
    height: auto !important;
  }
  
  /* התאמת מיכל רקע למובייל */
  .category-section.with-background-container {
    padding: 20px 10px;
    border-radius: 5px;
    margin: 20px 0;
  }
  
  /* התאמת סגנון כהה למובייל */
  .featured-categories-grid.style-dark {
    padding: 15px;
  }
}

/* מובייל */
@media screen and (max-width: 480px) {
  body.home .category-card,
  .category-card {
    height: auto !important;
  }
  
  /* במובייל קטן - עמודה אחת לקטגוריות 5-6 */
  .featured-categories-grid[data-columns="5"],
  .featured-categories-grid[data-columns="6"] {
    grid-template-columns: 1fr !important;
  }
  
  .category-card-title {
    font-size: 1rem;
  }
  
  .category-section.with-background-container .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}


/* === Imported from: homepage-blocks/_posts-horizontal.css === */
/**
 * === בלוק רשימת כתבות אופקית ===
 */

/* מיכל עוטף למספר שורות */
.posts-horizontal-wrapper {
  display: flex;
  flex-direction: column;
  /* gap מוגדר inline בתג HTML מהגדרות המשתמש */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* עקיפת כללי עמוד הבית שמרחיבים ל-100% */
body.home .posts-horizontal-wrapper {
  max-width: 1200px !important;
  width: auto !important;
}

/* מגבלת רוחב גם למיכל ה-section (כולל הכותרת) */
.popular-articles-section.section-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* מיכל רקע חיצוני (אופציונלי) */
.popular-articles-section.section-container.has-background-container {
  padding: 40px 20px; /* 40px למעלה ולמטה, 20px בצדדים - כמו בבלוק posts-grid-square */
  border-radius: 5px;
}

.popular-articles-section.section-container.has-border {
  border-style: solid;
}

/* פינות מעוגלות למיכל רקע */
.popular-articles-section.section-container.rounded-container {
  border-radius: 5px;
}

/* מיכל רקע רק במובייל - מוסתר בדסקטופ */
.popular-articles-section.section-container.has-background-mobile-only {
  /* בדסקטופ - ללא רקע ו-padding */
  background: none !important;
  padding: 0 20px !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* עקיפה ספציפית בעמוד הבית עבור ה-section */
body.home .popular-articles-section.section-container {
  max-width: 1200px !important;
  width: auto !important;
  margin: 40px auto !important;
  padding: 0 20px !important;
}

/* שמירת padding מלא כשיש מיכל רקע */
body.home .popular-articles-section.section-container.has-background-container {
  padding: 40px 20px !important; /* 40px למעלה ולמטה, 20px בצדדים */
}

/* התאמת מיכל רק במובייל בדסקטופ */
@media (min-width: 769px) {
  body.home .popular-articles-section.section-container.has-background-mobile-only {
    /* בדסקטופ - קיבול הערכים הרגילים */
    padding: 0 20px !important;
  }
}

/* גריד הכתבות האופקיות */
.most-read-articles-grid {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  width: 100%;
}

/* התאמה דינמית למספר כתבות */
.most-read-articles-grid[data-columns="2"] .wp-block-column {
  flex: 0 0 calc(50% - var(--space-md) / 2);
}

.most-read-articles-grid[data-columns="3"] .wp-block-column {
  flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
}

.most-read-articles-grid[data-columns="4"] .wp-block-column {
  flex: 0 0 calc(25% - var(--space-md) * 3 / 4);
}

/* כרטיסיית כתבה - מיכל אחד לתמונה ולטקסט */
.most-read-article {
  display: flex;
  flex-direction: row;
  gap: 0; /* ללא רווח בין התמונה לטקסט */
  width: 100%;
  height: 140px; /* גובה קבוע לכל הכרטיסיות */
  align-items: stretch; /* כדי שהטקסט יתאים לגובה התמונה */
  background: var(--bg-color, #fff);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* מסגרת עדינה (ברירת מחדל) */
.subtle-frame .most-read-article {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* מסגרת רגילה */
.regular-frame .most-read-article {
  border: 1px solid #e0e0e0;
  box-shadow: none;
}

/* כיוון RTL - תמונה מימין */
.most-read-articles-grid.direction-rtl .most-read-article {
  flex-direction: row-reverse;
}

/* פינות מעוגלות לכרטיסיה */
.most-read-articles-grid.rounded-corners .most-read-article {
  border-radius: 5px;
}

/* Hover effects לפי סגנון מסגרת */
.subtle-frame .most-read-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.regular-frame .most-read-article:hover {
  transform: translateY(-1px);
  border-color: #c0c0c0;
  background: var(--bg-color, #fff);
}

.most-read-image {
  margin: 0;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 100%; /* המיכל יימתח לרוחב העוגן */
  height: 100%; /* גובה מלא של הכרטיסיה */
}

/* אלמנט העוגן הוא פריט ה-flex בפועל */
.most-read-article > .most-read-image-link {
  display: block;
  height: 100%;
  flex-shrink: 0;
}

/* פינות מעוגלות - רק בצד שמאל לתמונה (LTR) */
.most-read-articles-grid.rounded-corners:not(.direction-rtl) .most-read-image {
  border-radius: 8px 0 0 8px;
}

.most-read-articles-grid.rounded-corners:not(.direction-rtl) .most-read-image img {
  border-radius: 8px 0 0 8px;
}

/* פינות מעוגלות - רק בצד ימין לתמונה (RTL) */
.most-read-articles-grid.rounded-corners.direction-rtl .most-read-image {
  border-radius: 0 8px 8px 0;
}

.most-read-articles-grid.rounded-corners.direction-rtl .most-read-image img {
  border-radius: 0 8px 8px 0;
}

/* איפוס מרווחים לאלמנט figure */
.most-read-image.wp-block-image,
.most-read-image-link,
.most-read-image-link > .most-read-image {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
}

.most-read-image figure {
  margin: 0;
  width: 100%;
  height: 100% !important;
  display: block;
}

.most-read-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  transition: var(--transition-default);
  display: block;
}

.most-read-article:hover .most-read-image img {
  transform: scale(1.03);
}

.most-read-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  padding: 12px 16px;
  margin: 0;
  height: 100%;
  overflow: hidden;
}

/* ללא מסגרת - רקע שקוף */
.most-read-articles-grid.no-frame .most-read-article {
  background: transparent;
  box-shadow: none;
  border: none;
}

.most-read-articles-grid.no-frame .most-read-article:hover {
  transform: translateY(-1px);
  box-shadow: none;
  border: none;
}

.most-read-articles-grid.no-frame:not(.direction-rtl) .most-read-content {
  padding: 0 0 0 12px;
}

.most-read-articles-grid.no-frame.direction-rtl .most-read-content {
  padding: 0 12px 0 0;
}

/* פינות מעוגלות לטקסט - רק בצד ימין (LTR) */
.most-read-articles-grid.rounded-corners:not(.direction-rtl) .most-read-content {
  border-radius: 0 8px 8px 0;
}

/* פינות מעוגלות לטקסט - רק בצד שמאל (RTL) */
.most-read-articles-grid.rounded-corners.direction-rtl .most-read-content {
  border-radius: 8px 0 0 8px;
}

/* איפוס מרווחים לכותרת h3 */
.most-read-title,
h3.most-read-title {
  font-size: 1.1rem;
  margin: 0 0 var(--space-xs) 0 !important;
  padding: 0;
  line-height: 1.3;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
-webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* תגית קטגוריה */
.most-read-articles-grid .most-read-content .category-tag,
.most-read-articles-grid .category-tag {
  display: inline-block !important;
  width: auto !important;
  max-width: max-content !important;
  background-color: var(--secondary-color-daat-bright) !important;
  color: var(--primary-color-daat) !important;
  border: 1px solid var(--primary-color-daat) !important;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 1rem !important;
  text-decoration: none;
  margin: var(--space-xs) 0;
  margin-right: 0 !important; /* יישור לימין */
  transition: all 0.2s ease;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start !important;
  white-space: nowrap;
}

.most-read-articles-grid .most-read-content .category-tag:hover,
.most-read-articles-grid .category-tag:hover {
  background-color: var(--primary-color-daat) !important;
  color: #fff !important;
  border-color: var(--primary-color-daat) !important;
  transform: translateY(-1px);
}

.most-read-excerpt {
  display: none;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.most-read-articles-grid .most-read-meta,
.most-read-content .most-read-meta {
  font-size: 1rem !important;
  color: #666 !important;
  margin-top: auto !important; /* דחיפה לתחתית */
  margin-bottom: 0;
  padding-bottom: 2px;
  line-height: 1.4;
}

.most-read-articles-grid .most-read-meta .separator,
.most-read-content .most-read-meta .separator {
  margin: 0 5px;
  color: #ccc !important;
}

.most-read-articles-grid .most-read-meta .date,
.most-read-content .most-read-meta .date {
  color: #888 !important;
}

/* התאמות למסכים בינוניים */
@media screen and (max-width: 1200px) {
  .most-read-articles-grid[data-columns="4"] .wp-block-column {
    flex-basis: 48% !important;
  }
  
  .most-read-article {
    height: 120px; /* גובה קטן יותר למסכים בינוניים */
  }
  
  .most-read-image {
    width: 160px; /* רוחב קטן יותר */
  }
  
  .most-read-articles-grid[data-aspect-ratio="16:9"] .most-read-image {
    width: 180px;
  }
  
  .most-read-articles-grid[data-aspect-ratio="1:1"] .most-read-image {
    width: 120px;
  }
}

/* טאבלטים */
@media screen and (max-width: 768px) {
  /* מיכל רקע רק במובייל - מפעיל בטאבלט */
  .popular-articles-section.section-container.has-background-mobile-only {
    padding: 25px 15px !important;
    background-color: var(--mobile-bg-color, #f5f5f5) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    border-radius: 6px !important;
    box-sizing: border-box;
    max-width: calc(100% - 20px);
    margin: 20px auto;
  }
  
  body.home .popular-articles-section.section-container.has-background-mobile-only {
    padding: 25px 15px !important;
  }
  
  /* פינות מעוגלות למיכל בטאבלט */
  .popular-articles-section.section-container.has-background-mobile-only.rounded-container {
    border-radius: 8px !important;
  }
  
  /* אם אין פינות מעוגלות */
  .popular-articles-section.section-container.has-background-mobile-only:not(.rounded-container) {
    border-radius: 0 !important;
  }
  
  .most-read-articles-grid {
    flex-wrap: wrap;
  }
  
  /* 2 בשורה בטאבלט */
  .most-read-articles-grid[data-columns="3"] .wp-block-column,
  .most-read-articles-grid[data-columns="4"] .wp-block-column {
    flex-basis: 48% !important;
  }
  
  .most-read-article {
    height: 110px; /* גובה קטן יותר לטאבלטים */
  }
  
  .most-read-image {
    width: 140px;
  }
}

/* סגנון כהה */
.most-read-articles-grid.style-dark {
  --bg-color: #2a2a2a;
  --text-color: #ffffff;
  --meta-color: #cccccc;
  --separator-color: #666666;
}

.most-read-articles-grid.style-dark .most-read-article {
  background: var(--bg-color);
}

/* מסגרת רגילה בסגנון כהה */
.most-read-articles-grid.style-dark.regular-frame .most-read-article {
  border-color: rgba(255, 255, 255, 0.2);
}

.most-read-articles-grid.style-dark.regular-frame .most-read-article:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.most-read-articles-grid.style-dark .most-read-title,
.most-read-articles-grid.style-dark .most-read-title a {
  color: var(--text-color);
}

.most-read-articles-grid.style-dark .most-read-excerpt {
  color: var(--meta-color);
}

.most-read-articles-grid.style-dark .most-read-meta {
  color: var(--meta-color) !important;
}

.most-read-articles-grid.style-dark .most-read-meta .separator {
  color: var(--separator-color) !important;
}

.most-read-articles-grid.style-dark .most-read-meta .date {
  color: var(--meta-color) !important;
}

.most-read-articles-grid.style-dark .category-tag {
  background-color: var(--secondary-color-daat-bright) !important;
  color: var(--primary-color-daat) !important;
  border: 1px solid var(--primary-color-daat) !important;
}

.most-read-articles-grid.style-dark .category-tag:hover {
  background-color: var(--primary-color-daat) !important;
  color: #fff !important;
  border-color: var(--primary-color-daat) !important;
}

/* סגנון בהיר (ברירת מחדל) */
.most-read-articles-grid.style-light {
  --bg-color: #ffffff;
  --text-color: #333333;
  --meta-color: #666666;
  --separator-color: #cccccc;
}

.most-read-articles-grid.style-light .most-read-article {
  background: var(--bg-color);
}

/* יחסי תמונה - ברירת מחדל וספציפיים (על פריט ה-flex: העוגן) */
/* 16:9 - ברירת מחדל */
.most-read-articles-grid .most-read-image-link {
  aspect-ratio: 16 / 9;
  height: 100% !important;
  flex-basis: calc(140px * (16/9));
}

/* נתמך על ידי data-aspect-ratio ברמת המיכל */
.most-read-articles-grid[data-aspect-ratio="1:1"] .most-read-image-link {
  aspect-ratio: 1 / 1;
  height: 100% !important;
  flex-basis: 140px; /* שווה לגובה הכרטיסיה */
}

.most-read-articles-grid[data-aspect-ratio="3:2"] .most-read-image-link {
  aspect-ratio: 3 / 2;
  height: 100% !important;
  flex-basis: calc(140px * (3/2));
}

.most-read-articles-grid[data-aspect-ratio="4:3"] .most-read-image-link {
  aspect-ratio: 4 / 3;
  height: 100% !important;
  flex-basis: calc(140px * (4/3));
}

.most-read-articles-grid[data-aspect-ratio="16:9"] .most-read-image-link {
  aspect-ratio: 16 / 9;
  height: 100% !important;
  flex-basis: calc(140px * (16/9));
}

/* מובייל */
@media screen and (max-width: 480px) {
  /* התאמת המיכל העוטף למובייל */
  .posts-horizontal-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    /* gap כבר מוגדר inline בתג HTML אבל נדרוס אותו למובייל */
    gap: 0 !important;
  }
  
  /* מרווח בין שורות (כל שורה היא most-read-articles-grid) */
  .posts-horizontal-wrapper .most-read-articles-grid:not(:last-child) {
    margin-bottom: 10px !important; /* אותו מרווח כמו בין הכתבות - לשנות ביחד עם שורה 438 */
  }
  
  /* התאמת כל שורת כתבות למובייל */
  .most-read-articles-grid {
    flex-direction: column !important; /* שינוי לכיוון אנכי */
    width: 100% !important;
    gap: 0px !important; /* רווח בין כתבות - ניתן לשינוי בקלות */
  }
  
  .most-read-articles-grid .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin: 0 !important; /* איפוס margin */
    padding: 0 !important; /* איפוס padding */
  }
  
  /* רווח בין כתבות - שימוש ב-margin-bottom במקום gap */
  .most-read-articles-grid .wp-block-column:not(:last-child) {
    margin-bottom: 10px !important; /* רווח בין כתבות - לשנות ביחד עם שורה 418 (רווח בין שורות) */
  }
  
  /* איפוס כללי של margins לכל הכרטיסיות */
  .most-read-articles-grid .most-read-article {
    margin: 0 !important;
  }
  
  /* === כתבה ראשונה - פריסה אנכית (תמונה מעל, טקסט מתחת) === */
  .most-read-articles-grid .wp-block-column:first-child .most-read-article {
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
  }
  
  .most-read-articles-grid .wp-block-column:first-child .most-read-image-link {
    aspect-ratio: unset !important;
    flex-basis: unset !important;
    width: 100% !important;
    height: 200px !important;
  }
  
  .most-read-articles-grid .wp-block-column:first-child .most-read-image {
    width: 100% !important;
    height: 200px !important;
    margin: 0;
  }
  
  .most-read-articles-grid .wp-block-column:first-child .most-read-content {
    width: 100%;
    padding: 12px !important;
    height: auto;
  }
  
  /* פינות מעוגלות לכתבה הראשונה */
  .most-read-articles-grid.rounded-corners .wp-block-column:first-child .most-read-image,
  .most-read-articles-grid.rounded-corners .wp-block-column:first-child .most-read-image img {
    border-radius: 8px 8px 0 0 !important;
  }
  
  .most-read-articles-grid.rounded-corners .wp-block-column:first-child .most-read-content {
    border-radius: 0 0 8px 8px !important;
  }
  
  /* === כל שאר הכתבות - פריסה אופקית (תמונה לצד טקסט) === */
  .most-read-articles-grid .wp-block-column:not(:first-child) .most-read-article {
    flex-direction: row !important; /* תמונה לצד טקסט */
    height: 100px !important; /* גובה קבוע לפריסה אופקית */
    width: 100% !important;
  }
  
  /* עבור כיוון RTL - הפוך את הסדר */
  .most-read-articles-grid.direction-rtl .wp-block-column:not(:first-child) .most-read-article {
    flex-direction: row-reverse !important;
  }
  
  .most-read-articles-grid .wp-block-column:not(:first-child) .most-read-image-link {
    aspect-ratio: 1 / 1 !important; /* ריבוע */
    flex-basis: 100px !important; /* רוחב קבוע */
    width: 100px !important;
    height: 100px !important;
    flex-shrink: 0;
  }
  
  .most-read-articles-grid .wp-block-column:not(:first-child) .most-read-image {
    width: 100px !important;
    height: 100px !important;
    margin: 0;
  }
  
  .most-read-articles-grid .wp-block-column:not(:first-child) .most-read-content {
    flex: 1;
    padding: 8px 12px !important;
    height: 100%;
    overflow: hidden;
  }
  
  /* הקטנת גודל הכותרת בכתבות האופקיות */
  .most-read-articles-grid .wp-block-column:not(:first-child) .most-read-title {
    font-size: 1rem;
    line-clamp: 2;
-webkit-line-clamp: 2;
  }
  
  /* הסתרת תג הקטגוריה בכתבות האופקיות במובייל */
  .most-read-articles-grid .wp-block-column:not(:first-child) .category-tag {
    display: none !important;
  }
  
  /* פינות מעוגלות לכתבות האופקיות */
  .most-read-articles-grid.rounded-corners:not(.direction-rtl) .wp-block-column:not(:first-child) .most-read-image,
  .most-read-articles-grid.rounded-corners:not(.direction-rtl) .wp-block-column:not(:first-child) .most-read-image img {
    border-radius: 8px 0 0 8px !important;
  }
  
  .most-read-articles-grid.rounded-corners:not(.direction-rtl) .wp-block-column:not(:first-child) .most-read-content {
    border-radius: 0 8px 8px 0 !important;
  }
  
  /* פינות מעוגלות לכתבות האופקיות - כיוון RTL */
  .most-read-articles-grid.rounded-corners.direction-rtl .wp-block-column:not(:first-child) .most-read-image,
  .most-read-articles-grid.rounded-corners.direction-rtl .wp-block-column:not(:first-child) .most-read-image img {
    border-radius: 0 8px 8px 0 !important;
  }
  
  .most-read-articles-grid.rounded-corners.direction-rtl .wp-block-column:not(:first-child) .most-read-content {
    border-radius: 8px 0 0 8px !important;
  }
  
  /* ללא מסגרת במובייל */
  .most-read-articles-grid.no-frame .wp-block-column:first-child .most-read-content {
    padding: 12px 0 !important;
  }
  
  .most-read-articles-grid.no-frame:not(.direction-rtl) .wp-block-column:not(:first-child) .most-read-content {
    padding: 0 0 0 8px !important;
  }
  
  .most-read-articles-grid.no-frame.direction-rtl .wp-block-column:not(:first-child) .most-read-content {
    padding: 0 8px 0 0 !important;
  }
  
  /* התאמת המיכל החיצוני במובייל */
  .popular-articles-section.section-container {
    max-width: 100% !important;
    padding: 0 15px !important;
    margin: 20px auto 0 !important; /* הסרת margin תחתון */
  }
  
  body.home .popular-articles-section.section-container {
    max-width: 100% !important;
    padding: 0 15px !important;
    margin-bottom: 0 !important; /* הסרת margin תחתון */
  }
  
  /* שמירת padding כשיש מיכל רקע */
  body.home .popular-articles-section.section-container.has-background-container {
    padding: 20px 15px !important;
    margin-bottom: 0 !important; /* הסרת margin תחתון גם למיכל עם רקע */
  }
  

  
  /* הסרת margin תחתון מכל בלוקי עמוד הבית במובייל */
  body.home .wp-block-group.section-container {
    margin: 20px auto !important;
  }
}


/* === Imported from: homepage-blocks/_posts-grid-square.css === */
/* בלוק רשימת כתבות עם תמונות מרובעות */

/* Wrapper ראשי להגבלת רוחב */
.posts-grid-square-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    transition: all 0.3s ease;
}

/* מיכל רקע */
.posts-grid-square-wrapper.has-background-container {
    padding: 40px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    /* padding נספר בתוך מגבלת הרוחב */
    max-width: 1200px;
    /* המיכל עצמו מוגבל ל-1200px */
    margin: 40px auto;
    /* יישור כמו section */
}

/* מסגרת למיכל */
.posts-grid-square-wrapper.has-border {
    border-style: solid;
}

/* פינות מעוגלות למיכל רקע - לא למיכל רוחב מלא */
.posts-grid-square-wrapper.rounded-container:not(.full-width-container) {
    border-radius: 5px;
}

/* מיכל רקע רק במובייל - מוסתר בדסקטופ */
.posts-grid-square-wrapper.has-background-mobile-only {
    /* בדסקטופ - ללא רקע ו-padding */
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* מיכל רקע ברוחב מלא */
.posts-grid-square-wrapper.has-background-container.full-width-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    border-radius: 0;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* התאמת התוכן הפנימי במיכל רוחב מלא */
.posts-grid-square-wrapper.full-width-container .posts-grid-square-section {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px;
}

/* התאמת section במיכל רוחב מלא */
.posts-grid-square-wrapper.has-background-container.full-width-container .posts-grid-square-section {
    margin: 0 auto !important;
    padding: 0 !important;
}

/* וידוא שה-container עצמו ממורכז */
.posts-grid-square-wrapper.full-width-container .posts-grid-square-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* עוקף את הכללים הגלובליים של עמוד הבית */
body.home .posts-grid-square-wrapper:not(.full-width-container) {
    max-width: 1200px !important;
    width: auto !important;
}

/* מיכל ברוחב מלא - עוקף הגבלות */
body.home .posts-grid-square-wrapper.full-width-container {
    max-width: none !important;
    width: 100vw !important;
}

/* התאמה כשיש מיכל רקע רגיל (לא רוחב מלא) */
body.home .posts-grid-square-wrapper.has-background-container:not(.full-width-container) {
    max-width: 1200px !important;
    /* המיכל עצמו מוגבל, ה-padding בתוך ה-1200 */
    width: auto !important;
}

body.home .posts-grid-square-section {
    margin: 40px auto !important;
    padding: 0 20px !important;
    width: auto !important;
}

/* התאמה כשיש מיכל רקע רגיל (לא רוחב מלא) */
.posts-grid-square-wrapper.has-background-container:not(.full-width-container) .posts-grid-square-section {
    margin: 0 !important;
    padding: 0 !important;
}

/* התאמת section כשהמיכל רק במובייל - בדסקטופ */
@media (min-width: 769px) {
    .posts-grid-square-wrapper.has-background-mobile-only .posts-grid-square-section {
        /* בדסקטופ - חוזר להתנהגות רגילה */
        margin: 40px auto !important;
        padding: 0 20px !important;
    }
}

/* התאמת section כשהמיכל רק במובייל - במובייל */
@media (max-width: 768px) {
    .posts-grid-square-wrapper.has-background-mobile-only .posts-grid-square-section {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* מיכל רקע ברוחב מלא במובייל - פתרון פשוט */
    body.home .posts-grid-square-wrapper.has-background-container.full-width-container {
        width: 100vw !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin-left: calc(-1 * (100vw - 100%) / 2) !important;
        margin-right: calc(-1 * (100vw - 100%) / 2) !important;
        padding: 20px 15px !important;
        /* הוספת padding אופקי למיכל עצמו */
        border-radius: 0;
        box-sizing: border-box !important;
        transform: none !important;
        /* ביטול ה-transform מהדסקטופ */
    }

    body.home .posts-grid-square-wrapper.full-width-container .posts-grid-square-section {
        padding: 0 !important;
        /* ביטול padding כי הוא כבר במיכל */
        max-width: 100%;
        margin: 0 auto;
    }

    body.home .posts-grid-square-wrapper.full-width-container .posts-grid-square-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
}

.posts-grid-square-section {
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1200px;
}

/* הכותרת משתמשת בעיצוב המשותף מקובץ _homepage-common.css */

/* קונטיינר הגריד */
.posts-grid-square-container {
    display: grid;
    gap: 30px;
    margin: 0 auto;
}

/* הגדרת מספר עמודות לפי data attribute */
.posts-grid-square-container[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.posts-grid-square-container[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.posts-grid-square-container[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.posts-grid-square-container[data-columns="6"] {
    grid-template-columns: repeat(6, 1fr);
}

/* כרטיסיית כתבה */
.article-card-square {
    background: var(--cards-bg-color, #fff);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    /* נדרש למיקום תגית הקטגוריה */
}

/* מסגרת עדינה (ברירת מחדל) */
.subtle-frame .article-card-square {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* מסגרת רגילה */
.regular-frame .article-card-square {
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

/* פינות מעוגלות */
.rounded-corners .article-card-square {
    border-radius: 5px;
}

.rounded-corners .square-image-container {
    border-radius: 8px 8px 0 0;
}

/* Hover effects לפי סגנון מסגרת */
.subtle-frame .article-card-square:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.regular-frame .article-card-square:hover {
    transform: translateY(-3px);
    border-color: #c0c0c0;
    background: var(--cards-bg-color, #fff);
}

/* קונטיינר לתמונה */
.square-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: var(--aspect-ratio, 1 / 1);
    /* יחס דינמי עם ברירת מחדל 1:1 */
    overflow: hidden;
    background-color: #f0f0f0;
}

.square-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* חיתוך התמונה למילוי הריבוע */
    object-position: center;
    /* מרכוז התמונה */
    transition: transform 0.3s ease;
}

.article-card-square:hover .square-image-container img {
    transform: scale(1.05);
}

/* תוכן הכתבה */
.article-content {
    background-color: rgba(240, 240, 243, 0.34);
    ;
    padding: 20px;
    padding-bottom: 0px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* תגית קטגוריה - מיקום חדש מעל התמונה */
.posts-grid-square-container .category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7181BF !important;
    /* רקע כחול מלא */
    color: #FFFFFF !important;
    /* טקסט לבן */
    border: none !important;
    /* ללא border */
    padding: 4px 19px;
    /* padding מותאם לעיצוב החדש */
    border-radius: 20px;
    /* פינות מעוגלות */
    font-family: var(--font-family-accent) !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 26px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    position: absolute;
    top: 62%;
    left: 3%;
    z-index: 10;
    margin: 0;
    height: 23px;
    /* גובה קבוע */
    min-width: 68px;
    /* רוחב מינימלי */
}


.posts-grid-square-container .category-tag:hover {
    background: #273B6B !important;
    /* כחול כהה בhover */
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(113, 129, 191, 0.3);
    /* צל עדין */
}

.article-card-square .article-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: var(--primary-text-color, #1a1a1a);
    transition: color 0.2s ease;

    /* גובה קבוע של 2 שורות */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    color: #273B6B;
}

.article-card-square a {
    text-decoration: none;
    color: inherit;
}

.article-card-square a:hover .article-title {
    color: var(--primary-color, #0073aa);
}

/* מיכל המטא-דאטה */
.article-meta-container {
    align-items: normal;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #7183C0;
    /* פס עליון בצבע כחול בהיר */
}

/* מטא-דאטה כללי */
.article-card-square .article-meta {
    font-size: 1rem;
    color: #273B6B;
    /* צבע כחול כהה לכל המטא-דאטה */
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* שורת כותב ותאריך */
.article-meta.author-date {
    margin-bottom: 5px;
}

/* שורת זמן קריאה */
.article-meta.reading-time {
    justify-content: center;
    /* ממורכז */
}

.article-meta .author {
    font-weight: 700;
    /* bold כמו בקוד שלך */
    color: #7183C0;
    /* צבע כחול בהיר לשם הכותב */
}

.article-meta .separator {
    color: #273B6B;
    /* צבע כחול כהה לפרדות */
}

.article-meta .date {
    color: #273B6B;
    /* צבע כחול כהה לתאריך */
    font-weight: 200;
}

hr.wp-block-separator.homepage-section-divider {
    display: none;
}

/* זמן קריאה גם בצבע כחול כהה */
.article-meta .ttfc-reading-time {
    color: #273B6B;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-meta .ttfc-reading-time .ttfc-reading-time__text {
    color: #273B6B;
}

/* SVG אייקון זמן קריאה */
.article-meta .ttfc-reading-time svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* כרטיסיות placeholder */
.article-card-square.placeholder {
    opacity: 0.5;
    pointer-events: none;
}

.article-card-square.placeholder .square-image-container {
    background-color: #e0e0e0;
}

.article-card-square.placeholder img {
    opacity: 0.3;
}

/* רספונסיביות */
@media (max-width: 1024px) {
    .posts-grid-square-container[data-columns="6"] {
        grid-template-columns: repeat(4, 1fr);
    }

    .posts-grid-square-container[data-columns="5"] {
        grid-template-columns: repeat(4, 1fr);
    }

    /* התאמת מיכל רקע בטאבלט */
    .posts-grid-square-wrapper.has-background-container {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {

    .posts-grid-square-container[data-columns="6"],
    .posts-grid-square-container[data-columns="5"],
    .posts-grid-square-container[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-grid-square-container {
        gap: 20px;
    }

    .article-card-square .article-title {
        font-size: 1rem;
    }

    /* התאמת מיכל רקע במובייל */
    .posts-grid-square-wrapper.has-background-container {
        padding: 25px 12px;
        border-radius: 6px;
    }

    /* מיכל רקע רק במובייל - מפעיל במובייל */
    .posts-grid-square-wrapper.has-background-mobile-only {
        padding: 25px 12px !important;
        background-color: var(--mobile-bg-color, #f5f5f5) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        border-radius: 6px !important;
        box-sizing: border-box;
        max-width: calc(100% - 20px);
        margin: 20px auto;
    }

    /* פינות מעוגלות למיכל במובייל */
    .posts-grid-square-wrapper.has-background-mobile-only.rounded-container {
        border-radius: 8px !important;
    }

    /* אם אין פינות מעוגלות */
    .posts-grid-square-wrapper.has-background-mobile-only:not(.rounded-container) {
        border-radius: 0 !important;
    }

    body.home .posts-grid-square-wrapper.has-background-container {
        max-width: calc(100% - 20px) !important;
        margin: 20px auto !important;
    }
}

@media (max-width: 600px) {

    .posts-grid-square-container[data-columns="6"],
    .posts-grid-square-container[data-columns="5"],
    .posts-grid-square-container[data-columns="4"],
    .posts-grid-square-container[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }

    /* התאמת מיכל רקע רק במובייל במסכים קטנים */
    .posts-grid-square-wrapper.has-background-mobile-only {
        padding: 20px 10px !important;
        max-width: calc(100% - 10px);
        margin: 10px auto;
    }

    /* מרווחים למיכל רוחב מלא במובייל קטן */
    body.home .posts-grid-square-wrapper.has-background-container.full-width-container {
        padding: 20px 10px !important;
        /* padding קטן יותר במסכים קטנים */
    }

    /* התאמת פינות מעוגלות במסכים קטנים */
    .posts-grid-square-wrapper.has-background-mobile-only.rounded-container {
        border-radius: 6px !important;
    }

    /* הכתבה הראשונה תופסת את כל הרוחב במובייל */
    .posts-grid-square-container .grid-item:first-child {
        grid-column: span 2;
    }

    /* עיצוב ייחודי לכתבה הראשונה במובייל */
    .posts-grid-square-container.subtle-frame .grid-item:first-child .article-card-square {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .posts-grid-square-container.regular-frame .grid-item:first-child .article-card-square {
        border-width: 2px;
        border-color: #d0d0d0;
    }

    /* תמונה גדולה יותר לכתבה הראשונה */
    .posts-grid-square-container .grid-item:first-child .square-image-container {
        aspect-ratio: 16 / 9;
        /* יחס רחב יותר לכתבה הראשונה */
    }

    /* הגדלת הכותרת של הכתבה הראשונה */
    .posts-grid-square-container .grid-item:first-child .article-title {
        font-size: 1.4rem;
        font-weight: 700;
        -webkit-line-clamp: 3;
        /* 3 שורות במקום 2 */
        min-height: auto;
        /* ביטול גובה מינימלי שיצר מרווח מיותר */
        margin-bottom: 8px;
        /* הקטנת המרווח התחתון משמעותית */
    }

    /* הגדלת התוכן של הכתבה הראשונה */
    .posts-grid-square-container .grid-item:first-child .article-content {
        padding: 20px 20px 10px 20px;
        /* הקטנת המרווח התחתון ל-10px */
    }

    /* תגית קטגוריה גדולה יותר בכתבה הראשונה */
    .posts-grid-square-container .grid-item:first-child .category-tag {
        font-size: 1rem;
        padding: 5px 14px;
        top: 15px;
        /* מיקום מותאם לכתבה הראשונה */
        right: 15px;
    }

    /* הקטנת מרווחים במטא-דאטה של הכתבה הראשונה */
    .posts-grid-square-container .grid-item:first-child .article-meta {
        padding-top: 5px;
        /* מרווח עליון מינימלי */
        margin-bottom: 0;
        /* ביטול מרווח תחתון */
        margin-top: auto;
        /* דחיפה לתחתית המיכל */
    }

    /* הסתרת הכתבה האחרונה כאשר יש מספר זוגי של כתבות (ללא הראשונה) */
    .posts-grid-square-container.hide-last-mobile .grid-item:last-child {
        display: none;
    }

    .posts-grid-square-container {
        gap: 10px;
        /* הקטנת הרווח בין הכרטיסיות במובייל */
    }

    .article-content {
        padding: 15px;
        padding-bottom: 8px;
        /* הקטנת המרווח התחתון באופן משמעותי */
    }

    /* הקטנת padding לכרטיסיות הקטנות (לא הראשונה) */
    .posts-grid-square-container .grid-item:not(:first-child) .article-content {
        padding: 12px 10px 6px 10px;
        /* הקטנת המרווח התחתון ל-6px */
    }

    /* שמירה על שורה אחת למטא-דאטה בכתבות שאינן הראשונה */
    .posts-grid-square-container .grid-item:not(:first-child) .article-meta {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1rem;
        ;
        /* הקטנת הפונט */
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-top: 5px;
        /* הקטנת המרווח העליון של המטא-דאטה */
        margin-bottom: 0;
        /* ביטול מרווח תחתון */
    }

    /* התאמת רווחים במטא-דאטה */
    .posts-grid-square-container .grid-item:not(:first-child) .article-meta .separator {
        margin: 0 4px;
        /* הקטנת הרווחים */
    }

    /* הקטנת הפונט עוד יותר במסכים קטנים */
    @media (max-width: 480px) {
        .posts-grid-square-container .grid-item:not(:first-child) .article-meta {
            font-size: 1rem;
            ;
        }

        .posts-grid-square-container .grid-item:not(:first-child) .article-meta .separator {
            margin: 0 3px;
        }
    }

    /* התאמות נוספות למסכים קטנים במיוחד (אייפון SE וכדומה) */
    @media (max-width: 380px) {
        .posts-grid-square-container {
            gap: 8px;
            /* רווח קטן עוד יותר */
        }

        .posts-grid-square-container .grid-item:not(:first-child) .article-content {
            padding: 10px 8px 5px 8px;
            /* הקטנת המרווח התחתון ל-5px */
        }

        .posts-grid-square-container .grid-item:not(:first-child) .article-title {
            font-size: 1rem;
            /* כותרת קטנה יותר */
        }

        .posts-grid-square-container .grid-item:not(:first-child) .category-tag {
            font-size: 1rem;
            padding: 3px 8px;
            top: 8px;
            /* מיקום מותאם לכרטיסיות קטנות */
            right: 8px;
        }

        /* וודא שהכרטיסיות לא גולשות */
        .posts-grid-square-container .grid-item {
            min-width: 0;
            /* מאפשר לכרטיסיות להתכווץ */
        }

        .posts-grid-square-wrapper {
            overflow-x: hidden;
            /* מונע גלילה אופקית */
        }
    }

    /* התאמת מיכל רקע במסכים קטנים */
    .posts-grid-square-wrapper.has-background-container {
        padding: 20px 10px;
    }

    /* התאמת תגית קטגוריה במסכים קטנים */
    .posts-grid-square-container .category-tag {
        top: 8px;
        right: 8px;
        font-size: 1rem;
        padding: 3px 10px;
    }

    /* התאמת מיכל רקע רק במובייל במסכים קטנים מאוד */
    .posts-grid-square-wrapper.has-background-mobile-only {
        padding: 18px 10px !important;
    }
}

@media (max-width: 300px) {

    /* רק במסכים קטנים במיוחד - עמודה אחת */
    .posts-grid-square-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* במסכים קטנים מאוד, הכתבה הראשונה כבר תופסת את כל הרוחב בגלל עמודה אחת */
    .posts-grid-square-container .grid-item:first-child {
        grid-column: span 1;
        /* ביטול ה-span 2 מה-media query הקודם */
    }

    /* הסתרת הכתבה האחרונה במסכים קטנים מאוד - אותה לוגיקה */
    .posts-grid-square-container.hide-last-mobile .grid-item:last-child {
        display: none;
    }

    /* במסכים קטנים מאוד כל הכתבות ברוחב מלא, אז מחזירים גודל פונט רגיל */
    .posts-grid-square-container .article-meta {
        font-size: 1rem !important;
        white-space: normal !important;
    }

    /* התאמת מיכל רקע במסכים קטנים מאוד */
    .posts-grid-square-wrapper.has-background-container {
        padding: 15px 8px;
        border-radius: 4px;
    }

    /* התאמת מיכל רקע רק במובייל במסכים קטנים מאוד */
    .posts-grid-square-wrapper.has-background-mobile-only {
        padding: 15px 8px !important;
        max-width: calc(100% - 10px) !important;
        margin: 10px auto !important;
    }

    /* התאמת פינות מעוגלות במסכים קטנים מאוד */
    .posts-grid-square-wrapper.has-background-mobile-only.rounded-container {
        border-radius: 4px !important;
    }

    /* התאמת תגית קטגוריה במסכים קטנים מאוד */
    .posts-grid-square-container .category-tag {
        top: 6px;
        right: 6px;
        font-size: 1rem;
        padding: 2px 8px;
    }

    body.home .posts-grid-square-wrapper.has-background-container {
        max-width: calc(100% - 10px) !important;
        margin: 10px auto !important;
    }
}

/* אנימציות לטעינה */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.article-card-square {
    animation: fadeIn 0.5s ease backwards;
}

/* עיכוב הדרגתי לאנימציה */
.grid-item:nth-child(1) .article-card-square {
    animation-delay: 0.05s;
}

.grid-item:nth-child(2) .article-card-square {
    animation-delay: 0.1s;
}

.grid-item:nth-child(3) .article-card-square {
    animation-delay: 0.15s;
}

.grid-item:nth-child(4) .article-card-square {
    animation-delay: 0.2s;
}

.grid-item:nth-child(5) .article-card-square {
    animation-delay: 0.25s;
}

.grid-item:nth-child(6) .article-card-square {
    animation-delay: 0.3s;
}

/* עיצוב נוסף לגריד עם מספר שורות */
.posts-grid-square-container[data-rows="2"] {
    max-height: none;
}

.posts-grid-square-container[data-rows="3"] {
    max-height: none;
}

.posts-grid-square-container[data-rows="4"] {
    max-height: none;
}

/* התאמות למספר שורות במובייל */
@media (max-width: 768px) {

    /* במובייל, מגבילים את מספר השורות המוצגות */
    .posts-grid-square-container[data-rows="4"] {
        max-height: 800px;
        overflow-y: auto;
    }
}

/* ========== סגנון כהה ========== */
.posts-grid-square-container.style-dark .article-card-square .article-content {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
    color: #fff;
    position: relative;
    transition: background 0.3s ease;
}

/* מסגרת רגילה בסגנון כהה */
.posts-grid-square-container.style-dark.regular-frame .article-card-square {
    border-color: rgba(255, 255, 255, 0.2);
}

.posts-grid-square-container.style-dark.regular-frame .article-card-square:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* אפקט hover על הכרטיסייה בסגנון כהה */
.posts-grid-square-container.style-dark .article-card-square:hover .article-content {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 1) 100%);
}

/* תגית קטגוריה בסגנון כהה - שומר על העיצוב החדש */
.posts-grid-square-container.style-dark .category-tag {
    background: #7181BF !important;
    /* אותו רקע כחול */
    color: #FFFFFF !important;
    /* אותו טקסט לבן */
    border: none !important;
}

.posts-grid-square-container.style-dark .category-tag:hover {
    background: #273B6B !important;
    /* כחול כהה בhover */
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(113, 129, 191, 0.3);
}

/* כותרת בסגנון כהה */
.posts-grid-square-container.style-dark .article-card-square .article-title {
    color: #fff;
}

.posts-grid-square-container.style-dark .article-card-square a:hover .article-title {
    color: #ccc;
}

/* מטא-דאטה בסגנון כהה - שומר על הצבעים הכחולים */
.posts-grid-square-container.style-dark .article-meta-container {
    border-top: 1px solid #7183C0;
    /* פס עליון בצבע כחול בהיר */
}

.posts-grid-square-container.style-dark .article-card-square .article-meta {
    color: #273B6B;
    /* שומר על הצבע הכחול הכהה */
}

.posts-grid-square-container.style-dark .article-meta .author {
    color: #7183C0;
    /* צבע כחול בהיר לכותב */
    font-weight: 700;
}

.posts-grid-square-container.style-dark .article-meta .separator {
    color: #273B6B;
    /* צבע כחול כהה לפרדות */
}

.posts-grid-square-container.style-dark .article-meta .date {
    color: #273B6B;
    /* צבע כחול כהה לתאריך */
}

.posts-grid-square-container.style-dark .article-meta .ttfc-reading-time {
    color: #273B6B;
}

.posts-grid-square-container.style-dark .article-meta .ttfc-reading-time .ttfc-reading-time__text {
    color: #273B6B;
}

/* SVG בסגנון כהה */
.posts-grid-square-container.style-dark .article-meta .ttfc-reading-time svg {
    /* הצבע כבר מוגדר ב-SVG עצמו */
}

/* כרטיסיות placeholder בסגנון כהה */
.posts-grid-square-container.style-dark .article-card-square.placeholder .article-content {
    background: rgba(0, 0, 0, 0.5);
}

.posts-grid-square-container.style-dark .article-card-square.placeholder .article-title {
    color: rgba(255, 255, 255, 0.5);
}

.posts-grid-square-container.style-dark .article-card-square.placeholder .article-meta {
    color: rgba(255, 255, 255, 0.3);
}

/* ========== סגנון ללא מסגרת ========== */
.posts-grid-square-container.no-frame .article-card-square {
    box-shadow: none;
    border: none;
    background: transparent;
}

/* שימוש בצבע רקע מותאם אישית גם במצב ללא מסגרת */
.posts-grid-square-container.style-light.no-frame .article-card-square {
    background: var(--cards-bg-color, transparent);
}

.posts-grid-square-container.no-frame .article-card-square:hover {
    transform: translateY(-2px);
    box-shadow: none;
    border: none;
}

.posts-grid-square-container.no-frame .article-content {
    padding: 15px 0;
    background: transparent;
}

/* category-tag ב-no-frame משתמש בכללים הבסיסיים */

.posts-grid-square-container.no-frame .article-card-square .article-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.posts-grid-square-container.no-frame .article-meta-container {
    border-top: none;
    padding-top: 0;
}

.posts-grid-square-container.no-frame .article-card-square .article-meta {
    font-size: 1rem;
    color: #273B6B;
    /* שומר על הצבע הכחול הכהה */
}

/* שילוב סגנון כהה עם ללא מסגרת */
.posts-grid-square-container.style-dark.no-frame .article-content {
    background: transparent;
    color: inherit;
}

.posts-grid-square-container.style-dark.no-frame .article-card-square .article-title {
    color: var(--primary-text-color, #1a1a1a);
}

.posts-grid-square-container.style-dark.no-frame .article-card-square a:hover .article-title {
    color: var(--primary-color, #0073aa);
}

.posts-grid-square-container.style-dark.no-frame .article-card-square .article-meta {
    color: #666;
    border-top: none;
}

.posts-grid-square-container.style-dark.no-frame .article-meta .author {
    color: #7183C0;
    /* צבע כחול בהיר לכותב */
    font-weight: 700;
}

.posts-grid-square-container.style-dark.no-frame .article-meta .separator {
    color: #273B6B;
    /* צבע כחול כהה לפרדות */
}

.posts-grid-square-container.style-dark.no-frame .article-meta .date {
    color: #273B6B;
    /* צבע כחול כהה לתאריך */
}

.posts-grid-square-container.style-dark.no-frame .article-meta .ttfc-reading-time {
    color: #273B6B;
}

.posts-grid-square-container.style-dark.no-frame .article-meta .ttfc-reading-time .ttfc-reading-time__text {
    color: #273B6B;
}

/* SVG בסגנון no-frame */
.posts-grid-square-container.style-dark.no-frame .article-meta .ttfc-reading-time svg {
    /* הצבע כבר מוגדר ב-SVG עצמו */
}

.posts-grid-square-container.style-dark.no-frame .category-tag {
    background: #7181BF !important;
    /* רקע כחול */
    color: #FFFFFF !important;
    /* טקסט לבן */
    border: none !important;
}

.posts-grid-square-container.style-dark.no-frame .category-tag:hover {
    background: #273B6B !important;
    /* כחול כהה בhover */
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(113, 129, 191, 0.3);
}

/* === Imported from: homepage-blocks/_all-posts-grid.css === */
/* בלוק כל הכתבות באתר - גריד עם תמונות מרובעות */

/* Wrapper ראשי להגבלת רוחב */
.all-posts-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    transition: all 0.3s ease;
}

/* מיכל רקע */
.all-posts-grid-wrapper.has-background-container {
    padding: 40px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box; /* padding נספר בתוך מגבלת הרוחב */
    max-width: 1200px;      /* המיכל עצמו מוגבל ל-1200px */
    margin: 40px auto;      /* יישור כמו section */
}

/* מסגרת למיכל */
.all-posts-grid-wrapper.has-border {
    border-style: solid;
}

/* פינות מעוגלות למיכל רקע - לא למיכל רוחב מלא */
.all-posts-grid-wrapper.rounded-container:not(.full-width-container) {
    border-radius: 5px;
}

/* מיכל רקע רק במובייל - מוסתר בדסקטופ */
.all-posts-grid-wrapper.has-background-mobile-only {
    /* בדסקטופ - ללא רקע ו-padding */
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* מיכל רקע ברוחב מלא */
.all-posts-grid-wrapper.has-background-container.full-width-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    border-radius: 0;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* התאמת התוכן הפנימי במיכל רוחב מלא */
.all-posts-grid-wrapper.full-width-container .all-posts-grid-section {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px;
}

/* התאמת section במיכל רוחב מלא */
.all-posts-grid-wrapper.has-background-container.full-width-container .all-posts-grid-section {
    margin: 0 auto !important;
    padding: 0 !important;
}

/* וידוא שה-container עצמו ממורכז */
.all-posts-grid-wrapper.full-width-container .all-posts-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* עוקף את הכללים הגלובליים של עמוד הבית */
body.home .all-posts-grid-wrapper:not(.full-width-container) {
    max-width: 1200px !important;
    width: auto !important;
}

/* מיכל ברוחב מלא - עוקף הגבלות */
body.home .all-posts-grid-wrapper.full-width-container {
    max-width: none !important;
    width: 100vw !important;
}

/* התאמה כשיש מיכל רקע רגיל (לא רוחב מלא) */
body.home .all-posts-grid-wrapper.has-background-container:not(.full-width-container) {
    max-width: 1200px !important; /* המיכל עצמו מוגבל, ה-padding בתוך ה-1200 */
    width: auto !important;
}

body.home .all-posts-grid-section {
    margin: 40px auto !important;
    padding: 0 20px !important;
    width: auto !important;
}

/* התאמה כשיש מיכל רקע רגיל (לא רוחב מלא) */
.all-posts-grid-wrapper.has-background-container:not(.full-width-container) .all-posts-grid-section {
    margin: 0 !important;
    padding: 0 !important;
}

/* התאמת section כשהמיכל רק במובייל - בדסקטופ */
@media (min-width: 769px) {
    .all-posts-grid-wrapper.has-background-mobile-only .all-posts-grid-section {
        /* בדסקטופ - חוזר להתנהגות רגילה */
        margin: 40px auto !important;
        padding: 0 20px !important;
    }
}

/* התאמת section כשהמיכל רק במובייל - במובייל */
@media (max-width: 768px) {
    .all-posts-grid-wrapper.has-background-mobile-only .all-posts-grid-section {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* מיכל רקע ברוחב מלא במובייל - פתרון פשוט */
    body.home .all-posts-grid-wrapper.has-background-container.full-width-container {
        width: 100vw !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin-left: calc(-1 * (100vw - 100%) / 2) !important;
        margin-right: calc(-1 * (100vw - 100%) / 2) !important;
        padding: 20px 15px !important; /* הוספת padding אופקי למיכל עצמו */
        border-radius: 0;
        box-sizing: border-box !important;
        transform: none !important; /* ביטול ה-transform מהדסקטופ */
    }
    
    body.home .all-posts-grid-wrapper.full-width-container .all-posts-grid-section {
        padding: 0 !important; /* ביטול padding כי הוא כבר במיכל */
        max-width: 100%;
        margin: 0 auto;
    }
    
    body.home .all-posts-grid-wrapper.full-width-container .all-posts-grid-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
}

.all-posts-grid-section {
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1200px;
}

/* הכותרת משתמשת בעיצוב המשותף מקובץ _homepage-common.css */

/* קונטיינר הגריד */
.all-posts-grid-container {
    display: grid;
    gap: 30px;
    margin: 0 auto;
}

/* הגדרת מספר עמודות לפי data attribute */
.all-posts-grid-container[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.all-posts-grid-container[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.all-posts-grid-container[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.all-posts-grid-container[data-columns="6"] {
    grid-template-columns: repeat(6, 1fr);
}

/* כרטיסיית כתבה - עיצוב עם פינות ישרות */
.all-posts-grid-container .article-card-square {
    background: var(--cards-bg-color, #fff);
    /* ברירת מחדל ללא פינות מעוגלות */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ========== סגנונות מסגרת טקסט ========== */
/* מסגרת עדינה - ברירת המחדל */
.all-posts-grid-container.subtle-frame .article-card-square {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.all-posts-grid-container.subtle-frame .article-card-square:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* מסגרת רגילה */
.all-posts-grid-container.regular-frame .article-card-square {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.all-posts-grid-container .article-card-square:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

/* קונטיינר לתמונה */
.all-posts-grid-container .square-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: var(--aspect-ratio, 1 / 1); /* יחס דינמי עם ברירת מחדל 1:1 */
    overflow: hidden;
    background-color: #f0f0f0;
}

.all-posts-grid-container .square-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* חיתוך התמונה למילוי הריבוע */
    object-position: center; /* מרכוז התמונה */
    transition: transform 0.3s ease;
}

.all-posts-grid-container .article-card-square:hover .square-image-container img {
    transform: scale(1.05);
}

/* תוכן הכתבה */
.all-posts-grid-container .article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* תגית קטגוריה */
.all-posts-grid-container .category-tag {
    display: inline-block;
    background-color: var(--secondary-color-daat-bright) !important;
    color: var(--primary-color-daat) !important;
    border: 1px solid var(--primary-color-daat) !important;
    padding: 4px 12px;
    /* ברירת מחדל ללא פינות מעוגלות */
    font-size: 1rem;;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start; /* יישור לימין בגלל שהאתר בעברית */
}

.all-posts-grid-container .category-tag:hover {
    background-color: var(--primary-color-daat) !important;
    color: #fff !important;
    border-color: var(--primary-color-daat) !important;
    transform: translateY(-1px);
}

.all-posts-grid-container .article-card-square .article-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: var(--primary-text-color, #1a1a1a);
    transition: color 0.2s ease;
    
    /* גובה קבוע של 2 שורות */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.all-posts-grid-container .article-card-square a {
    text-decoration: none;
    color: inherit;
}

.all-posts-grid-container .article-card-square a:hover .article-title {
    color: var(--primary-color, #0073aa);
}

/* מטא-דאטה - כותב ותאריך */
.all-posts-grid-container .article-card-square .article-meta {
    font-size: 1rem;;
    color: #666;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-posts-grid-container .article-meta .author {
    font-weight: 500;
}

.all-posts-grid-container .article-meta .separator {
    color: #ccc;
}

.all-posts-grid-container .article-meta .date {
    color: #888;
}

/* ========== סגנון כהה ========== */
.all-posts-grid-container.style-dark .article-card-square .article-content {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
    color: #fff;
    position: relative;
    transition: background 0.3s ease;
}

/* אפקט hover על הכרטיסייה בסגנון כהה */
.all-posts-grid-container.style-dark .article-card-square:hover .article-content {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 1) 100%);
}

/* תגית קטגוריה בסגנון כהה */
.all-posts-grid-container.style-dark .category-tag {
    background-color: var(--secondary-color-daat-bright) !important;
    color: var(--primary-color-daat) !important;
    border: 1px solid var(--primary-color-daat) !important;
}

.all-posts-grid-container.style-dark .category-tag:hover {
    background-color: var(--primary-color-daat) !important;
    color: #fff !important;
    border-color: var(--primary-color-daat) !important;
}

/* כותרת בסגנון כהה */
.all-posts-grid-container.style-dark .article-card-square .article-title {
    color: #fff;
}

.all-posts-grid-container.style-dark .article-card-square a:hover .article-title {
    color: #ccc;
}

/* מטא-דאטה בסגנון כהה */
.all-posts-grid-container.style-dark .article-card-square .article-meta {
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.all-posts-grid-container.style-dark .article-meta .author {
    color: #fff;
}

.all-posts-grid-container.style-dark .article-meta .separator {
    color: rgba(255, 255, 255, 0.5);
}

.all-posts-grid-container.style-dark .article-meta .date {
    color: rgba(255, 255, 255, 0.7);
}

/* כרטיסיות placeholder */
.all-posts-grid-container .article-card-square.placeholder {
    opacity: 0.5;
    pointer-events: none;
}

.all-posts-grid-container .article-card-square.placeholder .square-image-container {
    background-color: #e0e0e0;
}

.all-posts-grid-container .article-card-square.placeholder img {
    opacity: 0.3;
}

/* כרטיסיות placeholder בסגנון כהה */
.all-posts-grid-container.style-dark .article-card-square.placeholder .article-content {
    background: rgba(0, 0, 0, 0.5);
}

.all-posts-grid-container.style-dark .article-card-square.placeholder .article-title {
    color: rgba(255, 255, 255, 0.5);
}

.all-posts-grid-container.style-dark .article-card-square.placeholder .article-meta {
    color: rgba(255, 255, 255, 0.3);
}

/* קישור לכל הכתבות */
.all-posts-link-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.view-all-posts-link {
    display: inline-block;
    padding: 14px 35px;
    background: #f7f7f7; /* רקע אפור בהיר מאוד */
    color: #000; /* טקסט שחור */
    text-decoration: none;
    /* ברירת מחדל ללא פינות מעוגלות */
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0; /* מסגרת אפורה כהה יותר מהרקע */
    position: relative;
    overflow: hidden;
}

.view-all-posts-link:hover {
    background: #ffffff; /* הבהרה עד לבן בהובר */
    color: #000; /* נשאר שחור */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10);
    border-color: #d0d0d0; /* מעט כהה יותר בהובר */
}

/* אפקט חץ לכפתור */
.view-all-posts-link::after {
    content: "←";
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.view-all-posts-link:hover::after {
    transform: translateX(-5px);
}

/* רספונסיביות */
@media (max-width: 1024px) {
    .all-posts-grid-container[data-columns="6"] {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .all-posts-grid-container[data-columns="5"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .all-posts-grid-container[data-columns="6"],
    .all-posts-grid-container[data-columns="5"],
    .all-posts-grid-container[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .all-posts-grid-container {
        gap: 20px;
    }
    
    .all-posts-grid-container .article-card-square .article-title {
        font-size: 1rem;
    }
    
    /* מיכל רקע במובייל */
    .all-posts-grid-wrapper.has-background-container {
        padding: 20px 10px;
        margin: 20px 10px;
    }
    
    /* מיכל רקע רק במובייל - מוצג במובייל */
    .all-posts-grid-wrapper.has-background-mobile-only {
        background-color: var(--mobile-bg-color) !important;
        padding: 20px 10px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        margin: 20px 10px !important;
    }
    
    .all-posts-grid-wrapper.has-background-mobile-only.rounded-container {
        border-radius: 8px !important;
    }
    
    /* וודא ש-border-radius לא מוחל אם אין rounded-container */
    .all-posts-grid-wrapper.has-background-mobile-only:not(.rounded-container) {
        border-radius: 0 !important;
    }
    
    body.home .all-posts-grid-wrapper.has-background-container {
        margin: 20px 10px !important;
    }
}

@media (max-width: 600px) {
    .all-posts-grid-container[data-columns="6"],
    .all-posts-grid-container[data-columns="5"],
    .all-posts-grid-container[data-columns="4"],
    .all-posts-grid-container[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* מיכל רקע במובייל קטן */
    .all-posts-grid-wrapper.has-background-container {
        padding: 15px 8px;
        margin: 15px 5px;
    }
    
    /* מרווחים למיכל רוחב מלא במובייל קטן */
    body.home .all-posts-grid-wrapper.has-background-container.full-width-container {
        padding: 20px 10px !important; /* padding קטן יותר במסכים קטנים */
    }
    
    /* מיכל רקע רק במובייל - מוצג במובייל קטן */
    .all-posts-grid-wrapper.has-background-mobile-only {
        padding: 15px 8px !important;
        margin: 15px 5px !important;
    }
    
    /* הכתבה הראשונה תופסת את כל הרוחב במובייל */
    .all-posts-grid-container .grid-item:first-child {
        grid-column: span 2;
    }
    
    /* עיצוב ייחודי לכתבה הראשונה במובייל */
    .all-posts-grid-container .grid-item:first-child .article-card-square {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* תמונה גדולה יותר לכתבה הראשונה */
    .all-posts-grid-container .grid-item:first-child .square-image-container {
        aspect-ratio: 16 / 9; /* יחס רחב יותר לכתבה הראשונה */
    }
    
    /* הגדלת הכותרת של הכתבה הראשונה */
    .all-posts-grid-container .grid-item:first-child .article-title {
        font-size: 1.4rem;
        font-weight: 700;
        -webkit-line-clamp: 3; /* 3 שורות במקום 2 */
        min-height: auto; /* ביטול גובה מינימלי שיצר מרווח מיותר */
        margin-bottom: 8px; /* הקטנת המרווח התחתון משמעותית */
    }
    
    /* הגדלת התוכן של הכתבה הראשונה */
    .all-posts-grid-container .grid-item:first-child .article-content {
        padding: 20px 20px 10px 20px; /* הקטנת המרווח התחתון ל-10px */
    }
    
    /* תגית קטגוריה גדולה יותר בכתבה הראשונה */
    .all-posts-grid-container .grid-item:first-child .category-tag {
        font-size: 1rem;;
        padding: 5px 14px;
    }
    
    /* הקטנת מרווחים במטא-דאטה של הכתבה הראשונה */
    .all-posts-grid-container .grid-item:first-child .article-meta {
        padding-top: 5px; /* מרווח עליון מינימלי */
        margin-bottom: 0; /* ביטול מרווח תחתון */
        margin-top: auto; /* דחיפה לתחתית המיכל */
    }
    
    /* הסתרת הכתבה האחרונה כאשר יש מספר זוגי של כתבות (ללא הראשונה) */
    .all-posts-grid-container.hide-last-mobile .grid-item:last-child {
        display: none;
    }
    
    .all-posts-grid-container {
        gap: 10px; /* הקטנת הרווח בין הכרטיסיות במובייל */
    }
    
    .all-posts-grid-container .article-content {
        padding: 15px;
        padding-bottom: 8px; /* הקטנת המרווח התחתון באופן משמעותי */
    }
    
    /* הקטנת padding לכרטיסיות הקטנות (לא הראשונה) */
    .all-posts-grid-container .grid-item:not(:first-child) .article-content {
        padding: 12px 10px 6px 10px; /* הקטנת המרווח התחתון ל-6px */
    }
    
    /* שמירה על שורה אחת למטא-דאטה בכתבות שאינן הראשונה */
    .all-posts-grid-container .grid-item:not(:first-child) .article-meta {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1rem;; /* הקטנת הפונט */
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-top: 5px; /* הקטנת המרווח העליון של המטא-דאטה */
        margin-bottom: 0; /* ביטול מרווח תחתון */
    }
    
    /* התאמת רווחים במטא-דאטה */
    .all-posts-grid-container .grid-item:not(:first-child) .article-meta .separator {
        margin: 0 4px; /* הקטנת הרווחים */
    }
    
    /* הקטנת הפונט עוד יותר במסכים קטנים */
    @media (max-width: 480px) {
        .all-posts-grid-container .grid-item:not(:first-child) .article-meta {
            font-size: 1rem;;
        }
        
        .all-posts-grid-container .grid-item:not(:first-child) .article-meta .separator {
            margin: 0 3px;
        }
    }
    
    /* התאמות נוספות למסכים קטנים במיוחד (אייפון SE וכדומה) */
    @media (max-width: 380px) {
        .all-posts-grid-container {
            gap: 8px; /* רווח קטן עוד יותר */
        }
        
        .all-posts-grid-container .grid-item:not(:first-child) .article-content {
            padding: 10px 8px 5px 8px; /* הקטנת המרווח התחתון ל-5px */
        }
        
        .all-posts-grid-container .grid-item:not(:first-child) .article-title {
            font-size: 1rem; /* כותרת קטנה יותר */
        }
        
        .all-posts-grid-container .grid-item:not(:first-child) .category-tag {
            font-size: 1rem;;
            padding: 3px 8px;
        }
        
        /* וודא שהכרטיסיות לא גולשות */
        .all-posts-grid-container .grid-item {
            min-width: 0; /* מאפשר לכרטיסיות להתכווץ */
        }
        
        .all-posts-grid-wrapper {
            overflow-x: hidden; /* מונע גלילה אופקית */
        }
    }
    
    .view-all-posts-link {
        padding: 12px 30px;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 300px) {
    /* רק במסכים קטנים במיוחד - עמודה אחת */
    .all-posts-grid-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* מיכל רקע במסכים קטנים מאוד */
    .all-posts-grid-wrapper.has-background-container,
    .all-posts-grid-wrapper.has-background-mobile-only {
        padding: 10px 5px !important;
        margin: 10px 2px !important;
    }
    
    .all-posts-grid-wrapper.has-background-mobile-only.rounded-container {
        border-radius: 5px !important;
    }
    
    body.home .all-posts-grid-wrapper.has-background-container {
        margin: 10px 2px !important;
    }
    
    /* במסכים קטנים מאוד, הכתבה הראשונה כבר תופסת את כל הרוחב בגלל עמודה אחת */
    .all-posts-grid-container .grid-item:first-child {
        grid-column: span 1; /* ביטול ה-span 2 מה-media query הקודם */
    }
    
    /* הסתרת הכתבה האחרונה במסכים קטנים מאוד - אותה לוגיקה */
    .all-posts-grid-container.hide-last-mobile .grid-item:last-child {
        display: none;
    }
    
    /* במסכים קטנים מאוד כל הכתבות ברוחב מלא, אז מחזירים גודל פונט רגיל */
    .all-posts-grid-container .article-meta {
        font-size: 1rem !important;
        white-space: normal !important;
    }
}

/* אנימציות לטעינה */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.all-posts-grid-container .article-card-square {
    animation: fadeIn 0.5s ease backwards;
}

/* עיכוב הדרגתי לאנימציה */
.all-posts-grid-container .grid-item:nth-child(1) .article-card-square { animation-delay: 0.05s; }
.all-posts-grid-container .grid-item:nth-child(2) .article-card-square { animation-delay: 0.1s; }
.all-posts-grid-container .grid-item:nth-child(3) .article-card-square { animation-delay: 0.15s; }
.all-posts-grid-container .grid-item:nth-child(4) .article-card-square { animation-delay: 0.2s; }
.all-posts-grid-container .grid-item:nth-child(5) .article-card-square { animation-delay: 0.25s; }
.all-posts-grid-container .grid-item:nth-child(6) .article-card-square { animation-delay: 0.3s; }
.all-posts-grid-container .grid-item:nth-child(7) .article-card-square { animation-delay: 0.35s; }
.all-posts-grid-container .grid-item:nth-child(8) .article-card-square { animation-delay: 0.4s; }
.all-posts-grid-container .grid-item:nth-child(9) .article-card-square { animation-delay: 0.45s; }
.all-posts-grid-container .grid-item:nth-child(10) .article-card-square { animation-delay: 0.5s; }

/* עיצוב נוסף לגריד עם מספר שורות */
.all-posts-grid-container[data-rows="2"],
.all-posts-grid-container[data-rows="3"],
.all-posts-grid-container[data-rows="4"],
.all-posts-grid-container[data-rows="5"],
.all-posts-grid-container[data-rows="6"] {
    max-height: none;
}

/* התאמות למספר שורות במובייל */
@media (max-width: 768px) {
    /* במובייל, מגבילים את מספר השורות המוצגות */
    .all-posts-grid-container[data-rows="5"],
    .all-posts-grid-container[data-rows="6"] {
        max-height: 1000px;
        overflow-y: auto;
        padding-left: 5px;
    }
    
    .all-posts-grid-container[data-rows="5"]::-webkit-scrollbar,
    .all-posts-grid-container[data-rows="6"]::-webkit-scrollbar {
        width: 6px;
    }
    
    .all-posts-grid-container[data-rows="5"]::-webkit-scrollbar-track,
    .all-posts-grid-container[data-rows="6"]::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .all-posts-grid-container[data-rows="5"]::-webkit-scrollbar-thumb,
    .all-posts-grid-container[data-rows="6"]::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    .all-posts-grid-container[data-rows="5"]::-webkit-scrollbar-thumb:hover,
    .all-posts-grid-container[data-rows="6"]::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* פינות מעוגלות */
.all-posts-grid-container.rounded-corners .article-card-square {
    border-radius: 5px;
}

.all-posts-grid-container.rounded-corners .square-image-container {
    border-radius: 8px 8px 0 0;
}

/* ========== סגנון ללא מסגרת ========== */
.all-posts-grid-container.no-frame .article-card-square {
    box-shadow: none;
    /* שומרים על צבע הרקע שהוגדר במשתנה --cards-bg-color */
    /* background נשאר כפי שהוגדר בכלל הבסיסי */
}

.all-posts-grid-container.no-frame .article-card-square:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.all-posts-grid-container.no-frame .article-content {
    padding: 15px 20px; /* שומרים על padding מלא גם בצדדים */
    /* שומרים על צבע הרקע במקום להפוך לשקוף */
    background: inherit;
}

.all-posts-grid-container.no-frame .category-tag {
    margin-bottom: 8px;
}

.all-posts-grid-container.no-frame .article-card-square .article-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.all-posts-grid-container.no-frame .article-card-square .article-meta {
    border-top: none;
    padding-top: 0;
    font-size: 1rem;;
}

/* שילוב סגנון כהה עם ללא מסגרת */
.all-posts-grid-container.style-dark.no-frame .article-content {
    /* שומרים על הגרדיאנט הכהה של הסגנון הכהה גם בללא מסגרת */
    /* background נשאר כפי שהוגדר בסגנון הכהה */
    color: inherit;
}

.all-posts-grid-container.style-dark.no-frame .article-card-square .article-title {
    color: var(--primary-text-color, #1a1a1a);
}

.all-posts-grid-container.style-dark.no-frame .article-card-square a:hover .article-title {
    color: var(--primary-color, #0073aa);
}

.all-posts-grid-container.style-dark.no-frame .article-card-square .article-meta {
    color: #666;
    border-top: none;
}

.all-posts-grid-container.style-dark.no-frame .article-meta .author {
    color: inherit;
    font-weight: 500;
}

.all-posts-grid-container.style-dark.no-frame .article-meta .separator {
    color: #ccc;
}

.all-posts-grid-container.style-dark.no-frame .article-meta .date {
    color: #888;
}

.all-posts-grid-container.style-dark.no-frame .category-tag {
    background-color: var(--secondary-color-daat-bright) !important;
    color: var(--primary-color-daat) !important;
    border: 1px solid var(--primary-color-daat) !important;
}

.all-posts-grid-container.style-dark.no-frame .category-tag:hover {
    background-color: var(--primary-color-daat) !important;
    color: #fff !important;
    border-color: var(--primary-color-daat) !important;
}

/* התאמות למצב ללא מסגרת במובייל */
@media (max-width: 600px) {
    /* שמירה על padding מתאים במובייל גם במצב ללא מסגרת */
    .all-posts-grid-container.no-frame .article-content {
        padding: 15px;
        padding-bottom: 8px;
    }
    
    /* הכתבה הראשונה במובייל - ללא מסגרת */
    .all-posts-grid-container.no-frame .grid-item:first-child .article-content {
        padding: 20px 20px 10px 20px;
    }
    
    /* הכתבות הקטנות במובייל - ללא מסגרת */
    .all-posts-grid-container.no-frame .grid-item:not(:first-child) .article-content {
        padding: 12px 10px 6px 10px;
    }
}

/* התאמות למסכים קטנים במיוחד - ללא מסגרת */
@media (max-width: 380px) {
    .all-posts-grid-container.no-frame .grid-item:not(:first-child) .article-content {
        padding: 10px 8px 5px 8px;
    }
}

/* וידוא שהגריד לא גולש במובייל במצב ללא מסגרת */
@media (max-width: 768px) {
    .all-posts-grid-container.no-frame {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden; /* מניעת גלילה אופקית */
    }
    
    .all-posts-grid-container.no-frame .grid-item {
        min-width: 0; /* מאפשר לכרטיסיות להתכווץ */
        width: 100%;
        box-sizing: border-box;
    }
}


/* === Imported from: homepage-blocks/_posts-tabs.css === */
/**
 * === בלוק כתבות עם טאבים ===
 */

/* Wrapper ראשי */
.posts-tabs-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* מיכל רקע משותף */
.posts-tabs-wrapper.with-background-container:not(.mobile-only-bg) {
  background: var(--bg-color, #f5f5f5);
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
  margin-bottom: 30px;
  overflow: visible; /* מאפשר לכפתורים לבלוט מחוץ למיכל */
}

/* מיכל רקע רק במובייל - ללא עיצוב בדסקטופ */
.posts-tabs-wrapper.with-background-container.mobile-only-bg {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 40px;
  margin-bottom: 40px;
  overflow: visible;
}

/* מיכל רקע ברוחב מלא */
.posts-tabs-wrapper.with-background-container.full-width-container {
  width: 100vw;
  position: relative;
  left: 0;
  right: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: none;
  border-radius: 0;
  padding: 20px 20px;
  box-sizing: border-box;
}

/* התאמת התוכן הפנימי במיכל רוחב מלא */
.posts-tabs-wrapper.full-width-container .posts-tabs-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.posts-tabs-wrapper.with-background-container:not(.mobile-only-bg) .posts-tabs-section {
  background: transparent;
  margin: 0;
  padding: 0;
}

/* מיכל רקע עם פינות מעוגלות */
.posts-tabs-wrapper.with-background-container:not(.mobile-only-bg)[data-rounded="no"] {
  border-radius: 0;
}

/* עוקף כללים גלובליים בעמוד הבית */
body.home .posts-tabs-wrapper:not(.full-width-container) {
  max-width: 1200px !important;
  width: auto !important;
}

/* מיכל ברוחב מלא - עוקף הגבלות */
body.home .posts-tabs-wrapper.full-width-container {
  max-width: none !important;
  width: 100vw !important;
}

/* מיכל הסקציה */
.posts-tabs-wrapper .posts-tabs-section {
  margin: 40px auto;
  padding: 0 20px;
  max-width: 1200px;
}

body.home .posts-tabs-wrapper .posts-tabs-section {
  margin: 40px auto !important;
  padding: 0 20px !important;
  width: auto !important;
}

/* === סרגל הטאבים === */
.posts-tabs-navigation {
  margin-bottom: 30px;
  border-bottom: none;
  position: relative;
}

.tabs-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f5f5f5;
}

/* סגנון scrollbar למקרה של הרבה טאבים */
.tabs-list::-webkit-scrollbar {
  height: 6px;
}

.tabs-list::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.tabs-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.tabs-list::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* סגנון כל טאב */
.tab-item {
  flex-shrink: 0;
}

.tab-button {
  background: transparent; /* רקע שקוף תמיד */
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  font-family: inherit;
  outline: none; /* הסרת קו המתאר */
}

.tab-button:hover {
  color: var(--secondary-color-daat);
  background-color: transparent; /* רקע שקוף - נשאר צבע הרקע המקורי */
}

/* טאב פעיל */
.tab-item.active .tab-button {
  color: var(--primary-color-daat);
  border-bottom-color: var(--secondary-color-daat);
  font-weight: 600;
  outline: none; /* הסרת קו המתאר גם בטאב פעיל */
}

/* הסרת outline גם במצבי פוקוס ולחיצה על הטאבים */
.tab-button:focus,
.tab-button:active {
  outline: none;
  box-shadow: none;
}

/* === תוכן הטאבים === */
.posts-tabs-content {
  position: relative;
  margin-top: 20px;
}

.tab-content {
  display: none;
  position: relative;
  align-items: center;
}

.tab-content.active {
  display: flex;
  justify-content: center; /* מרכז את הילדים באופק */
}

/* === כפתורי ניווט - עיצוב כפתור (ברירת מחדל) === */
.posts-tabs-wrapper.nav-button .nav-button {
  position: absolute;
  /* ממוקם במרכז התמונה - חישוב קבוע */
  top: 85px; /* מיקום קבוע שמתאים לרוב יחסי התמונה */
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 4px;
  width: 52px;  /* הגדלה ב-30% מ-40px */
  height: 78px; /* הגדלה ב-30% מ-60px */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 42px; /* הגדלה ב-30% מ-32px */
  font-weight: 500;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1;
}

.posts-tabs-wrapper.nav-button .nav-button:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.posts-tabs-wrapper.nav-button .nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.3);
}

/* === כפתורי ניווט - עיצוב חץ פשוט === */  
.posts-tabs-wrapper.nav-arrow .nav-button {
  position: absolute;
  /* ממוקם במרכז כל המיכל (תמונה + טקסט) */
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100; /* גבוה יותר כדי להיות מעל התוכן */
  color: var(--secondary-color-daat);
  font-size: 100px;
  font-weight: bold;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1;
  box-shadow: none;
  outline: none; /* הסרת קו המתאר */
}

.posts-tabs-wrapper.nav-arrow .nav-button:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.2);
  color: var(--primary-color-daat);
  opacity: 0.8;
}

/* הסרת outline גם במצבי פוקוס ולחיצה */
.posts-tabs-wrapper.nav-arrow .nav-button:focus,
.posts-tabs-wrapper.nav-arrow .nav-button:active {
  outline: none;
  box-shadow: none;
}

.posts-tabs-wrapper.nav-arrow .nav-button:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* === מיקום החיצים - עיצוב כפתור === */
.posts-tabs-wrapper.nav-button .nav-prev {
  left: -47px; /* 90% מהכפתור בחוץ (52px * 0.9) */
}

.posts-tabs-wrapper.nav-button .nav-next {
  right: -47px; /* 90% מהכפתור בחוץ (52px * 0.9) */
}

/* === מיקום החיצים - עיצוב חץ פשוט === */
.posts-tabs-wrapper.nav-arrow .nav-prev {
  left: -50px; /* מחוץ למיכל התוכן */
}

.posts-tabs-wrapper.nav-arrow .nav-next {
  right: -50px; /* מחוץ למיכל התוכן */
}

/* התאמת כפתורי ניווט במיכל רוחב מלא */
.posts-tabs-wrapper.full-width-container.nav-button .nav-prev {
  left: 10px; /* הכפתור בתוך המיכל */
}

.posts-tabs-wrapper.full-width-container.nav-button .nav-next {
  right: 10px; /* הכפתור בתוך המיכל */
}

/* מיקום הכפתורים מותאם לגובה התמונה */

/* === קרוסלת הכתבות === */
.posts-carousel {
  flex: 1;
  overflow: hidden;
  padding: 0;
  position: relative; /* הוספת position relative למיכל */
  margin: 0 auto;
  max-width: 100%;
  direction: ltr; /* כפה כיוון LTR על הקרוסלה עצמה */
}

.posts-track {
  display: flex; /* שינוי ל-flex רגיל */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  gap: var(--space-md);
  will-change: transform;
  flex-wrap: nowrap;
  padding: 0 10px; /* הוספת padding לקצוות המסילה */
}

/* גודל פריטים לפי מספר עמודות */
.posts-track[data-columns="3"] .carousel-item {
  flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
}

.posts-track[data-columns="4"] .carousel-item {
  flex: 0 0 calc(25% - var(--space-md) * 3 / 4);
}

.posts-track[data-columns="5"] .carousel-item {
  flex: 0 0 calc(20% - var(--space-md) * 4 / 5);
}

.posts-track[data-columns="6"] .carousel-item {
  flex: 0 0 calc(16.666% - var(--space-md) * 5 / 6);
}

/* === כרטיסיית כתבה === */
.posts-tabs-wrapper .article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
  direction: rtl; /* החזרת כיוון RTL לתוכן */
}

/* מסגרת עדינה (ברירת מחדל) */
.posts-tabs-wrapper .article-card.subtle-frame {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* מסגרת רגילה */
.posts-tabs-wrapper .article-card.regular-frame {
  border: 1px solid #e0e0e0;
  box-shadow: none;
}

/* פינות מעוגלות */
.posts-tabs-wrapper .article-card.rounded-corners {
  border-radius: 5px;
}

.posts-tabs-wrapper .article-card.rounded-corners figure {
  border-radius: 8px 8px 0 0;
}

/* ללא מסגרת */
.posts-tabs-wrapper .article-card.no-frame {
  box-shadow: none;
  border: none;
  background: transparent;
}

/* Hover effects לפי סגנון מסגרת */
.posts-tabs-wrapper .article-card.subtle-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.posts-tabs-wrapper .article-card.regular-frame:hover {
  transform: translateY(-2px);
  border-color: #c0c0c0;
  background: #fff;
}

.posts-tabs-wrapper .article-card.no-frame:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border: none;
}

.posts-tabs-wrapper .article-card figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--aspect-ratio, 3 / 2);
  width: 100%;
  position: relative;
  max-width: 100%;
  display: block;
  flex-shrink: 0; /* למנוע כיווץ של התמונה */
}

.posts-tabs-wrapper .article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
  max-width: 100%;
  max-height: 100%;
}

.posts-tabs-wrapper .article-card:hover img {
  transform: scale(1.05);
}

.posts-tabs-wrapper .article-title {
  font-size: 1.1rem;
  margin: 15px 15px 10px;
  line-height: 1.3;
  color: #222;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}

.posts-tabs-wrapper .article-card a {
  text-decoration: none;
  color: inherit;
}

.posts-tabs-wrapper .article-card a:hover .article-title {
  color: var(--primary-color-daat);
}

.posts-tabs-wrapper .article-meta {
  font-size: 1rem;;
  color: #777;
  margin: auto 15px 15px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.posts-tabs-wrapper .article-meta .ttfc-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.posts-tabs-wrapper .article-meta .separator {
  padding: 0 6px;
  color: #bbb;
}

.posts-tabs-wrapper .article-meta.columns-4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.posts-tabs-wrapper .article-meta.columns-3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === סגנון כהה === */
.posts-tabs-wrapper.style-dark {
  color: #ecf0f1;
}

/* רקע כהה כשאין מיכל רקע */
.posts-tabs-wrapper.style-dark:not(.with-background-container) .posts-tabs-section {
  background: #2c3e50;
  padding: 30px 20px;
  border-radius: 5px;
}

.posts-tabs-wrapper.style-dark .section-title {
  color: #ffffff;
}

.posts-tabs-wrapper.style-dark .tab-button {
  color: #bdc3c7;
}

.posts-tabs-wrapper.style-dark .tab-button:hover {
  color: #ecf0f1;
  background-color: transparent; /* רקע שקוף גם בסגנון כהה */
}

.posts-tabs-wrapper.style-dark .tab-item.active .tab-button {
  color: #ffffff;
  border-bottom-color: #3498db;
}

.posts-tabs-wrapper.style-dark .article-card {
  background: #34495e;
  color: #ecf0f1;
}

/* מסגרת עדינה בסגנון כהה */
.posts-tabs-wrapper.style-dark .article-card.subtle-frame {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.posts-tabs-wrapper.style-dark .article-card.subtle-frame:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* מסגרת רגילה בסגנון כהה */
.posts-tabs-wrapper.style-dark .article-card.regular-frame {
  border-color: rgba(255, 255, 255, 0.2);
}

.posts-tabs-wrapper.style-dark .article-card.regular-frame:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: #34495e;
}

.posts-tabs-wrapper.style-dark .article-title {
  color: #ffffff;
}

.posts-tabs-wrapper.style-dark .article-card a {
  color: inherit;
}

.posts-tabs-wrapper.style-dark .article-card a:hover .article-title {
  color: var(--secondary-color-daat);
}

.posts-tabs-wrapper.style-dark .article-meta {
  color: #95a5a6;
  border-top-color: #2c3e50;
}

/* עיצוב כפתורי ניווט בסגנון כהה */
.posts-tabs-wrapper.style-dark.nav-button .nav-button {
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: #ffffff;
}

.posts-tabs-wrapper.style-dark.nav-button .nav-button:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.posts-tabs-wrapper.style-dark.nav-button .nav-button:disabled {
  opacity: 0.3;
  background: rgba(0, 0, 0, 0.4);
}

/* עיצוב חיצים פשוטים בסגנון כהה */
.posts-tabs-wrapper.style-dark.nav-arrow .nav-button {
  color: #3498db; /* צבע כחול בסגנון כהה */
}

.posts-tabs-wrapper.style-dark.nav-arrow .nav-button:hover:not(:disabled) {
  color: #5dade2;
  opacity: 1;
}

/* === מיכל רקע עם סגנונות שונים === */
.posts-tabs-wrapper.with-background-container:not(.mobile-only-bg).style-dark {
  background: var(--bg-color, #2c3e50);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.posts-tabs-wrapper.with-background-container:not(.mobile-only-bg).style-light {
  background: var(--bg-color, #f8f9fa);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* סגנונות למיכל רקע רק במובייל */
@media screen and (max-width: 480px) {
  .posts-tabs-wrapper.with-background-container.mobile-only-bg.style-dark {
    background: var(--bg-color, #2c3e50);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .posts-tabs-wrapper.with-background-container.mobile-only-bg.style-light {
    background: var(--bg-color, #f8f9fa);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}

/* === תיקונים נוספים לסגנון כהה עם ללא מסגרת === */
.posts-tabs-wrapper.style-dark .article-card.no-frame {
  background: transparent;
  box-shadow: none;
  border: none;
}

.posts-tabs-wrapper.style-dark .article-card.no-frame:hover {
  box-shadow: none;
  border: none;
}

/* === Responsive === */

/* טאבלטים */
@media screen and (max-width: 1024px) {
  .posts-tabs-wrapper {
    padding: 0 15px;
  }
  
  /* עיצוב כפתור */
  .posts-tabs-wrapper.nav-button .nav-button {
    width: 47px;  /* הגדלה ב-30% מ-36px */
    height: 70px; /* הגדלה ב-30% מ-54px */
    font-size: 36px; /* הגדלה ב-30% מ-28px */
    top: 75px; /* התאמה לטאבלט */
  }
  
  .posts-tabs-wrapper.nav-button .nav-prev {
    left: -42px; /* 90% מהכפתור בחוץ (47px * 0.9) */
  }
  
  .posts-tabs-wrapper.nav-button .nav-next {
    right: -42px; /* 90% מהכפתור בחוץ (47px * 0.9) */
  }
  
  /* עיצוב חץ פשוט נשאר כמו שהוא */
}

/* מסכים קטנים */
@media screen and (max-width: 768px) {
  /* נשאיר כאן רק עיצוב בסיסי, בלי התאמות מיוחדות */
  .posts-tabs-wrapper {
    padding: 0 10px;
  }
  
  /* הקטנת רווחים אנכיים בין הבלוקים במסכים קטנים */
  body.home .posts-tabs-wrapper .posts-tabs-section {
    margin: 16px auto !important;
  }
  
  .posts-tabs-wrapper.with-background-container:not(.mobile-only-bg) {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 16px 12px;
  }
  
  .posts-tabs-navigation {
    margin-bottom: 10px;
  }
  
  /* התאמת מיקום חיצים פשוטים למסכים קטנים */
  .posts-tabs-wrapper.nav-arrow .nav-button {
    top: 50%; /* במרכז המיכל גם במסכים קטנים */
    font-size: 56px;
    outline: none; /* הסרת קו המתאר גם בטאבלטים */
  }
  
  /* הסרת outline גם במצבי פוקוס ולחיצה בטאבלטים */
  .posts-tabs-wrapper.nav-arrow .nav-button:focus,
  .posts-tabs-wrapper.nav-arrow .nav-button:active {
    outline: none;
    box-shadow: none;
  }
}

/* מובייל */
@media screen and (max-width: 480px) {
  .posts-tabs-wrapper {
    padding: 0;
    width: 100%;
    overflow: visible; /* מאפשר ללחצנים לבלוט מחוץ למיכל */
  }
  
  /* הקטנת רווחים אנכיים נוספת במסכים קטנים מאוד */
  body.home .posts-tabs-wrapper .posts-tabs-section {
    margin: 10px auto !important;
  }
  
  .posts-tabs-wrapper.with-background-container:not(.mobile-only-bg) {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px 8px;
  }
  
  /* מיכל רקע רק במובייל - מפעיל את המיכל רקע */
  .posts-tabs-wrapper.with-background-container.mobile-only-bg {
    background: var(--bg-color, #f5f5f5);
    padding: 20px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  /* מיכל רקע רק במובייל ברוחב מלא */
  .posts-tabs-wrapper.with-background-container.mobile-only-bg.full-width-container {
    width: 100vw;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 20px 10px;
    border-radius: 0;
    box-sizing: border-box;
  }
  
  /* מיכל רקע ברוחב מלא במובייל (כשהוא תמיד פעיל) */
  .posts-tabs-wrapper.with-background-container.full-width-container:not(.mobile-only-bg) {
    width: 100vw;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 20px 0;
    border-radius: 0;
    box-sizing: border-box;
  }
  
  .posts-tabs-wrapper.full-width-container .posts-tabs-section {
    padding: 0 10px;
  }
  
  .posts-tabs-content {
    overflow: visible; /* מאפשר ללחצנים לבלוט */
  }
  
  /* תיקון מיקום מרכזי של הכתבות */
  .posts-carousel {
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    padding: 0;
    width: 100%;
  }
  
  .posts-track {
    display: flex;
    gap: 30px; /* רווח בין הכתבות */
    padding: 0 15px; /* padding לקצוות */
    width: auto;
  }
  
  /* כל כתבה תופסת רוחב מסך פחות padding של ה-track וmargin בטיחותי */
  .posts-track[data-columns] .carousel-item {
    flex: 0 0 calc(100vw - 60px) !important;
    width: calc(100vw - 60px) !important;
    min-width: calc(100vw - 60px) !important;
    max-width: calc(100vw - 60px) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    box-sizing: border-box;
  }
  
  /* התאמת הכרטיסיות - הכרטיס עצמו ממלא את כל רוחב ה-item */
  .posts-tabs-wrapper .article-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* חשוב למנוע חריגה של התוכן */
    box-sizing: border-box;
  }
  
  .posts-tabs-wrapper .article-card figure {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    /* יחס התמונה נשאר כמו שהוגדר בהגדרות הכלליות */
  }
  
  /* כותרת ומטא יותר קומפקטיים */
  .posts-tabs-wrapper .article-title {
    font-size: 1rem;
    margin: 10px 12px 8px;
    -webkit-line-clamp: 2;
  }
  
  .posts-tabs-wrapper .article-meta {
    margin: auto 12px 10px;
    font-size: 1rem;;
    gap: 6px;
  }
  
  /* === סרגל הטאבים - התאמה דינמית === */
  .posts-tabs-navigation {
    margin-bottom: 15px;
    padding: 0 10px;
    overflow: hidden;
  }
  
  .tabs-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    overflow: hidden;
    flex-wrap: nowrap; /* אסור לרדת לשורה הבאה */
    width: 100%;
  }
  
  /* הסתרת scrollbar */
  .tabs-list::-webkit-scrollbar {
    display: none;
  }
  
  .tabs-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .tab-item {
    flex: 1 1 auto;
    min-width: 0; /* מאפשר להתכווץ */
  }
  
  /* גודל פונט דינמי בהתאם למספר הטאבים */
  .tab-button {
    padding: 8px 4px;
    font-size: clamp(11px, 2.5vw, 14px); /* גודל דינמי */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    outline: none; /* הסרת קו המתאר גם במובייל */
  }
  
  /* הסרת outline במצבי פוקוס ולחיצה במובייל */
  .tab-button:focus,
  .tab-button:active,
  .tab-item.active .tab-button {
    outline: none;
    box-shadow: none;
  }
  
  /* התאמה למספר טאבים שונה */
  .tabs-list:has(.tab-item:nth-child(5)) .tab-button {
    font-size: 12px;
    padding: 8px 3px;
  }
  
  .tabs-list:has(.tab-item:nth-child(6)) .tab-button {
    font-size: 11px;
    padding: 8px 2px;
  }
  
  .tabs-list:has(.tab-item:nth-child(7)) .tab-button {
    font-size: 10px;
    padding: 8px 2px;
  }
  
  /* כפתורי ניווט מותאמים - עיצוב כפתור */
  .posts-tabs-wrapper.nav-button .nav-button {
    width: 42px;  /* הגדלה ב-30% מ-32px */
    height: 62px; /* הגדלה ב-30% מ-48px */
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 31px; /* הגדלה ב-30% מ-24px */
    top: 100px; /* מיקום מותאם למובייל */
    z-index: 10;
  }
  
  /* הלחצנים מתחילים מקצה המסך ממש */
  .posts-tabs-wrapper.nav-button .nav-prev {
    /* יציאה מה-padding של posts-tabs-section כדי להגיע לקצה המסך */
    left: -20px;
  }
  
  .posts-tabs-wrapper.nav-button .nav-next {
    /* יציאה מה-padding של posts-tabs-section כדי להגיע לקצה המסך */
    right: -20px;
  }
  
  /* כפתורי ניווט - עיצוב חץ פשוט במובייל */
  .posts-tabs-wrapper.nav-arrow .nav-button {
    width: 50px;
    height: 100px;
    font-size: 48px;
    top: 50%; /* במרכז המיכל גם במובייל */
    outline: none; /* הסרת קו המתאר גם במובייל */
  }
  
  /* הסרת outline גם במצבי פוקוס ולחיצה במובייל */
  .posts-tabs-wrapper.nav-arrow .nav-button:focus,
  .posts-tabs-wrapper.nav-arrow .nav-button:active {
    outline: none;
    box-shadow: none;
  }
  
  .posts-tabs-wrapper.nav-arrow .nav-prev {
    left: -30px; /* קרוב לקצה המסך */
  }
  
  .posts-tabs-wrapper.nav-arrow .nav-next {
    right: -30px; /* קרוב לקצה המסך */
  }
  
  /* התאמת המיכל הראשי */
  .posts-tabs-section {
    padding: 0 10px;
    overflow: visible; /* מאפשר ללחצנים לבלוט */
  }
  
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
  }
}

/* === אנימציות === */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.active .carousel-item {
  animation: slideIn 0.4s ease forwards;
  animation-delay: calc(var(--item-index, 0) * 0.05s);
}

/* === עיצוב נוסף לחווית משתמש === */

/* אינדיקטור טעינה */
.posts-tabs-wrapper.loading {
  opacity: 0.6;
  pointer-events: none;
}

.posts-tabs-wrapper.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--secondary-color, #435068);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* הדגשת טאב בעת מעבר */
.tab-item {
  position: relative;
}

.tab-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  background: var(--secondary-color, #435068);
  transition: transform 0.3s ease;
}

.tab-item:hover::after {
  transform: translateX(-50%) scaleX(0.8);
}

.tab-item.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* spacing for reading time when 3 columns to separate from author+date */
.posts-tabs-wrapper .article-meta.columns-3 .ttfc-reading-time {
  margin-inline-start: 8px;
}

/* === Imported from: homepage-blocks/_featured-posts-split.css === */
/* בלוק פוסטים מובילים עם חלוקה - פוסט גדול ו-4 קטנים */

/* Wrapper ראשי להגבלת רוחב */
.featured-posts-split-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* עוקף את הכללים הגלובליים של עמוד הבית */
body.home .featured-posts-split-wrapper {
    max-width: 1200px !important;
    width: auto !important;
}

body.home .featured-posts-split-section {
    margin: 40px auto !important;
    padding: 0 20px !important;
    width: auto !important;
}

.featured-posts-split-section {
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1200px;
}

/* הכותרת משתמשת בעיצוב המשותף מקובץ _homepage-common.css */

/* קונטיינר ראשי עם חלוקה */
.featured-posts-split-container {
    display: flex;
    gap: 30px;
    margin: 0 auto;
}

/* כאשר הפוסט הגדול בצד ימין - הפוך את הסדר */
.featured-posts-split-container.main-right {
    flex-direction: row-reverse;
}

/* עמודת הפוסט הראשי - 50% מהרוחב */
.main-post-column {
    flex: 1;
    width: 50%;
}

/* עמודת הפוסטים הקטנים - 50% מהרוחב */
.side-posts-column {
    flex: 1;
    width: 50%;
}

/* גריד לפוסטים הקטנים - 2x2 */
.side-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    height: 100%;
}

/* כרטיסיית פוסט ראשי */
.main-post-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* כרטיסיית פוסט קטן */
.side-post-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.side-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* קונטיינר לתמונה עם יחס דינמי */
.post-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: var(--aspect-ratio, 1 / 1);
    overflow: hidden;
    background-color: #f0f0f0;
}

.post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.main-post-card:hover .post-image-container img,
.side-post-card:hover .post-image-container img {
    transform: scale(1.05);
}

/* תוכן הפוסט */
.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* תוכן הפוסט הקטן - יותר קומפקטי */
.side-post-card .post-content {
    padding: 15px;
}

/* תגית קטגוריה */
.category-tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.category-tag:hover {
    background-color: var(--primary-color, #0073aa);
    color: #fff;
    transform: translateY(-1px);
}

/* כותרת הפוסט הראשי */
.main-post-card .post-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: var(--primary-text-color, #1a1a1a);
    transition: color 0.2s ease;
}

/* כותרת הפוסטים הקטנים */
.side-post-card .post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: var(--primary-text-color, #1a1a1a);
    transition: color 0.2s ease;
    
    /* גובה קבוע של 2 שורות */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* תקציר הפוסט הראשי */
.main-post-card .post-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
    
    /* הגבלה ל-3 שורות */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* קישורים */
.main-post-card a,
.side-post-card a {
    text-decoration: none;
    color: inherit;
}

.main-post-card a:hover .post-title,
.side-post-card a:hover .post-title {
    color: var(--primary-color, #0073aa);
}

/* מטא-דאטה */
.post-meta {
    font-size: 1rem;
    color: #666;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-post-card .post-meta {
    font-size: 1rem;
    padding-top: 8px;
}

.post-meta .author {
    font-weight: 500;
}

.post-meta .separator {
    color: #ccc;
}

.post-meta .date {
    color: #888;
}

/* סגנון כהה */
.featured-posts-split-container.style-dark {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 5px;
}

.style-dark .main-post-card,
.style-dark .side-post-card {
    background: #333;
    color: #fff;
}

.style-dark .post-title {
    color: #fff;
}

.style-dark .post-excerpt,
.style-dark .post-meta {
    color: #ccc;
}

.style-dark .post-meta {
    border-top-color: #444;
}

.style-dark .category-tag {
    background-color: #444;
    color: #fff;
}

.style-dark .category-tag:hover {
    background-color: var(--primary-color, #0073aa);
}

.style-dark a:hover .post-title {
    color: #4db8ff;
}

/* פינות מעוגלות */
.rounded-corners .main-post-card,
.rounded-corners .side-post-card {
    border-radius: 5px;
}

.rounded-corners .post-image-container {
    border-radius: 8px 8px 0 0;
}

/* כרטיסיות placeholder */
.main-post-card.placeholder,
.side-post-card.placeholder {
    opacity: 0.5;
    pointer-events: none;
}

.placeholder .post-image-container {
    background-color: #e0e0e0;
}

/* רספונסיביות */
@media (max-width: 1024px) {
    .featured-posts-split-container {
        gap: 20px;
    }
    
    .main-post-card .post-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    /* במובייל - הפוסט הגדול למעלה, הקטנים למטה */
    .featured-posts-split-container {
        flex-direction: column;
        gap: 30px;
    }
    
    /* במובייל אין הבדל בין ימין לשמאל - תמיד עמודה */
    .featured-posts-split-container.main-right {
        flex-direction: column;
    }
    
    .main-post-column,
    .side-posts-column {
        width: 100%;
    }
    
    .side-posts-grid {
        gap: 15px;
    }
    
    .main-post-card .post-title {
        font-size: 1.4rem;
    }
    
    .side-post-card .post-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* במובייל - פריסה מיוחדת ל-4 הכתבות הקטנות */
    .side-posts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        gap: 15px;
    }
    
    /* 2 הכתבות הראשונות - תופסות עמודה אחת כל אחת בשורה הראשונה */
    .side-posts-grid .side-post-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .side-posts-grid .side-post-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* 2 הכתבות האחרונות - תופסות את כל הרוחב, כל אחת בשורה נפרדת */
    .side-posts-grid .side-post-item:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    
    .side-posts-grid .side-post-item:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 3;
    }
    
    /* 2 הכתבות הראשונות - תצוגה אנכית (תמונה מעל, טקסט מתחת) */
    .side-posts-grid .side-post-item:nth-child(1) .side-post-card,
    .side-posts-grid .side-post-item:nth-child(2) .side-post-card {
        flex-direction: column;
        height: auto;
    }
    
    .side-posts-grid .side-post-item:nth-child(1) .post-image-container,
    .side-posts-grid .side-post-item:nth-child(2) .post-image-container {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
    }
    
    /* הקטנת padding ב-2 הכתבות הראשונות */
    .side-posts-grid .side-post-item:nth-child(1) .post-content,
    .side-posts-grid .side-post-item:nth-child(2) .post-content {
        padding: 12px;
    }
    
    /* הקטנת כותרת ב-2 הכתבות הראשונות */
    .side-posts-grid .side-post-item:nth-child(1) .post-title,
    .side-posts-grid .side-post-item:nth-child(2) .post-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        min-height: 2.5em;
    }
    
    /* 2 הכתבות האחרונות - תצוגה אופקית (תמונה לצד טקסט) */
    .side-posts-grid .side-post-item:nth-child(3) .side-post-card,
    .side-posts-grid .side-post-item:nth-child(4) .side-post-card {
        flex-direction: row;
        height: 100px;
    }
    
    /* הבטחת רוחב קבוע לאלמנט הקישור של התמונה */
    .side-posts-grid .side-post-item:nth-child(3) .image-link,
    .side-posts-grid .side-post-item:nth-child(4) .image-link {
        display: block;
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }
    
    /* תמונה קטנה ריבועית לכתבות האופקיות */
    .side-posts-grid .side-post-item:nth-child(3) .post-image-container,
    .side-posts-grid .side-post-item:nth-child(4) .post-image-container {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
    }
    
    /* התאמת התוכן לכתבות האופקיות */
    .side-posts-grid .side-post-item:nth-child(3) .post-content,
    .side-posts-grid .side-post-item:nth-child(4) .post-content {
        padding: 10px 12px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    /* הסתרת תג קטגוריה בכתבות האופקיות */
    .side-posts-grid .side-post-item:nth-child(3) .category-tag,
    .side-posts-grid .side-post-item:nth-child(4) .category-tag {
        display: none;
    }
    
    /* הקטנת הכותרת בכתבות האופקיות */
    .side-posts-grid .side-post-item:nth-child(3) .post-title,
    .side-posts-grid .side-post-item:nth-child(4) .post-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        min-height: 2.4em;
    }
    
    /* התאמת הפונט במטא-דאטה */
    .side-posts-grid .side-post-item:nth-child(3) .post-meta,
    .side-posts-grid .side-post-item:nth-child(4) .post-meta {
        font-size: 1rem;
        padding-top: 5px;
    }
    
    /* פינות מעוגלות לכתבות האופקיות */
    .rounded-corners .side-posts-grid .side-post-item:nth-child(3) .post-image-container,
    .rounded-corners .side-posts-grid .side-post-item:nth-child(4) .post-image-container {
        border-radius: 8px 0 0 8px;
    }
    
    /* כותרת הפוסט הראשי */
    .main-post-card .post-title {
        font-size: 1.3rem;
    }
    
    .main-post-card .post-excerpt {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    /* במובייל קטן מאוד - התאמות נוספות */
    .main-post-card .post-title {
        font-size: 1.2rem;
    }
    
    .post-content {
        padding: 15px;
    }
    
    /* הקטנת הגודל של 2 הכתבות הראשונות */
    .side-posts-grid .side-post-item:nth-child(1) .post-title,
    .side-posts-grid .side-post-item:nth-child(2) .post-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        min-height: 2.4em;
    }
    
    .side-posts-grid .side-post-item:nth-child(1) .post-content,
    .side-posts-grid .side-post-item:nth-child(2) .post-content {
        padding: 10px;
    }
    
    .side-posts-grid .side-post-item:nth-child(1) .post-meta,
    .side-posts-grid .side-post-item:nth-child(2) .post-meta {
        font-size: 1rem;
    }
}

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

.main-post-card {
    animation: fadeInUp 0.5s ease backwards;
}

.side-post-card {
    animation: fadeInUp 0.5s ease backwards;
}

/* עיכוב הדרגתי לאנימציה של הפוסטים הקטנים */
.side-post-item:nth-child(1) .side-post-card { animation-delay: 0.1s; }
.side-post-item:nth-child(2) .side-post-card { animation-delay: 0.15s; }
.side-post-item:nth-child(3) .side-post-card { animation-delay: 0.2s; }
.side-post-item:nth-child(4) .side-post-card { animation-delay: 0.25s; }

/* התאמות ליחסי תמונה שונים */
.featured-posts-split-container[data-aspect-ratio="3:2"] .post-image-container {
    aspect-ratio: 3 / 2;
}

.featured-posts-split-container[data-aspect-ratio="4:3"] .post-image-container {
    aspect-ratio: 4 / 3;
}

/* במובייל - יחס תמונה קבוע לפוסט הראשי */
@media (max-width: 768px) {
    .main-post-card .post-image-container {
        aspect-ratio: 16 / 9;
    }
}



/* === Imported from: homepage-blocks/_mixed-layout.css === */
/**
 * === בלוק פריסה משולבת ===
 * בלוק עם כתבות אנכיות בימין וכתבות אופקיות בשמאל
 */

/* Wrapper ראשי */
.mixed-layout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    transition: all 0.3s ease;
}

/* רקע כללי לכל הבלוק */
.mixed-layout-wrapper.has-full-background {
    max-width: 80%;
    max-height: 60vh;
    /* מגביל את הגובה ל-60% מגובה המסך */
    overflow-y: auto;
    /* מאפשר גלילה אם התוכן גבוה מדי */
    margin: 0 auto;
    /* מרכז את הבלוק */
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 10px 20px !important;
    /* ריפוד מינימלי - 10px למעלה ולמטה, 20px לצדדים */
}

/* התאמת צבעי טקסט אוטומטית לרקע כללי */
.mixed-layout-wrapper.has-full-background .section-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 15px;
    /* הקטנת המרווח התחתון של הכותרת */
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    right: 16px;
}

/* הסרת ה-background-image הכללי מהכותרת בבלוק המשולב בלבד */
.mixed-layout-section .section-title:before {
    background-image: none !important;
    content: none !important;
    display: none !important;
}

/* אייקון ליד הכותרת */
.mixed-layout-wrapper .section-title .title-icon {
    display: inline-flex;
    align-items: center;
    position: relative;
    right: 25px;
    z-index: 1;
}

.mixed-layout-wrapper .section-title .title-icon svg {
    width: 35px;
    height: 33px;
    position: relative;
    z-index: 1;
}

/* הטקסט של הכותרת מעל האייקון */
.mixed-layout-wrapper .section-title {
    position: relative;
}

.mixed-layout-wrapper .section-title .title-text {
    position: relative;
    z-index: 2;
}

/* צבע קבוע לאייקון - תמיד בצבע המקורי */
.mixed-layout-wrapper .section-title .title-icon svg path {
    fill: #7183C0 !important;
}

/* רקע כהה - טקסט בהיר */
.mixed-layout-wrapper.has-full-background.dark-background .section-title {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    top: 4px;
}

/* רקע בהיר - טקסט כהה */
.mixed-layout-wrapper.has-full-background.light-background .section-title {
    color: #1a1a1a;
    text-shadow: none;
}

/* וודא שהכרטיסיות עצמן נשארות עם רקע לבן */
.mixed-layout-wrapper.has-full-background .article-card-square,
.mixed-layout-wrapper.has-full-background .most-read-article {
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* טקסט בכרטיסיות תמיד כהה */
.mixed-layout-wrapper.has-full-background .article-title,
.mixed-layout-wrapper.has-full-background .most-read-title {
    color: #1a1a1a !important;
}

.mixed-layout-wrapper.has-full-background .article-meta,
.mixed-layout-wrapper.has-full-background .most-read-meta,
.mixed-layout-wrapper.has-full-background .most-read-excerpt {
    color: #666666 !important;
}

.mixed-layout-wrapper.has-full-background .category-tag {
    background-color: #4B5A8C;
    color: #ffffff !important;
}

/* מספרי סדר בתחתית - התאמה לרקע */
.mixed-layout-wrapper.has-full-background.dark-background .post-number,
.mixed-layout-wrapper.has-full-background.dark-background .article-number {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 3rem;
}

.mixed-layout-wrapper.has-full-background.light-background .post-number,
.mixed-layout-wrapper.has-full-background.light-background .article-number {
    color: rgba(0, 0, 0, 0.2);
    font-weight: 700;
    font-size: 3rem;
}

/* רקע לסקשן */
body.home .mixed-layout-wrapper {
    padding: 20px 20px;
    /* ריפוד מינימלי למעלה ולמטה */
    margin: 0;
    max-width: 100%;
}

/* כשיש רקע כללי, הגבל את רוחב התוכן */
body.home .mixed-layout-wrapper.has-full-background .section-container {
    max-width: 1200px;
    margin: 0 auto;
}

body.home .mixed-layout-wrapper .section-container {
    max-width: 1200px;
    margin: 0 auto;
}

body.home .mixed-layout-wrapper.section-bg-light {
    background-color: #f5f5f5;
}

body.home .mixed-layout-wrapper.section-bg-dark {
    background-color: #4B5A8C;
}

body.home .mixed-layout-wrapper.section-bg-custom {
    /* צבע מותאם אישית מוגדר inline */
}

/* טקסט בהיר לרקע כהה */
body.home .mixed-layout-wrapper.text-light .section-title {
    color: #ffffff;
}

/* טקסט כהה לרקע בהיר */
body.home .mixed-layout-wrapper.text-dark .section-title {
    color: #1a1a1a;
}

/* מיכל רקע */
.mixed-layout-container.has-background-container {
    padding: 0px 0px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    /* padding נספר בתוך מגבלת הרוחב */
    margin-top: 0px;
    /* ריווח מהכותרת */
}

/* מסגרת למיכל */
.mixed-layout-container.has-border {
    border-style: solid;
}

/* התאמה כשיש רקע כללי */
.mixed-layout-wrapper.has-full-background .mixed-layout-container {
    background-color: transparent;
    box-shadow: none;
}

.mixed-layout-wrapper.has-full-background .mixed-layout-container.has-background-container {
    background-color: var(--container-bg-color, #f5f5f5);
    position: relative;
    right: 14px;
}

/* עוקף כללים גלובליים בעמוד הבית */
body.home .mixed-layout-wrapper {
    max-width: 1200px !important;
    width: auto !important;
}

/* עוקף כשיש רקע כללי */
body.home .mixed-layout-wrapper.has-full-background {
    max-width: 75% !important;
    width: 75% !important;
    max-height: 65vh !important;
    /* מגביל את הגובה ל-60% מגובה המסך */
    overflow-y: auto !important;
    /* מאפשר גלילה אם התוכן גבוה מדי */
    margin: 0 auto !important;
    /* מרכז את הבלוק */
    min-height: 475px;
}

/* התאמה כשיש מיכל רקע */
body.home .mixed-layout-container.has-background-container {
    max-width: 100% !important;
    width: auto !important;
}

/* יישור ומרווחים של המיכל הפנימי */
.mixed-layout-wrapper .mixed-layout-section.section-container {
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1200px;
}

body.home .mixed-layout-wrapper .mixed-layout-section.section-container {
    margin: 0px auto !important;
    padding: 0 0px !important;
    width: auto !important;
}



/* מיכל ראשי מחולק לשני חלקים */
.mixed-layout-container {
    display: flex;
    gap: 30px;
    width: 100%;
    margin-top: 20px;
    align-items: stretch;
}

/* כשיש רק חלק אנכי - תופס את כל הרוחב */
.mixed-layout-container.mode-vertical .vertical-posts-column {
    flex: 1 1 100%;
    max-width: 100%;
}

/* כשיש רק חלק אופקי - תופס את כל הרוחב */
.mixed-layout-container.mode-horizontal .horizontal-posts-column {
    flex: 1 1 100%;
    max-width: 100%;
}

/* כאשר layout_direction הוא ltr - הפוך את הסדר */
.mixed-layout-container.layout-ltr {
    flex-direction: row-reverse;
}

/* חלק ימני - כתבות אנכיות (דינמי לפי --split-ratio) */
.mixed-layout-container .vertical-posts-column {
    flex: 0 0 calc(var(--split-ratio, 50%) - 15px);
    width: calc(var(--split-ratio, 50%) - 15px);
}

/* חלק שמאלי - כתבות אופקיות (דינמי - השלמה ל-100%) */
.mixed-layout-container .horizontal-posts-column {
    flex: 0 0 calc((100% - var(--split-ratio, 50%)) - 15px);
    width: calc((100% - var(--split-ratio, 50%)) - 15px);
}

/* כשהחלוקה היא 0% - רק חלק אופקי */
.mixed-layout-container[data-split-ratio="0"] .vertical-posts-column {
    display: none;
}

.mixed-layout-container[data-split-ratio="0"] .horizontal-posts-column {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

/* כשהחלוקה היא 100% - רק חלק אנכי */
.mixed-layout-container[data-split-ratio="100"] .horizontal-posts-column {
    display: none;
}

.mixed-layout-container[data-split-ratio="100"] .vertical-posts-column {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

/* === חלק ימני - כתבות אנכיות === */
.vertical-posts-column .posts-grid-square-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    height: 100%;
    align-content: stretch;
}

/* תמיכה ב-3 כתבות */
.vertical-posts-column .posts-grid-square-container.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* תמיכה ב-4 כתבות */
.vertical-posts-column .posts-grid-square-container.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* תמיכה ב-5 כתבות עם התאמה אוטומטית למסך */
.vertical-posts-column .posts-grid-square-container.cols-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    /* פער בין הכרטיסים */
    padding: 0px;
    /* מרווח פנימי לכל הקונטיינר */
    margin: 0 0px;
    /* מרחיב את הקונטיינר לצדדים */
    width: calc(100% + 100px);
    /* מתאים לmargin השלילי */
    position: relative;
    right: 50px;
    top: 0px;
}

/* כרטיסיית כתבה אנכית */
.vertical-posts-column .article-card-square {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: var(--cards-bg-color, var(--white));
    transition: var(--transition-default);
    overflow: hidden;
}

.style-dark .vertical-posts-column .article-card-square {
    background: #545454;
    color: var(--white);
}

.vertical-posts-column .article-card-square:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/* תמונה בכרטיס אנכי */
.vertical-posts-column .square-image-container {
    aspect-ratio: var(--aspect-ratio, 1 / 1);
    overflow: hidden;
    width: 100%;
    flex-shrink: 0;
}

.vertical-posts-column .square-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-default);
}

.vertical-posts-column .article-card-square:hover img {
    transform: scale(1.05);
}

/* תוכן כרטיס אנכי */
.vertical-posts-column .article-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* התאמות ל-4 כתבות - פדינג קטן יותר */
.vertical-posts-column .posts-grid-square-container.cols-4 .article-content {
    padding: 10px;
}

/* הגדרות הטקסט כבר מוגדרות למעלה עם יחס 34% */

/* כשאין מסגרת ב-5 כתבות - הטקסט צמוד לתמונה */
.vertical-posts-column .posts-grid-square-container.cols-5.no-frame .article-card-square {
    box-shadow: none;
    background: transparent;
}

.vertical-posts-column .posts-grid-square-container.cols-5.no-frame .article-content {
    padding: 8px 0;
}

/* עיצוב מיוחד ל-5 כתבות - צל ורקע */
.vertical-posts-column .posts-grid-square-container.cols-5 .article-card-square {
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 370px;
    /* גובה מינימלי לכרטיס */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* יחס 58/42 בין תמונה לטקסט בכרטיסים */
.vertical-posts-column .posts-grid-square-container.cols-5 .article-card-square .image-link {
    flex: 0 0 58%;
    /* התמונה תופסת 58% מגובה הכרטיס */
    overflow: hidden;
    display: block;
    position: relative;
    /* כדי שהתג יהיה ביחס לתמונה */
    border-radius: 5px 5px 0 0; /* עיגול פינות עליונות */
    background: transparent; /* ללא רקע */
}

.vertical-posts-column .posts-grid-square-container.cols-5 .article-card-square .article-content {
    flex: 0 0 42%;
    /* הטקסט תופס 42% מגובה הכרטיס */
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vertical-posts-column .posts-grid-square-container.cols-5 .article-card-square:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}


/* התאמת התמונה לפינות המעוגלות */
.vertical-posts-column .posts-grid-square-container.cols-5 .square-image-container {
    border-radius: 5px 5px 0 0; /* פינות מעוגלות שוות בשני הצדדים העליונים */
    overflow: hidden;
    height: 100%;
    /* תופס את כל גובה האלמנט image-link (66%) */
    width: 100%;
}

.vertical-posts-column .posts-grid-square-container.cols-5 .square-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vertical-posts-column .posts-grid-square-container.cols-5 .article-card-square:hover .square-image-container img {
    transform: scale(1.08);
}

/* ביטול הרקע והצל הכלליים כשיש 5 כתבות */
.style-dark .vertical-posts-column .posts-grid-square-container.cols-5 .article-card-square {
    background: #FFFFFF;
    color: #333;
}

.style-dark .vertical-posts-column .posts-grid-square-container.cols-5 .article-title,
.style-dark .vertical-posts-column .posts-grid-square-container.cols-5 .article-meta {
    color: #333;
}

.vertical-posts-column .article-content.no-frame {
    padding: 10px 0;
}

.vertical-posts-column .article-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 10px 0;
    color: var(--heading-color, #333);

    /* ביטול ההגבלה לשתי שורות - הטקסט המלא יוצג כשיש מקום */
    display: block !important;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    min-height: unset !important;

    /* הגבלת גובה מקסימלי עם ellipsis רק כשאין מספיק מקום */
    max-height: 4.2em;
    /* מקום ל-3 שורות בערך */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* התאמות ל-4 כתבות - כותרת קטנה יותר */
.vertical-posts-column .posts-grid-square-container.cols-4 .article-title {
    font-size: 1rem;
    margin: 8px 0;
    max-height: 3.6em;
    /* מקום ל-3 שורות עם פונט קטן יותר */
}

/* התאמות ל-5 כתבות - כותרת קטנה עוד יותר */
.vertical-posts-column .posts-grid-square-container.cols-5 .article-title {
    font-size: 1.05rem;
    margin: 10px 0 8px 0;
    line-height: 1.4;
    font-weight: 700;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6em;
}

/* מטא דאטה ל-5 כתבות */
.vertical-posts-column .posts-grid-square-container.cols-5 .article-meta {
    font-size: 0.75rem;
    color: #888;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: space-around;
}

/* תג קטגוריה ל-5 כתבות - מוצב על התמונה למטה */
.vertical-posts-column .posts-grid-square-container.cols-5 .article-card-square {
    position: relative;
}

.vertical-posts-column .posts-grid-square-container.cols-5 .image-link {
    position: relative;
    /* כדי שהתג יהיה ביחס לתמונה */
}

.vertical-posts-column .posts-grid-square-container.cols-5 .category-tag {
    position: absolute;
    bottom: 10px;
    /* ממוקם בתחתית התמונה */
    right: 10px;
    z-index: 3;
    width: 50%;
    /* תופס חצי מרוחב התמונה */
    font-size: 0.75rem;
    padding: 0px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #4C72FF;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    top: 100%;
}

.vertical-posts-column .posts-grid-square-container.cols-5 .category-tag:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    cursor: pointer;
}

.vertical-posts-column .article-meta {
    font-size: 1rem;
    ;
    color: var(--gray-medium);
    margin-top: auto;
}

.style-dark .vertical-posts-column .article-meta {
    color: #ccc;
}

/* === חלק שמאלי - כתבות אופקיות === */
.horizontal-posts-column .posts-horizontal-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* כרטיסיית כתבה אופקית - גובה קבוע */
.horizontal-posts-column .most-read-articles-grid {
    display: flex;
    height: 180px;
    /* גובה קבוע לכל כתבה אופקית */
    align-items: stretch;
}

.horizontal-posts-column .wp-block-column {
    width: 100%;
}

.horizontal-posts-column .most-read-article {
    display: flex;
    background: var(--cards-bg-color, var(--white));
    height: 100%;
    transition: var(--transition-default);
    overflow: hidden;
    align-items: stretch;
    min-height: 100%;
}

.style-dark .horizontal-posts-column .most-read-article {
    background: #545454;
    color: var(--white);
}

.horizontal-posts-column .most-read-article:hover {
    transform: translateX(-5px);
    box-shadow: var(--box-shadow);
}

/* כיוון תצוגה */
.horizontal-posts-column .direction-ltr .most-read-article {
    flex-direction: row;
}

.horizontal-posts-column .direction-rtl .most-read-article {
    flex-direction: row-reverse;
}

/* תמונה בכרטיס אופקי */
.horizontal-posts-column .most-read-image {
    flex: 0 0 40%;
    margin: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.horizontal-posts-column .most-read-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-default);
}

.horizontal-posts-column .most-read-article:hover img {
    transform: scale(1.05);
}

/* תוכן כרטיס אופקי */
.horizontal-posts-column .most-read-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-posts-column .most-read-content.no-frame {
    padding: 15px;
}

.horizontal-posts-column .most-read-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--heading-color, #333);
}

.horizontal-posts-column .most-read-excerpt {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.style-dark .horizontal-posts-column .most-read-excerpt {
    color: #ccc;
}

.horizontal-posts-column .most-read-meta {
    font-size: 1rem;
    ;
    color: var(--gray-medium);
    margin-top: auto;
}

.style-dark .horizontal-posts-column .most-read-meta {
    color: #ccc;
}

/* תגית קטגוריה משותפת */
.mixed-layout-container .category-tag {
    display: inline-block;
    background-color: #444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 1rem;
    ;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.style-dark .mixed-layout-container .category-tag {
    background-color: #444;
    color: #ddd;
}

/* סגנון כהה - רקע כהה למיכל הראשי */
.mixed-layout-container.style-dark {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 5px;
}

.style-dark .mixed-layout-container .category-tag:hover {
    background-color: var(--primary-color, #0073aa);
}

/* דריסה ממוקדת: תגיות בכתבות אופקיות בתוך mixed-layout יהיו זהות לאנכיות */
.mixed-layout-container .most-read-articles-grid .category-tag {
    background-color: #444;
    color: #fff;
}

.mixed-layout-container .most-read-articles-grid .category-tag:hover {
    background-color: var(--primary-color, #0073aa);
    color: #fff;
    transform: translateY(-1px);
}

/* תיקון סלקטור למצב כהה כשהמחלקות על אותו אלמנט */
.mixed-layout-container.style-dark .category-tag {
    background-color: #444;
    color: #ddd;
}

.mixed-layout-container.style-dark .most-read-articles-grid .category-tag {
    background-color: #444;
    color: #ddd;
}

.mixed-layout-container.style-dark .most-read-articles-grid .category-tag:hover,
.mixed-layout-container.style-dark .category-tag:hover {
    background-color: var(--primary-color, #0073aa);
}

/* צבעי טקסט במצב כהה */
.style-dark .vertical-posts-column .article-title,
.style-dark .horizontal-posts-column .most-read-title {
    color: #fff;
}

.style-dark a:hover .article-title,
.style-dark a:hover .most-read-title {
    color: #4db8ff;
}

/* צבע אחיד לכותרות בקישורים */
a .vertical-posts-column .article-title,
a .horizontal-posts-column .most-read-title {
    color: var(--heading-color, #333);
}

a:hover .vertical-posts-column .article-title,
a:hover .horizontal-posts-column .most-read-title {
    color: var(--primary-color, #0073aa);
}

.mixed-layout-container .category-tag:hover {
    background-color: var(--primary-color, #0073aa);
    color: #fff;
    transform: translateY(-1px);
}

/* פינות מעוגלות */
.rounded-corners .article-card-square,
.rounded-corners .most-read-article {
    border-radius: 5px;
    overflow: hidden;
}

.rounded-corners .square-image-container,
.rounded-corners .most-read-image {
    border-radius: 0;
}

/* placeholder לכרטיסיות ריקות */
.mixed-layout-container .placeholder {
    opacity: 0.3;
    pointer-events: none;
}

/* הפרדה בין פריטים */
.mixed-layout-container .separator {
    margin: 0 8px;
    color: var(--gray-medium);
}

/* התאמת גובה לתמונות אופקיות לפי יחס */
.horizontal-posts-column [data-aspect-ratio="16:9"] .most-read-image {
    min-height: 120px;
}

.horizontal-posts-column [data-aspect-ratio="4:3"] .most-read-image {
    min-height: 140px;
}

.horizontal-posts-column [data-aspect-ratio="3:2"] .most-read-image {
    min-height: 130px;
}

.horizontal-posts-column [data-aspect-ratio="1:1"] .most-read-image {
    min-height: 160px;
}

/* === Responsive === */

/* התאמת מיכל רקע ועיצוב כהה בטאבלט */
/* התאמה אוטומטית של מספר הכרטיסים לפי רוחב המסך */
@media (max-width: 1600px) and (min-width: 1401px) {
    /* כשהמסך קטן מ-1600px - מקסימום 4 כרטיסים */
    .vertical-posts-column .posts-grid-square-container.cols-5 {
        grid-template-columns: repeat(4, 1fr) !important;
        width: 100% !important;
        right: 0 !important;
    }
    .vertical-posts-column .posts-grid-square-container.cols-5 .grid-item:nth-child(5) {
        display: none !important;
    }
}

@media (max-width: 1400px) and (min-width: 1201px) {
    /* כשהמסך קטן מ-1400px - מקסימום 3 כרטיסים */
    .vertical-posts-column .posts-grid-square-container.cols-5 {
        grid-template-columns: repeat(3, 1fr) !important;
        width: 100% !important;
        right: 0 !important;
    }
    .vertical-posts-column .posts-grid-square-container.cols-5 .grid-item:nth-child(n+4) {
        display: none !important;
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    /* כשהמסך קטן מ-1200px - מקסימום 2 כרטיסים */
    .vertical-posts-column .posts-grid-square-container.cols-5 {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        right: 0 !important;
    }
    .vertical-posts-column .posts-grid-square-container.cols-5 .grid-item:nth-child(n+3) {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .mixed-layout-container.has-background-container {
        padding: 30px 15px;
    }

    .mixed-layout-container.style-dark {
        padding: 25px;
    }
}

/* טאבלט */
@media screen and (max-width: 1024px) {
    .mixed-layout-container {
        gap: 20px;
    }

    .vertical-posts-column .posts-grid-square-container {
        gap: 15px;
    }

    .horizontal-posts-column .posts-horizontal-wrapper {
        gap: 15px;
    }
}

/* התאמת מיכל רקע ועיצוב כהה במובייל */
@media (max-width: 768px) {
    .mixed-layout-container.has-background-container {
        padding: 25px 12px;
        border-radius: 5px;
    }

    body.home .mixed-layout-container.has-background-container {
        max-width: 100% !important;
        width: auto !important;
    }

    /* רקע כללי במובייל */
    .mixed-layout-wrapper.has-full-background {
        padding: 5px 10px;
        /* ריפוד מינימלי במובייל - 5px למעלה/למטה */
        border-radius: 0;
        max-width: 90% !important;
        /* רוחב מותאם למובייל */
        width: 90% !important;
        max-height: 80vh !important;
        /* גובה גדול יותר במובייל */
    }

    body.home .mixed-layout-wrapper.has-full-background {
        padding: 5px 10px !important;
        /* ריפוד מינימלי במובייל */
        max-width: 90% !important;
        /* רוחב מותאם למובייל */
        width: 90% !important;
        max-height: 80vh !important;
        /* גובה גדול יותר במובייל */
    }

    .mixed-layout-container.style-dark {
        padding: 20px;
        border-radius: 5px;
    }
}

/* טאבלט קטן */
@media screen and (max-width: 768px) {
    .mixed-layout-container {
        flex-direction: column !important;
        /* חשוב: במובייל תמיד עמודה */
        gap: 10px;
    }

    .mixed-layout-container .vertical-posts-column,
    .mixed-layout-container .horizontal-posts-column {
        flex: 1 1 100%;
        width: 100%;
    }

    /* התאמה ל-3 כתבות בטאבלט - 2 עמודות */
    .vertical-posts-column .posts-grid-square-container.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* התאמה ל-4 כתבות בטאבלט - 2 עמודות */
    .vertical-posts-column .posts-grid-square-container.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* התאמה ל-5 כתבות בטאבלט - מקסימום 3 עמודות */
    .vertical-posts-column .posts-grid-square-container.cols-5 {
        grid-template-columns: repeat(3, 1fr) !important;
        margin: 0;
        width: 100% !important;
        padding: 10px;
        right: 0 !important;
    }
    .vertical-posts-column .posts-grid-square-container.cols-5 .grid-item:nth-child(n+4) {
        display: none !important;
    }

    /* במובייל - התמונה באופקי תהיה מעל */
    .horizontal-posts-column .most-read-article {
        flex-direction: column !important;
    }

    .horizontal-posts-column .most-read-articles-grid {
        height: auto;
        /* בטל גובה קבוע במובייל */
        min-height: 250px;
    }

    .horizontal-posts-column .most-read-image {
        flex: 1 1 auto;
        width: 100%;
        height: 200px;
    }
}

/* התאמת מיכל רקע ועיצוב כהה במסכים קטנים */
@media (max-width: 600px) {
    .mixed-layout-container.has-background-container {
        padding: 20px 10px;
    }

    .mixed-layout-wrapper {
        top: -20px;
        position: relative;
    }

    .mixed-layout-container.style-dark {
        padding: 15px;
    }
}

/* התאמת מיכל רקע ועיצוב כהה במסכים קטנים מאוד */
@media (max-width: 400px) {
    .mixed-layout-container.has-background-container {
        padding: 15px 8px;
        border-radius: 5px;
    }

    body.home .mixed-layout-container.has-background-container {
        max-width: 100% !important;
        width: auto !important;
        top: -20px;
        position: relative;
    }



    .mixed-layout-container.style-dark {
        padding: 12px;
        border-radius: 5px;
    }
}

/* מובייל */
@media screen and (max-width: 480px) {
    .vertical-posts-column .posts-grid-square-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* גם ב-3 כתבות - עדיין שתי עמודות במובייל קטן */
    .vertical-posts-column .posts-grid-square-container.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* גם ב-4 כתבות - עדיין שתי עמודות במובייל קטן */
    .vertical-posts-column .posts-grid-square-container.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* גם ב-5 כתבות - שתי עמודות במובייל קטן */
    .vertical-posts-column .posts-grid-square-container.cols-5 {
        grid-template-columns: repeat(2, 1fr);
        margin: 0;
        width: 100%;
        padding: 10px;
    }

    .vertical-posts-column .posts-grid-square-container.cols-5 .article-card-square {
        min-height: 240px;
    }

    .horizontal-posts-column .posts-horizontal-wrapper {
        gap: 20px;
    }

    .vertical-posts-column .article-content,
    .horizontal-posts-column .most-read-content {
        padding: 12px;
    }

    .vertical-posts-column .article-title,
    .horizontal-posts-column .most-read-title {
        font-size: 1rem;
    }

    .horizontal-posts-column .most-read-excerpt {
        font-size: 1rem;
        ;
    }

    .mixed-layout-wrapper {
        top: 0px;
        position: relative;
    }

    body.home .mixed-layout-wrapper .mixed-layout-section.section-container {
        margin: 10px auto !important;
        padding: 0 20px !important;
        width: auto !important;
    }
}

/* === מובייל משופר: פריסה כמו featured-posts-split (עד 768px) === */
@media (max-width: 768px) {

    /* חלק אנכי: הכתבה הראשונה גדולה, השתיים הבאות בשתי עמודות */
    .vertical-posts-column .posts-grid-square-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        /* תאום ריווח עם האופקי */
    }

    /* פריט ראשון גדול ברוחב מלא */
    .vertical-posts-column .posts-grid-square-container>*:first-child {
        grid-column: 1 / -1;
    }

    .vertical-posts-column .posts-grid-square-container>*:first-child .square-image-container {
        aspect-ratio: 16 / 9;
    }

    .vertical-posts-column .posts-grid-square-container>*:first-child .article-title {
        font-size: 1.2rem;
        font-weight: 700;
        max-height: 4.2em;
    }

    /* פריטים 2-3 בעמודה כפולה (ברירת מחדל של repeat(2,1fr)) */
    .vertical-posts-column .posts-grid-square-container>*:nth-child(2) .square-image-container,
    .vertical-posts-column .posts-grid-square-container>*:nth-child(3) .square-image-container {
        aspect-ratio: 1 / 1;
    }

    .vertical-posts-column .posts-grid-square-container>*:nth-child(2) .article-title,
    .vertical-posts-column .posts-grid-square-container>*:nth-child(3) .article-title {
        font-size: 1rem;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        min-height: 2.8em;
    }

    .vertical-posts-column .posts-grid-square-container>*:nth-child(2) .article-content,
    .vertical-posts-column .posts-grid-square-container>*:nth-child(3) .article-content {
        padding: 12px;
    }

    /* חלק אופקי: כל שאר הכתבות אופקיות (תמונה 100px + טקסט) */
    .mixed-layout-container .horizontal-posts-column .most-read-articles-grid {
        flex-direction: column !important;
        gap: 10px !important;
        /* התאמת ריווח בין כתבות אופקיות */
        height: auto !important;
        min-height: 0 !important;
    }

    .mixed-layout-container .horizontal-posts-column .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mixed-layout-container .horizontal-posts-column .most-read-article {
        flex-direction: row !important;
        /* לא להפוך את הראשונה לאנכית */
        height: 100px !important;
        margin: 0 !important;
    }

    .mixed-layout-container .horizontal-posts-column .most-read-image-link {
        aspect-ratio: 1 / 1 !important;
        flex-basis: 100px !important;
        width: 100px !important;
        height: 100px !important;
        flex-shrink: 0;
    }

    .mixed-layout-container .horizontal-posts-column .most-read-image {
        width: 100px !important;
        height: 100px !important;
        margin: 0 !important;
    }

    .mixed-layout-container .horizontal-posts-column .most-read-content {
        flex: 1;
        padding: 8px 12px !important;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* כותרות ומטא בכתבות האופקיות */
    .mixed-layout-container .horizontal-posts-column .most-read-title {
        font-size: 1rem;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0 0 6px 0 !important;
    }

    .mixed-layout-container .horizontal-posts-column .most-read-meta {
        font-size: 1rem !important;
        margin-top: auto !important;
    }

    /* הסתרת תגית קטגוריה באופקיות כדי לחסוך מקום */
    .mixed-layout-container .horizontal-posts-column .category-tag {
        display: none !important;
    }

    /* דריסות ספציפיות: התמודדות עם כללי first-child שמקורם ב-_posts-horizontal.css */
    .mixed-layout-container .horizontal-posts-column .most-read-articles-grid .wp-block-column:first-child .most-read-article {
        flex-direction: row !important;
        height: 100px !important;
    }

    .mixed-layout-container .horizontal-posts-column .most-read-articles-grid .wp-block-column:first-child .most-read-image-link {
        aspect-ratio: 1 / 1 !important;
        flex-basis: 100px !important;
        width: 100px !important;
        height: 100px !important;
        flex-shrink: 0;
    }

    .mixed-layout-container .horizontal-posts-column .most-read-articles-grid .wp-block-column:first-child .most-read-image {
        width: 100px !important;
        height: 100px !important;
        margin: 0 !important;
    }

    .mixed-layout-container .horizontal-posts-column .most-read-articles-grid .wp-block-column:first-child .most-read-content {
        padding: 8px 12px !important;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .mixed-layout-container .horizontal-posts-column .most-read-articles-grid .wp-block-column:first-child .most-read-title {
        font-size: 1rem;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0 0 6px 0 !important;
    }

    /* === כלל חדש: החל מהפריט הרביעי בעמודה האנכית — העבר לאופקי ושורה מלאה === */
    .vertical-posts-column .posts-grid-square-container>*:nth-child(n+4) {
        grid-column: 1 / -1;
        /* תופס שורה מלאה */
    }

    .vertical-posts-column .posts-grid-square-container>*:nth-child(n+4) .article-card-square {
        flex-direction: row;
        /* אופקי */
        height: 100px;
        /* גובה קומפקטי */
    }

    .vertical-posts-column .posts-grid-square-container>*:nth-child(n+4) .image-link {
        display: block;
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    .vertical-posts-column .posts-grid-square-container>*:nth-child(n+4) .square-image-container {
        width: 100px;
        height: 100px;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }

    .vertical-posts-column .posts-grid-square-container>*:nth-child(n+4) .article-content {
        flex: 1;
        padding: 8px 12px;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .vertical-posts-column .posts-grid-square-container>*:nth-child(n+4) .category-tag {
        display: none;
        /* חיסכון מקום באופקי */
    }

    .vertical-posts-column .posts-grid-square-container>*:nth-child(n+4) .article-title {
        font-size: 1rem;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0 0 6px 0;
    }

    .vertical-posts-column .posts-grid-square-container>*:nth-child(n+4) .article-meta {
        font-size: 1rem;
        ;
        margin-top: auto;
    }
}




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

/* כותרת ראשית של הקטגוריה */
.archive-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;
}

/* מיכל הגריד של הפוסטים */
.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-daat-bright);
  transition: all 0.2s ease-in-out;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  position: relative;
  border-radius: 10px;
}

.category-post-card:hover {
  transform: translateY(-3px);
}

/* קישור התמונה */
.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: inherit;
  border-top-right-radius: inherit;
  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: inherit;
  border-top-right-radius: inherit;
  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: -2rem;
}

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

/* כותרת הפוסט */
.category-post-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.1rem 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;
}

.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: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* כותרת משנה (תקציר הפוסט) */
.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: 3;
  line-clamp: 3;
  -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: 1rem;
  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: space-between;
  align-items: center;
  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) !important;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--secondary-color);
  font-size: 0.9rem;
}

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

.category-pagination a:focus {
  background-color: var(--secondary-color);
  color: var(--white) !important;
  outline: 2px solid var(--secondary-color);
  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 .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);
  color: var(--white);
  border: 1px solid var(--secondary-color);
}

/* פיקס ספציפי לוורדפרס */
.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: repeat(var(--archive-columns, 2), 1fr);
    gap: 1.5rem;
  }

  .category-post-content {
    padding: 0.2rem 1rem 1.2rem;
    /* רווח מזערי במובייל */
  }

  .category-post-title {
    font-size: 1.2rem;
  }

  .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 {
    line-clamp: 2;
    -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-daat-bright);
  border-radius: 10px;
  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: -1rem !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__link {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.archive .archive-post-author__link:hover {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

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


/* === 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 {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  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='%23435068' 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;
}

.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;
  }
}



/* === visual-navigation-block === */
/* Visual Navigation Block - Main Styles */

.visual-navigation-wrapper {
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.visual-navigation-container {
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 1rem;
  width: 100%;
}

.visual-navigation-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), 1fr);
  gap: 1.5rem;
  padding: 0;
  margin: 2rem auto !important;
  list-style: none;
  max-width: 1200px;
  width: 100%;
}

.visual-navigation {
  width: 100%;
  margin: 0 auto !important;
  display: flex;
  justify-content: center;
}

.visual-navigation-grid.columns-1 { --columns: 1; }
.visual-navigation-grid.columns-2 { --columns: 2; }
.visual-navigation-grid.columns-3 { --columns: 3; }
.visual-navigation-grid.columns-4 { --columns: 4; }
.visual-navigation-grid.columns-5 { --columns: 5; }
.visual-navigation-grid.columns-6 { --columns: 6; }

.visual-navigation-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.visual-navigation-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  background-color: var(--secondary-color-daat); /* צבע רקע רגיל */
  border: 2px solid var(--primary-color) !important;
  border-style: solid !important; /* מבטיח שכל הצדדים יהיו עם קו רציף */
  outline: none !important; /* מבטל קווי מתאר שעלולים להתווסף */
  border-radius: 4px;
  padding: 1.5rem;
  height: 160px; /* גובה קבוע */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  outline: none;
}

.visual-navigation-link:hover,
.visual-navigation-link:focus,
.visual-navigation-link.hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
  background-color: var(--secondary-color-bright); /* צבע רקע בריחוף */
}

/* שינוי צבע הכותרת בעת ריחוף */
.visual-navigation-link:hover .visual-navigation-title,
.visual-navigation-link:focus .visual-navigation-title,
.visual-navigation-link.hover .visual-navigation-title {
    color: var(--primary-alt);
}

.visual-navigation-link:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

.visual-navigation-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* יישור אנכי */
  align-items: center; /* יישור אופקי */
  text-align: center; /* יישור אופקי של טקסט */
  height: 100%;
  width: 100%;
  padding: 1rem;
}

.visual-navigation-title {
  font-size: 1.4rem; /* גודל פונט מוגדל */
  margin: 0 0 0.8rem;
  font-weight: 700; /* משקל פונט מודגש יותר */
  color: var(--primary-color); /* צבע טקסט */
}

.visual-navigation-description {
  font-size: 0.9rem;
  margin: 0;
  color: #555; /* צבע עודכן */
  line-height: 1.5;
}

/* Editor Styles */
.visual-navigation-block-editor {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  background: #f8f8f8;
}

.visual-navigation-link-editor {
  margin-bottom: 1.5rem;
}

.visual-navigation-link-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.visual-navigation-link-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.visual-navigation-preview {
  margin-top: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .visual-navigation-grid {
    --columns: 2;
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* לוודא שהערך הזה חל על כל האפשרויות של מספר עמודות */
  .visual-navigation-grid.columns-1,
  .visual-navigation-grid.columns-2,
  .visual-navigation-grid.columns-3,
  .visual-navigation-grid.columns-4,
  .visual-navigation-grid.columns-5,
  .visual-navigation-grid.columns-6 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .visual-navigation-grid {
    --columns: 1;
    grid-template-columns: 1fr !important;
  }
  
  /* לוודא שהערך הזה חל על כל האפשרויות של מספר עמודות */
  .visual-navigation-grid.columns-1,
  .visual-navigation-grid.columns-2,
  .visual-navigation-grid.columns-3,
  .visual-navigation-grid.columns-4,
  .visual-navigation-grid.columns-5,
  .visual-navigation-grid.columns-6 {
    grid-template-columns: 1fr !important;
  }
  
  .visual-navigation-container {
    padding: 0 0.75rem;
  }
  
  .visual-navigation-link {
    height: 150px; /* גובה מעט קטן יותר במסכים קטנים */
  }
  
  .visual-navigation-title {
    font-size: 1.2rem; /* גודל פונט קטן יותר במסכים קטנים */
  }
}

/* High Contrast Mode Support (for accessibility) */
@media (forced-colors: active) {
  .visual-navigation-link {
    border: 2px solid ButtonBorder;
  }
  
  .visual-navigation-link:hover,
  .visual-navigation-link:focus {
    border: 2px solid Highlight;
  }
}



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


/**
 * === כותרות ===
 * עיצוב כותרות ראשיות וכותרות משנה בסגנון מינימליסטי
 */
.wp-block-heading h1,
h1.wp-block-heading {
  font-family: var(--font-family-accent) !important;
  font-size: 50px;
  color: var(--primary-color);
  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: var(--primary-color);
  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: var(--primary-color);
  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: var(--primary-color);
  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: var(--primary-color);
  margin: 1rem 0 0.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.wp-block-heading h6,
h6.wp-block-heading {
  font-size: 1rem;
  color: var(--primary-color);
  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: 1.2rem;
  font-weight: 200;
}

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

/* קישורים בפסקאות טקסט */
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;
}

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



/* בלוק תמונה ברוחב מלא */
.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: 1.2rem;
  /* הגדלה מ-1rem ל-1.2rem */
}

/* הוסף גם את הסלקטורים האלה */
.entry-content p,
.post-content p,
.wp-block-post-content p,
article p,
.site-content p,
.content-area p {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-block-start: 0.1rem;
}

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

@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;
  }
}

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

  .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;
  }
}


/* === 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); /* וידוא שהגבולות נראים בטבלה מפוספסת */
}

/**
* === בלוק טבלת CSV מותאם אישית ===
*/

/* מיכל הטבלה - מחליף את מגבלת הרוחב הכללית */
.wp-block-custom-csv-table {
  max-width: 1200px;
  width: 100%;
  margin: 2.5rem auto;
  position: relative;
}

/* מיכל חיפוש מעל הטבלה */
.csv-table-search-container {
  margin-bottom: 1.2rem;
  text-align: right;
}

/* עיצוב מיכל החיפוש עם לחצן */
.csv-table-search-wrapper {
  display: flex;
  max-width: 400px;
  width: 100%;
}

.csv-table-search {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  margin-left: 8px;
  font-family: var(--font-family-accent) !important;
  border-radius: 0;
}

.csv-table-search:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.csv-table-search-button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-family-accent) !important;
  font-size: 0.95rem;
  border-radius: 0;
}

.csv-table-search-button:hover {
  background-color: var(--secondary-color-dark);
}

/* עיצוב הטבלה להתאמה לעיצוב הקיים */
.csv-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  table-layout: fixed;
}

/* כותרת הטבלה */
.csv-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;
  width: 100%;
  display: block;
  font-family: var(--font-family-accent) !important;
}

.csv-table-header-info {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 0.5rem;
}

/* כותרות העמודות */
.csv-table th {
  background-color: #f5f5f5; /* אפור בהיר לכותרות */
  color: var(--primary-color);
  font-weight: 600;
  padding: 1rem 1.2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: var(--font-family-accent) !important;
  font-size: 0.95rem;
}

/* עיצוב תאי הטבלה */
.csv-table 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;
}

/* עיצוב העמודה הראשונה */
.csv-table td:first-child {
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-family-accent) !important;
}

.csv-table td:not(:first-child) {
  text-align: center;
}

/* עיצוב שורות מפוספסות */
.csv-table tbody tr.odd {
  background-color: #f9f9f9;
}

.csv-table tbody tr.even {
  background-color: var(--white);
}

/* עיצוב אחוזים חיוביים ושליליים */
.csv-table td.positive-percent {
  color: #107A45;
  font-weight: 600;
}

.csv-table td.negative-percent {
  color: #B22222;
  font-weight: 600;
}

/* הודעת אין תוצאות */
.csv-table .no-results {
  text-align: center;
  padding: 2rem;
  font-style: italic;
  color: var(--gray-medium);
}

/* עיצוב מידע בחלק העליון של הטבלה */
.csv-table-top-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  background-color: #f9f9f9;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.csv-table-info-wrapper {
  font-weight: 600;
  font-size: 0.95rem;
}

/* מיכל רספונסיבי לטבלה */
.csv-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1rem;
}

/* עיצוב שווה לניווט עליון ותחתון */
.csv-table-top-pagination,
.csv-table-pagination {
  margin: 1.2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* עיצוב אזור ניווט העמודים - סידור מחדש של האלמנטים */
.csv-table-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-direction: row;
}

/* שינוי סדר הלחצנים כדי שהקודם יהיה בימין והבא בשמאל */
.csv-table-pagination-controls {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-direction: row;
}

.csv-table-pagination-info {
  font-size: 0.9rem;
  min-width: 120px;
  text-align: center;
  order: 2;
  color: var(--gray-dark);
  font-family: var(--font-family-accent) !important;
}

/* עיצוב לחצני ניווט */
.csv-table-pagination-prev,
.csv-table-pagination-next {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-family-accent) !important;
  font-size: 0.9rem;
  border-radius: 0;
}

.csv-table-pagination-prev {
  order: 1;
}

.csv-table-pagination-next {
  order: 3;
}

/* תיקון לסדר הלחצנים בשני אזורי הניווט: העליון והתחתון */
.csv-table-top-pagination .csv-table-pagination-controls,
.csv-table-pagination .csv-table-pagination-controls {
  display: flex;
  flex-direction: row;
}

.csv-table-top-pagination .csv-table-pagination-prev,
.csv-table-pagination .csv-table-pagination-prev {
  order: 1;
}

.csv-table-top-pagination .csv-table-pagination-info,
.csv-table-pagination .csv-table-pagination-info {
  order: 2;
}

.csv-table-top-pagination .csv-table-pagination-next,
.csv-table-pagination .csv-table-pagination-next {
  order: 3;
}

.csv-table-pagination-prev:disabled,
.csv-table-pagination-next:disabled {
  background-color: #dddddd;
  cursor: not-allowed;
  color: #888888;
}

.csv-table-pagination-prev:hover:not(:disabled),
.csv-table-pagination-next:hover:not(:disabled) {
  background-color: var(--secondary-color-dark);
}

.csv-table-rows-info {
  font-size: 0.9rem;
  color: var(--gray-medium);
  font-family: var(--font-family-accent) !important;
}

/* עיצוב משטח העבודה בעורך */
.wp-block-custom-csv-table-editor {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
}

.csv-table-placeholder {
  padding: 2rem;
  text-align: center;
  background-color: #f9f9f9;
}

.csv-import-control {
  margin-bottom: 1rem;
}

.csv-import-control input[type="file"] {
  display: none;
}

.csv-import-control label {
  display: inline-block;
  cursor: pointer;
  margin-top: 0.5rem;
}

.preview-more-row td {
  text-align: center !important;
  font-style: italic;
  color: var(--gray-medium);
}

/* הוספת class להסתרת אלמנטים מהמסך אבל הנגשתם לקוראי מסך */
.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;
}

/* ======= תמיכה במכשירים ניידים ======= */
@media screen and (max-width: 768px) {
  .wp-block-custom-csv-table {
    margin: 1.5rem 0;
    width: 100%;
    max-width: none;
  }

  .csv-table-search {
    max-width: 100%;
    padding: 0.7rem 0.8rem;
  }
  
  .csv-table-search-button {
    padding: 0.7rem 0.8rem;
  }

  .csv-table-pagination {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* הסתרת טקסט מיותר בניווט במסכים קטנים */
  .csv-table-pagination-info {
    font-size: 0.8rem;
  }
  
  /* סידור מחדש של אלמנטים בניווט במסכים קטנים */
  .csv-table-pagination-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  /* גם במסכים קטנים נשמור על הסדר הנכון של הלחצנים */
  .csv-table-top-pagination .csv-table-pagination-prev,
  .csv-table-pagination .csv-table-pagination-prev {
    order: 1; /* הלחצן "הקודם" יישאר בצד ימין */
  }
  
  .csv-table-top-pagination .csv-table-pagination-next,
  .csv-table-pagination .csv-table-pagination-next {
    order: 3; /* הלחצן "הבא" יישאר בצד שמאל */
  }
  
  .wp-block-table td,
  .csv-table td {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
  }
  
  .wp-block-table th,
  .csv-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%;
  }
}



/* === charts === */
/**
 * === עיצוב גרפים מבוססי Chart.js ===
 * עיצוב בלוקים להצגת נתונים באופן ויזואלי בסגנון מודרני ומינימליסטי
 */

/* === עיצוב בסיסי משותף לכל סוגי הגרפים === */

/* מיכל בסיסי לכל הגרפים */
.wp-block-custom-bar-chart,
.wp-block-custom-horizontal-bar-chart,
.wp-block-custom-line-chart,
.wp-block-custom-pie-chart,
.wp-block-custom-doughnut-chart,
.wp-block-custom-radar-chart,
.wp-block-custom-scatter-chart,
.wp-block-custom-bubble-chart,
.wp-block-custom-polar-chart,
.wp-block-custom-mixed-chart {
  margin: 3rem auto;
  padding: 2.5rem;
  background-color: rgba(250, 252, 255, 0.6);
  border: 1px solid rgba(230, 235, 240, 0.9);
  max-width: 800px;
  text-align: center;
}

/* כותרת הגרף */
.wp-block-custom-bar-chart h3,
.wp-block-custom-bar-chart h4,
.wp-block-custom-horizontal-bar-chart h3,
.wp-block-custom-horizontal-bar-chart h4,
.wp-block-custom-line-chart h3,
.wp-block-custom-line-chart h4,
.wp-block-custom-pie-chart h3,
.wp-block-custom-pie-chart h4,
.wp-block-custom-doughnut-chart h3,
.wp-block-custom-doughnut-chart h4,
.wp-block-custom-radar-chart h3,
.wp-block-custom-radar-chart h4,
.wp-block-custom-scatter-chart h3,
.wp-block-custom-scatter-chart h4,
.wp-block-custom-bubble-chart h3,
.wp-block-custom-bubble-chart h4,
.wp-block-custom-polar-chart h3,
.wp-block-custom-polar-chart h4,
.wp-block-custom-mixed-chart h3,
.wp-block-custom-mixed-chart h4 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 1.8rem;
  font-weight: 500;
  text-align: center;
  font-family: var(--font-family-accent) !important;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

/* אזור הגרף עצמו */
.wp-block-custom-bar-chart .chart-container,
.wp-block-custom-horizontal-bar-chart .chart-container,
.wp-block-custom-line-chart .chart-container,
.wp-block-custom-pie-chart .chart-container,
.wp-block-custom-doughnut-chart .chart-container,
.wp-block-custom-radar-chart .chart-container,
.wp-block-custom-scatter-chart .chart-container,
.wp-block-custom-bubble-chart .chart-container,
.wp-block-custom-polar-chart .chart-container,
.wp-block-custom-mixed-chart .chart-container {
  position: relative;
  height: 400px;
  width: 100%;
  margin: 0 auto 2.5rem;
}

/* התאמת גובה לגרפים שונים */
.wp-block-custom-radar-chart .chart-container,
.wp-block-custom-polar-chart .chart-container {
  height: 450px;
}

.wp-block-custom-horizontal-bar-chart .chart-container {
  height: 500px;
}

/* מקרא הגרף */
.wp-block-custom-bar-chart .chart-legend,
.wp-block-custom-horizontal-bar-chart .chart-legend,
.wp-block-custom-line-chart .chart-legend,
.wp-block-custom-pie-chart .chart-legend,
.wp-block-custom-doughnut-chart .chart-legend,
.wp-block-custom-radar-chart .chart-legend,
.wp-block-custom-scatter-chart .chart-legend,
.wp-block-custom-bubble-chart .chart-legend,
.wp-block-custom-polar-chart .chart-legend,
.wp-block-custom-mixed-chart .chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 1.8rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.wp-block-custom-bar-chart .legend-item,
.wp-block-custom-horizontal-bar-chart .legend-item,
.wp-block-custom-line-chart .legend-item,
.wp-block-custom-pie-chart .legend-item,
.wp-block-custom-doughnut-chart .legend-item,
.wp-block-custom-radar-chart .legend-item,
.wp-block-custom-scatter-chart .legend-item,
.wp-block-custom-bubble-chart .legend-item,
.wp-block-custom-polar-chart .legend-item,
.wp-block-custom-mixed-chart .legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-family: var(--font-family-accent) !important;
}

.wp-block-custom-bar-chart .legend-color,
.wp-block-custom-horizontal-bar-chart .legend-color,
.wp-block-custom-line-chart .legend-color,
.wp-block-custom-pie-chart .legend-color,
.wp-block-custom-doughnut-chart .legend-color,
.wp-block-custom-radar-chart .legend-color,
.wp-block-custom-scatter-chart .legend-color,
.wp-block-custom-bubble-chart .legend-color,
.wp-block-custom-polar-chart .legend-color,
.wp-block-custom-mixed-chart .legend-color {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  margin-left: 8px;
  display: inline-block;
  opacity: 0.8;
}

.wp-block-custom-bar-chart .legend-label,
.wp-block-custom-horizontal-bar-chart .legend-label,
.wp-block-custom-line-chart .legend-label,
.wp-block-custom-pie-chart .legend-label,
.wp-block-custom-doughnut-chart .legend-label,
.wp-block-custom-radar-chart .legend-label,
.wp-block-custom-scatter-chart .legend-label,
.wp-block-custom-bubble-chart .legend-label,
.wp-block-custom-polar-chart .legend-label,
.wp-block-custom-mixed-chart .legend-label {
  font-weight: 500;
  color: var(--primary-color);
}

.wp-block-custom-bar-chart .legend-value,
.wp-block-custom-horizontal-bar-chart .legend-value,
.wp-block-custom-line-chart .legend-value,
.wp-block-custom-pie-chart .legend-value,
.wp-block-custom-doughnut-chart .legend-value,
.wp-block-custom-radar-chart .legend-value,
.wp-block-custom-scatter-chart .legend-value,
.wp-block-custom-bubble-chart .legend-value,
.wp-block-custom-polar-chart .legend-value,
.wp-block-custom-mixed-chart .legend-value {
  margin-right: 4px;
  font-weight: 600;
  color: var(--primary-color);
}

.wp-block-custom-bar-chart .legend-percent,
.wp-block-custom-horizontal-bar-chart .legend-percent,
.wp-block-custom-line-chart .legend-percent,
.wp-block-custom-pie-chart .legend-percent,
.wp-block-custom-doughnut-chart .legend-percent,
.wp-block-custom-radar-chart .legend-percent,
.wp-block-custom-scatter-chart .legend-percent,
.wp-block-custom-bubble-chart .legend-percent,
.wp-block-custom-polar-chart .legend-percent,
.wp-block-custom-mixed-chart .legend-percent {
  margin-right: 8px;
  font-weight: 400;
  color: var(--gray-medium);
}

/* הערה תחתונה של הגרף */
.wp-block-custom-bar-chart figcaption,
.wp-block-custom-horizontal-bar-chart figcaption,
.wp-block-custom-line-chart figcaption,
.wp-block-custom-pie-chart figcaption,
.wp-block-custom-doughnut-chart figcaption,
.wp-block-custom-radar-chart figcaption,
.wp-block-custom-scatter-chart figcaption,
.wp-block-custom-bubble-chart figcaption,
.wp-block-custom-polar-chart figcaption,
.wp-block-custom-mixed-chart figcaption {
  font-size: 0.85rem;
  color: var(--gray-medium);
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-family-accent) !important;
}

/* תיאור הגרף (אופציונלי) */
.wp-block-custom-bar-chart .chart-description,
.wp-block-custom-horizontal-bar-chart .chart-description,
.wp-block-custom-line-chart .chart-description,
.wp-block-custom-pie-chart .chart-description,
.wp-block-custom-doughnut-chart .chart-description,
.wp-block-custom-radar-chart .chart-description,
.wp-block-custom-scatter-chart .chart-description,
.wp-block-custom-bubble-chart .chart-description,
.wp-block-custom-polar-chart .chart-description,
.wp-block-custom-mixed-chart .chart-description {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  color: var(--gray-medium);
  padding: 0 1rem;
  font-family: var(--font-family-accent) !important;
}

/* התאמות לגרף קווי */
.wp-block-custom-line-chart .chart-container {
  padding-bottom: 10px;
}

/* התאמות לגרף רדאר ופולארי */
.wp-block-custom-radar-chart .chart-container canvas,
.wp-block-custom-polar-chart .chart-container canvas {
  max-height: 400px;
  margin: 0 auto;
}

/* התאמות לגרף פיזור ובועות */
.wp-block-custom-scatter-chart .chart-container,
.wp-block-custom-bubble-chart .chart-container {
  padding-bottom: 15px;
}

/* כפתור ההנגשה בסגנון חדש */
.expand-chart-description {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 15px auto;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  min-height: 44px;
  display: block;
  text-align: center;
  font-family: var(--font-family-accent) !important;
  min-width: 200px;
  font-weight: 400;
  transition: background-color 0.2s ease;
}

.expand-chart-description:hover {
  background-color: var(--secondary-color-dark);
}

.expand-chart-description:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.expand-chart-description:active {
  background-color: var(--secondary-color-dark);
}

/* תיאור מורחב */
.extended-chart-description {
  background-color: rgba(248, 250, 253, 0.8);
  border: 1px solid rgba(230, 235, 240, 0.7);
  padding: 20px;
  margin: 15px 0;
  font-family: var(--font-family-accent) !important;
  line-height: 1.6;
}

.extended-chart-description ul {
  margin-right: 20px;
  text-align: right;
}

.extended-chart-description li {
  margin-bottom: 6px;
}

/**
 * === תצוגה מותאמת למסכים שונים ===
 */
@media screen and (max-width: 768px) {
  .wp-block-custom-bar-chart,
  .wp-block-custom-horizontal-bar-chart,
  .wp-block-custom-line-chart,
  .wp-block-custom-pie-chart,
  .wp-block-custom-doughnut-chart,
  .wp-block-custom-radar-chart,
  .wp-block-custom-scatter-chart,
  .wp-block-custom-bubble-chart,
  .wp-block-custom-polar-chart,
  .wp-block-custom-mixed-chart {
    padding: 1.8rem;
  }

  .wp-block-custom-bar-chart .chart-container,
  .wp-block-custom-horizontal-bar-chart .chart-container,
  .wp-block-custom-line-chart .chart-container,
  .wp-block-custom-pie-chart .chart-container,
  .wp-block-custom-doughnut-chart .chart-container,
  .wp-block-custom-radar-chart .chart-container,
  .wp-block-custom-scatter-chart .chart-container,
  .wp-block-custom-bubble-chart .chart-container,
  .wp-block-custom-polar-chart .chart-container,
  .wp-block-custom-mixed-chart .chart-container {
    height: 350px;
  }

  .wp-block-custom-horizontal-bar-chart .chart-container {
    height: 400px;
  }

  .wp-block-custom-bar-chart h3,
  .wp-block-custom-bar-chart h4,
  .wp-block-custom-horizontal-bar-chart h3,
  .wp-block-custom-horizontal-bar-chart h4,
  .wp-block-custom-line-chart h3,
  .wp-block-custom-line-chart h4,
  .wp-block-custom-pie-chart h3,
  .wp-block-custom-pie-chart h4,
  .wp-block-custom-doughnut-chart h3,
  .wp-block-custom-doughnut-chart h4,
  .wp-block-custom-radar-chart h3,
  .wp-block-custom-radar-chart h4,
  .wp-block-custom-scatter-chart h3,
  .wp-block-custom-scatter-chart h4,
  .wp-block-custom-bubble-chart h3,
  .wp-block-custom-bubble-chart h4,
  .wp-block-custom-polar-chart h3,
  .wp-block-custom-polar-chart h4,
  .wp-block-custom-mixed-chart h3,
  .wp-block-custom-mixed-chart h4 {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  .wp-block-custom-bar-chart .chart-container,
  .wp-block-custom-line-chart .chart-container,
  .wp-block-custom-pie-chart .chart-container,
  .wp-block-custom-doughnut-chart .chart-container,
  .wp-block-custom-radar-chart .chart-container,
  .wp-block-custom-scatter-chart .chart-container,
  .wp-block-custom-bubble-chart .chart-container,
  .wp-block-custom-polar-chart .chart-container,
  .wp-block-custom-mixed-chart .chart-container {
    height: 300px;
  }

  .wp-block-custom-horizontal-bar-chart .chart-container {
    height: 350px;
  }
  
  .wp-block-custom-bar-chart .chart-legend,
  .wp-block-custom-horizontal-bar-chart .chart-legend,
  .wp-block-custom-line-chart .chart-legend,
  .wp-block-custom-pie-chart .chart-legend,
  .wp-block-custom-doughnut-chart .chart-legend,
  .wp-block-custom-radar-chart .chart-legend,
  .wp-block-custom-scatter-chart .chart-legend,
  .wp-block-custom-bubble-chart .chart-legend,
  .wp-block-custom-polar-chart .chart-legend,
  .wp-block-custom-mixed-chart .chart-legend {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.5rem 0;
  }
}



/* === contact-form === */
/**
 * עיצוב טופס יצירת קשר נגיש - twentytwentyfour-child
 * מותאם לדרישות נגישות תקן ישראלי 5568 / WCAG 2.0 AA
 * מעוצב בסגנון מינימליסטי מודרני
 */

 .contact-form-container {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2.5rem;
  background-color: var(--white);
  border: 1px solid var(--gray-mild);
  box-shadow: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-weight: 500;
  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(--alert-red);
  font-weight: normal;
  margin-right: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--gray-mild);
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--white);
  transition: border-color 0.2s ease-in-out;
  font-family: var(--font-family-accent) !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: none;
}

/* עיצוב מיוחד למיקוד - חשוב לנגישות */
.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(--alert-red);
  background-color: rgba(178, 34, 34, 0.05);
}

.error-message {
  color: var(--alert-red);
  font-size: 0.85rem;
  font-weight: 400;
  min-height: 1.25rem;
  font-family: var(--font-family-accent) !important;
}

.submit-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  max-width: fit-content;
  align-self: flex-start;
  font-family: var(--font-family-accent) !important;
  letter-spacing: 0.02em;
}

.submit-button:hover {
  background-color: var(--secondary-color);
}

.submit-button:active {
  background-color: var(--secondary-color-dark);
}

.contact-form-success {
  background-color: rgba(16, 122, 69, 0.1);
  color: #107A45;
  padding: 1.2rem;
  border-radius: 0;
  border-right: 2px solid #107A45;
  border-left: none;
  margin-bottom: 1.8rem;
  font-family: var(--font-family-accent) !important;
  font-size: 0.95rem;
}

/* התאמות לנגישות נוספות */
@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;
}



/* === post-author-selector === */
/* ================================
   Post Author Selector Block Styles
   בלוק בחירת מחבר הפוסט
   ================================ */

/* מיכל הבלוק הראשי */
.ttfchild-post-author-block {
    display: block;
    margin: 20px 0;
    padding: 0;
    font-family: var(--font-family-accent) !important;
    direction: rtl;
    text-align: right;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* תמונת הפרופיל - אם מוצגת */
.ttfchild-post-author-block .author-avatar {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.ttfchild-post-author-block .author-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

/* מיכל פרטי המחבר */
.ttfchild-post-author-block .author-info {
    display: block;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 6px 0;
}

/* שורת המטא (שם מחבר ותאריך) */
.ttfchild-post-author-block .author-meta-line {
    display: flex;

}

/* שורת שם המחבר */
.ttfchild-post-author-block .author-name-wrapper {
    display: grid;
    align-items: baseline;
    gap: 0px;
}

/* התאמות כאשר אין ביוגרפיה */
.ttfchild-post-author-block .author-name-wrapper.no-author-bio .author-name {
    position: relative;
}

.author-primary-meta {
    position: relative;
    right: 4px;
}

.post-hero-author-section .author-secondary-meta {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

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

.author-name-wrapper.no-author-bio {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* שורת התאריך */
.ttfchild-post-author-block .post-date-wrapper {
    display: flex;
    align-items: baseline;
    margin-right: auto;
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-family: var(--font-family-accent) !important;
    position: relative;
    left: 4px;
}

.ttfchild-post-author-block .date-separator {
    display: none;
}

.ttfchild-post-author-block .post-date {
    font-family: var(--font-family-accent) !important;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    position: relative;
    right: 10px;
}

/* הסרת אייקון לוח שנה שנוסף ע"י התבנית (pseudo-element) */
.ttfchild-post-author-block .post-date::before,
.ttfchild-post-author-block .post-date:before,
.ttfchild-post-author-block time.post-date::before,
.ttfchild-post-author-block time.post-date:before {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* תווית "מאת" */
.ttfchild-post-author-block .author-label {
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

/* שם המחבר */
.ttfchild-post-author-block .author-name {
    font-family: var(--font-family-accent) !important;
    font-weight: 400;
    color: var(--primary-color);
    font-size: 14px;
    margin: 0 0 -0.4rem 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
    right: 4px;
}

/* ביוגרפיה של המחבר */
.ttfchild-post-author-block .author-bio {
    font-family: var(--font-family-accent) !important;
    font-size: 13px;
    line-height: 1;
    margin-top: -1px;
    padding: 0;
    background: transparent;
    border: none;
    font-weight: 200;
    position: relative;
    right: 4px;
}

/* עיצוב לעורך הבלוקים */
.ttfchild-post-author-block-editor {
    font-family: var(--font-family-accent) !important;
    display: block;
    padding: 15px;
    margin: 10px 0;
    border: 1px dashed #ccc;
    direction: rtl;
    text-align: right;
    background: #fafafa;
}

.ttfchild-post-author-block-editor .author-avatar {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.ttfchild-post-author-block-editor .author-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.ttfchild-post-author-block-editor .author-info {
    display: block;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 6px 0;
}

.ttfchild-post-author-block-editor .author-meta-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0;
    margin-bottom: 4px;
}

.ttfchild-post-author-block-editor .author-name-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}

.ttfchild-post-author-block-editor .post-date-wrapper {
    display: flex;
    align-items: baseline;
    margin-right: auto;
}

.ttfchild-post-author-block-editor .date-separator {
    display: none;
}

.ttfchild-post-author-block-editor .post-date {

    font-size: 14px;
}

.ttfchild-post-author-block-editor .author-label {
    color: #333;
    font-size: 14px;
}

.ttfchild-post-author-block-editor .author-name {
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

.ttfchild-post-author-block-editor .author-bio {

    font-size: 13px;
    line-height: 1.6;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ttfchild-post-author-block .author-meta-line {
        flex-direction: row;
        justify-content: space-between;

    }

    .author-name-wrapper.has-author-bio {
        display: grid;
        line-height: 5px;
        position: relative;
        width: 100%;
    }

    .author-name-wrapper {
        text-align: right;
        display: contents;
    }


    .ttfchild-post-author-block .post-date-wrapper,
    .ttfchild-post-author-block .post-date {
        white-space: nowrap;
        overflow-x: scroll !important;
        max-width: 50% !important;
        text-align: left;
    }

    .ttfchild-post-author-block .author-name-wrapper.no-author-bio .author-name {
        position: relative;
        right: 1px;
    }

    .ttfchild-post-author-block .author-name-wrapper {
        width: 100%;
    }
}

/* עיצוב לבלוק בתוך סינגל פוסט */
.single-post .ttfchild-post-author-block {
    margin: 30px 0;
}

/* עיצוב לשדה הבחירה בעורך */
.components-select-control__input {
    direction: rtl;
    text-align: right;
}

/* מניעת גלישת קישורים ארוכים במובייל (למשל בהערות שוליים/ביבליוגרפיה) */
@media (max-width: 768px) {
    .entry-content .footnotes a,
    .entry-content .references a,
    .entry-content .note-list a,
    .entry-content p a,
    .entry-content li a,
    .entry-content .wp-block-paragraph a {
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
        max-width: 100%;
        display: inline-block;
    }
    .entry-content .footnotes,
    .entry-content .references,
    .entry-content .note-list {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}


/* === post-hero-banner-gutenberg === */
/* עיצוב בלוק Post Hero Banner */

/* סגנונות בסיסיים לבלוק - מוחל רק על סגנון Hero */
.banner-style-hero.post-hero-banner {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: visible; /* שינוי מ-hidden ל-visible כדי לאפשר גלישת כותרת */
    padding-bottom: 0; /* יוגדר דינמית על ידי JavaScript */
    transition: padding-bottom 0.3s ease; /* אנימציה חלקה בעת שינוי הגובה */
}

/* ================================
   סגנון קלאסי - כותרת ותמונה מתחת
   ================================ */
.banner-style-classic {
    width: 100%;
    margin: 0 auto;
}

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

/* הוסף את זה: */
.wp-block-ttfchild-post-hero-banner.banner-style-classic {
    padding-bottom: 30px !important; /* או כל ערך שמתאים לך */
}

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

/* במצב קלאסי - הכותרות והמחבר */
.banner-style-classic .post-hero-banner-category {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--primary-color-daat, #1a1a1a) !important;
    border-radius: 20px;
    background: var(--secondary-color-daat-bright, #f5f5f5);
    color: var(--primary-color-daat, #1a1a1a) !important;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-style-classic .post-hero-banner-category:hover {
    background: var(--primary-color-daat, #1a1a1a) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary-color-daat, #1a1a1a) !important;
}

.banner-style-classic .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;
}

.banner-style-classic .post-hero-banner-subtitle {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #555;
}

/* התמונה בסגנון קלאסי */
.post-hero-classic-image-wrapper {
    max-width: 800px;
    margin: 0px auto 0;
    padding: 0 20px;
}

.post-hero-classic-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* חלק המחבר בסגנון קלאסי */
.banner-style-classic .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;
    gap: 12px;
}

/* התאמות למסכים קטנים - סגנון קלאסי */
@media (max-width: 1024px) {
    .banner-style-classic .post-hero-banner-title {
        font-size: 36px;
    }
    
    .banner-style-classic .post-hero-banner-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .post-hero-classic-content {
        padding: 25px 15px 20px;
    }
    
    .post-hero-classic-image-wrapper {
        padding: 0 15px;
    }
    
    .banner-style-classic .post-hero-banner-title {
        font-size: 28px;
    }
    
    .banner-style-classic .post-hero-banner-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .banner-style-classic .post-hero-banner-title {
        font-size: 24px;
    }
    
    .banner-style-classic .post-hero-banner-subtitle {
        font-size: 14px;
    }
}

/* ================================
   סגנון Hero - הסגנון המקורי
   ================================ */

/* רק בדסקטופ - הרחבה לרוחב מלא */
@media (min-width: 1025px) {
    /* וידוא שגם ה-wrapper מתפרס לרוחב מלא */
    .banner-style-hero .post-hero-banner-wrapper {
        width: 100%;
    }
}

/* הורה הבלוק של גוטנברג – הבטחת זרימה מעל קטעים הבאים והימנעות מחיתוך במובייל */
.wp-block-ttfchild-post-hero-banner {
    position: relative;
    overflow: visible !important;
    z-index: 1; /* שומר שהטקסט שגולש יופיע מעל התוכן שאחריו */
    width: 100%; /* הבטחת רוחב מלא */
    margin: 0 auto; /* מרכוז הבלוק */
    min-height: 300px; /* גובה מינימלי כ-fallback */
    padding-bottom: 150px; /* padding בסיסי שיוחלף על ידי JavaScript */
}

/* עוטף פנימי – מונע חיתוך ותומך בשכבות נכונות */
.post-hero-banner-wrapper {
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* בעורך - שמור על רוחב רגיל */
.post-hero-banner-editor {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
    padding-bottom: 80px; /* מבטיח מרווח מתחת לקופסת התמונה עבור הטקסט הגולש */
}

/* Wrapper for the banner - Hero style */
.banner-style-hero .post-hero-banner-wrapper {
    position: relative;
    width: 100%;
    overflow: visible; /* מאפשר למיכל התוכן לצאת החוצה */
}

/* תמונת רקע - יחס 19:6 - Hero style */
.banner-style-hero .post-hero-banner-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden; /* חזרה ל-hidden עבור התמונה בלבד */
    background: #f0f0f0;
    margin: 0 auto;
    /* padding-top מוגדר inline ב-PHP עם 31.58% */
}

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

/* Placeholder כשאין תמונה - Hero style */
.banner-style-hero .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;
}

.banner-style-hero .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;
}

/* מיכל התוכן - ממורכז עם רוחב קבוע - Hero style */
.banner-style-hero .post-hero-banner-content {
    position: absolute;
    /* 60% מהתמונה חשופים, 40% מכוסים: 31.58% * 0.4 = 12.63vw */
    top: calc(100% - 12.63vw);
    left: 50%;
    transform: translateX(-50%);
    max-width: 880px;
    width: calc(100% - 40px);
    z-index: 10;
    padding: 0 20px;
    box-sizing: border-box;
    display: block;
    direction: rtl; /* וידוא כיוון RTL */
}

/* בדסקטופ גדול נמרכז ונגביל רוחב */
@media (min-width: 1025px) {
    .banner-style-hero .post-hero-banner-content {
        padding: 0 20px;
        /* במסכים גדולים, הגבלת המיקום למקסימום 170px */
        top: calc(100% - min(12.63vw, 170px));
    }
}

/* במסכים גדולים מאוד - הגבלת המרווח */
@media (min-width: 1400px) {
    .banner-style-hero .post-hero-banner-content {
        top: calc(100% - 170px); /* ערך קבוע במסכים גדולים מאוד */
        padding: 0 20px;
    }
}

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

/* תגית קטגוריה - Hero style */
.banner-style-hero .post-hero-banner-category {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--primary-color-daat, #1a1a1a) !important;
    border-radius: 20px;
    background: var(--secondary-color-daat-bright, #f5f5f5);
    color: var(--primary-color-daat, #1a1a1a) !important;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto; /* מאפשר לחיצות */
    box-sizing: border-box;
}

/* תגית קטגוריה בהובר - Hero style */
.banner-style-hero .post-hero-banner-category:hover,
.banner-style-hero a.post-hero-banner-category:hover {
    background: var(--primary-color-daat, #1a1a1a) !important;
    color: #ffffff !important; /* טקסט לבן בהובר */
    border: 1px solid var(--primary-color-daat, #1a1a1a) !important;
    text-decoration: none !important;
}

/* וידוא שהצבע הלבן מוחל גם על קישורים */
.banner-style-hero .post-hero-banner-inner a.post-hero-banner-category:hover {
    color: #ffffff !important;
}

/* ביטול קו תחתון גם עבור קישורים שביקרו בהם */
.banner-style-hero .post-hero-banner-category:visited {
    text-decoration: none !important;
    color: var(--primary-color-daat, #1a1a1a) !important;
}

/* כותרת ראשית - Hero style */
.banner-style-hero .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;
}

/* כותרת משנה - Hero style */
.banner-style-hero .post-hero-banner-subtitle {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #555; /* אפור כהה על רקע לבן */
}

/* עיצובים למסכים קטנים - Hero style */
@media (max-width: 1024px) {
    .banner-style-hero .post-hero-banner-content {
        top: calc(100% - 12.63vw); /* 40% מגובה התמונה */
        max-width: 700px; /* רוחב מקסימלי קצת יותר קטן במסכים בינוניים */
    }
    
    .post-hero-banner-editor {
        padding-bottom: 100px; /* בעורך: הגדלת הריווח במסכים בינוניים */
    }
    /* במסכים בינוניים התוכן כבר מלא */
    
    .banner-style-hero .post-hero-banner-inner {
        padding: 25px 30px;
    }
    
    .banner-style-hero .post-hero-banner-title {
        font-size: 36px;
    }
    
    .banner-style-hero .post-hero-banner-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .post-hero-banner-editor {
        padding-bottom: 120px; /* בעורך: ריווח גדול יותר למובייל */
    }
    
    .banner-style-hero .post-hero-banner-content {
        top: calc(100% - 10vw); /* מרווח קטן יותר במובייל */
        max-width: 90%; /* במובייל מגבילים ל-90% מהרוחב */
        width: calc(100% - 30px);
        padding: 0 15px;
    }
    
    /* ביטול ההגדרות מ-post-author-selector שמגבילות ל-50% */
    .post-hero-banner .author-name-wrapper,
    .post-hero-banner-inner .author-name-wrapper {
        max-width: none !important;
        max-width: 100% !important;
        display: grid !important; /* לא contents */
    }
    
    .post-hero-banner .post-date-wrapper,
    .post-hero-banner-inner .post-date-wrapper,
    .post-hero-banner .post-date,
    .post-hero-banner-inner .post-date {
        max-width: none !important;
        max-width: auto !important;
        display: flex !important; /* לא contents */
        overflow-x: visible !important;
    }
    
    /* במובייל יש לעתים חיתוך ברמת הורה – נכפה חשיפה מלאה */
    .wp-block-ttfchild-post-hero-banner,
    .post-hero-banner,
    .post-hero-banner-wrapper,
    .post-hero-banner-image-wrapper {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .banner-style-hero .post-hero-banner-inner {
        padding: 20px;
    }
    
    .banner-style-hero .post-hero-banner-title {
        font-size: 28px;
    }
    
    .banner-style-hero .post-hero-banner-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .post-hero-banner-editor {
        padding-bottom: 140px; /* בעורך: ריווח נוסף למסכים קטנים מאוד */
    }
    
    .banner-style-hero .post-hero-banner-content {
        top: calc(100% - 8vw); /* מרווח קטן יותר במסכים קטנים מאוד */
        max-width: 95%;
        width: calc(100% - 20px);
        padding: 0 10px;
    }
    
    .banner-style-hero .post-hero-banner-title {
        font-size: 24px;
    }
    
    .banner-style-hero .post-hero-banner-subtitle {
        font-size: 14px;
    }
    
    .banner-style-hero .post-hero-banner-inner {
        padding: 15px;
    }
}

/* תמיכה ב-align wide ו-full */
.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%);
}

.wp-block-ttfchild-post-hero-banner.alignwide,
.post-hero-banner.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* עיצובים לעורך גוטנברג */
.post-hero-banner-editor .post-hero-banner-title[contenteditable="true"]:empty:before {
    content: attr(aria-placeholder);
    opacity: 0.62;
    pointer-events: none;
}

.post-hero-banner-editor .post-hero-banner-subtitle[contenteditable="true"]:empty:before {
    content: attr(aria-placeholder);
    opacity: 0.62;
    pointer-events: none;
}

.post-hero-banner-editor .post-hero-banner-inner {
    pointer-events: all;
}

/* הודעת placeholder בעורך */
.post-hero-banner-placeholder-message {
    padding: 20px;
    background: #f8f8f8;
    border: 2px dashed #ddd;
    text-align: center;
    color: #666;
    margin: 20px 0;
    border-radius: 4px;
}

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

/* מיכל המחבר בתוך בלוק ה-hero */
.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;
    gap: 12px;
}

/* תמונת הפרופיל */
.post-hero-author-section .author-avatar {
    flex-shrink: 0;
}

.post-hero-author-section .author-avatar img {
    border-radius: 50%;
    display: block;
}

/* מיכל פרטי המחבר */
.post-hero-author-section .author-info {
    flex: 1;
    min-width: 0;
}

/* שורת המטא (שם מחבר ותאריך) */
.post-hero-author-section .author-meta-line {
    display: flex;
    width: 100%;
}

/* עטיפת שם המחבר - מכיל את כל האלמנטים */
.post-hero-author-section .author-name-wrapper {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

/* עטיפת מטא ראשית: שם + תאריך */
.post-hero-author-section .author-primary-meta {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

/* מטא משנית: זמן קריאה */
.post-hero-author-section .author-secondary-meta {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

/* כאשר יש ביוגרפיה - בדסקטופ */
.post-hero-author-section .author-name-wrapper.has-author-bio {
    flex-direction: row;
}

/* התאריך בדסקטופ - מיושר לימין */
.post-hero-author-section .author-name-wrapper .post-date-wrapper {
    margin-right: auto;
    flex: 0 0 auto;
}

/* כאשר אין ביוגרפיה - בדסקטופ */
.post-hero-author-section .author-name-wrapper.no-author-bio {
    flex-direction: row;
}

/* שם המחבר */
.post-hero-author-section .author-name {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none !important; /* ביטול קו תחתון */
    transition: color 0.3s ease;
    cursor: pointer;
    pointer-events: auto; /* מאפשר לחיצות */
    border: none;
    outline: none;
}

/* שם המחבר בהובר */
.post-hero-author-section .author-name:hover {
    color: var(--secondary-color-daat, #007cba);
    text-decoration: none !important; /* ביטול קו תחתון גם בהובר */
}

/* ביטול קו תחתון גם עבור קישורים שביקרו בהם */
.post-hero-author-section .author-name:visited {
    text-decoration: none !important;
}

/* ביוגרפיה של המחבר - בדסקטופ מוצגת בשורה */
.post-hero-author-section .author-bio {
    font-size: 13px;
    font-weight: 300;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
    display: inline-block;
}

/* הוספת מקף לפני הביוגרפיה בדסקטופ */
.post-hero-author-section .author-bio::before {
    content: ' - ';
    color: #999;
}

/* התאריך */
.post-hero-author-section .post-date {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    position: relative;
    right: 10px;
}

/* עיצובים למסכים קטנים עבור חלק המחבר */
@media (max-width: 768px) {
    .post-hero-author-section {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-hero-author-section .author-info {
        width: 100%;
    }
    
    .post-hero-author-section .author-meta-line {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    /* מיכל לכל האלמנטים */
    .post-hero-author-section .author-name-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start; /* התחלה מימין ב-RTL */
        align-items: flex-start;
        width: 100%;
        gap: 0;
        min-height: 35px; /* גובה מינימלי לשורה הראשונה */
    }
    
    /* כאשר יש ביוגרפיה - עיצוב מיוחד */
    .post-hero-author-section .author-name-wrapper.has-author-bio {
        display: grid !important;
        grid-template-columns: 1fr auto !important; /* עמודה ימנית גמישה, עמודה שמאלית לתאריך */
        grid-template-rows: auto auto !important;
        gap: 4px 15px !important; /* רווח בין שורות ועמודות */
        align-items: stretch !important; /* מאפשר לפריטים למתוח לגובה מלא */
        max-width: 100% !important; /* ביטול ה-50% */
        width: 100% !important;
        position: relative !important;
    }
    
    .post-hero-author-section .author-name-wrapper.has-author-bio .author-name {
        grid-column: 1;
        grid-row: 1;
        align-self: start; /* יישור לתחילת התא */
    }
    
    .post-hero-author-section .author-name-wrapper.has-author-bio .post-date-wrapper {
        grid-column: 2;
        grid-row: 1 / span 2; /* תופס את שתי השורות */
        display: flex !important;
        align-items: center !important; /* מרכז אנכי */
        justify-content: flex-start !important; /* יישור לשמאל בתוך העמודה */
        align-self: stretch !important; /* מתיחה לכל גובה השורות */
        min-height: 100% !important; /* גובה מינימלי מלא */
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .post-hero-author-section .author-name-wrapper.has-author-bio .author-bio {
        grid-column: 1;
        grid-row: 2;
        align-self: start; /* יישור לתחילת התא */
    }
    
    /* כאשר אין ביוגרפיה - שורה אחת */
    .post-hero-author-section .author-name-wrapper.no-author-bio {
        display: grid !important;
        grid-template-columns: 1fr auto !important; /* עמודה ימנית לשם, עמודה שמאלית לתאריך */
        gap: 15px !important;
        align-items: center !important; /* מרכז אנכי */
        max-width: 100% !important; /* ביטול ה-50% */
        width: 100% !important;
    }
    
    .post-hero-author-section .author-name-wrapper.no-author-bio .author-name {
        grid-column: 1;
        text-align: right; /* יישור לימין */
    }
    
    .post-hero-author-section .author-name-wrapper.no-author-bio .post-date-wrapper {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: flex-start; /* יישור לשמאל בתוך העמודה */
    }
    
    .post-hero-author-section .author-name {
        font-size: 13px;
        line-height: 1.2;
        display: inline-block !important; /* לא contents */
        white-space: nowrap;
    }
    
    .post-hero-author-section .author-bio {
        display: block;
        font-size: 12px;
        font-weight: 300;
        color: #666;
        line-height: 1.3;
        white-space: normal;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        width: 100%;
    }
    
    /* הסרת המקף במובייל כי הביוגרפיה בשורה נפרדת */
    .post-hero-author-section .author-bio::before {
        content: '';
        display: none;
    }
    
    .post-hero-author-section .post-date {
        font-size: 13px;
        white-space: nowrap;
        display: inline-block !important; /* לא contents */
        text-align: left;
        max-width: none !important; /* ביטול ה-50% */
        overflow: visible !important;
    }
    
    .post-hero-author-section .post-date-wrapper {
        padding: 0;
        margin: 0;
        max-width: none !important; /* ביטול ה-50% */
        display: flex !important; /* לא contents */
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .post-hero-author-section .author-name {
        font-size: 12px;
    }
    
    .post-hero-author-section .author-bio {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .post-hero-author-section .post-date {
        font-size: 12px;
    }
    
    /* התאמת הגריד למסכים קטנים */
    .post-hero-author-section .author-name-wrapper.has-author-bio {
        gap: 4px 10px; /* רווח קטן יותר במסכים קטנים */
    }
}



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

/* ========================
   הסתרת שדה הכותרת המקורי
   ======================== */

/* הסתרה מלאה של שדה הכותרת המקורי בפוסטים */
body.post-type-post .editor-post-title,
body.post-type-post .editor-post-title__block,
body.post-type-post .wp-block-post-title,
body.post-type-post .edit-post-visual-editor__post-title-wrapper,
body.post-type-post .edit-post-visual-editor .editor-post-title,
body.post-type-post .editor-post-title__input {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* הסתרת המיכל של הכותרת */
body.post-type-post .edit-post-visual-editor__post-title-wrapper {
    display: none !important;
}

/* התאמת המרווח העליון של התוכן */
body.post-type-post .is-root-container > .wp-block:first-child {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* ========================
   עיצוב הפאנל בסרגל הצד
   ======================== */

/* עיצוב כללי לפאנל */
.post-title-sidebar-panel {
    position: relative;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* אייקון לפאנל */
.post-title-sidebar-panel::before {
    content: "📝";
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    z-index: 1;
}

/* התאמת padding לכותרת הפאנל */
.post-title-sidebar-panel .components-panel__body-toggle {
    padding-right: 40px;
}

/* כותרת הפאנל */
.post-title-sidebar-panel .components-panel__body-title {
    font-weight: 600;
    background: #fff;
    border-radius: 4px 4px 0 0;
}

/* אייקון עריכה */
.post-title-sidebar-panel .components-panel__icon {
    color: #007cba;
}

/* ========================
   שדה הכותרת
   ======================== */

/* עיצוב שדה הקלט */
.post-title-sidebar-panel .components-text-control__input {
    font-size: 16px;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* מצב hover */
.post-title-sidebar-panel .components-text-control__input:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-color: #b0b0b0;
}

/* מצב focus */
.post-title-sidebar-panel .components-text-control__input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
    outline: none;
    transform: none;
}

/* Label של השדה */
.post-title-sidebar-panel .components-base-control__label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #1e1e1e;
    font-size: 14px;
}

/* טקסט עזרה */
.post-title-sidebar-panel .components-base-control__help {
    margin-top: 8px;
    color: #757575;
    font-size: 12px;
    line-height: 1.4;
}

/* ========================
   תצוגה מקדימה של הכותרת
   ======================== */

.post-title-preview {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #f0f5ff 0%, #f7f9fc 100%);
    border-radius: 6px;
    border-right: 4px solid #007cba;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-title-preview strong {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.title-preview-text {
    font-size: 15px;
    line-height: 1.6;
    color: #1e1e1e;
    word-break: break-word;
    font-weight: 500;
}

/* ========================
   אינדיקטור אורך הכותרת
   ======================== */

.title-length-indicator {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.title-length-indicator small {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 3px;
    background: #f0f0f0;
    transition: all 0.3s ease;
}

/* צבעים לפי אורך */
.title-length-indicator small[style*="00a32a"] {
    background: rgba(0, 163, 42, 0.1);
    color: #00a32a;
}

.title-length-indicator small[style*="dba617"] {
    background: rgba(219, 166, 23, 0.1);
    color: #dba617;
}

.title-length-indicator small[style*="d63638"] {
    background: rgba(214, 54, 56, 0.1);
    color: #d63638;
}

/* טיפ SEO */
.title-length-indicator small:last-child {
    display: block;
    margin-top: 8px;
    padding: 8px;
    background: #fff5e1;
    border: 1px solid #f0d6a0;
    color: #6a5300;
    font-weight: normal;
    border-radius: 4px;
    line-height: 1.4;
}

/* ========================
   אנימציות
   ======================== */

/* אנימציה לפתיחת הפאנל */
.post-title-sidebar-panel .components-panel__body.is-opened {
    animation: slideDown 0.3s ease-out;
}

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

/* ========================
   התאמות למובייל
   ======================== */

@media (max-width: 782px) {
    .post-title-sidebar-panel .components-text-control__input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .post-title-preview {
        padding: 12px;
    }
    
    .title-preview-text {
        font-size: 14px;
    }
}

/* ========================
   מצב כהה (Dark Mode)
   ======================== */

@media (prefers-color-scheme: dark) {
    .post-title-sidebar-panel {
        background: #2b2b2b;
    }
    
    .post-title-sidebar-panel .components-panel__body-title {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .post-title-sidebar-panel .components-text-control__input {
        background: #1e1e1e;
        color: #e0e0e0;
        border-color: #404040;
    }
    
    .post-title-sidebar-panel .components-text-control__input:hover {
        border-color: #606060;
    }
    
    .post-title-sidebar-panel .components-text-control__input:focus {
        border-color: #007cba;
    }
    
    .post-title-preview {
        background: linear-gradient(135deg, #1a2332 0%, #1e1e1e 100%);
        border-right-color: #007cba;
    }
    
    .title-preview-text {
        color: #e0e0e0;
    }
    
    .title-length-indicator {
        border-top-color: #404040;
    }
}

/* ========================
   תמיכה ב-RTL
   ======================== */

body.rtl .post-title-sidebar-panel::before {
    right: auto;
    left: 12px;
}

body.rtl .post-title-sidebar-panel .components-panel__body-toggle {
    padding-right: 12px;
    padding-left: 40px;
}

body.rtl .post-title-preview {
    border-right: none;
    border-left: 4px solid #007cba;
}

/* ========================
   הדפסה
   ======================== */

@media print {
    .post-title-sidebar-panel {
        display: none !important;
    }
}



/* === splash-screen === */
/**
 * Splash Screen Styles for PWA
 * מסך פתיחה לאפליקציית PWA
 */

/* מסך הפתיחה */
#pwa-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #273B6B;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    pointer-events: all;
}

/* מצב מוסתר */
#pwa-splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* מיכל הלוגו במסך הפתיחה */
#pwa-splash-screen .splash-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    height: 320px;
    /* ללא רקע נוסף - רק מיכל שקוף */
    background: transparent;
    position: relative;
}

/* הלוגו במסך הפתיחה */
#pwa-splash-screen .splash-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    animation: splashFadeIn 0.5s ease-in;
    /* תיקון מקיף לבעיית רקע שחור בתמונות PNG שקופות */
    background-color: transparent !important;
    background: transparent !important;
    /* ניקוי כל רקע אפשרי */
    background-image: none !important;
    /* הגדרות נוספות לשקיפות */
    mix-blend-mode: normal;
    isolation: isolate;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* וודא שאין צללים או אפקטים */
    box-shadow: none !important;
    filter: none;
}

/* אנימציית כניסה ללוגו */
@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* התאמה למובייל */
@media (max-width: 768px) {
    #pwa-splash-screen .splash-logo-container {
        width: 250px;
        height: 250px;
    }
    
    #pwa-splash-screen .splash-logo {
        width: 230px;
        height: 230px;
    }
}

/* הסתרה עבור דפדפנים רגילים (לא PWA) */
body:not(.pwa-mode) #pwa-splash-screen {
    display: none !important;
}



