/* leads4tax blog stylesheet — brand colors + RTL Hebrew typography */
:root {
  --brand-blue: #0098FF;
  --brand-blue-dark: #0077cc;
  --brand-peach: #FFBC7D;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #757575;
  --line: #e6ecf0;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --bg-card: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  min-height: 100%; width: 100%; max-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  font-family: "Heebo", "Assistant", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.75;
  color: var(--ink); background: var(--bg);
  direction: rtl; text-align: right;
  position: relative; transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}
.topbar, .l4t-hero, .l4t-section, .l4t-foot { overflow-x: clip; max-width: 100%; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }

a { color: var(--brand-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-blue-dark); text-decoration: underline; }

/* ───── topbar ───── */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.topbar-brand img { height: 44px; width: auto; display: block; }
.topbar-nav { display: flex; gap: 22px; align-items: center; }
.topbar-nav a { color: var(--ink); font-weight: 500; font-size: 16px; }
.topbar-nav a:hover { color: var(--brand-blue); text-decoration: none; }
.topbar-cta {
  background: var(--brand-blue); color: #fff !important; font-weight: 600;
  padding: 10px 22px; border-radius: 8px;
}
.topbar-cta:hover { background: var(--brand-blue-dark); text-decoration: none; }
@media (max-width: 720px) {
  .topbar-nav { display: none; }
}

/* ───── blog index ───── */
.blog-hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff; padding: 64px 22px 56px;
}
.blog-hero-inner { max-width: 1100px; margin: 0 auto; }
.blog-hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; font-weight: 800; line-height: 1.2; }
.blog-hero p { font-size: 18px; opacity: .95; margin: 0; max-width: 720px; }
.blog-hero-crumbs { font-size: 14px; opacity: .85; margin-bottom: 16px; }
.blog-hero-crumbs a { color: #fff; text-decoration: underline; }

.layout {
  max-width: 1100px; margin: 0 auto; padding: 48px 22px 64px;
  display: grid; grid-template-columns: 1fr 280px; gap: 48px;
}
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 32px; } }

.cat-section { margin-bottom: 40px; }
.cat-section-head {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 2px solid var(--brand-blue); padding-bottom: 10px; margin-bottom: 22px;
}
.cat-section-head h2 { margin: 0; font-size: 22px; color: var(--ink); font-weight: 700; }
.cat-section-head .count { color: var(--ink-mute); font-size: 14px; }

.post-card {
  display: grid; grid-template-columns: 180px 1fr; gap: 22px;
  padding: 18px; margin-bottom: 18px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card-img {
  width: 180px; height: 130px; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
}
.post-card-img img, .post-card-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand-blue); text-decoration: none; }
.post-card .excerpt { color: var(--ink-soft); margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.post-card .meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-mute); }
.post-card .meta .pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 152, 255, .1); color: var(--brand-blue); font-weight: 600;
}
@media (max-width: 600px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card-img { width: 100%; height: 180px; }
}

/* sidebar */
.sidebar { position: sticky; top: 88px; align-self: start; }
.sidebar-box {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px; margin-bottom: 22px;
}
.sidebar-box h4 { margin: 0 0 14px; font-size: 16px; color: var(--ink); font-weight: 700; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 8px; font-size: 15px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: #fff; color: var(--ink-soft); font-size: 13px; font-weight: 500;
  border: 1px solid var(--line);
}
.tag-cloud a:hover { background: var(--brand-blue); color: #fff !important; text-decoration: none; border-color: var(--brand-blue); }

/* ───── post page ───── */
.post-hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff; padding: 56px 22px 44px;
}
.post-hero-inner { max-width: 820px; margin: 0 auto; }
.post-hero .crumbs { font-size: 14px; opacity: .85; margin-bottom: 14px; }
.post-hero .crumbs a { color: #fff; text-decoration: underline; }
.post-hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.25; margin: 0 0 16px; font-weight: 800; }
.post-hero .post-meta { font-size: 14px; opacity: .9; display: flex; gap: 16px; flex-wrap: wrap; }
.post-hero .post-meta .pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 188, 125, .25); color: var(--brand-peach); font-weight: 600;
}

.article {
  max-width: 820px; margin: 0 auto; padding: 48px 22px 64px;
}
.article > .feat-img {
  width: 100%; border-radius: 14px; overflow: hidden; margin-bottom: 32px;
  background: var(--bg-soft); aspect-ratio: 16 / 9;
}
.article > .feat-img svg { display: block; width: 100%; height: 100%; }
.article p { margin: 0 0 18px; }
.article h2 {
  margin: 38px 0 14px; font-size: 26px; color: var(--ink); font-weight: 700;
  border-right: 4px solid var(--brand-blue); padding-right: 14px;
}
.article h3 { margin: 28px 0 10px; font-size: 20px; font-weight: 700; color: var(--ink); }
.article ul, .article ol { margin: 0 0 20px; padding-right: 22px; }
.article li { margin-bottom: 8px; }
.article blockquote {
  margin: 24px 0; padding: 16px 20px;
  border-right: 4px solid var(--brand-peach); background: #fff7ed;
  font-size: 17px; color: var(--ink-soft); border-radius: 8px;
}
.article .key-fact {
  margin: 24px 0; padding: 18px 22px;
  background: linear-gradient(135deg, rgba(0,152,255,.06), rgba(0,152,255,.02));
  border: 1px solid rgba(0,152,255,.2); border-radius: 12px;
}
.article .key-fact strong { color: var(--brand-blue); }

.related {
  max-width: 820px; margin: 0 auto; padding: 0 22px 48px;
}
.related h3 { font-size: 22px; margin: 0 0 18px; border-right: 4px solid var(--brand-blue); padding-right: 14px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  padding: 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-card); transition: transform .15s ease, box-shadow .15s ease;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.related-card a { color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.4; }
.related-card a:hover { color: var(--brand-blue); text-decoration: none; }
.related-card .mini-pill { display: inline-block; font-size: 12px; color: var(--brand-blue); margin-bottom: 6px; font-weight: 600; }

.cta-band {
  background: linear-gradient(135deg, var(--brand-peach) 0%, #ffa860 100%);
  padding: 48px 22px; text-align: center; color: #1a1a1a;
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.cta-band p { margin: 0 0 18px; font-size: 17px; }
.cta-band a {
  display: inline-block; background: #1a1a1a; color: #fff !important; font-weight: 600;
  padding: 14px 32px; border-radius: 10px; font-size: 17px;
}
.cta-band a:hover { background: #000; text-decoration: none; }

.l4t-foot {
  background: #0d1117; color: #cbd2d9; padding: 36px 22px; text-align: center; font-size: 14px;
}
.l4t-foot a { color: #cbd2d9; }
.l4t-foot .foot-brand { margin-bottom: 12px; font-weight: 700; color: #fff; }
