/* The Tutor Hub – Hero widget */

.th-hero{
  --navy:#16337f;
  --navy-dark:#0c1f55;
  --gold:#f6b200;
  --gold-dark:#d99700;
  --text:#4b5675;
  --white:#ffffff;
  font-family:'Poppins',sans-serif;
  position:relative;
  overflow:hidden;
  padding:70px 20px 90px;
  background:
    radial-gradient(circle at 12% 18%, rgba(246,178,0,.16), transparent 42%),
    radial-gradient(circle at 92% 80%, rgba(22,51,127,.14), transparent 45%),
    linear-gradient(180deg,#f4f8ff 0%, #ffffff 100%);
  box-sizing:border-box;
}
.th-hero *{box-sizing:border-box;margin:0;padding:0}

.th-hero::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(22,51,127,.10) 1.4px, transparent 1.4px);
  background-size:26px 26px;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.9),transparent 70%);
  mask-image:linear-gradient(180deg,rgba(0,0,0,.9),transparent 70%);
  pointer-events:none;
}
.th-hero .th-shape{position:absolute;border-radius:50%;pointer-events:none}
.th-hero .th-shape.s1{width:320px;height:320px;right:-110px;top:-110px;background:var(--gold);opacity:.18}
.th-hero .th-shape.s2{width:200px;height:200px;left:-70px;bottom:-70px;border:30px solid var(--navy);opacity:.08}

.th-hero .th-wrap{
  position:relative;z-index:2;
  max-width:1200px;margin:0 auto;
  display:grid;grid-template-columns:1.15fr .85fr;gap:50px;align-items:center;
}

/* ---------- LEFT ---------- */
.th-hero .th-badge{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--white);border:1px solid #e3e9f7;
  padding:7px 16px;border-radius:50px;
  font-size:13px;font-weight:500;color:var(--navy);
  box-shadow:0 6px 20px rgba(22,51,127,.08);
  margin-bottom:22px;
}
.th-hero .th-live{
  display:inline-flex;align-items:center;gap:6px;
  background:#e8f8ee;color:#16a34a;font-weight:700;font-size:11px;
  padding:3px 10px;border-radius:50px;letter-spacing:.5px;
}
.th-hero .th-live i{
  width:8px;height:8px;border-radius:50%;background:#16a34a;display:block;
  animation:thPulse 1.6s infinite;
}
@keyframes thPulse{
  0%{box-shadow:0 0 0 0 rgba(22,163,74,.6)}
  70%{box-shadow:0 0 0 9px rgba(22,163,74,0)}
  100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}
}

.th-hero h1{
  font-family:'Poppins',sans-serif;
  font-size:clamp(34px,5.2vw,58px);
  line-height:1.12;font-weight:800;color:var(--navy-dark);
  letter-spacing:-1px;margin-bottom:20px;
}
.th-hero h1 .hl{color:var(--navy);position:relative;display:inline-block;z-index:1}
.th-hero h1 .hl::after{
  content:"";position:absolute;left:-4px;right:-4px;bottom:6px;height:16px;
  background:var(--gold);opacity:.55;border-radius:6px;z-index:-1;
}
.th-hero h1 .city{color:var(--gold-dark)}

.th-hero .th-sub{
  font-size:17px;line-height:1.7;color:var(--text);max-width:560px;margin-bottom:30px;
}
.th-hero .th-sub b,.th-hero .th-sub strong{color:var(--navy);font-weight:600}

/* ---------- SEARCH CARD ---------- */
.th-hero .th-search{
  background:var(--white);border-radius:22px;padding:26px;
  box-shadow:0 24px 60px rgba(22,51,127,.16);
  border:1px solid #e8eefb;position:relative;
}
.th-hero .th-search::before{
  content:"";position:absolute;left:26px;right:26px;top:-1px;height:4px;
  background:linear-gradient(90deg,var(--navy),var(--gold));
  border-radius:0 0 6px 6px;
}
.th-hero .th-search h3{
  font-family:'Poppins',sans-serif;
  font-size:16px;font-weight:600;color:var(--navy-dark);margin-bottom:16px;line-height:1.4;
}
.th-hero .th-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.th-hero .th-field{position:relative}
.th-hero .th-field select{
  width:100%;height:50px;border:1.5px solid #dfe6f5;border-radius:12px;
  background:#f8faff;padding:0 40px 0 16px;
  font-family:inherit;font-size:14px;color:var(--navy-dark);
  appearance:none;-webkit-appearance:none;cursor:pointer;transition:.25s;
}
.th-hero .th-field select:focus{outline:none;border-color:var(--gold);background:#fff;box-shadow:0 0 0 4px rgba(246,178,0,.2)}
.th-hero .th-field::after{
  content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;
  border-right:2px solid var(--navy);border-bottom:2px solid var(--navy);
  transform:translateY(-70%) rotate(45deg);pointer-events:none;
}
.th-hero .th-actions{display:flex;align-items:center;gap:14px;margin-top:20px;flex-wrap:wrap}
.th-hero .th-btn{
  font-family:inherit;border:none;cursor:pointer;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:52px;padding:0 30px;border-radius:12px;
  font-size:15px;font-weight:600;transition:.25s;
}
.th-hero .th-btn.primary{
  background:linear-gradient(135deg,var(--navy),#2149b3);color:#fff;
  box-shadow:0 10px 24px rgba(22,51,127,.35);
}
.th-hero .th-btn.primary:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(22,51,127,.45)}
.th-hero .th-or{font-size:13px;color:#8a94b0;font-weight:500}
.th-hero .th-btn.gold{
  background:var(--gold);color:var(--navy-dark);
  box-shadow:0 10px 24px rgba(246,178,0,.4);
}
.th-hero .th-btn.gold:hover{background:var(--gold-dark);transform:translateY(-3px)}

/* ---------- STATS ---------- */
.th-hero .th-stats{display:flex;gap:34px;margin-top:34px;flex-wrap:wrap}
.th-hero .th-stat strong{display:block;font-size:26px;font-weight:800;color:var(--navy)}
.th-hero .th-stat strong span{color:var(--gold-dark)}
.th-hero .th-stat small{font-size:13px;color:var(--text)}
.th-hero .th-stat + .th-stat{padding-left:34px;border-left:2px solid #e3e9f7}

/* ---------- RIGHT VISUAL ---------- */
.th-hero .th-visual{position:relative;display:flex;justify-content:center}
.th-hero .th-blob{
  position:absolute;width:92%;aspect-ratio:1;top:4%;left:4%;
  background:linear-gradient(145deg,var(--navy),#2b5bd6);
  border-radius:42% 58% 55% 45% / 48% 42% 58% 52%;
  animation:thMorph 9s ease-in-out infinite;
}
.th-hero .th-blob::after{
  content:"";position:absolute;inset:-18px;border:3px dashed var(--gold);
  border-radius:inherit;opacity:.8;animation:thSpin 28s linear infinite;
}
@keyframes thMorph{
  0%,100%{border-radius:42% 58% 55% 45% / 48% 42% 58% 52%}
  50%{border-radius:58% 42% 45% 55% / 55% 58% 42% 45%}
}
@keyframes thSpin{to{transform:rotate(360deg)}}

.th-hero .th-photo{
  position:relative;z-index:2;width:88%;aspect-ratio:4/4.6;
  border-radius:28px;overflow:hidden;border:6px solid #fff;
  box-shadow:0 30px 60px rgba(12,31,85,.3);
  background:linear-gradient(160deg,#dbe6ff,#fff3cf);
}
.th-hero .th-photo img{width:100%;height:100%;object-fit:cover;display:block;max-width:none}

.th-hero .th-float{
  position:absolute;z-index:3;background:#fff;border-radius:16px;
  padding:12px 16px;display:flex;align-items:center;gap:12px;
  box-shadow:0 16px 36px rgba(12,31,85,.2);
  animation:thFloat 5s ease-in-out infinite;
}
.th-hero .th-float .ic{
  width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  font-size:20px;flex-shrink:0;
}
.th-hero .th-float b{display:block;font-size:14px;color:var(--navy-dark);font-weight:700;line-height:1.2}
.th-hero .th-float small{font-size:11.5px;color:var(--text)}
.th-hero .th-float.f1{left:-22px;top:12%}
.th-hero .th-float.f1 .ic{background:#fff3cf}
.th-hero .th-float.f2{right:-18px;bottom:26%;animation-delay:1.2s}
.th-hero .th-float.f2 .ic{background:#e6eeff}
.th-hero .th-float.f3{left:4%;bottom:-6px;animation-delay:2.2s}
.th-hero .th-float.f3 .ic{background:#e8f8ee}
@keyframes thFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}

/* ---------- RESPONSIVE ---------- */
@media(max-width:991px){
  .th-hero .th-wrap{grid-template-columns:1fr;gap:60px}
  .th-hero .th-visual{max-width:460px;margin:0 auto}
}
@media(max-width:600px){
  .th-hero{padding:50px 16px 70px}
  .th-hero .th-grid{grid-template-columns:1fr}
  .th-hero .th-search{padding:20px}
  .th-hero .th-actions{flex-direction:column;align-items:stretch}
  .th-hero .th-or{text-align:center}
  .th-hero .th-stat + .th-stat{padding-left:0;border-left:none}
  .th-hero .th-stats{gap:22px}
  .th-hero .th-float.f1{left:-6px}
  .th-hero .th-float.f2{right:-6px}
}
