/* Tono 4.2.0 — differentiated motion, never repetitive colored borders.
   Cost: only transform/opacity animations; no animated filter, blur, box shadows or clip-path. */

/* Team's pre-existing corner pseudo-elements remain, now orange + blue. No extra spans. */
.tono-team .tono-team-card::after{border-color:#2795d7}
.tono-team .tono-team-card::before,.tono-team .tono-team-card::after{transition:width .24s ease,height .24s ease}
.tono-team .tono-team-card:hover::before,.tono-team .tono-team-card:hover::after{width:31px;height:31px}
.tono-team .tono-team-card>.tono-tech-scanline{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden;border-radius:inherit;opacity:0;transition:opacity .22s ease}
.tono-team .tono-team-card>.tono-tech-scanline::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.13) 50%,transparent 100%);transform:translate3d(110%,0,0)}
.tono-team .tono-team-card:hover>.tono-tech-scanline{opacity:.9}
.tono-team .tono-team-card:hover>.tono-tech-scanline::before{animation:tono-team-swipe .65s ease-out 1}
@keyframes tono-team-swipe{to{transform:translate3d(-110%,0,0)}}

/* Each ordinary widget has its own motion language, without forced colors.
   Hover only for pointer devices: no needless paint work on phones. */
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .elementor-widget :is(.azp-quick-access-card,.azp-subject-card,.tono-icon-step-card,.tono-manual-course-card){transition:transform .25s cubic-bezier(.2,.7,.25,1)}
  .elementor-widget .azp-quick-access-card:hover{transform:translate3d(0,-4px,0)}
  .elementor-widget .azp-subject-card:hover{transform:translate3d(3px,0,0)}
  .elementor-widget .tono-icon-step-card:hover{transform:translate3d(0,-3px,0)}
  .elementor-widget .tono-manual-course-card:hover{transform:scale(1.015)}
  .tono-image-text-media img{transition:transform .38s cubic-bezier(.2,.7,.2,1)}
  .tono-image-text:hover .tono-image-text-media img{transform:scale(1.018)}
  .elementor-widget .azp-ew-box .azp-rendered-icon{transition:transform .24s ease}
  .elementor-widget .azp-ew-box:hover .azp-rendered-icon{transform:rotate(-4deg) scale(1.05)}
}

/* Entry animations are distinct per card type and run once, if scrolled into view.
   Never hide the initial viewport or Elementor's own animated elements. */
@media (prefers-reduced-motion:no-preference) {
  .tono-motion-rise.tono-motion-visible{animation:tono-motion-rise .4s cubic-bezier(.2,.72,.24,1) backwards;animation-delay:var(--tono-motion-delay,0ms)}
  .tono-motion-slide.tono-motion-visible{animation:tono-motion-slide .4s cubic-bezier(.2,.72,.24,1) backwards;animation-delay:var(--tono-motion-delay,0ms)}
  .tono-motion-scale.tono-motion-visible{animation:tono-motion-scale .38s cubic-bezier(.18,.72,.26,1) backwards;animation-delay:var(--tono-motion-delay,0ms)}
}
@keyframes tono-motion-rise{from{opacity:.45;transform:translate3d(0,14px,0)}to{opacity:1;transform:none}}
@keyframes tono-motion-slide{from{opacity:.45;transform:translate3d(16px,0,0)}to{opacity:1;transform:none}}
@keyframes tono-motion-scale{from{opacity:.55;transform:scale(.975)}to{opacity:1;transform:none}}

/* RTL menu reveal remains horizontal but drops expensive animated brightness/clip effects. */
@media (min-width:1025px) and (prefers-reduced-motion:no-preference) {
  .tono-header-menu li.tono-dropdown-open>ul.sub-menu,
  .tono-header-menu li.is-submenu-open>ul.sub-menu,
  .tono-header-menu li.tono-megamenu-open>ul.sub-menu,
  .tono-header-menu li.tono-megamenu-open>.tono-megamenu-panel {animation:tono-menu-slide-42 .22s cubic-bezier(.22,.75,.24,1) both}
}
@keyframes tono-menu-slide-42{from{opacity:.7;transform:translate3d(10px,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}

/* Native front-end dialogs: brief robot-panel materialization, not perpetual animation.
   Separate active-state selectors keep hidden dialogs hidden and untouched. */
@media (prefers-reduced-motion:no-preference) {
  .tono-cart-modal.is-open>.tono-cart-modal-dialog,
  .tono-course-modal.is-open>.tono-course-modal-dialog,
  .tono-header-search-modal.is-open>.tono-header-search-panel,
  .azp-login-modal.is-open>.azp-login-modal-card,
  .tono-registration-modal.is-open>.tono-registration-dialog,
  .tono-review-modal.is-open>.tono-review-modal-dialog,
  .tono-comment-success-modal.is-open>.tono-comment-success-dialog,
  .tono-rep-modal.is-open>.tono-rep-modal-dialog,
  .tono-cert-modal:not([hidden])>.tono-cert-modal-dialog,
  .tono-avatar-modal:not([hidden])>.tono-avatar-modal-dialog {
    animation:tono-modal-robot-open .3s cubic-bezier(.2,.76,.24,1) both;
  }
}
@keyframes tono-modal-robot-open {
  0%{opacity:.3;transform:translate3d(13px,15px,0) scale(.965) skewX(-.7deg)}
  60%{opacity:1;transform:translate3d(-2px,-1px,0) scale(1.005) skewX(0)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
/* Respect the dialog visibility state. Never force display/position/overflow/z-index. */
@media(max-width:767px) and (prefers-reduced-motion:no-preference){
  .tono-cart-modal.is-open>.tono-cart-modal-dialog,
  .tono-course-modal.is-open>.tono-course-modal-dialog,
  .tono-header-search-modal.is-open>.tono-header-search-panel,
  .azp-login-modal.is-open>.azp-login-modal-card,
  .tono-registration-modal.is-open>.tono-registration-dialog,
  .tono-review-modal.is-open>.tono-review-modal-dialog,
  .tono-comment-success-modal.is-open>.tono-comment-success-dialog,
  .tono-rep-modal.is-open>.tono-rep-modal-dialog,
  .tono-cert-modal:not([hidden])>.tono-cert-modal-dialog,
  .tono-avatar-modal:not([hidden])>.tono-avatar-modal-dialog{animation-duration:.23s}
}
@media(prefers-reduced-motion:reduce){
  .tono-team .tono-team-card>.tono-tech-scanline{display:none}
  .tono-team .tono-team-card::before,.tono-team .tono-team-card::after{transition:none}
  .tono-motion-visible{animation:none!important;transform:none!important;opacity:1!important}
}
