/* The Tutor Hub – Showcase widget */

.tth-showcase{
  --navy:#16337f;--navy-dark:#0c1f55;--gold:#f6b200;--gold-dark:#d99700;--text:#4b5675;
  font-family:'Poppins',sans-serif;color:var(--text);box-sizing:border-box;
  background:#fff;
}
.tth-showcase *{box-sizing:border-box}

/* ---------- CTA BAND ---------- */
.tth-showcase .tth-cta{display:grid;grid-template-columns:repeat(3,1fr)}
.tth-showcase .tth-cta-box{
  position:relative;overflow:hidden;text-align:center;color:#fff;
  padding:64px 7% 56px;
}
.tth-showcase .tth-cta-box.left{background:linear-gradient(135deg,var(--navy) 0%,#1f4aae 100%)}
.tth-showcase .tth-cta-box.third{background:linear-gradient(135deg,#1f4aae 0%,var(--navy) 100%)}
.tth-showcase .tth-cta-box.right{background:linear-gradient(135deg,var(--navy-dark) 0%,var(--navy) 100%)}
.tth-showcase .tth-cta-box::before{
  content:"";position:absolute;width:260px;height:260px;border-radius:50%;
  right:-90px;top:-90px;background:var(--gold);opacity:.16;
}
.tth-showcase .tth-cta-box.right::before{right:auto;left:-90px;top:auto;bottom:-110px}
.tth-showcase .tth-cta-box::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.12) 1.2px,transparent 1.2px);
  background-size:24px 24px;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.8),transparent 80%);
  mask-image:linear-gradient(180deg,rgba(0,0,0,.8),transparent 80%);
}
.tth-showcase .tth-cta-box > *{position:relative;z-index:1}
.tth-showcase .tth-cta-box h2{
  font-family:inherit;font-size:clamp(22px,2.4vw,30px);font-weight:700;line-height:1.25;
  color:#fff;margin:0 0 14px;
}
.tth-showcase .tth-cta-box p{
  max-width:430px;margin:0 auto 30px;font-size:16px;line-height:1.7;color:rgba(255,255,255,.88);
}
.tth-showcase .tth-cta-btn{
  display:inline-flex;align-items:center;gap:10px;height:54px;padding:0 34px;border-radius:50px;
  font-size:16px;font-weight:600;text-decoration:none;transition:.25s;
}
.tth-showcase .tth-cta-btn span{transition:transform .25s}
.tth-showcase .tth-cta-btn:hover span{transform:translateX(5px)}
.tth-showcase .tth-cta-btn.gold{background:var(--gold);color:var(--navy-dark);box-shadow:0 12px 26px rgba(246,178,0,.4)}
.tth-showcase .tth-cta-btn.gold:hover{background:#ffc41f;transform:translateY(-3px)}
.tth-showcase .tth-cta-btn.light{background:#fff;color:var(--navy);box-shadow:0 12px 26px rgba(0,0,0,.22)}
.tth-showcase .tth-cta-btn.light:hover{transform:translateY(-3px)}

/* ---------- TEAM ---------- */
.tth-showcase .tth-team{
  padding:60px 20px 50px;
  background:linear-gradient(180deg,#f2f6ff 0%,#fff 100%);
}
.tth-showcase .tth-team-head{text-align:center;margin-bottom:34px}
.tth-showcase .tth-team-head h2{
  font-family:inherit;font-size:clamp(26px,3.4vw,38px);font-weight:800;color:var(--navy-dark);margin:0 0 8px;
}
.tth-showcase .tth-team-head h2 span{color:var(--navy);position:relative;display:inline-block;z-index:1}
.tth-showcase .tth-team-head h2 span::after{
  content:"";position:absolute;left:-3px;right:-3px;bottom:3px;height:12px;background:var(--gold);opacity:.55;border-radius:5px;z-index:-1;
}
.tth-showcase .tth-team-head p{font-size:15px;margin:0}

.tth-showcase .tth-carousel{position:relative;max-width:1240px;margin:0 auto}
.tth-showcase .tth-track{
  display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding:10px 6px 24px;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.tth-showcase .tth-track::-webkit-scrollbar{display:none}
.tth-showcase .tth-nav{
  position:absolute;top:44%;z-index:5;width:46px;height:46px;border-radius:50%;
  border:none;background:#fff;color:var(--navy);font-size:28px;line-height:1;cursor:pointer;
  box-shadow:0 8px 22px rgba(12,31,85,.22);transition:.25s;display:flex;align-items:center;justify-content:center;padding:0 0 4px;
}
.tth-showcase .tth-nav:hover{background:var(--gold);color:var(--navy-dark)}
.tth-showcase .tth-nav.prev{left:-12px}
.tth-showcase .tth-nav.next{right:-12px}

.tth-showcase .tth-card{
  flex:0 0 285px;scroll-snap-align:start;background:#fff;border-radius:20px;
  padding:20px;border:1px solid #e6ecf9;position:relative;
  box-shadow:0 10px 30px rgba(22,51,127,.09);
  display:flex;flex-direction:column;gap:12px;transition:.3s;
}
.tth-showcase .tth-card::before{
  content:"";position:absolute;left:20px;right:20px;top:-1px;height:4px;border-radius:0 0 6px 6px;
  background:linear-gradient(90deg,var(--navy),var(--gold));opacity:0;transition:.3s;
}
.tth-showcase .tth-card:hover{transform:translateY(-6px);box-shadow:0 20px 44px rgba(22,51,127,.18)}
.tth-showcase .tth-card:hover::before{opacity:1}

.tth-showcase .tth-card-top{display:flex;gap:14px;align-items:flex-start}
.tth-showcase .tth-ph{position:relative;flex-shrink:0}
.tth-showcase .tth-ph img,.tth-showcase .tth-ph .tth-initials{
  width:78px;height:86px;border-radius:14px;object-fit:cover;display:block;
}
.tth-showcase .tth-initials{
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,var(--navy),#2b5bd6);color:#fff;font-weight:700;font-size:26px;letter-spacing:1px;
}
.tth-showcase .tth-dot{
  position:absolute;right:-5px;top:-5px;width:16px;height:16px;border-radius:50%;
  background:#22c55e;border:3px solid #fff;box-shadow:0 0 0 0 rgba(34,197,94,.6);animation:tthPulse 2s infinite;
}
@keyframes tthPulse{70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}

.tth-showcase .tth-info h3{
  font-family:inherit;font-size:16.5px;font-weight:700;color:var(--navy-dark);margin:0 0 4px;line-height:1.3;
}
.tth-showcase .tth-info h3 em{font-style:normal;font-size:10px;background:var(--navy);color:#fff;border-radius:50%;padding:2px 4px;vertical-align:middle}
.tth-showcase .tth-rate{font-size:12px;color:var(--text)}
.tth-showcase .tth-rate b{color:var(--navy-dark)}
.tth-showcase .tth-rate span{color:var(--gold);letter-spacing:1px}
.tth-showcase .tth-exp{font-size:12.5px;margin-top:4px;color:var(--text)}

.tth-showcase .tth-subjects{
  font-size:13px;line-height:1.5;color:var(--navy);font-weight:500;
  padding-bottom:10px;border-bottom:1px dashed #dbe3f6;min-height:44px;
}
.tth-showcase .tth-subjects b{color:var(--gold-dark);margin-left:4px}
.tth-showcase .tth-fee small{font-size:12px;color:var(--text)}
.tth-showcase .tth-fee strong{font-size:22px;font-weight:800;color:var(--navy);margin:0 2px}
.tth-showcase .tth-pill{
  font-size:12.5px;background:#f3f6fd;border:1px solid #e3e9f7;color:var(--navy-dark);
  border-radius:10px;padding:8px 12px;line-height:1.35;
}
.tth-showcase .tth-card-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto;padding-top:4px}
.tth-showcase .tth-card-btns a{
  text-align:center;text-decoration:none;font-size:13px;font-weight:600;padding:10px 4px;border-radius:10px;
  border:1.5px solid var(--navy);transition:.25s;
}
.tth-showcase .tth-card-btns .demo{color:var(--navy);background:#fff}
.tth-showcase .tth-card-btns .demo:hover{background:var(--gold);border-color:var(--gold);color:var(--navy-dark)}
.tth-showcase .tth-card-btns .prof{background:var(--navy);color:#fff}
.tth-showcase .tth-card-btns .prof:hover{background:var(--navy-dark)}

/* ---------- RECENTLY JOINED ---------- */
.tth-showcase .tth-recent{max-width:1240px;margin:0 auto;padding:10px 20px 50px}
.tth-showcase .tth-recent h4{
  font-family:inherit;font-size:16px;font-weight:600;color:var(--navy-dark);margin:0 0 16px;
}
.tth-showcase .tth-recent h4 a{color:var(--gold-dark);font-weight:500;margin-left:6px;text-decoration:none;border-bottom:1.5px solid currentColor}
.tth-showcase .tth-recent h4 a:hover{color:var(--navy)}
.tth-showcase .tth-marquee{overflow:hidden;border-radius:14px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.tth-showcase .tth-marquee-inner{display:flex;gap:12px;width:max-content;animation:tthMarquee 38s linear infinite}
.tth-showcase .tth-marquee:hover .tth-marquee-inner{animation-play-state:paused}
@keyframes tthMarquee{to{transform:translateX(calc(-50% - 6px))}}
.tth-showcase .tth-mini{flex:0 0 auto;width:74px;height:74px;border-radius:14px;overflow:hidden;border:3px solid #fff;box-shadow:0 6px 16px rgba(22,51,127,.18)}
.tth-showcase .tth-mini img,.tth-showcase .tth-mini .tth-initials{width:100%;height:100%;object-fit:cover;display:flex;font-size:20px}

@media (prefers-reduced-motion:reduce){
  .tth-showcase .tth-marquee-inner,.tth-showcase .tth-dot{animation:none}
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:1024px){
  .tth-showcase .tth-cta{grid-template-columns:1fr}
}
@media(max-width:767px){
  .tth-showcase .tth-cta{grid-template-columns:1fr}
  .tth-showcase .tth-cta-box{padding:48px 24px 42px}
  .tth-showcase .tth-card{flex-basis:80%}
  .tth-showcase .tth-nav{display:none}
  .tth-showcase .tth-mini{width:60px;height:60px}
}
