/* The Tutor Hub – sitewide header & footer */

.tth-topbar,.tth-hdr,.tth-prefooter,.tth-ftr,.tth-wa-float{
  --navy:#16337f;--navy-dark:#0c1f55;--gold:#f6b200;--gold-dark:#d99700;--text:#4b5675;
  font-family:'Poppins',sans-serif;box-sizing:border-box;line-height:1.5;
}
.tth-topbar *,.tth-hdr *,.tth-prefooter *,.tth-ftr *,.tth-wa-float *{box-sizing:border-box}
.tth-topbar a,.tth-hdr a,.tth-prefooter a,.tth-ftr a,.tth-wa-float{text-decoration:none}
.tth-container{max-width:1240px;margin:0 auto;padding:0 20px;width:100%}

/* ---------- buttons ---------- */
.tth-btn{
  display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 22px;border-radius:50px;
  font-size:14px;font-weight:600;transition:.25s;white-space:nowrap;border:1.5px solid transparent;
}
.tth-btn.gold{background:var(--gold);color:var(--navy-dark);box-shadow:0 8px 20px rgba(246,178,0,.35)}
.tth-btn.gold:hover{background:#ffc41f;transform:translateY(-2px)}
.tth-btn.ghost{background:transparent;color:var(--navy);border-color:var(--navy)}
.tth-btn.ghost:hover{background:var(--navy);color:#fff}
.tth-btn.light{background:#fff;color:var(--navy);box-shadow:0 8px 20px rgba(0,0,0,.18)}
.tth-btn.light:hover{transform:translateY(-2px)}

/* ---------- top bar ---------- */
.tth-topbar{background:var(--navy-dark);color:rgba(255,255,255,.85);font-size:12.5px}
.tth-topbar .tth-container{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:38px;flex-wrap:wrap}
.tth-topbar a{color:#fff}
.tth-topbar a:hover{color:var(--gold)}
.tth-topbar-l,.tth-topbar-r{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.tth-topbar-wa{background:rgba(255,255,255,.12);padding:3px 12px;border-radius:50px}

/* ---------- header ---------- */
.tth-hdr{
  position:sticky;top:0;z-index:9990;background:#fff;border-bottom:1px solid #e8eefb;transition:box-shadow .25s;
}
.admin-bar .tth-hdr{top:32px}
@media(max-width:782px){.admin-bar .tth-hdr{top:46px}}
.tth-hdr.is-stuck{box-shadow:0 10px 30px rgba(22,51,127,.13)}
.tth-hdr-in{display:flex;align-items:center;gap:26px;min-height:78px}

.tth-logo{display:inline-flex;align-items:center;flex-shrink:0}
.tth-logo-img{height:56px;width:auto;max-width:210px;display:block;object-fit:contain}
.tth-logo-text{font-weight:800;font-size:24px;letter-spacing:-.5px;gap:4px}
.tth-logo-text .a{color:var(--gold-dark)}
.tth-logo-text .b{color:var(--navy)}
.tth-logo-text .c{background:var(--gold);color:var(--navy-dark);padding:0 7px;border-radius:6px}

.tth-nav{display:flex;align-items:center;flex:1;justify-content:center;min-width:0}
.tth-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:2px;flex-wrap:nowrap}
.tth-menu > li{position:relative;margin:0}
.tth-menu > li > a{
  display:flex;align-items:center;gap:5px;padding:10px 13px;border-radius:10px;
  font-size:14.5px;font-weight:600;color:var(--navy-dark);transition:.2s;white-space:nowrap;
}
.tth-menu > li > a:hover,.tth-menu > li.current-menu-item > a,.tth-menu > li.current-menu-ancestor > a{color:var(--navy);background:#eef3ff}
.tth-menu > li.current-menu-item > a{box-shadow:inset 0 -3px 0 var(--gold)}
.tth-menu .menu-item-has-children > a::after{
  content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:translateY(-2px) rotate(45deg);opacity:.7;
}
.tth-menu .sub-menu{
  list-style:none;margin:0;padding:10px;position:absolute;left:0;top:100%;min-width:230px;max-height:70vh;overflow:auto;
  background:#fff;border:1px solid #e8eefb;border-radius:16px;box-shadow:0 22px 50px rgba(22,51,127,.18);
  opacity:0;visibility:hidden;transform:translateY(10px);transition:.22s;z-index:50;
}
.tth-menu .sub-menu::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.tth-menu li:hover > .sub-menu,.tth-menu li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none}
.tth-menu .sub-menu li{margin:0}
.tth-menu .sub-menu a{display:block;padding:9px 14px;border-radius:9px;font-size:14px;font-weight:500;color:var(--navy-dark)}
.tth-menu .sub-menu a:hover{background:var(--gold);color:var(--navy-dark)}
.tth-caret{display:none}

.tth-hdr-cta{display:flex;gap:10px;align-items:center;flex-shrink:0}
.tth-nav-cta{display:none}

.tth-burger{
  display:none;width:46px;height:46px;border-radius:12px;border:1.5px solid #dfe6f5;background:#fff;cursor:pointer;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;margin-left:auto;padding:0;
}
.tth-burger span{display:block;width:22px;height:2.5px;background:var(--navy);border-radius:2px;transition:.25s}
.tth-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.tth-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.tth-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
.tth-overlay{position:fixed;inset:0;background:rgba(12,31,85,.55);opacity:0;visibility:hidden;transition:.25s;z-index:9980}
.tth-overlay.is-open{opacity:1;visibility:visible}

/* ---------- pre-footer CTA ---------- */
.tth-prefooter{background:linear-gradient(135deg,var(--navy) 0%,#2149b3 100%);color:#fff;position:relative;overflow:hidden}
.tth-prefooter::before{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:var(--gold);opacity:.15;right:-100px;top:-140px}
.tth-prefooter-in{display:flex;align-items:center;justify-content:space-between;gap:28px;padding-top:44px;padding-bottom:44px;position:relative;flex-wrap:wrap}
.tth-prefooter h3{color:#fff;font-family:inherit;font-size:clamp(22px,3vw,30px);font-weight:700;margin:0 0 6px}
.tth-prefooter p{color:rgba(255,255,255,.85);margin:0;max-width:560px;font-size:15px}
.tth-prefooter-btns{display:flex;gap:12px;flex-wrap:wrap}
.tth-prefooter .tth-btn{height:52px;padding:0 30px;font-size:15px}

/* ---------- footer ---------- */
.tth-ftr{background:var(--navy-dark);color:rgba(255,255,255,.78);font-size:14.5px}
.tth-ftr-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1.3fr;gap:36px;padding-top:56px;padding-bottom:40px}
.tth-fcol h4{color:#fff;font-family:inherit;font-size:16px;font-weight:700;margin:0 0 18px;position:relative;padding-bottom:10px}
.tth-fcol h4::after{content:"";position:absolute;left:0;bottom:0;width:34px;height:3px;border-radius:3px;background:var(--gold)}
.tth-fcol.brand p{margin:16px 0 18px;line-height:1.7}
.tth-ftr .tth-logo-img{height:58px;background:#fff;padding:6px 10px;border-radius:12px}
.tth-ftr .tth-logo-text .b{color:#fff}
.tth-flist{list-style:none;margin:0;padding:0}
.tth-flist li{margin:0 0 10px;line-height:1.5}
.tth-flist a{color:rgba(255,255,255,.78);transition:.2s}
.tth-flist a:hover{color:var(--gold);padding-left:4px}
.tth-flist.plain li{display:flex;gap:8px}
.tth-flist.plain a:hover{padding-left:0}
.tth-social{display:flex;gap:10px;flex-wrap:wrap}
.tth-social a{
  width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;transition:.25s;
}
.tth-social a:hover{background:var(--gold);color:var(--navy-dark);transform:translateY(-3px)}
.tth-ftr-bottom{border-top:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.18)}
.tth-ftr-bottom-in{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:18px;padding-bottom:18px;flex-wrap:wrap;font-size:13px}
.tth-ftr-bottom .tth-flist{display:flex;gap:22px;flex-wrap:wrap}
.tth-ftr-bottom .tth-flist li{margin:0}

/* ---------- floating WhatsApp ---------- */
.tth-wa-float{
  position:fixed;right:20px;bottom:20px;z-index:9970;display:flex;align-items:center;gap:8px;background:#25d366;color:#fff;
  padding:12px 18px;border-radius:50px;box-shadow:0 12px 28px rgba(37,211,102,.45);font-weight:600;font-size:14px;transition:.25s;
}
.tth-wa-float span{font-size:20px;line-height:1}
.tth-wa-float:hover{transform:translateY(-3px);color:#fff}

/* ---------- responsive ---------- */
@media(max-width:1180px){
  .tth-hdr-cta .ghost{display:none}
  .tth-menu > li > a{padding:10px 9px;font-size:14px}
}
@media(max-width:1020px){
  .tth-hdr-in{min-height:68px}
  .tth-hdr-cta{display:none}
  .tth-burger{display:flex}
  .tth-nav{
    position:fixed;top:0;right:0;bottom:0;width:min(86vw,360px);background:#fff;z-index:9995;flex-direction:column;align-items:stretch;justify-content:flex-start;
    padding:84px 18px 24px;overflow-y:auto;transform:translateX(105%);transition:transform .3s;box-shadow:-20px 0 50px rgba(12,31,85,.25);
  }
  .tth-nav.is-open{transform:none}
  .tth-burger{position:relative;z-index:9996}
  .tth-menu{flex-direction:column;align-items:stretch;gap:2px}
  .tth-menu > li{position:relative}
  .tth-menu > li > a{padding:13px 14px;font-size:15.5px;border-radius:12px}
  .tth-menu .menu-item-has-children > a::after{display:none}
  .tth-caret{
    display:flex;position:absolute;right:6px;top:6px;width:38px;height:38px;border:none;background:#eef3ff;border-radius:10px;
    align-items:center;justify-content:center;cursor:pointer;padding:0;
  }
  .tth-caret::before{content:"";width:8px;height:8px;border-right:2px solid var(--navy);border-bottom:2px solid var(--navy);transform:translateY(-2px) rotate(45deg);transition:.2s}
  li.is-open > .tth-caret::before{transform:translateY(2px) rotate(-135deg)}
  .tth-menu .sub-menu{
    position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:none;border-left:3px solid var(--gold);border-radius:0;
    margin:2px 0 8px 14px;padding:4px 0 4px 6px;min-width:0;max-height:0;overflow:hidden;transition:max-height .3s;
  }
  .tth-menu li.is-open > .sub-menu{max-height:640px;overflow:auto}
  .tth-menu li:hover > .sub-menu{opacity:1}
  .tth-nav-cta{display:flex;flex-direction:column;gap:10px;margin-top:22px}
  .tth-nav-cta .tth-btn{height:50px}
  body.tth-nav-open{overflow:hidden}
  .tth-ftr-grid{grid-template-columns:1fr 1fr 1fr}
  .tth-fcol.brand{grid-column:1/-1}
}
@media(max-width:640px){
  .tth-topbar-r span{display:none}
  .tth-logo-img{height:46px}
  .tth-ftr-grid{grid-template-columns:1fr 1fr;gap:28px}
  .tth-fcol.contact{grid-column:1/-1}
  .tth-prefooter-btns{width:100%}
  .tth-prefooter-btns .tth-btn{flex:1}
  .tth-wa-float b{display:none}
  .tth-wa-float{padding:14px}
  .tth-ftr-bottom-in{justify-content:center;text-align:center}
}
@media (prefers-reduced-motion:reduce){.tth-nav,.tth-menu .sub-menu,.tth-btn{transition:none}}

/* ---------- generic content inside the Tutor Hub shell ---------- */
.tth-layout{margin:0;background:#fff}
.tth-main{min-height:50vh;font-family:'Poppins',sans-serif;color:#4b5675}
.tth-main *{box-sizing:border-box}
.tth-article,.tth-posts,.tth-404{max-width:860px;margin:0 auto;padding:56px 20px 70px}
.tth-posts{max-width:1240px}
.tth-article-head h1,.tth-posts-title,.tth-404 h1{font-family:inherit;font-size:clamp(28px,4vw,42px);font-weight:800;color:#0c1f55;line-height:1.2;margin:0 0 10px}
.tth-article-meta{font-size:13.5px;color:#8a94b0;margin-bottom:8px}
.tth-article-thumb img{width:100%;height:auto;border-radius:18px;margin:18px 0}
.tth-article-body{font-size:16.5px;line-height:1.8}
.tth-article-body h2,.tth-article-body h3{color:#0c1f55;font-family:inherit;margin:1.6em 0 .6em}
.tth-article-body a{color:#16337f;text-decoration:underline}
.tth-article-body img{max-width:100%;height:auto;border-radius:12px}
.tth-article-body ul,.tth-article-body ol{padding-left:1.3em}
.tth-post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:26px}
.tth-post-card{background:#fff;border:1px solid #e6ecf9;border-radius:20px;overflow:hidden;box-shadow:0 10px 30px rgba(22,51,127,.08);transition:.3s;display:flex;flex-direction:column}
.tth-post-card:hover{transform:translateY(-5px);box-shadow:0 20px 44px rgba(22,51,127,.16)}
.tth-post-thumb img{width:100%;height:210px;object-fit:cover;display:block}
.tth-post-body{padding:20px;display:flex;flex-direction:column;gap:6px;flex:1}
.tth-post-body h2{font-family:inherit;font-size:19px;line-height:1.35;margin:0}
.tth-post-body h2 a{color:#0c1f55;text-decoration:none}
.tth-post-body h2 a:hover{color:#16337f}
.tth-post-body p{margin:0;font-size:14.5px}
.tth-readmore{margin-top:auto;padding-top:8px;color:#16337f;font-weight:600;text-decoration:none}
.tth-readmore:hover{color:#d99700}
.tth-none{font-size:16px}
.tth-404{text-align:center;padding-top:90px}
.tth-404-code{font-size:96px;font-weight:800;line-height:1;color:#f6b200}
.tth-main .navigation.pagination{margin-top:36px;text-align:center}
.tth-main .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;margin:0 3px;border-radius:10px;background:#fff;border:1.5px solid #dfe6f5;color:#16337f;font-weight:600;text-decoration:none}
.tth-main .page-numbers.current,.tth-main .page-numbers:hover{background:#16337f;border-color:#16337f;color:#fff}
@media(max-width:900px){.tth-post-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.tth-post-grid{grid-template-columns:1fr}.tth-article,.tth-posts,.tth-404{padding:36px 16px 50px}}
