.home-carousel-pause[hidden] { display: none; }

@media (max-width: 760px) {
  #teachers .teachers-showcase.is-mobile-carousel {
    padding: 12px 0 62px;
    border-radius: 0;
    direction: ltr;
  }
  .is-mobile-carousel .teachers {
    height: var(--carousel-height, 330px);
    min-height: 0;
    width: 100%;
  }
  #teachers .is-mobile-carousel .teacher {
    box-sizing: border-box;
    top: 0;
    left: 50%;
    width: calc(50% - 8px);
    min-height: 0;
    height: var(--carousel-card-height, auto);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 8px;
    border-radius: 14px;
    opacity: var(--carousel-opacity) !important;
    transform: translateX(calc(-50% + var(--carousel-x))) !important;
    transition: transform 1600ms cubic-bezier(.4, 0, .2, 1), opacity 1600ms ease;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgb(9 34 63 / 10%);
  }
  #teachers .is-mobile-carousel .teacher[inert] { pointer-events: none; }
  [dir="rtl"] #teachers .is-mobile-carousel .teacher { direction: rtl; }
  .is-mobile-carousel .teacher__lang { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 5px; font-size: 11px; }
  .is-mobile-carousel .teacher__media { flex: none; height: clamp(145px, 45vw, 215px); aspect-ratio: auto; border-radius: 9px; }
  .is-mobile-carousel .teacher__media::after { inset: auto 4px 4px; height: 48px; border-radius: 6px; }
  .is-mobile-carousel .teacher__name { left: 6px; right: 6px; bottom: 9px; font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
  .is-mobile-carousel .teacher__name small { margin-top: 2px; font-size: 9px; }
  .is-mobile-carousel .teacher__facts { flex: 1; margin: 7px 0; font-size: 11px; line-height: 1.3; }
  .is-mobile-carousel .teacher__facts li { margin: 3px 0; }
  .is-mobile-carousel .teacher__bottom { flex: none; flex-wrap: wrap; gap: 4px; margin-top: auto; font-size: 10px; }
  .is-mobile-carousel .teacher__lang .teacher__flags { display: inline-flex; flex: none; margin: 0; gap: 3px; }
  .is-mobile-carousel .teacher__flags .flag { width: 16px; height: 16px; }
  .is-mobile-carousel .book-btn { display: inline-flex; width: 100%; min-height: 32px; padding: 4px; font-size: 11px; text-align: center; }
  #teachers .is-mobile-carousel .teacher--all { min-height: 220px; gap: 16px; }
  #teachers .is-mobile-carousel .teacher--all h3 { font-size: 17px; }
  #teachers .is-mobile-carousel .teacher--all__arrow { width: 40px; height: 40px; font-size: 24px; }
  #teachers .is-mobile-carousel > .nav-circle {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    position: absolute;
    top: auto;
    bottom: 6px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 2px solid #123b60;
    background: #fff;
    color: #123b60;
    border-radius: 50%;
    transform: none;
    box-shadow: 0 3px 8px rgb(9 34 63 / 12%);
    cursor: pointer;
  }
  #teachers .is-mobile-carousel > .nav-circle:first-child { left: calc(50% - 76px); right: auto; }
  #teachers .is-mobile-carousel > .nav-circle:last-child { left: calc(50% + 32px); right: auto; }
  #teachers .is-mobile-carousel > .home-carousel-pause { left: calc(50% - 22px); right: auto; }
  #teachers .is-mobile-carousel > .nav-circle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  #teachers .is-mobile-carousel > .nav-circle:focus-visible { outline: 3px solid #ff742f; outline-offset: 3px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  #teachers .is-mobile-carousel .teacher { transition: none; }
}
