/* css/video-stories.css - the video-testimonial row (owner, 29 Sep): tt_video_stories()
   in inc/stories-ui.php, on /tutor-area/home and the homepage. Cards scroll sideways
   with scroll-snap; arrows, dots and the popup player are js/tt-vstories.js. */
.tt-vs{ min-width:0; font-family:var(--font-body); }
.tt-vs__head{ margin:0 0 var(--sp-4); text-align:center; }
.tt-vs__title{ margin:0; font:800 26px/1.25 var(--font-display); color:var(--navy-900); }
/* the homepage's legacy h2 rule draws a 100px rule in ::before */
.tt-vs h2::before,.tt-vs h2::after,.tt-vs h3::before,.tt-vs h3::after{ content:none; }
.tt-vs__lede{ margin:var(--sp-2) auto 0; max-width:620px; font-size:16px; line-height:1.5; color:var(--ink-700); }
.tt-vs__row{ position:relative; }
.tt-vs__track{ list-style:none; margin:0; padding:4px 4px var(--sp-3); display:flex; gap:var(--sp-4);
  overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:4px;   /* snap to the card, not past the padding */
  overscroll-behavior-x:contain; scrollbar-width:none; }
.tt-vs__track::-webkit-scrollbar{ display:none; }
.tt-vs__card,.tt-vs__cta{ flex:0 0 212px; scroll-snap-align:start; display:flex; flex-direction:column; margin:0;
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:0 2px 12px rgba(11,37,69,.07); overflow:hidden; }

/* poster: square, the face sits in the top third of these phone videos */
.tt-vs__thumb{ position:relative; display:block; margin:var(--sp-2) var(--sp-2) 0; aspect-ratio:1/1; overflow:hidden;
  border-radius:var(--r); background:var(--navy-900); }
.tt-vs__thumb img{ display:block; width:100%; height:100%; object-fit:cover; object-position:50% 18%; transition:transform var(--t) var(--ease); }
.tt-vs__card--wide .tt-vs__thumb img{ object-position:62% 30%; }
.tt-vs__thumb:hover img{ transform:scale(1.03); }
.tt-vs__play{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center;
  width:48px; height:48px; border-radius:50%; background:var(--blue-600); color:var(--white); box-shadow:0 4px 14px rgba(0,0,0,.3); }
.tt-vs__play .tt-icon{ margin-left:3px; fill:currentColor; }
.tt-vs__thumb:hover .tt-vs__play{ background:var(--blue-700); }
.tt-vs__len{ position:absolute; right:8px; bottom:8px; padding:2px 7px; border-radius:6px; background:rgba(11,20,35,.78);
  font:600 12px/1.5 var(--font-body); color:var(--white); }

.tt-vs__body{ display:flex; flex-direction:column; flex:1; padding:var(--sp-3) var(--sp-3) var(--sp-3); text-align:left; }
.tt-vs__name{ margin:0; font:700 16px/1.3 var(--font-display); color:var(--navy-900); }
.tt-vs__subject{ margin:2px 0 0; font-size:13px; line-height:1.4; color:var(--ink-500); }
.tt-vs__ok{ display:flex; align-items:center; gap:5px; margin:6px 0 0; font-size:13px; font-weight:600; color:var(--green-700); }
.tt-vs__ok .tt-icon{ flex:none; }
.tt-vs__quote{ flex:1; margin:var(--sp-2) 0 0; padding:0; border:0; font-size:13px; line-height:1.55; color:var(--ink-700); }
.tt-vs__stars{ display:flex; align-items:center; gap:2px; margin:var(--sp-3) 0 0; }
.tt-vs__star{ display:flex; color:#D5DCE6; }
.tt-vs__star.is-on{ color:#F5A524; }
.tt-vs__star .tt-icon{ fill:currentColor; stroke:currentColor; }
.tt-vs__score{ margin-left:6px; font-size:13px; font-weight:700; color:var(--ink-700); }

/* the closing card */
.tt-vs__cta{ align-items:center; justify-content:center; padding:var(--sp-5) var(--sp-4); text-align:center;
  background:linear-gradient(160deg, #EAF7F0 0%, #E6F0FC 100%); border-color:#CFE6DA; }
.tt-vs__cta-icon{ display:grid; place-items:center; width:60px; height:60px; border:2px solid var(--blue-600); border-radius:14px; color:var(--blue-600); }
.tt-vs__cta-icon .tt-icon{ margin-left:3px; }
.tt-vs__cta-title{ margin:var(--sp-4) 0 0; font:800 18px/1.3 var(--font-display); color:var(--navy-900); }
.tt-vs__cta-text{ margin:var(--sp-2) 0 var(--sp-4); font-size:14px; line-height:1.5; color:var(--ink-700); }
.tt-vs__cta-btn{ gap:var(--sp-2); padding-left:var(--sp-4); padding-right:var(--sp-4); white-space:nowrap; }

/* arrows sit over the row's ends; dots under it */
.tt-vs__arrow{ position:absolute; top:calc(50% - 30px); z-index:2; display:grid; place-items:center; width:40px; height:40px; padding:0;
  border:1px solid var(--line); border-radius:50%; background:var(--white); color:var(--navy-900); box-shadow:0 2px 10px rgba(11,37,69,.15); cursor:pointer; }
.tt-vs__arrow--prev{ left:-12px; }
.tt-vs__arrow--next{ right:-12px; }
.tt-vs__arrow:hover{ background:var(--blue-50); color:var(--blue-700); }
.tt-vs__arrow:disabled{ opacity:0; pointer-events:none; }
.tt-vs__arrow[hidden],.tt-vs__dots[hidden]{ display:none; }
.tt-vs__dots{ display:flex; justify-content:center; gap:2px; margin-top:var(--sp-2); }
.tt-vs__dot{ width:22px; height:22px; padding:0; border:0; background:none; cursor:pointer; display:grid; place-items:center; }
.tt-vs__dot::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--line-control); }
.tt-vs__dot.is-current::before{ width:20px; border-radius:var(--r-pill); background:var(--blue-600); }
.tt-vs__thumb:focus-visible,.tt-vs__arrow:focus-visible,.tt-vs__dot:focus-visible{ outline:3px solid var(--blue-600); outline-offset:2px; }

/* A slider at every width (owner, 29 Sep): arrows and dots from js/tt-vstories.js. */
/* from tablet up the arrows sit in a gutter beside the cards, not over them */
@media (min-width:601px){
  .tt-vs__row{ padding:0 30px; }
  .tt-vs__arrow--prev{ left:-6px; }
  .tt-vs__arrow--next{ right:-6px; }
}

/* the popup player */
.tt-vs-dlg{ width:min(92vw, 420px); max-height:92vh; padding:0; border:0; border-radius:var(--r-lg); background:#000; overflow:visible; }
.tt-vs-dlg--wide{ width:min(92vw, 860px); }
.tt-vs-dlg::backdrop{ background:rgba(8,15,30,.78); }
.tt-vs-dlg video{ display:block; width:100%; max-height:92vh; border-radius:inherit; background:#000; }
.tt-vs-dlg__close{ position:absolute; top:-14px; right:-14px; z-index:1; display:grid; place-items:center; width:36px; height:36px; padding:0;
  border:0; border-radius:50%; background:var(--white); color:var(--navy-900); box-shadow:0 2px 10px rgba(0,0,0,.3); cursor:pointer; }
.tt-vs-dlg__close svg{ width:20px; height:20px; }
.tt-vs-dlg__close:focus-visible{ outline:3px solid var(--blue-600); outline-offset:2px; }

@media (max-width:600px){
  .tt-vs__title{ font-size:22px; }
  .tt-vs__lede{ font-size:15px; }
  .tt-vs__card,.tt-vs__cta{ flex-basis:68%; }
  .tt-vs__arrow{ display:none; }
  .tt-vs-dlg__close{ top:8px; right:8px; }
}
@media (prefers-reduced-motion:no-preference){
  .tt-vs__track{ scroll-behavior:smooth; }
  .tt-vs__dot::before{ transition:width var(--t) var(--ease), background var(--t) var(--ease); }
}
@media (prefers-reduced-motion:reduce){
  .tt-vs__thumb img{ transition:none; }
  .tt-vs__thumb:hover img{ transform:none; }
}
