.elementor-64 .elementor-element.elementor-element-f79ad51{--swiper-slides-to-display:3;--swiper-slides-gap:10px;--arrow-prev-left-align:0%;--arrow-prev-translate-x:0px;--arrow-prev-left-position:0px;--arrow-prev-top-align:50%;--arrow-prev-translate-y:-50%;--arrow-prev-top-position:0px;--arrow-next-right-align:0%;--arrow-next-translate-x:0%;--arrow-next-right-position:0px;--arrow-next-top-align:50%;--arrow-next-translate-y:-50%;--arrow-next-top-position:0px;}.elementor-64 .elementor-element.elementor-element-f79ad51 .swiper-slide > .elementor-element{height:100%;}.elementor-widget-accordion .elementor-accordion-icon, .elementor-widget-accordion .elementor-accordion-title{color:var( --e-global-color-primary );}.elementor-widget-accordion .elementor-accordion-icon svg{fill:var( --e-global-color-primary );}.elementor-widget-accordion .elementor-active .elementor-accordion-icon, .elementor-widget-accordion .elementor-active .elementor-accordion-title{color:var( --e-global-color-accent );}.elementor-widget-accordion .elementor-active .elementor-accordion-icon svg{fill:var( --e-global-color-accent );}.elementor-widget-accordion .elementor-accordion-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );line-height:var( --e-global-typography-primary-line-height );}.elementor-widget-accordion .elementor-tab-content{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );line-height:var( --e-global-typography-text-line-height );}@media(max-width:1024px){.elementor-64 .elementor-element.elementor-element-f79ad51{--swiper-slides-to-display:2;}.elementor-widget-accordion .elementor-accordion-title{line-height:var( --e-global-typography-primary-line-height );}.elementor-widget-accordion .elementor-tab-content{line-height:var( --e-global-typography-text-line-height );}}@media(max-width:767px){.elementor-64 .elementor-element.elementor-element-f79ad51{--swiper-slides-to-display:1;}.elementor-widget-accordion .elementor-accordion-title{line-height:var( --e-global-typography-primary-line-height );}.elementor-widget-accordion .elementor-tab-content{line-height:var( --e-global-typography-text-line-height );}}/* Start custom CSS *//* ==========================================================================
   P10 - THE HEART CODE STRIP  (#mg-hcodes, home page 64)

   The condensed counterpart of #mg-hcode on /about/. Same idea, one band:
   the thesis, then the four circles as a single horizontal strip, then one
   button through to the full version on the about page. It deliberately
   does NOT repeat the orbit medallion - that composition belongs to /about/
   and reusing it here would flatten the reason to click through.

   Band tone: the home page runs ink, paper, ink, paper, ?, white, paper,
   ink, paper, paper. This section lands between #mg-about (paper) and
   #mg-method (white), so it takes the same brand tint the method wears on
   /about/. That tint is now the method's colour across the site.

   Placement is the point: this section introduces Heart Code as THE method,
   which is why #mg-method's heading was changed to "the tools inside the
   method". NLP and CBT are tools within Heart Code, not a rival method.

   Three gotchas are load-bearing here:
   - an e-flexbox owns its ::before (Elementor renders it as an absolutely
     positioned overlay layer), so the ring markers hang off the term
     paragraphs, which are widgets and whose pseudo-elements are free;
   - #mg-hcodes>* sets width:100% to box every direct child at 1280, which
     would stretch the button into a 1280px slab, so the button opts out
     with width:auto. Any inline-sized child added here must do the same;
   - ch resolves against the element's OWN font size. A ch cap on the head
     wrapper is computed in body text and silently strangles the display
     heading inside it, so the measure caps live on the text elements
     themselves and never on their container.
   ========================================================================== */

#mg-hcodes{padding-block:var(--mg-section-y);padding-inline:var(--mg-gutter);width:100%}
#mg-hcodes>*{max-width:var(--mg-maxw);margin-inline:auto;width:100%}

/* ---- 1. head + thesis ---- */
#mg-hcodes-head{gap:var(--mg-s-3);align-items:center;text-align:center;padding:0}
#mg-hcodes-h2{font-size:var(--mg-t-d2);max-width:min(38ch,100%);margin-inline:auto}
#mg-hcodes-p1,#mg-hcodes-p2{font-size:var(--mg-t-body);line-height:1.85;
  color:var(--mg-ink-2);font-weight:300;max-width:min(70ch,100%);margin-inline:auto}

/* ---- 2. the four-circle strip ----
   Four equal columns, no cards. Cards here would compete with the three
   gate cards further up the page; a light rule between the items keeps it
   reading as one continuous band. */
#mg-hcodes-row{display:grid;grid-template-columns:repeat(4,1fr);
  gap:0;margin-top:var(--mg-s-6);padding:0}
#mg-hcs-1,#mg-hcs-2,#mg-hcs-3,#mg-hcs-4{
  gap:.45rem;align-items:flex-start;padding:0 clamp(1rem,2vw,1.75rem);
  border-inline-start:1px solid rgba(59,86,166,.18)}
#mg-hcs-1{border-inline-start:0;padding-inline-start:0}

/* the term line: the ring marker is the "circle" of the method, kept as an
   outline so it reads as a circle rather than as another bullet star */
#mg-hcs-1>p:first-child,#mg-hcs-2>p:first-child,
#mg-hcs-3>p:first-child,#mg-hcs-4>p:first-child{
  display:flex;align-items:center;gap:.55rem;
  font-size:var(--mg-t-d4);font-weight:700;color:var(--mg-ink)}
#mg-hcs-1>p:first-child::before,#mg-hcs-2>p:first-child::before,
#mg-hcs-3>p:first-child::before,#mg-hcs-4>p:first-child::before{
  content:"";width:14px;height:14px;flex:none;border-radius:50%;
  border:2px solid var(--mg-teal)}
#mg-hcs-1>p:last-child,#mg-hcs-2>p:last-child,
#mg-hcs-3>p:last-child,#mg-hcs-4>p:last-child{
  font-size:var(--mg-t-sm);line-height:1.7;color:var(--mg-muted);font-weight:300}

/* ---- 3. the single way out of this section ---- */
#mg-hcodes-btn{width:auto;margin-top:var(--mg-s-6);align-self:center;
  background:var(--mg-brand);color:#fff;font-weight:700;
  font-size:var(--mg-t-sm);border-radius:var(--mg-r-pill);
  padding:.95rem 1.6rem;min-height:50px;display:inline-flex;align-items:center;
  text-decoration:none;border:1px solid transparent;
  transition:background-color .35s var(--mg-ease),transform .2s var(--mg-ease-out)}
#mg-hcodes-btn:hover{background:var(--mg-brand-deep)}
#mg-hcodes-btn:active{transform:scale(.98)}

/* ---- 4. responsive ---- */
@media (max-width:1024px){
  #mg-hcodes-row{grid-template-columns:repeat(2,1fr);
    gap:var(--mg-s-4) 0}
  #mg-hcs-3{border-inline-start:0;padding-inline-start:0}
}
@media (max-width:767px){
  #mg-hcodes-row{grid-template-columns:1fr;gap:var(--mg-s-4)}
  #mg-hcs-1,#mg-hcs-2,#mg-hcs-3,#mg-hcs-4{border-inline-start:0;
    padding-inline:0;align-items:center}
  #mg-hcs-1>p:first-child,#mg-hcs-2>p:first-child,
  #mg-hcs-3>p:first-child,#mg-hcs-4>p:first-child{justify-content:center}
}

/* Every max-width above is written min(Nch,100%). A bare ch width scales
   with the element's own font-size, so at 375 the display sizes turned
   26ch into ~550px inside a 335px column. Keep the min() when editing. */
/* ==========================================================================
   שער רביעי — הדרכת הורים
   כללי השערים בסניפט 316 מונים #mg-gate-1,2,3 אחד-אחד, ולכן שער חדש
   לא יורש מהם כלום. כאן יושב הסט המלא ל-#mg-gate-4, בסדר הכללים המקורי.
   ההחלטה לצרף בסוף (ולא לדחוף באמצע) מכוונת: מספור מחדש של שלושה שערים
   היה מחייב לגעת בכל אחד מ-20 הכללים בסניפט, בלי שום רווח.
   ========================================================================== */

#mg-gate-4{
  display:flex;
  flex-direction:column;
  background:var(--mg-surface);
  border:1px solid var(--mg-border);
  border-radius:var(--mg-r-lg);
  overflow:hidden;
  box-shadow:var(--mg-sh-1);
  transition:transform .6s var(--mg-ease), box-shadow .6s var(--mg-ease),
             border-color .6s var(--mg-ease);
}

/* המדרגה היורדת נדחסת מ-3 מדרגות ל-4 כדי שהמקטע לא יתארך.
   שתי מזהות בסלקטור = ניצחון ודאי על הערכים המקוריים ב-316. */
#mg-gates-row #mg-gate-1{ flex:1.12; margin-top:0 }
#mg-gates-row #mg-gate-2{ flex:1.04; margin-top:clamp(1rem,2.2vw,2.1rem) }
#mg-gates-row #mg-gate-3{ flex:.98;  margin-top:clamp(2rem,4.4vw,4.2rem) }
#mg-gates-row #mg-gate-4{ flex:.92;  margin-top:clamp(3rem,6.6vw,6.3rem) }

#mg-gate-4:hover,#mg-gate-4:focus-within{
  transform:translateY(-8px);
  box-shadow:var(--mg-sh-3);
  border-color:rgba(59,86,166,.35);
}

#mg-gate-4>img{
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio:4/5;
  transition:transform 1.1s var(--mg-ease);
  border-start-start-radius:var(--mg-r-lg);
  border-start-end-radius:var(--mg-r-lg);
}
#mg-gate-4:hover>img{ transform:scale(1.045) }

#mg-gate-4-body{
  padding:var(--mg-s-4) var(--mg-s-3);
  display:flex;
  flex-direction:column;
  gap:.75rem;
  flex:1;
  align-items:flex-start;
}
#mg-gate-4-body h3{
  font-size:var(--mg-t-d3);
  color:var(--mg-ink);
  display:flex;
  align-items:center;
  gap:.85rem;
  position:relative;
  padding-inline-start:46px;
}

/* המוטיב: הכוכבית נפתחת ללב בריחוף ובמיקוד */
#mg-gate-4-body h3::before,
#mg-gate-4-body h3::after{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:50%;
  width:34px;
  height:34px;
  margin-top:-17px;
  transition:opacity .5s var(--mg-ease), transform .5s var(--mg-ease);
}
#mg-gate-4-body h3::before{
  background-color:var(--mg-grey-logo,#A3A3A2);
  -webkit-mask:var(--mg-star) center/contain no-repeat;
          mask:var(--mg-star) center/contain no-repeat;
}
#mg-gate-4-body h3::after{
  background-color:var(--mg-teal);
  opacity:0;
  transform:scale(.65) rotate(-18deg);
  -webkit-mask:var(--mg-heart) center/contain no-repeat;
          mask:var(--mg-heart) center/contain no-repeat;
}
#mg-gate-4:hover h3::before,#mg-gate-4:focus-within h3::before{
  opacity:0;
  transform:scale(.65) rotate(28deg);
}
#mg-gate-4:hover h3::after,#mg-gate-4:focus-within h3::after{
  opacity:1;
  transform:none;
}

#mg-gate-4-body>p{
  font-size:var(--mg-t-sm);
  line-height:1.7;
  color:var(--mg-muted);
  font-weight:300;
}
#mg-gate-4-body>p:last-child{
  margin-top:auto;
  font-weight:700;
  font-size:var(--mg-t-sm);
  color:var(--mg-brand);
  border-bottom:1px solid rgba(59,86,166,.3);
  padding-bottom:2px;
  cursor:pointer;
  transition:color .3s var(--mg-ease), border-color .3s var(--mg-ease),
             letter-spacing .3s var(--mg-ease);
}
#mg-gate-4-body>p:last-child a{ color:inherit; text-decoration:none }
#mg-gate-4:hover #mg-gate-4-body>p:last-child,
#mg-gate-4-body>p:last-child:hover{
  color:var(--mg-brand-deep)!important;
  border-bottom-color:var(--mg-brand)!important;
  letter-spacing:.01em;
}
#mg-gate-4-body>p:last-child a:hover{ color:inherit }

/* מתחת ל-1024 השורה נשברת לעמודה אחת והכול ממורכז, כמו שלושת האחרים */
@media (max-width:1024px){
  #mg-gates-row #mg-gate-1,
  #mg-gates-row #mg-gate-2,
  #mg-gates-row #mg-gate-3,
  #mg-gates-row #mg-gate-4{ flex:1 1 100%; margin-top:0 }
  #mg-gate-4-body{ align-items:center }
  #mg-gate-4-body h3{ justify-content:center; padding-inline:46px }
}

@media (prefers-reduced-motion:reduce){
  #mg-gate-4,#mg-gate-4>img{ transition:none!important }
}

/* ==========================================================================
   הירו — התאמה לפורטרט החדש (attachment 1488, "נשענת על השולחן")
   התמונה הקודמת הסתיימה בחיתוך אופקי קשה של הרגליים, ולכן הפיגורה קיבלה
   margin-bottom:-66px כדי שרצועת האמון האטומה תחתוך אותה נקי (ראה ההערה
   ב-P9 בסניפט 316). התמונה החדשה מסתיימת בידיים שלובות — סיום טבעי —
   ואותה הסטה בולעת 66 מתוך ~76 הפיקסלים שבהם הידיים נמצאות.
   ההסטה מתאפסת, והרצועה הופכת למשטח שעליו היא נשענת.
   ========================================================================== */
#mg-hero-grid #mg-hero-figure{ margin-bottom: 0 }
@media (max-width:1024px){
  #mg-hero-grid #mg-hero-figure{ margin-bottom: 0 }
}


/* כרטיס הלבבות: בקומפוזיציה הקודמת הוא ריחף לצד הרגליים. בפורטרט החדש
   אותו מיקום נופל בדיוק על אמצע האמה וחותך אותה. הורדתי אותו לקו הרצועה,
   מימין לידיים — כך הוא נקרא כתמונה מונחת על אותו משטח שעליו היא נשענת.
   בלי חפיפה שלילית: הרצועה נצבעת מעל הגריד ולכן הייתה חותכת אותו. */
#mg-hero-grid #mg-hero-figure>img:last-of-type{
  inset-block-end: 0;
  inset-inline-start: -6%;
}
@media (max-width:1024px){
  #mg-hero-grid #mg-hero-figure>img:last-of-type{ inset-block-end: 0; inset-inline-start: 2% }
}/* End custom CSS */