/* ============================================================
   BLOG — oganim.vercel.app/blog
   Hebrew RTL. Shares brand tokens with /tax-refund.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0F4C81;
  --primary-dark: #0a3559;
  --accent: #F4A300;
  --accent-dark: #cc8600;
  --success: #1F9D55;
  --bg: #F7F9FC;
  --bg-alt: #ffffff;
  --text: #18222B;
  --text-soft: #4A5A68;
  --text-mute: #6D7E8C;
  --border: #E2E8EE;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 76, 129, 0.07);
  --shadow-md: 0 6px 24px rgba(15, 76, 129, 0.1);
  --shadow-lg: 0 16px 48px rgba(15, 76, 129, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

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

/* ===== NAVBAR (mirrors tax-refund) ===== */
.bl-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.bl-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
}
.bl-logo img { height: 36px; width: auto; }
.bl-nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(244, 163, 0, 0.3);
  transition: transform 0.15s;
}
.bl-nav-phone:hover { transform: translateY(-1px); color: #fff !important; }

/* ===== BREADCRUMBS ===== */
.bl-crumbs {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 14px;
  color: var(--text-mute);
}
.bl-crumbs a { color: var(--text-mute); }
.bl-crumbs a:hover { color: var(--primary); }
.bl-crumbs .sep { margin: 0 6px; opacity: 0.6; }

/* ===== INDEX / LISTING ===== */
.bl-hero {
  background: linear-gradient(135deg, #0F4C81 0%, #1a6aa8 100%);
  color: #fff;
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}
.bl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(244,163,0,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.bl-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.bl-hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}
.bl-hero p {
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto;
}
.bl-hero-search {
  margin-top: 28px;
  max-width: 420px;
  margin-inline: auto;
  position: relative;
}
.bl-hero-search input {
  width: 100%;
  padding: 13px 46px 13px 16px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.bl-hero-search input:disabled { cursor: not-allowed; opacity: 0.7; }
.bl-hero-search .ico {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-mute);
  pointer-events: none;
}
.bl-hero-search small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
}

/* ===== POST GRID ===== */
.bl-listing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}
.bl-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bl-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.bl-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bl-featured:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bl-featured-img {
  background: linear-gradient(135deg, #0F4C81 0%, #1a6aa8 60%, #F4A300 140%);
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 72px;
}
.bl-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.bl-featured-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bl-tag {
  display: inline-block;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}
.bl-featured h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.bl-featured h2 a { color: inherit; }
.bl-featured h2 a:hover { color: var(--primary); }
.bl-featured p {
  color: var(--text-soft);
  margin-bottom: 18px;
  font-size: 16px;
}
.bl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 18px;
}
.bl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bl-read-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(244, 163, 0, 0.3);
  transition: transform 0.15s;
}
.bl-read-more:hover { transform: translateY(-1px); color: #fff !important; }

/* Grid of regular cards */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 18px;
}
.bl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.bl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bl-card-img {
  height: 140px;
  background: linear-gradient(135deg, #e5edf6 0%, #f7f9fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--primary);
  opacity: 0.6;
}
.bl-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bl-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.bl-card p {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 12px;
  flex: 1;
}

/* "Coming soon" card */
.bl-card.bl-coming {
  background: #f0f3f7;
  border: 1px dashed #c8d1dc;
  cursor: default;
}
.bl-card.bl-coming:hover { transform: none; box-shadow: none; }
.bl-card.bl-coming .bl-card-img {
  background: #e6ebf2;
  color: #97a4b3;
}
.bl-card.bl-coming h3 { color: #5b6877; }
.bl-card.bl-coming p { color: #7c8898; }
.bl-coming-badge {
  display: inline-block;
  background: #d6dde6;
  color: #5b6877;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: auto;
  width: fit-content;
}

/* ===== POST PAGE ===== */
.bl-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.bl-post-header {
  margin-bottom: 32px;
  text-align: right;
}
.bl-post-tag {
  display: inline-block;
  background: rgba(244, 163, 0, 0.12);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.bl-post h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 18px;
}
.bl-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-mute);
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.bl-post-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Hero image at top of post */
.bl-post-hero {
  margin: 32px auto 40px;
  max-width: 1200px;
  padding: 0 18px;
}
.bl-post-hero img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
@media (max-width: 720px) {
  .bl-post-hero {
    margin: 20px auto 28px;
    padding: 0 12px;
  }
  .bl-post-hero img {
    border-radius: 12px;
  }
}

/* Override .bl-card-img / .bl-featured-img when they contain a real <img> */
.bl-card-img.has-photo,
.bl-featured-img.has-photo {
  background: #eef3f9;
  font-size: 0;
  padding: 0;
  opacity: 1;
  overflow: hidden;
}
.bl-card-img.has-photo img,
.bl-featured-img.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bl-featured-img.has-photo::after { display: none; }

.bl-post-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}
.bl-post-content p { margin-bottom: 18px; }
.bl-post-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--primary);
  margin: 40px 0 16px;
  line-height: 1.3;
}
.bl-post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}
.bl-post-content ul,
.bl-post-content ol {
  margin: 0 22px 22px 0;
  padding-right: 6px;
}
.bl-post-content li { margin-bottom: 8px; }
.bl-post-content strong { color: var(--primary-dark); font-weight: 700; }
.bl-post-content blockquote {
  border-right: 4px solid var(--accent);
  background: #fff8eb;
  padding: 14px 20px;
  margin: 22px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft);
  font-style: italic;
}
.bl-post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(15, 76, 129, 0.3);
  text-underline-offset: 3px;
}
.bl-post-content a:hover { color: var(--accent); }

/* Table */
.bl-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}
.bl-post-content th {
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
}
.bl-post-content td {
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  text-align: right;
}
.bl-post-content tbody tr:nth-child(even) { background: #f7f9fc; }

/* Inline CTA box (mid-article) */
.bl-cta-box {
  background: linear-gradient(135deg, #fff8eb 0%, #fff 100%);
  border: 1px solid #fce0a8;
  border-right: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bl-cta-box-title {
  font-weight: 800;
  color: var(--primary);
  font-size: 18px;
}
.bl-cta-box-text {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}
.bl-cta-box a {
  align-self: flex-start;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(244, 163, 0, 0.3);
  transition: transform 0.15s;
  text-decoration: none !important;
}
.bl-cta-box a:hover { transform: translateY(-1px); color: #fff !important; }

/* Sticky bottom CTA (mobile-friendly) */
.bl-floating-cta {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 12px 32px rgba(15, 76, 129, 0.35);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, background 0.15s;
}
.bl-floating-cta:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateX(-50%) translateY(-2px);
}

/* Big bottom CTA section */
.bl-post-cta {
  background: linear-gradient(135deg, #0F4C81 0%, #1a6aa8 100%);
  color: #fff;
  padding: 48px 24px;
  border-radius: var(--radius);
  margin: 40px 0;
  text-align: center;
}
.bl-post-cta h2 {
  color: #fff !important;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 12px;
}
.bl-post-cta p {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: 22px;
}
.bl-post-cta a {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(244, 163, 0, 0.4);
  transition: transform 0.15s;
  text-decoration: none !important;
}
.bl-post-cta a:hover { transform: translateY(-2px); color: #fff !important; }

/* ===== RELATED POSTS ===== */
.bl-related {
  margin: 48px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.bl-related h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
}
.bl-related .bl-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.bl-related .bl-card-img { height: 100px; font-size: 32px; }
.bl-related .bl-card-body { padding: 16px; }
.bl-related .bl-card h3 { font-size: 15px; }

/* ===== FOOTER (mirrors tax-refund) ===== */
.bl-foot {
  background: var(--text);
  color: #cfd6dd;
  padding: 48px 24px 24px;
  margin-top: 40px;
}
.bl-foot-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.bl-foot-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.bl-foot-col p { margin-bottom: 8px; font-size: 14px; }
.bl-foot-col a { color: #cfd6dd; }
.bl-foot-col a:hover { color: var(--accent); }
.bl-foot-logo { height: 38px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.92; }
.bl-foot-copy {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid #2a3742;
  text-align: center;
  font-size: 13px;
  color: #8a96a3;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 880px) {
  .bl-featured { grid-template-columns: 1fr; }
  .bl-featured-img { min-height: 180px; font-size: 56px; }
  .bl-featured-body { padding: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bl-nav-inner { padding: 12px 18px; }
  .bl-nav-phone { padding: 8px 14px; font-size: 14px; }
  .bl-nav-phone-text { display: none; }
  .bl-hero { padding: 40px 18px 48px; }
  .bl-listing { padding: 36px 18px; }
  .bl-post { padding: 22px 18px 64px; }
  .bl-post-content { font-size: 16.5px; line-height: 1.8; }
  .bl-post-content table { font-size: 14px; }
  .bl-post-content th, .bl-post-content td { padding: 9px 10px; }
  .bl-floating-cta { font-size: 14px; padding: 10px 18px; bottom: 12px; }
  .bl-post-cta { padding: 36px 18px; }
  .bl-crumbs { padding: 14px 18px 0; }
}
@media (max-width: 420px) {
  .bl-floating-cta { width: calc(100% - 24px); justify-content: center; }
}
