/*
Theme Name: נתיבותי
Theme URI: https://netivoti.co.il
Description: תבנית חדשות מותאמת אישית לאתר נתיבותי - עיצוב מקצועי, מהיר ומותאם לנייד עם תמיכה מלאה ב-RTL ועברית
Author: נתיבותי
Version: 1.0.0
Text Domain: netivoti
Tags: rtl-language, news, custom-background, custom-logo, featured-images, responsive-layout
*/

/* ================================================
   NETIVOTI THEME - CSS VARIABLES & RESET
   ================================================ */

:root {
  /* Brand Colors */
  --red:        #C8102E;
  --red-dark:   #9E0B22;
  --red-light:  #FCEEF1;
  --gold:       #E8A020;
  --gold-light: #FDF3E0;

  /* Neutral */
  --white:      #FFFFFF;
  --bg:         #F4F4F4;
  --bg-card:    #FFFFFF;
  --border:     #E8E8E8;
  --border-mid: #D0D0D0;

  /* Text */
  --text-1:     #1A1A1A;
  --text-2:     #555555;
  --text-3:     #888888;

  /* Typography */
  --font:       'Heebo', 'Arial Hebrew', sans-serif;

  /* Spacing */
  --gap:        12px;
  --radius:     8px;
  --radius-lg:  12px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 2px 8px rgba(0,0,0,0.10);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--red); }

ul, ol { list-style: none; }

/* ================================================
   LAYOUT WRAPPERS
   ================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.container--narrow {
  max-width: 860px;
}

.site-content {
  padding: 16px 0 32px;
}

/* ================================================
   HEADER
   ================================================ */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 12px;
  direction: rtl;
}

/* Logo – מצד ימין */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  order: 1;
}

.site-logo img,
.site-logo .custom-logo {
  height: 52px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  display: block;
}

/* וורדפרס עוטף בלינק */
.custom-logo-link {
  display: flex;
  align-items: center;
}

.site-logo__text {
  font-size: 26px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.5px;
}

.site-logo__text span {
  color: var(--gold);
}

/* Header Actions – מצד שמאל */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 2;
}

.search-toggle {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--font);
}

.search-toggle svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-app:hover { background: var(--red-dark); color: var(--white); }

/* Primary Navigation */
/* ================================================
   PRIMARY NAV – תפריט כהה עם תת-תפריטים
   ================================================ */

.primary-nav {
  background: #1a1a1a;
  overflow: visible;
  position: relative;
  z-index: 100;
}

.nav-inner {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

/* רשימה ראשית */
.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: max-content;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 15px;
  height: 40px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
  text-decoration: none;
  border-left: 0.5px solid rgba(255,255,255,.08);
  border-bottom: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}

.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-ancestor > a,
.nav-list > li.current-menu-parent > a {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-bottom-color: #C8102E;
}

/* תת-תפריט */
.nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #C8102E;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  min-width: 160px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  z-index: 200;
}

.nav-list > li:hover .sub-menu,
.nav-list > li.menu-open .sub-menu {
  display: block;
}

.nav-list .sub-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  text-decoration: none;
  transition: background .12s, color .12s;
}

.nav-list .sub-menu li a:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* מובייל – תפריט מוצג בגלילה אופקית */
@media (max-width: 600px) {
  .nav-list > li > a {
    padding: 0 12px;
    font-size: 11px;
  }
  /* תת-תפריט במובייל – מתחת בפס אדום */
  .nav-list .sub-menu {
    position: fixed;
    top: auto;
    right: 0;
    left: 0;
    width: 100%;
    flex-direction: row;
    display: none;
    overflow-x: auto;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .nav-list > li.menu-open .sub-menu {
    display: flex;
  }
  .nav-list .sub-menu li a {
    padding: 8px 14px;
    border-left: 0.5px solid rgba(255,255,255,.15);
    white-space: nowrap;
  }
}

/* ================================================
   BREAKING NEWS BAR
   ================================================ */

.breaking-bar {
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
}

.breaking-bar__label {
  background: var(--white);
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.3px;
}

.breaking-bar__ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.breaking-bar__inner {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: ticker 15s linear infinite;
  font-size: 13px;
}

.breaking-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breaking-bar__item::before {
  content: '·';
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  line-height: 1;
}

/* דיווח מהיר בשורת הדיווחים */
.breaking-bar__item--flash {
  color: #FFE066;
  font-weight: 700;
}

.breaking-bar__item--flash::before {
  content: none;
}

@keyframes ticker {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ================================================
   HERO SECTION – כתבה ראשית
   ================================================ */

.hero-section {
  margin-bottom: var(--gap);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 3fr 2fr;
  }
}

/* Main hero card */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  display: block;
}

.hero-card__image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: contain;
  background: #111;
  display: block;
}

.hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.hero-card__body {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 20px 18px;
  color: var(--white);
}

.hero-card__category {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.hero-card__title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-card__meta {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

/* Hero sidebar */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.hero-side-card {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.hero-side-card__image {
  width: 100px;
  height: 52px;
  border-radius: 6px;
  object-fit: contain;
  background: #1a1a1a;
  flex-shrink: 0;
}

.hero-side-card__body { flex: 1; min-width: 0; }

.hero-side-card__category {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.hero-side-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-card__time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 5px;
}

/* ================================================
   SECTION TITLES
   ================================================ */

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  margin-top: 24px;
}

.section-header:first-child { margin-top: 0; }

.section-header__dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-header__dot--gold { background: var(--gold); }

.section-header__title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-1);
  white-space: nowrap;
}

.section-header__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-header__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================================================
   NEWS CARDS (רשימת כתבות)
   ================================================ */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: border-color 0.15s;
}

.news-card:hover { border-color: var(--border-mid); }

.news-card__thumb {
  width: 120px;
  height: 63px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: #1a1a1a;
}

.news-card__body { flex: 1; min-width: 0; }

.news-card__cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.news-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 6px;
}

/* Grid news cards (larger) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gap);
}

@media (min-width: 600px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (min-width: 900px) {
  .news-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.news-grid-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
}

.news-grid-card__image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: contain;
  background: #1a1a1a;
  display: block;
}

.news-grid-card__body { padding: 10px; }

.news-grid-card__cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.news-grid-card__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-grid-card__time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 6px;
}

/* ================================================
   AD BANNERS
   ================================================ */

.ad-banner {
  width: 100%;
  background: var(--bg-card);
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  color: var(--text-3);
  font-size: 12px;
  gap: 6px;
  margin: 16px 0;
  overflow: hidden;
}

.ad-banner img { width: 100%; height: auto; }

/* ================================================
   APP PROMO BANNER
   ================================================ */

.app-promo {
  background: var(--red);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}

.app-promo__icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-promo__icon svg { width: 30px; height: 30px; }

.app-promo__text { flex: 1; }

.app-promo__title {
  font-size: 16px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 3px;
}

.app-promo__subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.app-promo__stores {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--red);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

/* ================================================
   PROFESSIONALS SECTION
   ================================================ */

.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--gap);
}

@media (min-width: 600px) {
  .pro-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (min-width: 900px) {
  .pro-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
}

.pro-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: block;
  border: 1px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pro-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
}

.pro-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 8px;
  object-fit: cover;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--red);
}

.pro-card__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 2px;
  line-height: 1.3;
}

.pro-card__field {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.pro-card__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #25D366;
  color: var(--white);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
}

/* ================================================
   SPONSORED / CONTENT MARKETING
   ================================================ */

.sponsored-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gap);
}

@media (min-width: 600px) {
  .sponsored-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.sponsored-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: block;
}

.sponsored-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 1;
}

.sponsored-card__image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: contain;
  background: #1a1a1a;
  display: block;
}

.sponsored-card__body { padding: 10px; }

.sponsored-card__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-1);
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sponsored-card__sub {
  font-size: 11px;
  color: var(--text-3);
}

/* ================================================
   TWO-COLUMN LAYOUT (desktop)
   ================================================ */

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .content-sidebar-wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .content-sidebar-wrap {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
  }
}

/* Sidebar */
#sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.sidebar-widget__title {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-1);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

/* ================================================
   FOOTER
   ================================================ */

.site-footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.7);
  padding: 32px 0 16px;
  margin-top: 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}

@media (min-width: 600px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-logo span { color: var(--gold); }

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
}

.footer-col__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

/* ================================================
   SEARCH OVERLAY
   ================================================ */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay__form {
  width: 100%;
  max-width: 600px;
  margin: 0 16px;
}

.search-overlay__input {
  width: 100%;
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 18px;
  font-family: var(--font);
  direction: rtl;
  outline: none;
}

/* ================================================
   MOBILE OPTIMIZATIONS
   ================================================ */

@media (max-width: 480px) {
  .hero-card__title { font-size: 18px; }
  .app-promo { flex-wrap: wrap; }
  .app-promo__stores { flex-direction: row; }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-3); }

.fw-900 { font-weight: 900; }
.fw-700 { font-weight: 700; }

.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

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

/* Whatsapp green */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

/* Facebook blue */
.btn-fb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1877F2;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

/* ================================================

/* ================================================
   NETIVOTI IMAGE SYSTEM – גרסה סופית
   יחס: 1.91:1 (1200×630) – תמונה שלמה, ללא חיתוך
   object-fit: contain בכל מקום
   ================================================ */

/* ── עטיפה אוניברסלית: .img-box ── */
.img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  background: #111;
  overflow: hidden;
  display: block;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.img-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.img-box__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 32px;
}

/* ── Hero ראשי ── */
.hero-card {
  background: #111;
}
.hero-card__image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: contain !important;
  background: #111;
  display: block;
}

/* ── כרטיס צד ── */
.hero-side-card__image {
  width: 100px;
  height: 52px;
  border-radius: 6px;
  object-fit: contain !important;
  background: #111;
  flex-shrink: 0;
}

/* ── ברשימת חדשות ── */
.news-card__thumb {
  width: 120px;
  height: 63px;
  border-radius: 6px;
  object-fit: contain !important;
  flex-shrink: 0;
  background: #111;
}

/* ── גריד כרטיסים ── */
.news-grid-card__image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: contain !important;
  background: #111;
  display: block;
}

/* ── כרטיסי דיווח מהיר ── */
.flash-card__img-wrap {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  background: #111;
  overflow: hidden;
}
.flash-card__img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #111;
  display: block;
}

/* ── נדל"ן ── */
.hp-re-card__img,
.re-card__img {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: contain !important;
  background: #111;
  display: block;
}
.hp-re-card__img--ph,
.re-card__img--placeholder {
  aspect-ratio: 1.91 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: rgba(255,255,255,0.15);
  font-size: 28px;
}

/* ── עמוד כתבה ── */
.article-hero {
  background: #111;
}
.article-hero__img {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: contain !important;
  background: #111;
  display: block;
}

/* ── ממומן ── */
.sponsored-card__image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: contain !important;
  background: #111;
  display: block;
}

/* ── override כל cover שנשאר ── */
img[class*="__img"],
img[class*="__image"],
img[class*="__thumb"] {
  object-fit: contain !important;
  background: #111;
}
