/* ScholarVault — motion components.
   Testimonial marquee (scrollxui pattern) and FAQ roller (dhileep pattern),
   rebuilt in plain CSS so they run on a static site with no framework. */

/* ---------- marquee base ---------- */
.marquee{
  position:relative;
  overflow:hidden;
  width:100%;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.marquee-track{
  display:flex;
  gap:18px;
  width:max-content;
  animation:marquee-left var(--speed,46s) linear infinite;
  will-change:transform;
}
.marquee-track.reverse{animation-name:marquee-right}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track{animation-play-state:paused}
@keyframes marquee-left{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes marquee-right{from{transform:translateX(-50%)}to{transform:translateX(0)}}
@media (prefers-reduced-motion:reduce){
  .marquee-track{animation:none}
  .marquee{overflow-x:auto}
}

/* ---------- testimonial card ---------- */
.tcard{
  flex:0 0 auto;
  width:340px;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:24px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.tcard-mark{
  font-size:34px;line-height:1;color:var(--gold);opacity:.55;
  font-family:Georgia,serif;
}
.tcard p{
  margin:0;
  font-size:14.5px;
  line-height:1.62;
  color:var(--ink);
}
.tcard footer{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid var(--line-soft);
  display:flex;
  align-items:center;
  gap:11px;
}
.tcard-av{
  width:34px;height:34px;flex:none;border-radius:50%;
  display:grid;place-items:center;
  background:var(--gold-soft);color:var(--gold-deep);
  font-size:12px;font-weight:700;letter-spacing:.02em;
}
.tcard footer b{display:block;font-size:13px;font-weight:650;color:var(--ink)}
.tcard footer span{display:block;font-size:11.5px;color:var(--muted);margin-top:1px}

/* ---------- logo marquee ---------- */
.logo-marquee .marquee-track{gap:14px;align-items:stretch}
.logo-tile{
  flex:0 0 auto;
  width:190px;height:96px;
  display:grid;place-items:center;
  padding:16px 20px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
}
.logo-tile img{
  max-width:100%;
  max-height:46px;
  width:auto;height:auto;
  object-fit:contain;
  filter:grayscale(1);
  opacity:.72;
  transition:filter .25s,opacity .25s;
}
.logo-tile:hover img{filter:none;opacity:1}

/* ---------- FAQ roller ---------- */
.faq-roller{display:flex;flex-direction:column;gap:16px}
.faq-roller .marquee-track{gap:16px;align-items:stretch}
.fcard{
  flex:0 0 auto;
  width:380px;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:22px 24px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.fcard h3{
  margin:0;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.01em;
  color:var(--ink);
}
.fcard p{
  margin:0;
  font-size:13.5px;
  line-height:1.6;
  color:var(--muted);
}

@media (max-width:760px){
  .tcard{width:280px;padding:20px}
  .fcard{width:300px;padding:18px 20px}
  .logo-tile{width:150px;height:82px;padding:12px 16px}
  .logo-tile img{max-height:38px}
}

/* logos are dark artwork: give them a light plate in dark mode */
html[data-theme="dark"] .logo-tile{background:#f4f1e8;border-color:#f4f1e8}
html[data-theme="dark"] .logo-tile img{filter:none;opacity:.92}
html[data-theme="dark"] .logo-tile:hover img{opacity:1}

/* ---------- spacing for the roller sections ---------- */
.faq-home{max-width:1280px;margin:0 auto;padding:88px 28px 26px}
.faq-roller{padding-bottom:88px}
@media (max-width:760px){
  .faq-home{padding:56px 20px 20px}
  .faq-roller{padding-bottom:56px}
}
