@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;600;700&display=swap');
/* Styles of the מדיה page blocks (src/puck/media-config.tsx; /media renders them).
   Linked from inside each block so the editor canvas iframe gets it too. Copied from the shared
   components/pages-v2.css (media + form rules only) — no next/font var (undefined in the canvas
   would invalidate the whole font stack); literal Noto Sans Hebrew instead. Every block root
   carries "pg2 md2-page". */
/* הרצאות (/lectures) + מדיה (/media) — the lectures and media screens of artifact 58985a5f
   ("עיצוב מחדש של העמודים"), translated 1:1 from its inline styles into classes, scoped under
   .pg2 (same tokens as books-v2.css). navy #15303E, cream #F7F2EE, terracotta #B76A50,
   teal #0F5568, gold #C9954F. */
.pg2 {
  --navy: #15303e;
  --glow: #25495c;
  --teal: #0f5568;
  --cream: #f7f2ee;
  --terra: #b76a50;
  --gold: #c9954f;
  --gutter: clamp(20px, 5vw, 72px);
  --fs-h2: clamp(28px, 3vw, 52px);
  --fs-h3: clamp(22px, 2.08vw, 36px);
  --fs-body: clamp(17px, 1.16vw, 20px);

  background: var(--cream);
  color: var(--navy);
  font-family: 'Noto Sans Hebrew', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
.pg2 *, .pg2 *::before, .pg2 *::after { box-sizing: border-box; }
.pg2 h1, .pg2 h2, .pg2 h3, .pg2 p, .pg2 figure, .pg2 ul, .pg2 fieldset { margin: 0; }
.pg2 a { color: var(--navy); }
.pg2 :focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

.pg2-line {
  display: inline-block; align-self: flex-start; padding-bottom: 18px;
  background: linear-gradient(var(--terra), var(--terra)) 100% 100% / 34% 3px no-repeat;
}
.pg2-h1 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; }
.pg2-h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
.pg2-lead { font-size: var(--fs-h3); font-weight: 300; line-height: 1.3; }
.pg2-credit {
  position: absolute; left: 18px; bottom: 30px; z-index: 2;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11px; letter-spacing: .04em; color: var(--cream); opacity: .75; pointer-events: none;
}

/* ── buttons ── */
.pg2-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  min-width: min(260px, 100%); min-height: 64px; padding: 0 30px; border: 0; border-radius: 30px;
  background: var(--terra); color: var(--cream); font: inherit; font-size: var(--fs-body); font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .3s;
}
.pg2 a.pg2-btn { color: var(--cream); }
.pg2-btn:hover { transform: translateY(-3px); }
.pg2-btn--ghost { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); transition: background .3s, color .3s; }
.pg2 a.pg2-btn--ghost, .pg2 button.pg2-btn--ghost { color: var(--navy); }
.pg2-btn--ghost:hover { transform: none; background: var(--navy); color: var(--cream) !important; }
.pg2-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px;
  border: 1.5px solid var(--navy); border-radius: 30px; background: transparent; color: var(--navy);
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .3s, color .3s;
}
.pg2-pill:hover { background: var(--navy); color: var(--cream); }

/* ── forms (lecture booking / interview) ── */
.pg2-form-sec { padding: 0 var(--gutter) 120px; scroll-margin-top: 100px; }
.pg2-form-grid {
  border-top: 2px solid var(--navy); padding-top: 90px;
  display: flex; flex-wrap: wrap; gap: 60px 90px; align-items: flex-start;
}
.pg2-form-sec--plain { padding-top: 90px; }
.pg2-form-sec--plain .pg2-form-grid { border-top: 0; padding-top: 0; }
.pg2-form-side { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; position: sticky; top: 130px; }
.pg2-form-main { flex: 2 1 min(100%, 480px); min-width: 0; }
.pg2-form { display: flex; flex-direction: column; }
.pg2-fs { border: 0; padding: 60px 0; display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.pg2-fs:first-child { padding-top: 0; }
.pg2-fs + .pg2-fs { border-top: 2px solid var(--navy); }
.pg2-fs > legend { float: right; width: 100%; padding: 0 0 30px; font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
.pg2-fs--dark {
  margin: 0 0 60px; padding: 60px; color: var(--cream);
  background: radial-gradient(ellipse 70% 90% at 25% 40%, var(--glow) 0%, rgba(37, 73, 92, .5) 40%, rgba(21, 48, 62, 0) 75%), var(--navy);
}
.pg2-fs + .pg2-fs--dark { border-top: 0; }
.pg2-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 30px; }
.pg2-field { display: flex; flex-direction: column; gap: 10px; font-size: 17px; font-weight: 700; }
.pg2-req { color: var(--terra); }
.pg2-fs--dark .pg2-req { color: var(--gold); }
.pg2-hint { font-weight: 400; font-size: 14px; color: var(--teal); }
.pg2-fs--dark .pg2-hint { color: inherit; }
.pg2-input {
  min-height: 52px; padding: 0 18px; border: 1.5px solid rgba(21, 48, 62, .4); border-radius: 10px;
  background: transparent; font: inherit; font-size: 17px; font-weight: 400; color: var(--navy); outline: none;
}
.pg2-input:focus { border-color: var(--terra); }
.pg2-input[dir='ltr'] { text-align: right; }
textarea.pg2-input { padding: 14px 18px; line-height: 1.5; resize: vertical; }
.pg2-input--narrow { max-width: 240px; }
.pg2-input--date { align-self: flex-start; }
.pg2-fs--dark .pg2-input { border-color: rgba(247, 242, 238, .5); color: var(--cream); }
.pg2-fs--dark .pg2-input:focus { border-color: var(--gold); }
.pg2-fs--dark .pg2-input::placeholder { color: rgba(247, 242, 238, .6); }
.pg2-group { display: flex; flex-direction: column; gap: 12px; }
.pg2-group-label { font-size: 17px; font-weight: 700; }
.pg2-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.pg2-chip {
  min-height: 44px; padding: 0 18px; border: 1.5px solid var(--navy); border-radius: 10px;
  background: transparent; color: var(--navy); font: inherit; font-size: 17px; cursor: pointer; transition: background .2s;
}
.pg2-chip[aria-pressed='true'] { background: var(--navy); color: var(--cream); }
.pg2-fs--dark .pg2-chip { border-color: var(--cream); color: var(--cream); }
.pg2-fs--dark .pg2-chip[aria-pressed='true'] { background: var(--cream); color: var(--navy); }
.pg2-guest { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.pg2-submit { align-self: flex-start; }
.pg2-submit:disabled { opacity: .6; cursor: default; transform: none; }
.pg2-error { color: #a33; font-size: 17px; margin-top: 18px; }
.pg2-sent {
  padding: 60px; color: var(--cream); display: flex; flex-direction: column; gap: 18px;
  background: radial-gradient(ellipse 70% 90% at 25% 40%, var(--glow) 0%, rgba(37, 73, 92, .5) 40%, rgba(21, 48, 62, 0) 75%), var(--navy);
}
.pg2-sent::before { content: ''; width: 60px; height: 3px; border-radius: 2px; background: var(--terra); }

/* ── מדיה · פתיח ── */
.md2-hero { padding: clamp(72px, 7vw, 120px) var(--gutter) 0; display: flex; flex-direction: column; gap: 60px; }
.md2-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.md2-hero-art { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.md2-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.md2-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 360px)); justify-content: center; gap: 30px; }
.md2-ctas .pg2-btn { width: 100%; }

/* ── מדיה · ערכת מדיה ── */
.md2-kit { padding: clamp(72px, 7vw, 120px) var(--gutter) 0; scroll-margin-top: 100px; }
.md2-kit > h2 { margin-bottom: 60px; }
.md2-row { display: flex; flex-wrap: wrap; gap: 30px 60px; padding: 60px 0; border-top: 2px solid var(--navy); }
.md2-row:last-child { border-bottom: 2px solid var(--navy); }
.md2-row-head { flex: 1 1 220px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.md2-num { font-size: 14px; font-weight: 700; color: var(--teal); }
.md2-row-body { flex: 2 1 min(100%, 480px); display: flex; flex-direction: column; align-items: flex-start; gap: 30px; max-width: 40em; }
.md2-bio-full { display: flex; flex-direction: column; gap: 18px; }
.md2-photos { flex: 2 1 min(100%, 480px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 30px; }
.md2-photos figure { display: flex; flex-direction: column; gap: 12px; }
.md2-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.md2-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.md2-photos figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.pg2 .md2-photos figcaption a { font-weight: 700; color: var(--terra); }
.md2-credit { grid-column: 1 / -1; font-size: 14px; color: var(--teal); }

@media (max-width: 600px) {
  .pg2-form-side { position: static; }
  .pg2-fs--dark, .pg2-sent { padding: 30px 20px; }
}

/* pin the literal font even if pages-v2.css (with its next/font var) lingers after client nav */
.pg2.md2-page { font-family: 'Noto Sans Hebrew', sans-serif; }
