/* ============================================================================
   Blog-specific stylesheet — SEO Agent article pipeline (scripts/seo-agent-pull.js).
   Kept separate from css/styles.css deliberately: styles.css is served with a
   1-year immutable cache (netlify.toml), so any change there requires bumping
   ?v= across every referencing page (currently 178). This file has no such
   constraint yet, so blog-only rules live here instead.

   Section 1 (pretrip-block) is copied verbatim from the live inline <style>
   block already shipped on armenia.html etc. (2026-09-15/16 rollout) — same
   component, reused as-is so an embedded "before you fly" block renders
   identically to the one on its own destination page. Not re-invented.
   ============================================================================ */

/* ---- 1. pretrip-block ("לפני שטסים"), verbatim from live destination pages ---- */
.pretrip-block { position:relative; overflow:hidden; background:linear-gradient(165deg,var(--slate-50) 0%,#fff 55%); border:2px solid var(--border); border-radius:var(--r-xl); padding:30px 28px 24px; margin:28px 0 10px; box-shadow:0 10px 32px rgba(15,23,42,.1),0 2px 8px rgba(15,23,42,.05); }
.pretrip-block::before { content:""; position:absolute; inset:0 0 auto 0; height:7px; background:linear-gradient(90deg,#0ea5e9,#0d9488,#f59e0b,#ec4899); }
.pretrip-header { display:flex; align-items:center; gap:14px; margin-bottom:8px; }
.pretrip-icon { width:52px; height:52px; border-radius:16px; background:linear-gradient(135deg,#0ea5e9,#0d9488,#f59e0b); display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.4rem; flex-shrink:0; box-shadow:0 4px 14px rgba(13,148,136,.35); }
.pretrip-block h3 { font-size:clamp(1.3rem,3vw,1.6rem); font-weight:900; color:#0f172a; margin:0; }
.pretrip-block > p.pretrip-sub { font-size:.92rem; color:#475569; margin:0 0 18px; line-height:1.65; }
.pretrip-row { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:15px 18px; margin:10px 0; background:#fff; border:1px solid var(--border); border-inline-start-width:4px; border-inline-start-style:solid; border-radius:14px; box-shadow:0 1px 3px rgba(15,23,42,.05); }
.pretrip-row-main { flex:1 1 260px; min-width:0; }
.pretrip-row-name { font-weight:800; color:#0f172a; font-size:1.02rem; margin-bottom:3px; }
.pretrip-row-price { font-size:.87rem; color:#475569; line-height:1.6; }
.pretrip-row-price .check-date { color:#94a3b8; }
.pretrip-btn { display:inline-flex; align-items:center; gap:6px; color:#fff; padding:10px 20px; border-radius:999px; font-weight:800; font-size:.87rem; text-decoration:none; white-space:nowrap; flex-shrink:0; transition:all .25s; }
.pretrip-btn:hover { transform:translateY(-1px); }
.pretrip-badge { display:inline-flex; align-items:center; gap:7px; padding:9px 18px; border-radius:999px; font-weight:800; font-size:.85rem; border:1.5px solid; white-space:nowrap; flex-shrink:0; }
.pretrip-row.cat-insurance { border-inline-start-color:#10b981; }
.pretrip-row.cat-insurance .pretrip-btn { background:linear-gradient(135deg,#10b981,#059669); box-shadow:0 3px 10px rgba(16,185,129,.32); }
.pretrip-row.cat-esim { border-inline-start-color:#a855f7; }
.pretrip-row.cat-esim .pretrip-btn { background:linear-gradient(135deg,#a855f7,#9333ea); box-shadow:0 3px 10px rgba(168,85,247,.32); }
.pretrip-row.cat-car { border-inline-start-color:#f59e0b; }
.pretrip-row.cat-car .pretrip-btn { background:linear-gradient(135deg,#f59e0b,#ea580c); box-shadow:0 3px 10px rgba(245,158,11,.32); }
.pretrip-row.cat-transport { border-inline-start-color:#0d9488; }
.pretrip-row.cat-transport .pretrip-btn { background:linear-gradient(135deg,#0d9488,#0f766e); box-shadow:0 3px 10px rgba(13,148,136,.32); }
.pretrip-row.cat-attractions { border-inline-start-color:#ec4899; }
.pretrip-row.cat-attractions .pretrip-btn { background:linear-gradient(135deg,#ec4899,#db2777); box-shadow:0 3px 10px rgba(236,72,153,.32); }
.pretrip-row.cat-tickets { border-inline-start-color:#f43f5e; }
.pretrip-row.cat-tickets .pretrip-btn { background:linear-gradient(135deg,#f43f5e,#e11d48); box-shadow:0 3px 10px rgba(244,63,94,.32); }
.pretrip-row.cat-audio { border-inline-start-color:#06b6d4; }
.pretrip-row.cat-audio .pretrip-btn { background:linear-gradient(135deg,#06b6d4,#0891b2); box-shadow:0 3px 10px rgba(6,182,212,.32); }
.pretrip-row.cat-visa { border-inline-start-color:#64748b; }
.pretrip-row.coming-soon { border-style:dashed; border-inline-start-style:dashed; box-shadow:none; }
.pretrip-row.coming-soon.cat-insurance { border-color:#6ee7b7; border-inline-start-color:#34d399; }
.pretrip-row.coming-soon.cat-insurance .pretrip-badge { background:#ecfdf5; color:#047857; border-color:#6ee7b7; }
.pretrip-row.coming-soon.cat-visa { border-color:#cbd5e1; border-inline-start-color:#94a3b8; }
.pretrip-row.coming-soon.cat-visa .pretrip-badge { background:#f1f5f9; color:#475569; border-color:#cbd5e1; }

/* ---- 2. article body typography (new, blog-only) ---- */
.blog-article { max-width: 760px; margin: 0 auto; padding: 32px 20px 60px; }
.blog-article .blog-meta { color: var(--text3); font-size: .85rem; margin-bottom: 10px; }
.blog-article h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; color: var(--slate-900); margin-bottom: 14px; line-height: 1.3; }
.blog-article .blog-excerpt { font-size: 1.05rem; color: var(--text2); line-height: 1.7; margin-bottom: 24px; }
.blog-article .blog-body { font-size: 1.02rem; line-height: 1.85; color: var(--text); }
.blog-article .blog-body h2 { font-size: 1.4rem; font-weight: 800; color: var(--slate-900); margin: 32px 0 14px; }
.blog-article .blog-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--slate-800); margin: 24px 0 10px; }
.blog-article .blog-body p { margin-bottom: 16px; }
.blog-article .blog-body ul, .blog-article .blog-body ol { padding-inline-start: 24px; margin-bottom: 16px; }
.blog-article .blog-body li { margin-bottom: 6px; }
.blog-article .blog-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .92rem; }
.blog-article .blog-body th, .blog-article .blog-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: start; }
.blog-article .blog-body th { background: var(--slate-50); font-weight: 700; }
.blog-article .blog-body img { max-width: 100%; height: auto; border-radius: var(--r); margin: 16px 0; }
.blog-article .blog-body figcaption { font-size: .82rem; color: var(--text3); text-align: center; margin-top: -8px; margin-bottom: 16px; }
.blog-article .blog-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 24px; }
.blog-article .blog-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.blog-article .blog-related a { color: var(--sky-dark, #0ea5e9); font-weight: 700; }

/* ---- 2b. restyled SEO-Agent boxes + real bullets/FAQ (2026-09-18) — these
   replace the inline styles the sanitizer strips (scripts/lib/sanitize-html.js
   restyleAgentBoxes()), so the "answer box" / "key points" box / FAQ toggles
   keep looking intentional instead of turning into plain unstyled text. ---- */
.blog-body .answer-box { background: var(--sky-lighter, #f0f9ff); border: 1.5px solid var(--sky-light, #bae6fd); border-radius: 14px; padding: 20px 24px; margin: 24px 0; }
.blog-body .answer-box > strong:first-child { display: block; color: var(--sky-darker, #0284c7); font-weight: 800; font-size: 1.02rem; margin-bottom: 8px; }
.blog-body .answer-box p { margin: 0; }
.blog-body .key-points { border: 1.5px solid var(--border); border-inline-start: 4px solid var(--sky-dark, #0ea5e9); border-radius: 12px; padding: 18px 22px; margin: 24px 0; background: #fff; }
.blog-body .key-points > strong:first-child { display: block; font-weight: 800; color: var(--slate-900); font-size: 1.02rem; margin-bottom: 8px; }
.blog-body .key-points ul { margin-bottom: 0; }
.blog-body ul li, .blog-body ol li { list-style-position: outside; }
.blog-body ul { list-style-type: disc; }
.blog-body ol { list-style-type: decimal; }
.blog-body ul li::marker, .blog-body ol li::marker { color: var(--sky-dark, #0ea5e9); font-weight: 700; }
.blog-body details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.blog-body summary { cursor: pointer; padding: 15px 18px; font-weight: 800; color: var(--slate-900); font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.blog-body summary::-webkit-details-marker { display: none; }
.blog-body summary::after { content: '+'; color: var(--sky-dark, #0ea5e9); font-weight: 900; font-size: 1.2rem; }
.blog-body details[open] summary::after { content: '−'; }
.blog-body details > div { padding: 0 18px 16px; color: var(--text2); line-height: 1.85; }
.blog-body details > div p:empty { display: none; }

/* ---- 3. blog hero (article page) — 2026-09-18 rework: the photo is shown
   IN FULL (object-fit:contain, never cropped) over a blurred/darkened copy of
   the same image filling the width, and the title/breadcrumb moved below the
   image onto a plain white strip instead of overlaid on top of it. Height
   stays capped at the same 420px as before — only how the image fills that
   box changed. .blog-hero-media clears the fixed nav itself (80px top
   padding, the same nav-clearance value already used elsewhere on the site
   for scroll-margin-top); the text strip below needs no such padding. ---- */
.blog-hero { display: block; }
.blog-hero-media {
  position: relative; height: calc(80px + clamp(280px, 34vw, 420px)); overflow: hidden;
  background: #0f172a;
}
.blog-hero-bg-blur {
  position: absolute; top: 80px; left: -20px; right: -20px; bottom: -20px;
  width: calc(100% + 40px); height: calc(100% - 60px);
  object-fit: cover; object-position: center; filter: blur(35px) brightness(.55); transform: scale(1.15);
}
.blog-hero-fg {
  position: absolute; top: 80px; left: 0; right: 0; bottom: 0;
  width: 100%; height: calc(100% - 80px);
  object-fit: contain; object-position: center; z-index: 1;
}
.blog-hero-text { background: #fff; border-bottom: 1px solid var(--border); padding: 22px 0; }
.blog-hero-text .breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .82rem; }
.blog-hero-text .breadcrumb a { color: var(--text2); text-decoration: none; }
.blog-hero-text .breadcrumb a:hover { color: var(--sky-dark, #0ea5e9); }
.blog-hero-text .breadcrumb i { color: var(--text3); font-size: .6rem; }
.blog-hero-text .breadcrumb span { color: var(--slate-900); font-weight: 600; }
.blog-hero-text h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; margin: 0 0 6px; line-height: 1.3; color: var(--slate-900); }
.blog-hero-text .blog-hero-meta { color: var(--text2); font-size: .9rem; margin: 0; }
/* Index page keeps the simpler flat-gradient page-header (no single photo to show) */
.page-header.blog-index-header p { max-width: 560px; margin: 0 auto; }

/* ---- 4. blog card grid — used both on /blog (full listing) and as "מאמרים
   נוספים" at the bottom of each article. Deliberately more playful than the
   plain .country-card destination tiles: thick alternating brand-color
   border (sky / pink / amber, TikTok-poster style), bigger hover lift. ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
  border-width: 3px; border-style: solid; border-color: var(--sky-dark);
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 3px 10px rgba(15,23,42,.05);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(15,23,42,.16), 0 8px 16px rgba(15,23,42,.08); }
.blog-card:nth-of-type(3n+2) { border-color: #ec4899; }
.blog-card:nth-of-type(3n+3) { border-color: #f59e0b; }
.blog-card .bc-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--slate-100); }
.blog-card .bc-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.blog-card:hover .bc-img-wrap img { transform: scale(1.06); }
.blog-card .bc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { font-size: 1.12rem; font-weight: 900; color: var(--slate-900); margin: 0 0 8px; line-height: 1.35; }
.blog-card .bc-excerpt {
  font-size: .9rem; color: var(--text2); line-height: 1.6; margin: 0 0 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card .bc-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.blog-card .bc-date { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #fff; background: var(--sky-dark); white-space: nowrap; }
.blog-card:nth-of-type(3n+2) .bc-date { background: #ec4899; }
.blog-card:nth-of-type(3n+3) .bc-date { background: #f59e0b; }
.blog-card .bc-read { font-size: .85rem; font-weight: 800; color: var(--sky-dark); white-space: nowrap; }

.blog-more { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.blog-more h2 { font-size: 1.3rem; font-weight: 900; color: var(--slate-900); margin: 0 0 18px; }
