/* ─────────────────────────────────────────────────────────────
   DOCTOR PAGE — #sec-education (השכלה מקצועית ותעודות)

   Figma: desktop 460:46951 / 460:46960 in frame 460:44760 (1920)
          mobile  460:75153 / 460:75306 in frame 460:75121 (390)

   DESKTOP
     heading  560,4404  801x72   Polin Bold 62 / 72, centred
     cards             380x490   radius 20, 30 apart — pitch 410
     row      -50,4540 2020x490  wider than the frame; the middle card sits
                                 at 770..1150, dead centre
     gaps: heading → row 64, row → arrows 45

   MOBILE
     heading   31,4589  328x100  Bold 42 / 50, centred, two lines
     cards             281x362   17 apart — pitch 298, middle card centred
     gaps: heading → row 47, row → arrows 47

   Same shape as #sec-media and the same thing was wrong with it: the
   viewport stopped at the container, so the row ran flush from the left
   edge instead of centring the active card with its neighbours bleeding
   off both sides. Centred with a margin on the track rather than by
   patching the slider's translateX, which the script writes inline.

   The card height is left alone on mobile — the design's 362 against the
   page's 380 is 18px, and these cards hold a fixed certificate mockup that
   would start clipping.
   ───────────────────────────────────────────────────────────── */


@media (min-width: 1025px) {

  .dmc-dr-page-wrapper.dmc-dr-story #sec-education .dmc-dr-education-title {
    margin-bottom: 64px !important;   /* was 60 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-education-slider-viewport {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-education-slider-track {
    margin-left: calc((100% - 380px) / 2) !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-education-nav {
    margin-top: 45px !important;      /* was 50 */
  }
}


@media (max-width: 767px) {

  /* Two lines on a 50px line, the same setting the publications heading
     takes — they share this class. */
  .dmc-dr-page-wrapper.dmc-dr-story #sec-education .dmc-dr-education-title {
    line-height: 50px !important;     /* was 42 */
    margin-bottom: 47px !important;   /* was 30 */
  }

  /* margin-bottom is inline on the viewport at 45 and collapses with the
     arrows' own margin, so the larger of the two wins — both have to be
     set for the gap to land. */
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-education-slider-viewport {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 47px !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-education-slider-track {
    gap: 17px !important;             /* was 30 */
    margin-left: calc((100% - min(281px, 75vw)) / 2) !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-education-slide {
    flex: 0 0 min(281px, 75vw) !important;
    width: min(281px, 75vw) !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-education-nav {
    margin-top: 0 !important;         /* the viewport above carries the 47 */
  }
}
