/*!
Theme Name: oribsn
Author: Ori Ben-Simon
Author URI: oribsn.dev
Description: Custom WordPress Theme - Kohav Kria
Version: 1.0.0
Text Domain: oribsn
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
* { outline: none !important; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
img, svg, video, iframe { max-width: 100%; display: block; }

/* חייב לבוא אחרי כללי ה-display שלמעלה: התכונה hidden מגיעה מגיליון
   ברירת המחדל של הדפדפן, וכל כלל של המפתח מנצח אותו — גם בספציפיות
   נמוכה יותר. בלי זה nav[hidden] ו-.modal[hidden] יוצגו תמיד. */
[hidden] { display: none !important; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ==========================================================================
   CSS Variables & Typography (Base 1920px)
   ========================================================================== */
:root {
    /* Colors */
    --c-brand:        #2FB4E4;
    --c-brand-dark:   #0E96CE;
    --c-brand-soft:   #E4F5FD;
    --c-ink:          #2A3350;
    --c-ink-soft:     #5C6684;
    --c-bg:           #FFFAF0;
    --c-surface:      #FFFFFF;
    --c-line:         #E9E2D4;
    --c-accent:       #FFB703;

    /* Card tones */
    --t-lilac:        #E4DDFB;
    --t-peach:        #FBE1C6;
    --t-lime:         #DDF0BF;
    --t-sky:          #CDE8FC;

    /* Layout & Utilities */
    --wrap:           1360px;
    --gutter:         32px;
    --header-h:       104px;

    --r-sm:           12px;
    --r-card:         22px;
    --r-lg:           30px;
    --r-pill:         999px;

    --shadow-card:    0 6px 20px rgba(42, 51, 80, .10);
    --shadow-float:   0 14px 44px rgba(42, 51, 80, .18);

    /* Typography */
    --f-base:         'Assistant', 'Segoe UI', Arial, sans-serif;
    --fs-body:        17px;
    --fs-small:       15px;
    --fs-card:        18px;
    --fs-row:         30px;
    --fs-h1:          42px;

    --gap-card:       24px;
    --gap-section:    58px;
}

html {
    direction: rtl;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--f-base);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--c-ink);
    background: var(--c-bg);
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    top: 0;
    z-index: 200;
    padding: 12px 20px;
    background: var(--c-ink);
    color: #fff;
    border-end-end-radius: var(--r-sm);
}
.skip-link:focus-visible { inset-inline-start: 0; }

:focus-visible {
    outline: 3px solid var(--c-brand-dark) !important;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-weight: 700;
    font-size: var(--fs-small);
    color: #fff;
    background: var(--c-brand);
    border-radius: var(--r-pill);
    transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--c-brand-dark); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
    background: transparent;
    color: var(--c-ink-soft);
    border: 2px solid var(--c-line);
}
.btn--ghost:hover { background: #fff; color: var(--c-ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--c-surface);
    box-shadow: 0 2px 14px rgba(42, 51, 80, .07);
}

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: var(--header-h);
}

.header__logo { flex: 0 0 auto; }
.header__logo img { width: 96px; height: auto; }

/* --- חיפוש: כפתור מלא + שדה, כמו באתר החי --- */
.search:not(body) {
    flex: 0 1 340px;
    max-width: 460px;
    display: flex;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
}

.search__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    font-size: var(--fs-small);
    font-weight: 800;
    color: #fff;
    background: var(--c-brand);
    border-radius: var(--r-sm);
    transition: background .18s ease;
}
.search__btn:hover { background: var(--c-brand-dark); }
.search__btn-icon { display: none; }
.search__btn-icon svg { width: 22px; height: 22px; }

.search__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 13px 20px;
    background: #fff;
    border: 2px solid var(--c-brand);
    border-radius: var(--r-sm);
    font-size: var(--fs-small);
}
.search__input::placeholder { color: #9AA3BB; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__input:focus { border-color: var(--c-brand-dark); }

/* --- פעולות --- */
.header__actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 10px;
    color: var(--c-brand);
    border-radius: var(--r-sm);
    transition: color .18s ease, background .18s ease;
}
.header__icon:hover { color: var(--c-brand-dark); background: var(--c-brand-soft); }
.header__icon svg { width: 34px; height: 34px; }
.header__icon.is-current { color: var(--c-brand-dark); }

.header__icon-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--c-ink);
    line-height: 1.1;
}

.header__icon--search { display: none; }

.header__cta {
    padding: 12px 26px;
    font-weight: 800;
    font-size: var(--fs-small);
    color: #fff;
    background: var(--c-accent);
    border-radius: var(--r-pill);
    white-space: nowrap;
    transition: filter .18s ease;
}
.header__cta:hover { filter: brightness(.93); }

.header__burger { padding: 6px 8px; }
.header__burger svg { width: 40px; height: 30px; }

/* ==========================================================================
   Overlay / Side menu / Modal
   ========================================================================== */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(42, 51, 80, .45);
    opacity: 0;
    transition: opacity .25s ease;
}
.overlay.is-open { opacity: 1; }

.sidemenu {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: min(360px, 88vw);
    background: var(--c-surface);
    box-shadow: var(--shadow-float);
    overflow-y: auto;
    padding-bottom: 40px;

    /* inset-inline-start:0 ממקם את התפריט בצד ימין (האתר תמיד RTL —
       ראו html[dir] ב-header.php). מוסתר על ידי הזזה ימינה, אל מחוץ למסך. */
    transform: translateX(100%);
    transition: transform .28s ease;
}

.sidemenu.is-open { transform: translateX(0); }

.sidemenu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--c-line);
}
.sidemenu__title { font-size: 20px; font-weight: 800; }
.sidemenu__close svg { width: 26px; height: 26px; color: var(--c-ink-soft); }

.sidemenu__list { padding: 20px 18px; display: grid; gap: 12px; }

.sidemenu__item { border-radius: var(--r-card); padding: 14px 18px; }
.sidemenu__item--lilac { background: var(--t-lilac); }
.sidemenu__item--peach { background: var(--t-peach); }
.sidemenu__item--lime  { background: var(--t-lime); }
.sidemenu__item--sky   { background: var(--t-sky); }

.sidemenu__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidemenu__link { font-size: 19px; font-weight: 800; flex: 1 1 auto; }

.sidemenu__toggle {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    color: var(--c-ink);
    border-radius: 50%;
    transition: background .18s ease;
}
.sidemenu__toggle:hover { background: rgba(255, 255, 255, .6); }
.sidemenu__toggle svg {
    width: 18px; height: 18px;
    transform: rotate(-90deg);
    transition: transform .2s ease;
}
.sidemenu__toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

.sidemenu__sub {
    margin-top: 10px;
    padding-top: 10px;
    display: grid;
    gap: 2px;
    border-top: 1px solid rgba(42, 51, 80, .12);
}
.sidemenu__sub a {
    display: block;
    padding: 6px 4px;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--c-ink-soft);
}
.sidemenu__sub a:hover { color: var(--c-ink); }

/* פריטים שמופיעים רק כשההדר מתקפל */
.sidemenu__extra {
    display: none;
    padding: 4px 18px 0;
    border-top: 1px solid var(--c-line);
    margin: 8px 18px 0;
}
.sidemenu__extra-link {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: start;
    font-weight: 700;
    color: var(--c-ink);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 24px;
}
.modal__box {
    position: relative;
    width: min(430px, 100%);
    background: var(--c-surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-float);
    padding: 36px 32px 30px;
}
.modal__close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    color: var(--c-ink-soft);
}
.modal__close svg { width: 22px; height: 22px; }
.modal__title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 22px;
}
.modal__foot {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--c-ink-soft);
}
.modal__foot a { text-decoration: underline; }

/* טופס הכניסה של וורדפרס */
.modal .login-username,
.modal .login-password { margin-bottom: 14px; }
.modal .login-username label,
.modal .login-password label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
}
.modal input[type="text"],
.modal input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid var(--c-line);
    border-radius: var(--r-pill);
}
.modal input[type="text"]:focus,
.modal input[type="password"]:focus { border-color: var(--c-brand); }
.modal .login-remember { font-size: 14px; margin-bottom: 16px; }
.modal .login-submit input[type="submit"] {
    width: 100%;
    padding: 13px 26px;
    font-weight: 700;
    color: #fff;
    background: var(--c-brand);
    border: 0;
    border-radius: var(--r-pill);
    cursor: pointer;
}
.modal .login-submit input[type="submit"]:hover { background: var(--c-brand-dark); }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    display: grid;
    place-items: center;
    padding: 48px var(--gutter);
    overflow: hidden;
    background: var(--c-brand-soft);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero__inner {
    position: relative;
    width: min(880px, 100%);
    display: grid;
    justify-items: center;
    gap: 22px;
}

.hero__title {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(20, 24, 40, .45);
}

.hero__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    background: #0E1220;
}
.hero__frame iframe,
.hero__frame video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.hero__empty {
    width: 100%; height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    padding: 20px;
    color: #fff;
    text-align: center;
}
.hero__empty svg { width: 54px; height: 54px; opacity: .75; }

/* ==========================================================================
   Rows
   ========================================================================== */
.row { padding-block: var(--gap-section) 0; }
.row:last-of-type { padding-bottom: var(--gap-section); }

/* תווית הכותרת — גלולה כחולה, כמו בשקפים */
.row__title { margin-bottom: 24px; }

.row__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 26px;
    font-size: var(--fs-row);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    background: var(--c-brand);
    border-radius: var(--r-pill);
    transition: background .18s ease;
}
a.row__tag:hover { background: var(--c-brand-dark); }
.row__tag svg {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    /* ה-SVG הבסיסי הוא משולש play שפונה ימינה. כאן האייקון משמש
       כחיווי "עוד תוכן בכיוון הזה" ולא ככפתור הפעלה, ולכן דורש
       היפוך כדי להצביע שמאלה — ללא השפעה על שימושי 'play' אחרים
       (הירו, כרטיס הסרטון) שממשיכים להצביע ימינה כמקובל בנגני מדיה. */
    transform: scaleX(-1);
}

/* אזור הפס — מכיל את החצים ואת המסילה */
.row__viewport { position: relative; }

.row__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-card);
    align-items: start;
}
.row__track--has-more { grid-template-columns: repeat(4, 1fr) auto; }

/* --- מצב קרוסלה --- */
.row--carousel .row__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-block: 4px 8px;
}
.row--carousel .row__track::-webkit-scrollbar { display: none; }

.row--carousel .card {
    flex: 0 0 calc((100% - (var(--gap-card) * 4)) / 5);
    scroll-snap-align: start;
}

.row__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    color: var(--c-brand-dark);
    background: #fff;
    border: 2px solid var(--c-line);
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.row__arrow:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.row__arrow svg { width: 20px; height: 20px; }

/* prev יושב בצד ימין (התחלת הרשימה ב-RTL) — האייקון הבסיסי פונה שמאלה,
   ולכן דורש היפוך כדי להצביע לכיוון שבו הוא נמצא. */
.row__arrow--prev { inset-inline-start: -23px; }
.row__arrow--prev svg { transform: scaleX(-1); }

/* next יושב בצד שמאל — האייקון הבסיסי כבר פונה לשם, בלי היפוך. */
.row__arrow--next { inset-inline-end: -23px; }

.row__arrow[disabled] {
    opacity: .3;
    cursor: default;
    box-shadow: none;
}
.row__arrow[disabled]:hover { background: #fff; border-color: var(--c-line); color: var(--c-brand-dark); }

/* --- "ועוד…" --- */
.row__more {
    display: grid;
    place-items: center;
    align-self: center;
    padding: 20px 10px;
    font-size: var(--fs-card);
    font-weight: 800;
    white-space: nowrap;
    color: var(--c-ink-soft);
    transition: color .18s ease, transform .18s ease;
}
.row__more:hover { color: var(--c-brand-dark); transform: translateX(-4px); }

/* ==========================================================================
   Card
   ========================================================================== */
.card {
    display: block;
    padding: 12px;
    border-radius: var(--r-card);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.card--lilac { background: var(--t-lilac); }
.card--peach { background: var(--t-peach); }
.card--lime  { background: var(--t-lime); }
.card--sky   { background: var(--t-sky); }

.card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: rgba(255, 255, 255, .5);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    color: var(--c-brand-dark);
    background: rgba(255, 255, 255, .88);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s ease;
}
.card__play svg { width: 22px; height: 22px; margin-inline-start: 3px; }
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; }

.card__duration {
    position: absolute;
    inset-block-end: 8px;
    inset-inline-end: 8px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(20, 24, 40, .78);
    border-radius: var(--r-sm);
}

.card__loop {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-start: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--c-brand-dark);
    border-radius: var(--r-pill);
}
.card__loop svg { width: 13px; height: 13px; }

.card__title {
    display: block;
    margin-top: 10px;
    padding-inline: 4px;
    font-size: var(--fs-card);
    font-weight: 700;
    line-height: 1.35;
}

/* ==========================================================================
   Page head (קטגוריה / חיפוש / מסלולים)
   ========================================================================== */
.page-head {
    padding-block: 46px 8px;
    text-align: center;
}
.page-head--img {
    position: relative;
    padding-block: 90px 70px;
    background: var(--c-brand-soft) center / cover no-repeat;
    margin-bottom: 10px;
}
.page-head--img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,24,40,.15), rgba(20,24,40,.55));
}
.page-head--img .wrap { position: relative; }
.page-head--img .page-head__title,
.page-head--img .page-head__text { color: #fff; text-shadow: 0 2px 12px rgba(20,24,40,.5); }

.page-head__title {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.2;
}
.page-head__text {
    margin-top: 12px;
    color: var(--c-ink-soft);
    max-width: 640px;
    margin-inline: auto;
}

/* ==========================================================================
   Archive grid
   ========================================================================== */
/* אין padding עליון: page-head שלפני מסתיים ב-8px משלו, וה-kk-notice/grid
   הפנימיים מוסיפים margin-top בעצמם — padding נוסף כאן היה נערם מעליהם. */
.archive { padding-block: 0 var(--gap-section); }

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-card);
    align-items: start;
}

.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}
.pager .page-numbers {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding-inline: 12px;
    font-weight: 700;
    background: #fff;
    border: 2px solid var(--c-line);
    border-radius: var(--r-pill);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.pager .page-numbers:hover { border-color: var(--c-brand); color: var(--c-brand-dark); }
.pager .page-numbers.current {
    color: #fff;
    background: var(--c-brand);
    border-color: var(--c-brand);
}

/* ==========================================================================
   Single video
   ========================================================================== */
.video { padding-block: 38px 10px; }

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: var(--fs-small);
    color: var(--c-ink-soft);
}
.crumbs a:hover { color: var(--c-brand-dark); }

.video__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.2;
}

.video__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--c-brand-dark);
    border-radius: var(--r-pill);
}
.video__badge svg { width: 14px; height: 14px; }

.video__text {
    margin-top: 12px;
    max-width: 760px;
    color: var(--c-ink-soft);
}
.video__text p + p { margin-top: 10px; }

.video__frame {
    position: relative;
    margin-top: 26px;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    background: #0E1220;
}
.video__frame iframe,
.video__frame video { width: 100%; height: 100%; border: 0; display: block; }

.video__lock {
    width: 100%; height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    padding: 26px;
    text-align: center;
    color: #fff;
}
.video__lock svg { width: 48px; height: 48px; opacity: .8; }
.video__lock-title { font-size: 24px; font-weight: 800; }
.video__lock-text { color: #C9CEE0; }
.video__lock-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.video__lock .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.video__lock .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ==========================================================================
   Entry — תוכן שנכתב בעורך של וורדפרס
   ==========================================================================
   ה-reset מאפס כותרות ורשימות לגמרי, ולכן כל מה שהלקוחה תכתוב
   בעורך יגיע חסר עיצוב. הבלוק הזה מחזיר טיפוגרפיה בתוך .entry בלבד,
   בלי להשפיע על שאר הרכיבים.
   ========================================================================== */
.content { padding-block: 26px var(--gap-section); }

.entry {
    max-width: 820px;
    margin-inline: auto;
    line-height: 1.75;
}

.entry > * + * { margin-top: 18px; }

.entry h2 {
    margin-top: 40px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
}
.entry h3 {
    margin-top: 30px;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.35;
}
.entry h4 {
    margin-top: 24px;
    font-size: 19px;
    font-weight: 700;
}

.entry p { color: var(--c-ink); }

.entry a {
    color: var(--c-brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.entry a:hover { color: var(--c-ink); }

.entry ul,
.entry ol {
    padding-inline-start: 24px;
    display: grid;
    gap: 8px;
}
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li::marker { color: var(--c-brand); }
.entry li > ul,
.entry li > ol { margin-top: 8px; }

.entry blockquote {
    padding: 18px 24px;
    background: #fff;
    border-inline-start: 5px solid var(--c-brand);
    border-radius: var(--r-sm);
    color: var(--c-ink-soft);
}

.entry img,
.entry iframe {
    border-radius: var(--r-card);
    height: auto;
}
.entry figure { display: grid; gap: 8px; }
.entry figcaption {
    font-size: var(--fs-small);
    color: var(--c-ink-soft);
    text-align: center;
}

.entry hr {
    height: 2px;
    background: var(--c-line);
    border: 0;
    margin-block: 32px;
}

.entry table {
    width: 100%;
    background: #fff;
    border-radius: var(--r-sm);
    overflow: hidden;
}
.entry th,
.entry td {
    padding: 12px 16px;
    text-align: start;
    border-bottom: 1px solid var(--c-line);
}
.entry th { font-weight: 800; background: var(--c-brand-soft); }
.entry tr:last-child td { border-bottom: 0; }

.entry strong { font-weight: 800; }
.entry em { font-style: italic; }
.entry code {
    padding: 2px 6px;
    font-family: ui-monospace, monospace;
    font-size: .92em;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 5px;
}

/* טפסים — מכסה תוספים כמו Contact Form 7 שמזריקים markup גולמי */
.entry input[type="text"],
.entry input[type="email"],
.entry input[type="tel"],
.entry input[type="url"],
.entry input[type="number"],
.entry select,
.entry textarea {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid var(--c-line);
    border-radius: var(--r-sm);
}
.entry textarea { min-height: 150px; resize: vertical; }
.entry input:focus,
.entry select:focus,
.entry textarea:focus { border-color: var(--c-brand); }
.entry label { display: block; font-weight: 700; margin-bottom: 6px; }

.entry input[type="submit"],
.entry button[type="submit"] {
    width: auto;
    padding: 13px 32px;
    font-weight: 800;
    color: #fff;
    background: var(--c-brand);
    border: 0;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: background .18s ease;
}
.entry input[type="submit"]:hover,
.entry button[type="submit"]:hover { background: var(--c-brand-dark); }

/* ==========================================================================
   Plans
   ========================================================================== */
.plans { padding-block: 30px var(--gap-section); }

.plans__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 34px 28px 28px;
    text-align: center;
    background: #fff;
    border: 3px solid var(--c-line);
    border-radius: var(--r-lg);
}
.plan--gold  { border-color: #F2B705; }
.plan--green { border-color: #16A34A; }
.plan--blue  { border-color: var(--c-brand); }

.plan__title { font-size: 27px; font-weight: 800; line-height: 1.25; }
.plan__price { font-size: 34px; font-weight: 800; }

.plan__list {
    display: grid;
    gap: 9px;
    color: var(--c-ink-soft);
    line-height: 1.5;
}

.plan__note { font-size: 14px; color: var(--c-ink-soft); }

.plan__btn {
    margin-top: auto;
    padding: 13px 30px;
    font-weight: 800;
    border: 2px solid currentColor;
    border-radius: var(--r-pill);
    transition: background .18s ease, color .18s ease;
}
.plan--gold  .plan__btn { color: #C08F00; }
.plan--green .plan__btn { color: #16A34A; }
.plan--blue  .plan__btn { color: var(--c-brand-dark); }
.plan--gold  .plan__btn:hover { background: #F2B705; color: #fff; }
.plan--green .plan__btn:hover { background: #16A34A; color: #fff; }
.plan--blue  .plan__btn:hover { background: var(--c-brand); color: #fff; }

.plans__note {
    margin-top: 30px;
    text-align: center;
    color: var(--c-ink-soft);
    font-size: var(--fs-small);
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
    padding-block: 90px;
    text-align: center;
}
.notfound__code {
    font-size: 92px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-brand);
}
.notfound__title { margin-top: 10px; font-size: var(--fs-h1); font-weight: 800; }
.notfound__text { margin: 10px 0 24px; color: var(--c-ink-soft); }

/* ==========================================================================
   Empty states (עורכים בלבד)
   ========================================================================== */
.kk-notice {
    margin-block: var(--gap-section);
    padding: 22px 26px;
    font-weight: 700;
    color: var(--c-ink-soft);
    background: #fff;
    border: 2px dashed var(--c-line);
    border-radius: var(--r-card);
    text-align: center;
}
.kk-notice a {
    color: var(--c-brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sidemenu__empty {
    padding: 24px;
    color: var(--c-ink-soft);
    text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { margin-top: auto; }

.footer__main {
    background: var(--c-surface);
    border-top: 1px solid var(--c-line);
    padding-block: 34px;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}

.footer__logo img { width: 76px; height: auto; }

.footer__list {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    font-weight: 700;
}
.footer__list a { transition: color .18s ease; }
.footer__list a:hover { color: var(--c-brand-dark); }

.footer__bar {
    background: var(--c-ink);
    color: #C9CEE0;
    font-size: 14px;
    padding-block: 15px;
}
.footer__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.creds { letter-spacing: .02em; }
.creds a {
    font-weight: 800;
    color: #fff;
    transition: color .18s ease;
}
.creds a:hover { color: var(--c-brand); }

/* ==========================================================================
   Cookies
   ========================================================================== */
.cookies {
    position: fixed;
    z-index: 80;
    inset-block-end: 20px;
    inset-inline-start: 20px;
    width: min(430px, calc(100vw - 40px));
    display: grid;
    gap: 14px;
    padding: 22px 24px;
    background: var(--c-surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-float);
}
.cookies__text { font-size: var(--fs-small); }
.cookies__text a { color: var(--c-brand-dark); text-decoration: underline; }
.cookies__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ==========================================================================
   Layout shell
   ========================================================================== */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1 0 auto; }

/* ==========================================================================
   Breakpoints (Mobile to 5K)
   ========================================================================== */
@media only screen and (min-width: 5119px) {
    :root {
        --wrap: 3200px;
        --fs-body: 34px; --fs-small: 30px; --fs-card: 36px;
        --fs-row: 62px; --fs-h1: 88px;
        --gap-card: 52px; --gap-section: 124px;
        --header-h: 216px; --gutter: 64px;
        --r-card: 46px; --r-lg: 62px;
    }
    .header__logo img { width: 184px; }
    .footer__logo img { width: 150px; }
    .footer__bar { font-size: 28px; }
    .footer__list { gap: 80px; }
    .header__icon svg { width: 62px; height: 62px; }
    .search__input { flex-basis: 620px; padding: 22px 34px; }
    .search__btn { padding: 0 56px; }
}

@media only screen and (min-width: 2559px) {
    :root {
        --wrap: 1900px;
        --fs-body: 21px; --fs-small: 19px; --fs-card: 22px;
        --fs-row: 40px; --fs-h1: 56px;
        --gap-card: 32px; --gap-section: 76px;
        --header-h: 132px; --gutter: 44px;
    }
    .header__logo img { width: 112px; }
    .footer__logo img { width: 92px; }
    .footer__bar { font-size: 17px; }
    .footer__list { gap: 52px; }
    .header__icon svg { width: 38px; height: 38px; }
    .search__input { flex-basis: 380px; padding: 15px 24px; }
    .search__btn { padding: 0 36px; }
}

@media only screen and (min-width: 1919px) {
    :root {
        --wrap: 1560px;
        --fs-body: 19px; --fs-small: 17px; --fs-card: 20px;
        --fs-row: 34px;
        --gap-card: 28px; --gap-section: 66px;
        --header-h: 116px;
    }
    .header__logo img { width: 98px; }
    .hero { padding-block: 64px; }
}

@media only screen and (min-width: 1700px) {
    :root { --wrap: 1460px; }
}

/* --- Tablet ------------------------------------------------------------- */
@media only screen and (max-width: 1024px) {
    :root {
        --gutter: 22px;
        --header-h: 84px;
        --fs-row: 25px;
        --gap-card: 18px;
        --gap-section: 44px;
    }

    .header__inner { gap: 14px; }
    .header__logo img { width: 66px; }
    .search__input { flex-basis: 190px; padding: 11px 16px; }
    .search__btn { padding: 0 20px; }
    .header__icon svg { width: 26px; height: 26px; }
    .header__actions { gap: 10px; }
    .header__icon-label { display: none; }

    .hero { padding-block: 32px; }

    .row__tag { padding: 8px 20px; }
    .row__tag svg { width: 22px; height: 22px; }

    .row__track { grid-template-columns: repeat(3, 1fr); }
    .row__track--has-more { grid-template-columns: repeat(3, 1fr) auto; }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .plans__grid { gap: 18px; }
    .plan { padding: 26px 20px 22px; }
    .plan__title { font-size: 23px; }
    .plan__price { font-size: 29px; }
    .row--carousel .card { flex-basis: calc((100% - (var(--gap-card) * 2)) / 3); }

    /* אין מקום לחצים בחוץ — מוסטים פנימה מעל הכרטיסים */
    .row__arrow { width: 40px; height: 40px; }
    .row__arrow--prev { inset-inline-start: -8px; }
    .row__arrow--next { inset-inline-end: -8px; }
}

/* --- Mobile ------------------------------------------------------------- */
@media only screen and (max-width: 768px) {
    :root {
        --gutter: 16px;
        --header-h: 68px;
        --fs-body: 16px;
        --fs-card: 16px;
        --fs-row: 22px;
        --gap-card: 14px;
        --gap-section: 34px;
        --r-card: 18px;
        --r-lg: 22px;
    }

    .header__logo img { width: 52px; }
    .header__actions { gap: 4px; }
    .header__icon { padding: 6px; }

    /* החיפוש מתקפל לאייקון ונפתח כשורה מתחת להדר */
    .header__icon--search { display: flex; }

    .search:not(body) {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        display: none;
        z-index: 5;
        padding: 12px var(--gutter) 16px;
        background: var(--c-surface);
        box-shadow: 0 12px 20px rgba(42, 51, 80, .10);
    }
    .search.is-open { display: flex; }
    .search__input { flex: 1 1 auto; padding: 11px 16px; }
    .search__btn { padding: 0 18px; }
    .search__btn-text { display: none; }
    .search__btn-icon { display: inline-flex; }

    /* התפריט הצידי סופג את הפריטים שהתקפלו מההדר */
    .sidemenu__extra { display: block; }

    .header__cta { padding: 9px 14px; font-size: 14px; }

    .hero { padding: 18px var(--gutter) 24px; }
    .hero__frame { border-radius: var(--r-card); }
    .hero__inner { gap: 14px; }

    .row__tag { padding: 7px 18px; gap: 7px; }
    .row__tag svg { width: 19px; height: 19px; }
    .row__title { margin-bottom: 16px; }

    .row__track,
    .row__track--has-more { grid-template-columns: repeat(2, 1fr); }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .plans__grid { grid-template-columns: 1fr; }
    .page-head { padding-block: 28px 4px; }
    .page-head--img { padding-block: 54px 44px; }
    .video__title { font-size: 26px; gap: 10px; }
    .entry h2 { font-size: 24px; margin-top: 30px; }
    .entry h3 { font-size: 20px; margin-top: 24px; }
    .entry table { display: block; overflow-x: auto; }
    .video__frame { border-radius: var(--r-card); margin-top: 18px; }
    .notfound { padding-block: 56px; }
    .notfound__code { font-size: 66px; }
    .row--carousel .card { flex-basis: 62%; }

    /* "ועוד…" עובר לשורה משלו ונפרס לרוחב */
    .row--grid .row__more {
        grid-column: 1 / -1;
        justify-content: center;
        padding: 4px 0 0;
    }

    /* בקרוסלה הגלילה במגע מספיקה — החצים מיותרים ותופסים מקום */
    .row__arrow { display: none; }

    .footer__inner { flex-direction: column; text-align: center; gap: 18px; }
    .footer__list { justify-content: center; gap: 14px 22px; }
    .footer__logo img { width: 60px; }
    .footer__bar-inner { flex-direction: column; text-align: center; gap: 6px; }
    .footer__bar { font-size: 13px; }

    .cookies {
        inset-inline: 12px;
        inset-block-end: 12px;
        width: auto;
        padding: 18px;
    }
}

/* --- Motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .row--carousel .row__track { scroll-behavior: auto; }
}