/* ─────────────────────────────────────────────
   לומדות – עיצוב עמודים
   נבנה על אותם צבעים וטיפוגרפיה של האתר הראשי
   ───────────────────────────────────────────── */

:root {
  --navy:      #1B3A6B;
  --navy-deep: #0D1B2E;
  --sky:       #6EC6E6;
  --sky-light: #A8DCF0;
  --white:     #FFFFFF;
  --bg-light:  #F0F6FF;
  --text-dark: #0D1B2E;
  --text-mid:  #2E4A78;
  /* נגישות: #5A7BAA נתן 3.99:1 על רקע בהיר. #3F5E8C נותן 6.06:1 (זהה לדף הבית) */
  --text-muted:#3F5E8C;
  --border:    rgba(110,198,230,0.25);
  --shadow:    0 4px 32px rgba(13,27,46,0.18);
  --radius-card: 12px;
  --radius-btn:  9999px;
  --transition:  200ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Heebo', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1120px; }

/* ─── Skip link ─── */
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px;
  border-end-radius: 8px;
}
.skip-link:focus { inset-inline-start: 0; }

/* ─── כותרת לקוראי מסך בלבד (לא נראית על המסך) ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ─── Navbar ─── */
.lnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.lnav-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px;
}
.lnav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.lnav-logo img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.lnav-links { display: flex; gap: 22px; margin-inline-start: auto; list-style: none; flex-wrap: wrap; }
.lnav-links a { font-weight: 500; color: var(--text-mid); font-size: 0.95rem; transition: color var(--transition); }
.lnav-links a:hover, .lnav-links a:focus-visible { color: var(--sky); }
@media (max-width: 720px) {
  .lnav-inner { flex-wrap: wrap; padding-block: 10px; }
  .lnav-links { margin-inline-start: 0; gap: 14px; font-size: 0.88rem; width: 100%; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-btn);
  font-weight: 700; font-size: 1rem; border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer; line-height: 1.3;
}
.btn-primary { background: var(--sky); color: var(--navy-deep); }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(110,198,230,0.45); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover, .btn-light:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.btn-lg { padding: 17px 42px; font-size: 1.08rem; }

/* ─── Breadcrumbs ─── */
.crumbs { padding: 20px 0 0; font-size: 0.88rem; color: var(--text-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li::after { content: "‹"; margin-inline-start: 8px; color: var(--sky); }
.crumbs li:last-child::after { content: ""; }
.crumbs a:hover { color: var(--sky); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text-mid); font-weight: 600; }

/* ─── Page head ─── */
.lhead { padding: 28px 0 8px; }
.lhead h1 {
  font-size: clamp(1.75rem, 4.4vw, 2.7rem);
  font-weight: 800; line-height: 1.22; color: var(--navy);
  letter-spacing: -0.01em;
}
.lhead .lead {
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  color: var(--text-mid); margin-top: 18px; max-width: 70ch;
}
.lmeta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
  font-size: 0.875rem;
}
.lmeta span {
  background: var(--bg-light); color: var(--text-mid);
  padding: 6px 14px; border-radius: var(--radius-btn);
  border: 1px solid var(--border); font-weight: 600;
}
.lmeta .is-accent { background: var(--sky); color: var(--navy-deep); border-color: var(--sky); }

/* ─── Answer box (התשובה הקצרה) ─── */
.answer {
  margin: 34px 0;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-inline-start: 5px solid var(--sky);
  border-radius: var(--radius-card);
  padding: 26px 28px;
}
.answer h2 {
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.answer p { font-size: 1.08rem; color: var(--text-dark); font-weight: 500; }

/* ─── Generic content ─── */
.lbody { padding-bottom: 20px; }
.lbody section { margin-top: 48px; }
.lbody h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.72rem);
  font-weight: 800; color: var(--navy); line-height: 1.3;
  margin-bottom: 16px;
}
.lbody h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px;
}
.lbody p { margin-bottom: 15px; color: var(--text-mid); font-size: 1.03rem; }
.lbody p:last-child { margin-bottom: 0; }
.lbody ul, .lbody ol { margin: 0 0 15px; padding-inline-start: 24px; color: var(--text-mid); }
.lbody li { margin-bottom: 9px; font-size: 1.03rem; }
.lbody a:not(.btn) { color: var(--navy); text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; }
.lbody a:not(.btn):hover { color: var(--sky); }
.lbody strong { color: var(--navy); font-weight: 700; }

/* ─── Facts table ─── */
.facts { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.facts div {
  display: grid; grid-template-columns: minmax(130px, 200px) 1fr;
  gap: 8px; padding: 13px 20px; border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.facts div:last-child { border-bottom: 0; }
.facts div:nth-child(odd) { background: var(--bg-light); }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { color: var(--text-mid); }
@media (max-width: 560px) {
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* ─── Topics list ─── */
.topics { list-style: none; padding: 0; display: grid; gap: 10px; }
.topics li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 18px; margin: 0;
  color: var(--text-mid); font-size: 1rem;
}
.topics li::before {
  content: "✓"; color: var(--sky); font-weight: 900; flex-shrink: 0;
  background: #fff; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.78rem;
  border: 1px solid var(--border); margin-top: 2px;
}
@media (min-width: 760px) { .topics { grid-template-columns: 1fr 1fr; } }

/* ─── Steps ─── */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.steps li {
  counter-increment: s; position: relative;
  padding: 20px 70px 20px 24px; margin: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: 0 2px 14px rgba(13,27,46,0.05);
}
.steps li::before {
  content: counter(s);
  position: absolute; inset-inline-start: 20px; top: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
}
.steps li p { margin: 0; }
@media (max-width: 560px) {
  .steps li { padding: 58px 20px 20px; }
  .steps li::before { top: 16px; }
}

/* ─── FAQ ─── */
.faq { display: grid; gap: 14px; }
.faq article {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 20px 24px; background: #fff;
}
.faq h3 { margin-bottom: 8px; }
.faq p { margin: 0; }

/* ─── Open-lomda CTA strip ─── */
.open-strip {
  margin: 36px 0; padding: 30px 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 16px; color: #fff;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.open-strip h2 { color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.open-strip p { color: var(--sky-light); margin: 0; font-size: 0.98rem; max-width: 52ch; }

/* ─── Author / E-E-A-T box ─── */
.author {
  margin-top: 56px; padding: 26px 28px;
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.author h2 { font-size: 1.15rem; margin-bottom: 10px; }
.author p { font-size: 0.98rem; margin-bottom: 10px; }

/* ─── Related ─── */
.related { margin-top: 56px; }

/* ─── Cards grid (hub + related) ─── */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
/* עד שתי לומדות – כרטיסים רחבים, כדי שלא ייראו אבודים ברשת של שלוש */
.cards--few { grid-template-columns: 1fr; max-width: 700px; }
@media (min-width: 760px) { .cards--two { grid-template-columns: repeat(2, 1fr); max-width: none; } }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 2px solid var(--sky);
  border-radius: var(--radius-card); padding: 26px 24px;
  box-shadow: 0 2px 14px rgba(13,27,46,0.05);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover, .card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(13,27,46,0.12);
  border-color: var(--navy);
}
.card-badge {
  align-self: flex-start; font-size: 0.875rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--sky); color: var(--navy-deep);
  padding: 5px 13px; border-radius: var(--radius-btn); margin-bottom: 14px;
}
.card h2, .card h3 {
  font-size: 1.18rem; font-weight: 800; color: var(--navy);
  line-height: 1.35; margin-bottom: 10px;
}
.card p { font-size: 0.97rem; color: var(--text-mid); margin-bottom: 16px; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.card-meta { font-size: 0.875rem; color: var(--text-muted); font-weight: 600; }
.card-link { font-weight: 700; color: var(--navy); }
.card-link:hover { color: var(--sky); }

/* ─── Hub hero ─── */
.hub-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 72px 0 80px;
}
.hub-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.01em;
}
.hub-hero h1 span { color: var(--sky); }
.hub-hero .lead { color: var(--sky-light); font-size: clamp(1.03rem, 2.2vw, 1.22rem); margin-top: 20px; max-width: 64ch; }
.hub-hero .tag {
  display: inline-block; font-size: 0.875rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px;
}

.hub-main { padding: 60px 0 20px; }
.hub-intro { max-width: 72ch; }

/* ─── Bottom CTA ─── */
.final {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 64px 0; text-align: center;
}
.final h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.final p { color: var(--sky-light); max-width: 56ch; margin: 0 auto 28px; font-size: 1.03rem; }

/* ─── Footer ─── */
.lfoot {
  background: var(--navy-deep); color: var(--sky-light);
  padding: 40px 0; font-size: 0.9rem;
}
.lfoot-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.lfoot a { color: #fff; text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; }
.lfoot a:hover { color: var(--sky); }
.lfoot nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ─── Accessibility ─── */
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ─── Print ─── */
@media print {
  .lnav, .final, .open-strip, .lfoot, .skip-link { display: none; }
  body { color: #000; }
}
