/* ==========================================================================
   מכללת ללדת — Design System 2026
   סגנון: חם, רך ונשי
   ========================================================================== */

/* ----- Design Tokens ----- */
:root {
  /* צבעים — מותאמים לצבעי הלוגו: ורוד חם + תכלת רך */
  --terracotta: #C67A85;     /* primary / CTA — ורוד חם מהלוגו */
  --terracotta-dark: #A85F6B;
  --rose: #ECC8CC;           /* ורוד רך */
  --rose-soft: #F8E7E9;
  --sand: #F5EDE4;           /* רקע בהיר */
  --cream: #FFFBF6;
  --cocoa: #5A4338;          /* טקסט ראשי */
  --cocoa-soft: #8A7367;     /* טקסט משני */
  --sage: #7FB0B5;           /* accent — תכלת/טורקיז רך מהלוגו */
  --sage-soft: #DEEAEB;
  --gold: #D8A55B;           /* badges */
  --white: #ffffff;

  /* טיפוגרפיה */
  --font-head: "Frank Ruhl Libre", "Heebo", serif;
  --font-body: "Heebo", "Assistant", -apple-system, sans-serif;

  /* ריווח ופינות */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 18px rgba(90, 67, 56, 0.08);
  --shadow: 0 14px 40px rgba(90, 67, 56, 0.12);
  --shadow-lg: 0 24px 60px rgba(90, 67, 56, 0.16);
  --maxw: 1180px;
  --transition: .3s cubic-bezier(.22,.61,.36,1);
}

/* ----- Reset ----- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--cocoa);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--cocoa); }

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: 92px; }
.section--tight { padding-block: 60px; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: var(--rose-soft);
  padding: 7px 16px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-sub { max-width: 620px; margin-inline: auto; color: var(--cocoa-soft); font-size: 1.08rem; }
.section.center .section-sub { margin-bottom: 8px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  padding: 15px 30px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: var(--transition);
}
.btn--primary { background: var(--terracotta); color: var(--white); box-shadow: 0 10px 24px rgba(198,122,133,.32); }
.btn--primary:hover { background: var(--terracotta-dark); transform: translateY(-3px); box-shadow: 0 16px 30px rgba(198,122,133,.4); }
.btn--ghost { background: transparent; color: var(--cocoa); border-color: rgba(90,67,56,.22); }
.btn--ghost:hover { background: var(--white); border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-3px); }
.btn--white { background: var(--white); color: var(--terracotta); }
.btn--white:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--lg { padding: 18px 40px; font-size: 1.1rem; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,251,246,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(90,67,56,.08);
  transition: var(--transition);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--cocoa); }
.logo .mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--rose));
  display: grid; place-items: center; color: #fff; font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(198,122,133,.3);
}
.logo small { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .18em; color: var(--cocoa-soft); }
.logo-img { height: 54px; width: auto; display: block; }
.footer .logo-chip { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.footer .logo-chip .logo-img { height: 46px; }
.nav-links { display: flex; align-items: center; gap: 19px; }
.nav-links > a, .nav-links .drop-toggle { font-weight: 500; font-size: .96rem; position: relative; transition: color .2s; cursor: pointer; }
.nav-links a { transition: color .2s; }
.nav-links a::after {
  content:''; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px;
  background: var(--terracotta); transition: width .25s;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links > a:hover::after, .has-dropdown:hover .drop-toggle::after { width: 100%; }

/* Dropdown (קורסים) */
.has-dropdown { position: relative; }
.has-dropdown .drop-toggle { display: inline-flex; align-items: center; gap: 5px; }
.has-dropdown .drop-toggle .caret { font-size: .7rem; transition: transform .25s; }
.has-dropdown:hover .drop-toggle .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 16px); right: 0; min-width: 260px;
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition); border: 1px solid rgba(90,67,56,.08); z-index: 60;
}
.has-dropdown::after { content:''; position:absolute; top:100%; right:0; left:0; height:18px; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 11px 14px; border-radius: 11px; font-size: .94rem; font-weight: 500; white-space: nowrap; }
.dropdown a:hover { background: var(--rose-soft); color: var(--terracotta); }
.dropdown a::after { display: none; }
.dropdown .dd-all { border-top: 1px solid rgba(90,67,56,.1); margin-top: 6px; padding-top: 13px; color: var(--terracotta); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: .9rem; font-weight: 600; color: var(--cocoa-soft); border: 1px solid rgba(90,67,56,.18); padding: 7px 13px; border-radius: var(--radius-pill); transition: var(--transition); }
.lang-switch:hover { color: var(--terracotta); border-color: var(--terracotta); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2.5px; background: var(--cocoa); border-radius: 3px; transition: var(--transition); }
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-block: 70px 90px; overflow: hidden; }
.hero::before {
  content:''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 88% 12%, var(--rose-soft) 0%, transparent 42%),
    radial-gradient(circle at 6% 80%, var(--sage-soft) 0%, transparent 40%),
    var(--sand);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: 22px; }
.accent { color: var(--terracotta); }
.hero h1 .accent { color: var(--terracotta); }
.hero p.lead { font-size: 1.22rem; color: var(--cocoa-soft); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 38px; }
.trust-bar { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.trust-bar .item { display: flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 500; color: var(--cocoa); }
.trust-bar .item .ic { color: var(--terracotta); font-size: 1.2rem; }
.trust-bar .divider { width: 1px; height: 26px; background: rgba(90,67,56,.16); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-img {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5; position: relative;
}
.placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--rose) 0%, var(--terracotta) 55%, var(--sage) 130%);
  display: grid; place-items: center; color: rgba(255,255,255,.92);
  font-family: var(--font-body); text-align: center; padding: 20px;
}
/* מסגרות תמונה דקורטיביות (Hero/כרטיסים/אווטאר) — ממלאות את המסגרת.
   גלריות תוכן (תמונות/המלצות) מוצגות במלואן בפריסת מסונרי (ראה למטה). */
.hero-img, .thumb, .g-item, .map-embed { position: relative; overflow: hidden; }
.hero-img img, .thumb img, .g-item img, .map-embed img, .map-embed iframe,
.course-hero .hero-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== גלריות תוכן — מסונרי: כל תמונה במלואה, ממלאת את רוחב הטור, בלי חיתוך ובלי שוליים ===== */
.masonry { column-gap: 14px; }
.masonry > * { break-inside: avoid; margin-bottom: 14px; width: 100%; }
.masonry img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: var(--shadow-sm); }
.placeholder span { display:block; }
.placeholder .ph-ic { font-size: 2.6rem; margin-bottom: 10px; }
.placeholder .ph-note { font-size: .8rem; opacity: .85; margin-top: 8px; max-width: 220px; }
.hero-badge {
  position: absolute; bottom: 24px; right: -22px;
  background: var(--white); border-radius: var(--radius); padding: 16px 22px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
}
.hero-badge .num { font-family: var(--font-head); font-size: 1.9rem; color: var(--terracotta); font-weight: 700; }
.hero-badge .lbl { font-size: .85rem; color: var(--cocoa-soft); line-height: 1.35; }
.hero-badge2 {
  position: absolute; top: 26px; left: -18px;
  background: var(--white); border-radius: var(--radius-pill); padding: 11px 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .92rem;
}
.hero-badge2 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }

/* ==========================================================================
   Steps — מאיפה מתחילים
   ========================================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 48px; }
.step {
  background: var(--white); border-radius: var(--radius-lg); padding: 38px 30px;
  box-shadow: var(--shadow-sm); position: relative; transition: var(--transition);
  border: 1px solid rgba(90,67,56,.05);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step .step-num {
  position: absolute; top: 26px; left: 28px;
  font-family: var(--font-head); font-size: 3.2rem; color: var(--rose); opacity: .55; font-weight: 700;
}
.step .step-ic {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: var(--rose-soft); color: var(--terracotta); font-size: 1.7rem; margin-bottom: 22px;
}
.step h3 { font-size: 1.32rem; margin-bottom: 10px; }
.step p { color: var(--cocoa-soft); }

/* ==========================================================================
   Course cards
   ========================================================================== */
.courses-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 50px; }
.course-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column;
  border: 1px solid rgba(90,67,56,.05);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-card .thumb { aspect-ratio: 16/10; position: relative; }
.course-card .thumb .tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,251,246,.95); color: var(--terracotta); font-weight: 700; font-size: .78rem;
  padding: 6px 13px; border-radius: var(--radius-pill);
}
.course-card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.course-card p { color: var(--cocoa-soft); font-size: .98rem; margin-bottom: 18px; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; font-size: .88rem; color: var(--cocoa-soft); }
.course-meta span { display: flex; align-items: center; gap: 6px; }
.course-card .card-link { color: var(--terracotta); font-weight: 700; display: inline-flex; align-items: center; gap: 7px; transition: gap .2s; }
.course-card:hover .card-link { gap: 12px; }

/* ==========================================================================
   Why us
   ========================================================================== */
.why { background: linear-gradient(180deg, var(--cream), var(--sand)); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 50px; }
.feature { text-align: center; padding: 30px 20px; }
.feature .f-ic {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 2rem;
  background: var(--white); color: var(--terracotta); box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.18rem; margin-bottom: 9px; }
.feature p { color: var(--cocoa-soft); font-size: .95rem; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--cocoa); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; text-align: center; }
.stat .stat-num { font-family: var(--font-head); font-size: clamp(2.4rem,5vw,3.4rem); color: var(--rose); font-weight: 700; line-height: 1; }
.stat .stat-lbl { color: rgba(255,255,255,.78); margin-top: 10px; font-size: 1rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 50px; }
.testi {
  background: var(--white); border-radius: var(--radius-lg); padding: 34px 30px;
  box-shadow: var(--shadow-sm); position: relative; transition: var(--transition);
}
.testi:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testi .quote-mark { font-family: var(--font-head); font-size: 4rem; color: var(--rose); line-height: .5; height: 26px; }
.testi p.text { color: var(--cocoa); font-size: 1.02rem; margin-bottom: 24px; }
.testi .person { display: flex; align-items: center; gap: 14px; }
.testi .avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.testi .stars { color: var(--gold); font-size: .9rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi .person .name { font-weight: 700; }
.testi .person .role { font-size: .85rem; color: var(--cocoa-soft); }

/* ==========================================================================
   Articles
   ========================================================================== */
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 50px; }
.article-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); transition: var(--transition); }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-card .thumb { aspect-ratio: 16/10; }
.article-card .body { padding: 24px; }
.article-card .cat { font-size: .8rem; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: .08em; }
.article-card h3 { font-size: 1.18rem; margin: 10px 0; }
.article-card .card-link { color: var(--terracotta); font-weight: 700; font-size: .95rem; }

/* ==========================================================================
   Lead CTA / Forms
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content:''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--terracotta), var(--rose) 130%);
}
.cta-band { color: #fff; }
.cta-band .section-title, .cta-band h2 { color: #fff; }
.lead-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-lg);
  max-width: 560px; margin-inline: auto;
}
.lead-card h2, .lead-card h3 { color: var(--cocoa); }
.form-row { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
/* כותרת קטע בתוך טופס (type:"heading" בסכמה) — מפרידה בין קבוצות שדות */
.form-section-title {
  grid-column: 1 / -1; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--terracotta); margin: 26px 0 2px; padding-bottom: 8px; text-align: right;
  border-bottom: 1px solid rgba(90,67,56,.10);
}
[data-fields] > .form-row:first-child .form-section-title { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 7px; text-align: right; }
.field label { font-weight: 600; font-size: .92rem; color: var(--cocoa); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--cocoa);
  padding: 14px 16px; border: 1.5px solid rgba(90,67,56,.16); border-radius: var(--radius-sm);
  background: var(--cream); transition: var(--transition); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta); background: #fff; box-shadow: 0 0 0 4px var(--rose-soft);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.error input, .field.error select, .field.error textarea { border-color: #d9534f; }
.field .err-msg { color: #d9534f; font-size: .82rem; display: none; }
.field.error .err-msg { display: block; }
.form-note { font-size: .85rem; color: var(--cocoa-soft); margin-top: 14px; text-align: center; }
.form-success {
  display: none; background: var(--sage-soft); color: #2E5E63; border-radius: var(--radius);
  padding: 20px; text-align: center; font-weight: 600; margin-top: 18px;
}
.form-success.show { display: block; }

/* שדות מרונדרים מסכמה (data-fields) ושדות מותאמים (dynamic-fields) — מרווח בין שורות */
[data-fields] .form-row + .form-row { margin-top: 16px; }
.dynamic-fields .form-row { margin-top: 16px; }
/* תיבת אישור (checkbox עם תווית ארוכה) */
.consent-field { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; text-align: right; }
.consent-field input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--terracotta); }
.consent-field label { font-weight: 400; font-size: .92rem; color: var(--cocoa); line-height: 1.5; }
.consent-field.error label { color: #d9534f; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--cocoa); color: rgba(255,255,255,.78); padding-block: 64px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer .logo small { color: rgba(255,255,255,.6); }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--rose); }
.footer ul li { margin-bottom: 11px; }
.footer .socials { display: flex; gap: 12px; margin-top: 18px; }
.footer .socials a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; font-size: 1.1rem; transition: var(--transition);
}
.footer .socials a:hover { background: var(--terracotta); transform: translateY(-3px); }
.footer .contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed; bottom: 26px; left: 26px; z-index: 200;
  width: 62px; height: 62px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: var(--transition); animation: pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  70% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ==========================================================================
   Course page specifics
   ========================================================================== */
.course-hero { background: var(--sand); padding-block: 56px; position: relative; }
.course-hero .breadcrumb { font-size: .9rem; color: var(--cocoa-soft); margin-bottom: 18px; }
.course-hero .breadcrumb a:hover { color: var(--terracotta); }
.course-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .85rem;
  padding: 8px 15px; border-radius: var(--radius-pill); background: var(--rose-soft); color: var(--terracotta-dark);
}
.badge.gold { background: #f6ebd6; color: #97702c; }
.badge.sage { background: var(--sage-soft); color: #2E5E63; }
.course-hero h1 { font-size: clamp(2rem,4.6vw,3.2rem); margin-bottom: 18px; }
.keyfacts { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 28px; }
.keyfact { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 14px; }
.keyfact .kf-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--rose-soft); color: var(--terracotta); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.keyfact .kf-val { font-weight: 700; font-size: 1.05rem; }
.keyfact .kf-lbl { font-size: .82rem; color: var(--cocoa-soft); }

/* layout with sticky form */
.course-layout { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: start; }
.course-main h2 { font-size: 1.7rem; margin-bottom: 18px; margin-top: 8px; }
.course-block { margin-bottom: 48px; }
.audience-list { display: grid; gap: 12px; margin-top: 8px; }
.audience-list li { display: flex; gap: 12px; align-items: flex-start; }
.audience-list .ic { color: var(--sage); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.learn-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 8px; }
.learn-card { background: var(--white); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); border: 1px solid rgba(90,67,56,.05); }
.learn-card .lc-ic { font-size: 1.8rem; margin-bottom: 12px; }
.learn-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.learn-card p { font-size: .92rem; color: var(--cocoa-soft); }
.timeline { margin-top: 14px; border-right: 2px solid var(--rose); padding-right: 26px; }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before { content:''; position: absolute; right: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px var(--rose-soft); }
.timeline li h4 { font-size: 1.08rem; margin-bottom: 4px; }
.timeline li p { color: var(--cocoa-soft); font-size: .95rem; }

/* sticky enroll card — נצמד למעלה ועוקב אחרי הגלילה */
.enroll-card {
  position: sticky; top: 100px; background: var(--white); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); border: 1px solid rgba(90,67,56,.06);
}
.enroll-card .price { font-family: var(--font-head); font-size: 2.2rem; color: var(--terracotta); font-weight: 700; }
.enroll-card .price small { font-size: .9rem; color: var(--cocoa-soft); font-weight: 400; display: block; font-family: var(--font-body); }
.enroll-card .perk { display: flex; gap: 10px; align-items: center; font-size: .92rem; margin: 12px 0; }
.enroll-card .perk .ic { color: var(--sage); }
.enroll-card .btn { width: 100%; justify-content: center; margin-top: 18px; }
.divider-line { height: 1px; background: rgba(90,67,56,.12); margin: 22px 0; }

/* FAQ */
.faq-list { max-width: 820px; margin: 36px auto 0; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid rgba(90,67,56,.05); }
.faq-q { width: 100%; text-align: right; background: none; border: none; cursor: pointer; padding: 22px 26px; font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--cocoa); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { color: var(--terracotta); font-size: 1.4rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 26px 24px; color: var(--cocoa-soft); }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 16px; }
.gallery-grid .g-item { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-hero { background: linear-gradient(135deg, var(--rose-soft), var(--sand)); padding-block: 70px; text-align: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info-card { background: var(--white); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.contact-method { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-method:last-child { margin-bottom: 0; }
.contact-method .cm-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--rose-soft); color: var(--terracotta); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.contact-method h4 { font-size: 1.08rem; margin-bottom: 3px; }
.contact-method p, .contact-method a { color: var(--cocoa-soft); }
.contact-method a:hover { color: var(--terracotta); }
.branches-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin-top: 40px; }
.branch-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition); cursor: pointer; }
.branch-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.branch-card:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.branch-card.active { background: var(--rose-soft); box-shadow: var(--shadow); }
.branch-card.active .b-ic { transform: scale(1.1); }
.branch-card .b-ic { font-size: 1.6rem; color: var(--terracotta); margin-bottom: 10px; }
.branch-card h4 { font-size: 1.15rem; margin-bottom: 5px; }
.branch-card p { font-size: .9rem; color: var(--cocoa-soft); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/9; margin-top: 40px; box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid, .course-hero-grid, .course-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin-inline: auto; order: -1; }
  /* גובה מפורש לתמונות ה-Hero במובייל (פתרון לקריסת aspect-ratio בחלק מהדפדפנים) */
  .hero-img { aspect-ratio: auto; height: 70vw; max-height: 460px; min-height: 300px; }
  .steps-grid, .courses-grid, .testi-grid, .articles-grid, .learn-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid, .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .enroll-card { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); padding: 10px 22px 26px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .35s; align-items: stretch;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 15px 4px; border-bottom: 1px solid rgba(90,67,56,.08); }
  .nav-links a::after { display: none; }
  .nav-links { max-height: calc(100vh - 78px); overflow-y: auto; }
  .has-dropdown { width: 100%; }
  .has-dropdown .drop-toggle { padding: 15px 4px; border-bottom: 1px solid rgba(90,67,56,.08); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 4px 0 8px; border: none; min-width: 0; }
  .dropdown a { padding: 12px 18px; font-size: .9rem; color: var(--cocoa-soft); border-bottom: none; }
  .has-dropdown::after { display: none; }
  .burger { display: flex; }
  .nav-cta .btn { display: none; }
  .steps-grid, .courses-grid, .testi-grid, .articles-grid, .learn-grid,
  .why-grid, .stats-grid, .footer-grid, .keyfacts, .form-grid-2, .gallery-grid { grid-template-columns: 1fr; }
  /* הסתרת הבאדג'ים הצפים במובייל כדי שלא יסתירו את הטקסט */
  .hero-badge, .hero-badge2 { display: none; }
  .lead-card { padding: 30px 22px; }
  .wa-float { width: 56px; height: 56px; bottom: 18px; left: 18px; }

  /* ---- Full-bleed hero images on mobile ---- */
  /* התמונה במלוא הרוחב ע"י ביטול ריפוד ה-container והחזרתו רק לטקסט (ללא margin שלילי).
     minmax(0,1fr) + min-width:0 מונעים את "התפוצצות" עמודת ה-grid מעבר לרוחב המסך. */
  .hero { padding-block: 0 48px; overflow: hidden; }
  .hero .container { padding-inline: 0; grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-inline: 22px; min-width: 0; }
  .hero .hero-visual { max-width: none; margin-inline: 0; min-width: 0; }
  .hero .hero-img { border-radius: 0; box-shadow: none; height: 56vw; min-height: 240px; max-height: 380px; }

  /* בעמוד הקורס: display:contents ממוסס את ה-grid (כך אין התפוצצות עמודה)
     ומאפשר סדר מדויק: תמונה ← נתיב ניווט ← טקסט */
  .course-hero { padding-top: 0; overflow: hidden; }
  .course-hero .container { display: flex; flex-direction: column; padding-inline: 0; }
  .course-hero-grid { display: contents; }
  .course-hero .hero-visual { order: 1; max-width: none; margin-inline: 0; min-width: 0; }
  .course-hero .breadcrumb { order: 2; margin: 16px 0 0; padding-inline: 22px; }
  .course-hero-grid > div:not(.hero-visual) { order: 3; padding-inline: 22px; min-width: 0; }
  .course-hero .hero-img { border-radius: 0 !important; box-shadow: none; aspect-ratio: 16/10 !important; }
}

/* ===== טבלת מועדי פתיחה (מוזרקת דינמית בעמודי הקורס) ===== */
.cohorts-wrap { margin-top: 8px; overflow-x: auto; border-radius: 16px; box-shadow: var(--shadow-sm); }
.cohorts-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.cohorts-table th, .cohorts-table td { padding: 14px 16px; text-align: right; border-bottom: 1px solid rgba(90,67,56,.08); white-space: nowrap; }
.cohorts-table th { background: var(--sand); font-weight: 700; font-size: .92rem; }
.cohorts-table tbody tr:nth-child(even) td { background: #fdfaf7; }
.cohorts-table tbody tr:hover td { background: var(--rose-soft); }
.cohorts-table tr:last-child td { border-bottom: none; }
.cohorts-table .co-date { font-weight: 700; color: var(--terracotta-dark); }
.cohorts-table .co-scope { white-space: normal; min-width: 220px; max-width: 340px; line-height: 1.4; font-size: .88rem; color: var(--cocoa-soft); }
.cohorts-table th, .cohorts-table td { vertical-align: middle; }
.cohort-reg { display: inline-flex; align-items: center; gap: 5px; background: var(--terracotta); color: #fff; font-weight: 600; font-size: .85rem; padding: 7px 15px; border-radius: 999px; text-decoration: none; transition: var(--transition); }
.cohort-reg:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

/* ===== תוכן עשיר של קורסים/מאמרים (course-text, סילבוס, שו"ת) ===== */
.rich{color:#46352d;line-height:1.85}
.rich h2{font-size:1.3rem;margin:20px 0 10px}
.rich h3{font-size:1.12rem;margin:18px 0 8px}
.rich p{margin:0 0 14px}
.rich ul,.rich ol{margin:0 0 14px;padding-inline-start:22px}
.rich li{margin-bottom:6px}
.rich img,.article-body img{display:block;max-width:min(100%,400px);height:auto;border-radius:10px;margin:14px auto}
.rich a{color:var(--terracotta);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.rich a:hover{color:var(--terracotta-dark)}
.faq-d{background:#fff;border:1px solid rgba(90,67,56,.1);border-radius:12px;margin-bottom:10px;overflow:hidden}
.faq-d summary{cursor:pointer;padding:14px 18px;font-weight:600;list-style:none}
.faq-d summary::-webkit-details-marker{display:none}
.faq-d[open] summary{color:var(--rose)}
.faq-d .rich{padding:0 18px 16px}
