/* =============================================================
   מערכת עיצוב — ועידת החינוך
   RTL · Mobile First · רספונסיבי · גופן אלמוני
   ============================================================= */

/* ---------- גופן אלמוני (מקומי, מהתיקייה fonts/) ---------- */
@font-face { font-family: "Almoni"; src: url("fonts/almoni-light-aaa.otf") format("opentype");      font-weight: 300; font-display: swap; }
@font-face { font-family: "Almoni"; src: url("fonts/almoni-regular-aaa.otf") format("opentype");    font-weight: 400; font-display: swap; }
@font-face { font-family: "Almoni"; src: url("fonts/almoni-medium-aaa.otf") format("opentype");     font-weight: 500; font-display: swap; }
@font-face { font-family: "Almoni"; src: url("fonts/almoni-demibold-aaa.otf") format("opentype");   font-weight: 600; font-display: swap; }
@font-face { font-family: "Almoni"; src: url("fonts/almoni-bold-aaa.otf") format("opentype");       font-weight: 700; font-display: swap; }
@font-face { font-family: "Almoni"; src: url("fonts/almoni-black-aaa.otf") format("opentype");      font-weight: 800; font-display: swap; }
@font-face { font-family: "Almoni"; src: url("fonts/almoni-ultrablack-aaa.otf") format("opentype"); font-weight: 900; font-display: swap; }

:root {
  /* צבעים — מיתוג ועידת החינוך (סגול/ורוד) */
  --navy: #2b1653;      /* סגול עמוק (במקום כחול) */
  --navy-2: #3d2277;
  --navy-3: #5a2f9e;
  --gold: #e0559f;      /* ורוד/מג'נטה — צבע פעולה ראשי */
  --gold-2: #f79ccc;
  --teal: #9d4edd;      /* סגול-ליבנדר — צבע משני */
  --teal-2: #c77dff;
  --white: #ffffff;
  --cream: #f8f4fc;     /* לילך בהיר מאוד לרקעים */
  --ink: #241436;
  --muted: #6c5a86;
  --line: #eae2f4;
  --danger: #d64577;
  --success: #16a06a;

  /* טיפוגרפיה */
  --font: "Almoni", "Assistant", "Segoe UI", system-ui, sans-serif;

  /* עיצוב */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 42, 74, 0.16);
  --container: 1180px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

section { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-pad { padding-block: clamp(48px, 8vw, 96px); }
.bg-cream { background: var(--cream); }

/* --- כותרות --- */
.eyebrow {
  color: var(--teal);
  font-weight: 800;
  letter-spacing: .5px;
  font-size: .95rem;
  margin-bottom: 10px;
}
h1, h2, h3 { line-height: 1.15; color: var(--navy); font-weight: 800; }
.section-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.15rem); max-width: 720px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* --- כפתורים --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px;
  padding: 14px 26px; font-size: 1rem; font-weight: 800;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #3a2600; box-shadow: 0 8px 20px rgba(245,166,35,.35); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(245,166,35,.5); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-secondary:hover { background: rgba(255,255,255,.24); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-teal { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; box-shadow: 0 8px 20px rgba(31,182,166,.35); }
.btn-teal:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* =========================== HEADER =========================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--navy); font-size: 1.15rem; }
/* סמל הלוגו — סמל רשת חינוך חב״ד (גלובוס ושלושת העמודים) */
.logo .mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background-image: url("images/favicon-512.png");
  background-size: cover; background-position: center;
  font-size: 0;   /* מסתיר את תו הכוכב שנשאר ב-HTML כגיבוי */
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--ink); font-size: .96rem; transition: background .15s, color .15s; }
.nav a:hover { background: var(--cream); color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); }
/* כפתור ההרשמה שבתוך התפריט נועד לתפריט הנפתח במובייל בלבד —
   בדסקטופ מוצג הכפתור שליד ההמבורגר, אחרת הוא מופיע פעמיים. */
.nav > .btn-primary { display: none; }

@media (max-width: 1000px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .25s ease; z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px; border-radius: 10px; }
  .nav > .btn-primary { display: block; }   /* במובייל — כן מוצג בתוך התפריט */
  .hamburger { display: block; }
  .header-cta .btn-desktop { display: none; }
}

/* ============ HERO — חוויית סרט מונעת-גלילה (Cinema) ============ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* גובה ה-section = אורך "מסלול הגלילה". שנו כדי לקצר/להאריך את חוויית הסרט. */
.cinema { position: relative; height: 440vh; background: #1b0f33; }
.cinema-sticky {
  position: sticky; top: 0; overflow: hidden; background: #1b0f33;
  height: 100vh; height: 100svh; height: 100dvh; /* מסך מלא אמיתי גם במובייל */
}
#cinema-canvas { display: block; width: 100%; height: 100%; }
/* סרטון 4 — לופ רציף מעל הקנבס */
.loop-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
/* פסי המשך-צבע ללופ — פעילים רק במסך צר. הרקע נצבע ב-JS מקצה הפריים עצמו */
.loop-edge {
  position: absolute; left: 0; right: 0; height: 14%; /* (100% - 72%) / 2 */
  display: none; opacity: 0; pointer-events: none;
  background-size: 100% 100%; background-repeat: no-repeat;
  transition: opacity .35s ease;
}
.loop-edge.t { top: 0; }
.loop-edge.b { bottom: 0; }
/* מסך צר (מובייל) — הפריים ב-72% מהגובה, והשאר המשך-צבע */
@media (max-aspect-ratio: 7/5) {
  .loop-edge { display: block; }
  .loop-video {
    inset: 50% 0 auto 0; height: 72%; transform: translateY(-50%);
    object-fit: cover;   /* cover בתוך קופסה של 72% — מיושר בדיוק לקנבס */
  }
}

/* הסרגל העליון ממוקם בקוד אחרי חוויית הגלילה — ולכן כלל לא מופיע מעליה */

/* פתיח — "התחילו לגלול" קטן בתחתית, כדי לא להסתיר את הלוגו */
.cinema-intro {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: center; text-align: center;
  padding-bottom: clamp(20px, 5vh, 48px); pointer-events: none;
  transition: opacity .5s ease;
}
.intro-center {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  color: rgba(255,255,255,.92); font-weight: 700; font-size: clamp(.85rem, 1.5vw, 1.05rem); letter-spacing: .5px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.intro-center span { font-size: 1.3rem; line-height: 1; animation: bob 1.5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* פרטי האירוע — מוצגים על סרטון הלופ בסיום */
.lect-meta { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lect-meta .ci-venue { color: #f2c9e4; font-weight: 800; font-size: clamp(.95rem, 2.4vw, 1.5rem); }
.lect-meta .ci-date { color: #fff; font-weight: 900; font-size: clamp(1.4rem, 3.8vw, 2.6rem); text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.lect-meta .ci-time { color: var(--gold-2); font-weight: 800; font-size: clamp(1.2rem, 3vw, 2rem); letter-spacing: 1px; }

/* חשיפת ההרצאות על העלים בסיום */
.lectures-reveal {
  position: absolute; inset: 0; z-index: 2; opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 3vw, 34px); padding: 80px 20px 40px;
  background: linear-gradient(to bottom, rgba(27,15,51,.72), rgba(43,22,83,.82));
  transition: opacity .4s ease;
}
.lectures-reveal h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.4rem); text-align: center; }
.lectures-reveal h2 span { color: var(--gold-2); }
.leaf-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.4vw, 18px); width: 100%; max-width: 1080px; }
.leaf {
  position: relative; aspect-ratio: 1 / 1;
  background: linear-gradient(155deg, #f79ccc 0%, #e0559f 55%, #b23c88 100%);
  border-radius: 50% 50% 50% 8px;
  padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  color: #fff; text-align: center; box-shadow: 0 12px 26px rgba(178,60,136,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.leaf:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 18px 36px rgba(178,60,136,.5); }
.leaf .l-time { font-size: .72rem; font-weight: 800; opacity: .95; background: rgba(255,255,255,.22); padding: 2px 8px; border-radius: 999px; align-self: center; }
.leaf .l-title { font-size: clamp(.72rem, 1vw, .92rem); font-weight: 800; line-height: 1.15; }
.leaf .l-speaker { font-size: .72rem; opacity: .92; }

@media (max-width: 900px) {
  .leaf-grid { grid-template-columns: repeat(3, 1fr); max-width: 560px; }
}
@media (max-width: 620px) {
  .cinema { height: 360vh; }
  .leaf-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .leaf { border-radius: 50% 50% 50% 6px; }
  .lectures-reveal { justify-content: flex-start; padding-top: 90px; overflow-y: auto; }
}

/* =========================== HERO (ישן — לא בשימוש) =========================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: min(88vh, 760px); display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,42,74,.94) 20%, rgba(18,60,107,.82) 60%, rgba(31,182,166,.55) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-block: 60px; max-width: 760px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 8vw, 4.6rem); font-weight: 900; letter-spacing: -1px; }
.hero .subtitle { font-size: clamp(1.1rem, 3.5vw, 1.6rem); font-weight: 700; color: var(--gold-2); margin-top: 8px; }
.hero .meta {
  display: inline-flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0;
  font-weight: 700; font-size: 1.05rem;
}
.hero .meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero .lead { font-size: clamp(1rem, 2.6vw, 1.2rem); color: rgba(255,255,255,.92); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* חיצים/תנועה עדינה */
.hero-arrows { position: absolute; inset-inline-end: -40px; bottom: -20px; z-index: 0; opacity: .18; font-size: 12rem; color: var(--gold); transform: rotate(-8deg); pointer-events: none; }

/* =========================== BENEFITS =========================== */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.benefit-card .icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.9rem;
  background: linear-gradient(135deg, rgba(31,182,166,.15), rgba(245,166,35,.15));
}
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.benefit-card p { color: var(--muted); font-size: .98rem; }

/* =========================== ABOUT =========================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.about-images img { border-radius: var(--radius); height: 100%; object-fit: cover; box-shadow: var(--shadow); }
.about-images img:first-child { grid-row: span 2; }

/* =========================== PROGRAM (timeline) =========================== */
.timeline { position: relative; max-width: 820px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; inset-inline-start: 90px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(var(--teal), var(--gold)); border-radius: 3px;
}
.tl-item { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 24px; padding-bottom: 26px; }
.tl-time { font-weight: 900; color: var(--navy); font-size: 1.05rem; text-align: start; padding-top: 12px; }
.tl-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; box-shadow: var(--shadow);
}
.tl-card::before {
  content: ""; position: absolute; inset-inline-start: -38px; top: 18px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--gold);
  border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(245,166,35,.3);
}
.tl-card h3 { font-size: 1.12rem; }
.tl-card p { color: var(--muted); font-size: .95rem; margin-top: 2px; }

/* =========================== WORKSHOPS =========================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.filters select {
  padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--ink);
}
.workshops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ws-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ws-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ws-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 0; }
.ws-head img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-2); }
.ws-presenter { font-weight: 800; color: var(--navy); }
.ws-role { color: var(--muted); font-size: .86rem; }
.ws-body { padding: 14px 18px; flex: 1; }
.ws-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.ws-body p { color: var(--muted); font-size: .92rem; }
.ws-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--navy-2); border: 1px solid var(--line); }
.tag.round { background: rgba(31,182,166,.12); color: #147d72; border-color: transparent; }
.tag.time { background: rgba(18,60,107,.08); }
.ws-foot { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.seats { font-size: .88rem; font-weight: 700; }
.seats.low { color: var(--danger); }
.seats.ok { color: var(--success); }
.seats.full { color: var(--danger); }
.progress { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }

/* =========================== מושבים וחדרים =========================== */
.session-block { margin-bottom: clamp(40px, 6vw, 72px); }
.session-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 18px 22px; border-radius: var(--radius); margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff;
}
.session-num {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #3a0d28;
}
.session-titles { display: flex; flex-direction: column; gap: 2px; }
.session-head h3 { color: #fff; font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin: 0; }
.session-sub { color: var(--gold-2); font-weight: 700; font-size: .95rem; }
.session-desc {
  color: var(--muted); font-size: 1rem; line-height: 1.7;
  margin: -8px 0 24px; padding-inline-start: 4px; max-width: 900px;
}
.session-rounds { display: flex; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; }
.round-chip {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; white-space: nowrap;
}
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.room-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.room-photo { position: relative; aspect-ratio: 1 / 1; background: var(--cream); overflow: hidden; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.room-track {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px;
  background: rgba(43,22,83,.88); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.room-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.room-body h4 { color: var(--navy); font-size: 1.08rem; line-height: 1.3; }
.room-body .r-desc { color: var(--muted); font-size: .9rem; }
.room-speaker { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.room-speaker .r-name { font-weight: 800; color: var(--navy-3); font-size: .95rem; }
.room-speaker .r-role { color: var(--muted); font-size: .8rem; line-height: 1.4; }

/* =========================== אווירה — הרבי + ציטוט =========================== */
.atmosphere { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; position: relative; overflow: hidden; }
.atmosphere::before {
  content: ""; position: absolute; inset-inline-end: -120px; inset-block-start: -120px;
  width: 420px; height: 420px; border-radius: 50% 50% 50% 8%;
  background: radial-gradient(circle at 30% 30%, rgba(224,85,159,.35), transparent 70%);
  pointer-events: none;
}
.atm-grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; position: relative; z-index: 1; }
.atm-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 3px solid rgba(255,255,255,.14); }
.atm-photo img { width: 100%; display: block; }
.atm-quote { font-size: clamp(1rem, 1.9vw, 1.35rem); line-height: 1.85; font-weight: 500; color: rgba(255,255,255,.96); }
.atm-quote .qmark { font-size: 3.5rem; line-height: 0; color: var(--gold-2); vertical-align: -.35em; margin-inline-end: 6px; }
.atm-source { margin-top: 18px; color: var(--gold-2); font-weight: 700; font-size: .95rem; }
.atmosphere h2 { color: #fff; }
@media (max-width: 820px) {
  .atm-grid { grid-template-columns: 1fr; }
  .atm-photo { max-width: 260px; margin-inline: auto; }
}

/* =========================== SPEAKERS =========================== */
.speakers-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.speaker-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow);
}
.speaker-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--gold-2); }
.speaker-card h3 { font-size: 1.2rem; }
.speaker-card .role { color: var(--teal); font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.speaker-card .bio { color: var(--muted); font-size: .92rem; }
.speaker-card .talk { margin-top: 12px; font-weight: 700; font-size: .88rem; color: var(--navy); background: var(--cream); padding: 6px 12px; border-radius: 999px; display: inline-block; }

@media (max-width: 720px) {
  .speakers-track {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
    scrollbar-width: thin;
  }
  .speaker-card { scroll-snap-align: center; }
}

/* =========================== USEFUL INFO =========================== */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 10px; }
.info-card p, .info-card li { color: var(--muted); font-size: .96rem; }
.info-card ul { padding-inline-start: 20px; margin-top: 6px; }
.map-embed { border: 0; width: 100%; height: 260px; border-radius: var(--radius); box-shadow: var(--shadow); }
.nav-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* =========================== FAQ =========================== */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.faq-q { width: 100%; text-align: start; background: none; border: none; padding: 18px 20px; font-size: 1.05rem; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .chev { transition: transform .2s ease; color: var(--teal); font-size: 1.3rem; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 20px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 18px; }

/* =========================== FINAL CTA =========================== */
.final-cta { position: relative; overflow: hidden; color: #fff; text-align: center; background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 3rem); }
.final-cta p { color: rgba(255,255,255,.9); max-width: 600px; margin: 14px auto 28px; font-size: 1.1rem; }

/* =========================== FOOTER =========================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding-block: 48px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid a { color: rgba(255,255,255,.8); display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--gold-2); }
/* לוגו הרשת בפוטר — גרסה לבנה, יושבת ישירות על הרקע הסגול */
.footer-logo {
  display: inline-block; margin-top: 18px; max-width: 230px;
  opacity: .95; transition: opacity .2s ease, transform .2s ease;
}
.footer-logo:hover { opacity: 1; transform: translateY(-2px); }
.footer-logo img { width: 100%; display: block; }

.social { display: flex; gap: 12px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.1rem; }
.social a:hover { background: var(--gold); color: var(--navy); }
.copyright { text-align: center; padding-top: 20px; font-size: .88rem; color: rgba(255,255,255,.6); }

/* =========================== MODAL / FORM =========================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(11,42,74,.55);
  backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 22px; width: 100%; max-width: 720px;
  box-shadow: var(--shadow-lg); position: relative; animation: pop .25s ease;
  margin-block: auto;
}
@keyframes pop { from { transform: translateY(20px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { font-size: 1.4rem; }
.modal-close { background: var(--cream); border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; color: var(--muted); }
.modal-body { padding: 26px; }

/* פס התקדמות */
.steps { display: flex; gap: 8px; margin-bottom: 24px; }
.step-dot { flex: 1; text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); }
.step-dot .bar { height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 8px; transition: background .2s; }
.step-dot.active .bar, .step-dot.done .bar { background: linear-gradient(90deg, var(--teal), var(--gold)); }
.step-dot.active { color: var(--navy); }

/* טפסים */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--danger); background: #fff6f6; }
.field .err-msg { color: var(--danger); font-size: .82rem; font-weight: 600; min-height: 0; display: none; }
.field.error .err-msg { display: block; }
.field textarea { resize: vertical; min-height: 80px; }

.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--ink); }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }

/* בחירת חדרים בטופס */
.round-block { margin-bottom: 26px; }
.round-block > h3 { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.round-sub { margin-bottom: 16px; }
.round-sub-head {
  font-weight: 800; font-size: .88rem; color: var(--navy-3); margin-bottom: 8px;
  background: var(--cream); padding: 6px 12px; border-radius: 8px; display: inline-block;
}
/* פריט "הפסקה" בציר הזמן */
.tl-card.tl-break { background: var(--cream); border-style: dashed; }
.tl-card.tl-break h3 { color: var(--muted); font-size: 1rem; }
.ws-choice {
  display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s;
}
.ws-choice:hover { border-color: var(--teal); }
.ws-choice.selected { border-color: var(--teal); background: rgba(31,182,166,.06); }
.ws-choice.disabled { opacity: .55; cursor: not-allowed; background: var(--cream); }
.ws-choice input { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; }
.ws-choice img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.ws-choice .ci-main { flex: 1; }
.ws-choice .ci-main strong { color: var(--navy); }
.ws-choice .ci-main small { color: var(--muted); display: block; }
.ws-choice .ci-seats { font-size: .82rem; font-weight: 700; white-space: nowrap; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* סיכום */
.summary-box { background: var(--cream); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.summary-box h4 { color: var(--navy); margin-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .95rem; border-bottom: 1px dashed var(--line); }
.summary-row:last-child { border-bottom: none; }
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { font-weight: 700; color: var(--ink); }

/* =========================== TICKET (success) =========================== */
.success-screen { text-align: center; }
.success-screen .big-check { font-size: 3.5rem; margin-bottom: 8px; }
.success-screen h2 { font-size: 1.6rem; }
.success-screen > p { color: var(--muted); max-width: 460px; margin: 10px auto 24px; }

.ticket {
  max-width: 440px; margin: 0 auto 22px; background: #fff;
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); text-align: start;
}
.ticket-top { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; padding: 20px 22px; }
.ticket-top .t-event { font-weight: 900; font-size: 1.3rem; color: #fff; }
.ticket-top .t-sub { color: var(--gold-2); font-weight: 700; font-size: .9rem; }
.ticket-perf { position: relative; height: 22px; }
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transform: translateY(-50%);
}
.ticket-perf::before { inset-inline-start: -11px; }
.ticket-perf::after { inset-inline-end: -11px; }
.ticket-perf .dash { position: absolute; inset-inline: 12px; top: 50%; border-top: 2px dashed var(--line); }
.ticket-body { padding: 8px 22px 22px; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.ticket-row:last-child { border-bottom: none; }
.ticket-row .k { color: var(--muted); }
.ticket-row .v { font-weight: 700; color: var(--ink); text-align: end; }
.ticket-qr { text-align: center; padding: 18px 0 6px; }
.ticket-qr canvas, .ticket-qr img { margin: 0 auto; }
.ticket-qr .reg-no { font-family: monospace; font-weight: 700; letter-spacing: 1px; margin-top: 10px; color: var(--navy); }
.ticket-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 440px; margin: 0 auto; }

/* =========================== ADMIN =========================== */
.admin-wrap { max-width: 1180px; margin: 30px auto; padding: 0 20px; }
.admin-login { max-width: 380px; margin: 80px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); text-align: center; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-tools input, .admin-tools select { padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-family: inherit; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow); }
.stat .num { font-size: 1.9rem; font-weight: 900; color: var(--navy); }
.stat .lbl { color: var(--muted); font-size: .9rem; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); font-size: .92rem; }
.admin-table th { background: var(--cream); color: var(--navy); font-weight: 800; }
.admin-table tr:hover td { background: #fafcff; }
.pill { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill.in { background: rgba(31,169,113,.15); color: var(--success); }
.pill.out { background: rgba(91,107,128,.12); color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* =========================== HELPERS =========================== */
.toast {
  position: fixed; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--navy); color: #fff; padding: 13px 22px; border-radius: 999px; font-weight: 700;
  box-shadow: var(--shadow-lg); z-index: 300; transition: transform .3s ease; max-width: 90vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.hidden { display: none !important; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .workshops-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .benefits-grid, .workshops-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .ticket-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline::before { inset-inline-start: 70px; }
  .tl-item { grid-template-columns: 60px 1fr; gap: 18px; }
  .hero .meta { font-size: .95rem; }
}

/* =========================== PRINT (PDF כרטיס) =========================== */
@media print {
  body * { visibility: hidden !important; }
  #print-ticket, #print-ticket * { visibility: visible !important; }
  #print-ticket { position: absolute; inset: 0; margin: auto; padding: 20px; }
  .ticket-actions, .modal-close { display: none !important; }
}
