.lxm {
    --d0: #041f1d; --d1: #06302c; --teal: #0f766e; --teal-m: #0d9488; --teal-l: #5eead4; --amber: #ffd166;
    --txt: #f1faf8; --mute: #c9e0dc; --paper: #f4f6f5; --ink: #0f1f1d; --body: #24312e; --rule: #c3cfcc;
    font-family: "Rubik", "Arimo", sans-serif;
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
}
.lxm *, .lxm *::before, .lxm *::after { box-sizing: border-box; }
.lxm h2, .lxm h3 { font-family: "Rubik", "Arimo", sans-serif; letter-spacing: -.02em; color: inherit; }
.lxm p, .lxm time { font-family: "Arimo", "Rubik", sans-serif; font-weight: 400; }
.lxm a { color: inherit; text-decoration: none; }
/* במסך רחב הרשת מתרחבת, כדי לא להשאיר שוליים ריקים */
.lxm .container { max-width: 1640px; }
.lxm img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 805; object-fit: cover; background: #dfe7e5; }

/* ── כפתור ── */
.lxm-b1 { display: inline-flex; align-items: center; justify-content: center; background: var(--amber); color: #1a1405 !important; font-weight: 800; font-size: 1.05rem; padding: 15px 26px; border-radius: 12px; transition: background .2s; }
.lxm-b1:hover { background: #ffe08f; }
.lxm-b1:focus-visible, .lxm-pg:focus-visible, .lxm-card a:focus-visible, .lxm-top a:focus-visible, 
/* ═════ ראש העמוד: שורת פתיחה קצרה ═════ */
.lxm-hero { position: relative; overflow: hidden; background: var(--d0); color: #fff; padding-block: 26px 30px; }
.lxm-intro { margin: 0; max-width: 980px; font-size: 1.12rem; line-height: 1.75; color: var(--txt); }
.lxm-intro span { display: block; margin-top: 6px; font-weight: 700; color: var(--amber); }

/* ═════ הכתבה האחרונה: רצועה רחבה מעל הרשת ═════ */
.lxm-top { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); margin-bottom: 56px; background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.lxm-top-img { align-self: center; padding: 22px; padding-inline-end: 0; }
.lxm-top-img a { display: block; overflow: hidden; border-radius: 12px; }
.lxm-top-txt { display: flex; flex-direction: column; justify-content: center; padding: 44px 48px; }
.lxm-top-txt time { margin-bottom: 12px; font-size: 1rem; color: #4a5a57; }
.lxm-top-txt h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 800; line-height: 1.2; }
.lxm-top-txt h2 a:hover { color: var(--teal); }
.lxm-top-txt p { margin: 0 0 26px; font-size: 1.12rem; line-height: 1.8; color: var(--body); }
.lxm-top-txt .lxm-b1 { align-self: flex-start; }

/* ═════ רשת הכתבות ═════ */
.lxm-sec { padding-block: 56px 64px; }
/* רוחב קבוע לכרטיס, כך שגם 2-3 כתבות לא נמתחות ולא נראות אבודות */
.lxm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 44px 30px; }
.lxm-grid:not(:has(> :nth-child(5))) { grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); }
.lxm-card { display: flex; flex-direction: column; }
.lxm-card-img a { display: block; overflow: hidden; border-radius: 12px; box-shadow: 0 14px 34px rgba(6,48,44,.12), 0 0 0 1px rgba(6,48,44,.08); }
.lxm-card-img img { transition: transform .35s ease; }
.lxm-card:hover .lxm-card-img img { transform: scale(1.03); }
.lxm-card h3 { margin: 18px 0 10px; font-size: 1.2rem; font-weight: 700; line-height: 1.45; }
.lxm-card h3 a:hover { color: var(--teal); }
.lxm-card time { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); font-size: .95rem; color: #4a5a57; }

/* ═════ עמודים ═════ */
.lxm-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
.lxm-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lxm-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--rule); background: #fff; font-size: 1.02rem; font-weight: 600; color: var(--ink); transition: border-color .15s, color .15s; }
a.lxm-pg:hover { border-color: var(--teal); color: var(--teal); }
.lxm-pg.is-on { background: var(--d1); border-color: var(--d1); color: #fff; }
.lxm-pg--txt { padding: 0 20px; font-weight: 700; }

/* ═════ סגירה ═════ */
.lxm-close { background: var(--d1); color: #fff; padding-block: 48px; }
.lxm-close-in { display: flex; align-items: center; justify-content: flex-start; gap: 48px; }
.lxm-close h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; color: #fff; }
.lxm-close p { margin: 0; max-width: 760px; font-size: 1.08rem; line-height: 1.75; color: var(--txt); }
.lxm-close .lxm-b1 { flex-shrink: 0; }

/* ═════ רספונסיבי ═════ */
@media (max-width: 991px) {
    .lxm-top { grid-template-columns: 1fr; }
    .lxm-top-txt { padding: 28px 24px 30px; }
    .lxm-top-img { padding: 16px 16px 0; }
        .lxm-close-in { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 767px) {
    .lxm .container { padding-inline: 20px; }
    .lxm-hero { padding-block: 28px 44px; }
    .lxm-intro { font-size: 1.02rem; margin-bottom: 28px; }
    .lxm-sec { padding-block: 44px; }
    .lxm-grid { grid-template-columns: 1fr; gap: 36px; }
    .lxm-b1 { width: 100%; }
    .lxm-pg { min-width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .lxm-card-img img, .lxm-b1, .lxm-pg { transition: none; }
    .lxm-card:hover .lxm-card-img img { transform: none; }
}
