@charset "UTF-8";
/* ================================================= */
/* כותרות באזורי header עם רקע כהה */
/* ================================================= */
.page-header .entry-title,
.page-title {
  color: #ffffff !important;
}

.breadcrumb-trail,
.breadcrumb-trail a {
  color: #e0e0e0 !important;
}

/* ================================================= */
/* עמודי כתבה בודדת */
/* ================================================= */
.single-post .entry-title,
.single-post .entry-title a {
  color: #222222 !important;
}

.single-post .breadcrumb-trail,
.single-post .breadcrumb-trail a,
.single-post .cat-links,
.single-post .cat-links a,
.single-post .post-categories,
.single-post .post-categories a {
  color: #444444 !important;
}

.single-post .entry-meta,
.single-post .entry-meta a {
  color: #666666 !important;
}

/* ================================================= */
/* דפי קטגוריה - צבעי טקסט */
/* ================================================= */
.archive.category .entry-title,
.archive.category .entry-title a {
  color: #222222 !important;
}

.archive.category .cat-links,
.archive.category .cat-links a,
.archive.category .post-categories,
.archive.category .post-categories a {
  color: #444444 !important;
}

/* ================================================= */
/* חשוב: לא להפוך את כל main לגריד */
/* ================================================= */
.archive.category .site-main {
  display: block !important;
}

/* ================================================= */
/* דפי קטגוריה - מבנה מגזיני לתבנית שלך */
/* ================================================= */
.archive.category .mag-post-grid {
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

.archive.category .mag-post-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.archive.category .mag-post-single {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* ================================================= */
/* תמונות בכרטיסים */
/* ================================================= */
.archive.category .mag-post-img {
  margin: 0 !important;
}

.archive.category .mag-post-img img {
  width: 80% !important;
  aspect-ratio: 9/6 !important;
  object-fit: cover !important;
  display: block !important;
  height: auto !important;
}

/* ================================================= */
/* תוכן פנימי של כרטיסים */
/* ================================================= */
.archive.category .mag-post-single .entry-header,
.archive.category .mag-post-single .entry-content,
.archive.category .mag-post-single .entry-meta,
.archive.category .mag-post-single .post-categories,
.archive.category .mag-post-single .cat-links,
.archive.category .mag-post-single .entry-summary,
.archive.category .mag-post-single .mag-post-content {
  padding-right: 18px !important;
  padding-left: 18px !important;
}

/* ================================================= */
/* כותרות בכרטיסים */
/* ================================================= */
.archive.category .mag-post-single h2,
.archive.category .mag-post-single h2 a,
.archive.category .mag-post-single h3,
.archive.category .mag-post-single h3 a,
.archive.category .mag-post-single .entry-title,
.archive.category .mag-post-single .entry-title a {
  color: #1f1f1f !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  margin: 10px 0 !important;
}

/* ================================================= */
/* מטא */
/* ================================================= */
.archive.category .mag-post-single .entry-meta,
.archive.category .mag-post-single .entry-meta a {
  color: #666666 !important;
  font-size: 13px !important;
}

/* ================================================= */
/* תקצירים */
/* ================================================= */
.archive.category .mag-post-single .entry-content,
.archive.category .mag-post-single .entry-content p,
.archive.category .mag-post-single .entry-summary,
.archive.category .mag-post-single .entry-summary p,
.archive.category .mag-post-single .mag-post-content p {
  color: #333333 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ================================================= */
/* מניעת טקסט לבן על רקע לבן */
/* ================================================= */
body,
.site,
.content-area {
  color: #222222;
}

/* ================================================= */
/* מובייל וטאבלט */
/* ================================================= */
@media (max-width: 991px) {
  .archive.category .mag-post-grid {
    grid-template-columns: 1fr !important;
  }
  .archive.category .mag-post-single h2,
  .archive.category .mag-post-single h2 a,
  .archive.category .mag-post-single h3,
  .archive.category .mag-post-single h3 a,
  .archive.category .mag-post-single .entry-title,
  .archive.category .mag-post-single .entry-title a {
    font-size: 24px !important;
  }
}
/* ================================================= */
/* תיקון כותרת קטגוריה - שלא תהיה לבנה על רקע בהיר */
/* ================================================= */
.archive.category .page-header .entry-title,
.archive.category .page-title,
.archive.category .page-header .entry-title a,
.archive.category .archive-title,
.archive.category .archive-title a {
  color: #1f1f1f !important;
}

.archive.category .page-header .breadcrumb-trail,
.archive.category .page-header .breadcrumb-trail a {
  color: #666666 !important;
}

/* ================================================= */
/* שליטה אמיתית על שני הטורים בקטגוריה */
/* ================================================= */
/* הגריד הראשי */
.archive.category .mag-post-grid {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

/* חשוב: לאפשר לטור השמאלי באמת להצטמצם */
.archive.category .mag-post-wrapper {
  width: 260px !important;
  min-width: 0 !important;
  max-width: 260px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

/* גם הטור הימני */
.archive.category .mag-post-grid > div:last-child,
.archive.category .mag-post-grid > section:last-child,
.archive.category .mag-post-grid > article:last-child {
  min-width: 0 !important;
}

/* הכרטיסים בשמאל */
.archive.category .mag-post-wrapper .mag-post-single {
  width: 100% !important;
  max-width: 100% !important;
}

/* כרטיס מודגש מימין */
.archive.category .mag-post-grid > *:last-child .mag-post-single,
.archive.category .mag-post-grid > *:last-child {
  width: 100% !important;
  max-width: 100% !important;
}

/* קצת קומפקטיות לטור השמאלי */
.archive.category .mag-post-wrapper .mag-post-single h2,
.archive.category .mag-post-wrapper .mag-post-single h2 a,
.archive.category .mag-post-wrapper .mag-post-single h3,
.archive.category .mag-post-wrapper .mag-post-single h3 a,
.archive.category .mag-post-wrapper .mag-post-single .entry-title,
.archive.category .mag-post-wrapper .mag-post-single .entry-title a {
  font-size: 20px !important;
  line-height: 1.25 !important;
}

/* התמונה בכרטיס הגדול */
.archive.category .mag-post-grid > *:last-child .mag-post-img img {
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  object-fit: cover !important;
  height: auto !important;
}

/* התמונה בכרטיסים השמאליים */
.archive.category .mag-post-wrapper .mag-post-img img {
  width: 100% !important;
  aspect-ratio: 4/3 !important;
  object-fit: cover !important;
  height: auto !important;
}

/* מובייל */
@media (max-width: 991px) {
  .archive.category .mag-post-grid {
    grid-template-columns: 1fr !important;
  }
  .archive.category .mag-post-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
}