/* Tutorshub v8.5 — global marketplace header + premium inner pages */
:root{--th-navy:#0b376d;--th-navy2:#082c59;--th-green:#08ad73;--th-green2:#10c989;--th-blue:#1769c2;--th-ink:#102a4b;--th-muted:#667a91;--th-line:#dfe9f4;--th-soft:#f5f9fd;--th-gold:#f8bd25}
html,body{overflow-x:hidden}
body{background:#f7fbff}
/* Header — loaded on EVERY page, not homepage-only */
.site-header.th84-header{position:sticky!important;top:0!important;z-index:99990!important;background:#fff!important;color:var(--th-ink)!important;box-shadow:0 8px 28px rgba(7,39,79,.10)!important;border:0!important;height:auto!important}
body.admin-bar .site-header.th84-header{top:32px!important}
.th84-header .th84-shell{width:min(1460px,94%)!important;margin:0 auto!important}
.th84-topbar{height:34px!important;background:linear-gradient(90deg,#072d61,#0b4c88)!important;color:#fff!important;font-size:12px!important}
.th84-topbar .th84-shell{height:34px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important}
.th84-topbar span{opacity:.5;margin:0 8px}.th84-toplinks{display:flex!important;gap:18px!important}.th84-toplinks a{color:#fff!important;font-weight:800!important;text-decoration:none!important}
.th84-nav{min-height:74px!important;height:74px!important;display:grid!important;grid-template-columns:220px 1fr auto!important;align-items:center!important;gap:24px!important;background:#fff!important}
.th84-brand{display:inline-flex!important;align-items:center!important;gap:9px!important;text-decoration:none!important;min-width:0!important}
.th84-mark{width:32px!important;height:32px!important;border-radius:9px!important;background:linear-gradient(145deg,#0d58b5,#08b878)!important;color:#fff!important;display:grid!important;place-items:center!important;font-weight:950!important;font-size:16px!important;box-shadow:0 6px 16px rgba(5,91,164,.16)!important}
.th84-word{font-size:22px!important;font-weight:950!important;color:#0c3f82!important;letter-spacing:-.04em!important;line-height:1!important}.th84-word span{color:#08ad73!important}
.th84-links{display:flex!important;align-items:center!important;justify-content:center!important;gap:30px!important;min-width:0!important}
.th84-links a{position:relative!important;color:#0c335f!important;font-size:14px!important;font-weight:850!important;text-decoration:none!important;white-space:nowrap!important;padding:27px 0 24px!important}
.th84-links a:hover,.th84-links a.is-active{color:var(--th-green)!important}.th84-links a.is-active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px;background:var(--th-green)}
.th84-actions{display:flex!important;align-items:center!important;gap:9px!important}.th84-outline,.th84-green{height:42px!important;padding:0 17px!important;border-radius:11px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;font-weight:850!important;text-decoration:none!important;white-space:nowrap!important}.th84-outline{border:1px solid #dbe7f3!important;color:#0b356c!important;background:#fff!important}.th84-green{background:linear-gradient(135deg,#0bb879,#08a96d)!important;color:#fff!important;box-shadow:0 8px 20px rgba(8,173,115,.18)!important}
.th84-header .th-language-switch{display:flex!important;align-items:center!important;padding:3px!important;border:1px solid #dbe7f3!important;border-radius:999px!important;background:#fff!important}.th84-header .th-lang-btn{border:0!important;background:transparent!important;color:#526b85!important;font-weight:900!important;border-radius:999px!important;padding:6px 9px!important;cursor:pointer!important}.th84-header .th-lang-btn.is-active{background:#ffbf18!important;color:#092d5d!important}
.th84-header .mobile-toggle{display:none!important;color:#0d3768!important;background:#eff7ff!important;border:1px solid #dce7f2!important;width:42px!important;height:42px!important;border-radius:10px!important;font-size:21px!important}
.th84-header .mobile-menu{display:block!important;max-height:0!important;overflow:hidden!important;background:#fff!important;transition:max-height .25s ease!important;border-top:1px solid transparent!important}.th84-header.menu-open .mobile-menu,.th84-header .mobile-menu.is-open{max-height:520px!important;border-top-color:#e7eff7!important}.th84-header .mobile-menu .container{padding:10px 0 18px!important}.th84-header .mobile-menu a{display:block!important;padding:12px 4%!important;color:#0c335f!important;font-weight:800!important;border-bottom:1px solid #edf3f8!important}
/* Inner page canvas */
main.th-app-page,.th-marketplace-page{min-height:65vh;background:linear-gradient(180deg,#f7fbff 0,#fff 420px);padding:0 0 64px}
.th-app-page>section:first-child,.th-marketplace-page>section:first-child{padding-top:0!important}
body:not(.home) main>section:not(.th-contact-hero):not(.th-about-hero):first-child{padding-top:42px}
/* Premium registration */
.th-reg-page{padding:46px 0 78px!important;background:radial-gradient(circle at 10% 5%,rgba(23,105,194,.10),transparent 27%),radial-gradient(circle at 90% 12%,rgba(8,173,115,.10),transparent 25%),linear-gradient(180deg,#f7fbff,#fff)!important}
.th-reg-page .container{width:min(1220px,92%)!important}.th-reg-hero{text-align:center;max-width:820px;margin:0 auto 30px}.th-reg-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#eaf7f2;color:#087a54;font-weight:900;font-size:12px;letter-spacing:.06em;text-transform:uppercase}.th-reg-hero h1{font-size:clamp(34px,4vw,54px);letter-spacing:-2px;line-height:1.05;margin:14px 0 10px;color:#0b376d}.th-reg-hero h1 span{color:#08ad73}.th-reg-hero p{font-size:16px;color:#60768e;max-width:700px;margin:0 auto}
.th-role-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:28px}.th-role-card{position:relative;display:flex;flex-direction:column;min-height:280px;padding:26px;border:1px solid #dce8f3;border-radius:24px;background:rgba(255,255,255,.93);box-shadow:0 18px 55px rgba(12,54,96,.08);overflow:hidden;transition:.22s}.th-role-card:before{content:"";position:absolute;width:170px;height:170px;border-radius:50%;right:-75px;top:-75px;background:linear-gradient(135deg,rgba(23,105,194,.10),rgba(8,173,115,.10))}.th-role-card:hover{transform:translateY(-6px);box-shadow:0 24px 65px rgba(12,54,96,.13);border-color:#bcd6ee}.th-role-icon{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;font-size:29px;margin-bottom:18px;background:linear-gradient(135deg,#e9f4ff,#e8fff6);box-shadow:inset 0 0 0 1px rgba(23,105,194,.08)}.th-role-card h2{font-size:24px;line-height:1.15;color:#0b376d;margin:0 0 8px}.th-role-card p{color:#60768e;font-size:14px;line-height:1.6;margin:0 0 18px}.th-role-points{display:grid;gap:8px;margin:0 0 22px;padding:0;list-style:none;color:#34516f;font-size:13px}.th-role-points li:before{content:"✓";color:#08ad73;font-weight:950;margin-right:8px}.th-role-cta{margin-top:auto;display:inline-flex;align-items:center;justify-content:space-between;gap:12px;color:#fff!important;background:linear-gradient(135deg,#0b376d,#1769c2);padding:13px 15px;border-radius:12px;font-weight:900;text-decoration:none!important}.th-role-card:nth-child(2) .th-role-cta{background:linear-gradient(135deg,#0a8f67,#08ad73)}.th-role-card:nth-child(3) .th-role-cta{background:linear-gradient(135deg,#6b4dd4,#8a64e8)}
.th-role-switcher-v85{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin:0 auto 24px}.th-role-switcher-v85 a{padding:9px 14px;border:1px solid #dbe7f2;border-radius:999px;background:#fff;color:#24496f!important;font-weight:850;font-size:12px;text-decoration:none!important}.th-role-switcher-v85 a.is-current{background:#0b376d;color:#fff!important;border-color:#0b376d}
.th-reg-layout{display:grid;grid-template-columns:360px minmax(0,760px);gap:24px;align-items:start;justify-content:center}.th-reg-aside{position:sticky;top:132px;padding:28px;border-radius:24px;background:linear-gradient(155deg,#082f67,#0d4c8e 55%,#087f67);color:#fff;box-shadow:0 22px 65px rgba(6,42,84,.20);overflow:hidden}.th-reg-aside:after{content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-150px;bottom:-135px;box-shadow:0 0 0 42px rgba(255,255,255,.03),0 0 0 82px rgba(255,255,255,.02)}.th-reg-aside .th-role-icon{background:rgba(255,255,255,.12);box-shadow:none}.th-reg-aside h2{font-size:30px;line-height:1.08;margin:6px 0 12px;color:#fff}.th-reg-aside p{color:#d9e9f8;font-size:14px;line-height:1.65}.th-reg-benefits{display:grid;gap:11px;margin-top:22px}.th-reg-benefit{display:flex;gap:10px;align-items:flex-start;padding:11px;border-radius:13px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.09)}.th-reg-benefit b{display:block;color:#fff;font-size:13px}.th-reg-benefit span{display:block;color:#cfe0f2;font-size:11px;margin-top:2px}.th-reg-step{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#16c58a;color:#fff;font-size:11px;font-weight:950;flex:0 0 26px}.th-reg-safe{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.13);font-size:11px;color:#cfe0f2}
.th-reg-formcard.panel{border-radius:24px!important;border:1px solid #dce8f3!important;background:#fff!important;padding:28px!important;box-shadow:0 20px 65px rgba(9,45,88,.10)!important}.th-reg-formcard .th-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}.th-reg-formcard h2{font-size:29px!important;letter-spacing:-.8px;color:#0b376d;margin:0 0 5px!important}.th-reg-formcard .th-form-head p{color:#687b91;margin:0;font-size:13px}.th-form-badge{padding:7px 10px;border-radius:999px;background:#eaf7f2;color:#087a54;font-size:11px;font-weight:900;white-space:nowrap}.th-premium-register-form{display:grid;grid-template-columns:1fr 1fr;gap:15px 16px}.th-premium-register-form .th-field{display:grid;gap:6px}.th-premium-register-form .th-field.full{grid-column:1/-1}.th-premium-register-form label{margin:0!important;color:#173d66!important;font-size:12px!important;font-weight:850!important}.th-premium-register-form input,.th-premium-register-form select,.th-premium-register-form textarea{width:100%!important;min-height:48px!important;border:1px solid #d7e4ef!important;border-radius:12px!important;background:#fbfdff!important;color:#183957!important;padding:11px 13px!important;outline:none!important;box-shadow:none!important;transition:.18s!important}.th-premium-register-form input:focus,.th-premium-register-form select:focus,.th-premium-register-form textarea:focus{border-color:#57a7e8!important;box-shadow:0 0 0 4px rgba(23,105,194,.08)!important;background:#fff!important}.th-premium-register-form input[type=file]{padding:9px!important;background:#f7fbff!important}.th-premium-register-form small{color:#75879a;font-size:11px;line-height:1.45}.th-premium-register-form .th-submit-row{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:6px}.th-premium-register-form .th-submit-row .btn{min-height:50px!important;padding:0 22px!important;background:linear-gradient(135deg,#0b376d,#1769c2)!important;color:#fff!important;border-radius:12px!important;box-shadow:0 12px 28px rgba(23,105,194,.20)!important}.th-premium-register-form .th-submit-row small{max-width:330px;text-align:right}.th-login-note{text-align:center;margin-top:17px;font-size:12px;color:#6b8097}.th-login-note a{color:#1769c2!important;font-weight:900}
/* Search page */
.th-search-page{padding:44px 0 72px!important;background:linear-gradient(180deg,#f7fbff,#fff)!important}.th-search-page .container{width:min(1280px,92%)!important}.th-search-intro{position:relative;border-radius:26px;padding:34px 36px;margin-bottom:22px;background:linear-gradient(135deg,#082f67,#0f5597);color:#fff;overflow:hidden;box-shadow:0 20px 60px rgba(8,49,98,.18)}.th-search-intro:after{content:"";position:absolute;width:330px;height:330px;border-radius:50%;right:-110px;top:-150px;background:radial-gradient(circle,#17c88b 0,rgba(23,200,139,.18) 35%,transparent 68%)}.th-search-intro .kicker{color:#7df0c7!important}.th-search-intro h1{font-size:clamp(36px,4vw,54px)!important;line-height:1.02;margin:7px 0 10px!important;letter-spacing:-1.8px;color:#fff}.th-search-intro p{max-width:700px;color:#d7e8f8;margin:0}.th-search-badges{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.th-search-badges span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);font-size:11px;font-weight:800;color:#fff}.th-search-filter-card{position:relative;z-index:2;margin-top:-12px;margin-bottom:26px;padding:15px;border-radius:18px;background:#fff;border:1px solid #dce8f3;box-shadow:0 16px 46px rgba(8,49,98,.10)}.th-search-filter-card .searchrow{display:grid!important;grid-template-columns:1.35fr 1fr .9fr auto!important;gap:10px!important}.th-search-filter-card input,.th-search-filter-card select{height:50px!important;border-radius:11px!important;border:1px solid #d8e4ef!important;background:#fbfdff!important;padding:0 13px!important}.th-search-filter-card .btn{height:50px!important;padding:0 22px!important;border-radius:11px!important;background:linear-gradient(135deg,#0bb879,#08a96d)!important;color:#fff!important;box-shadow:none!important}.th-results-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 16px}.th-results-head h2{margin:0;color:#0b376d;font-size:27px}.th-results-head p{margin:2px 0 0;color:#6d8196;font-size:13px}.th-result-count{padding:7px 10px;border-radius:999px;background:#eef6ff;color:#1769c2;font-size:11px;font-weight:900}.th-search-page .search-results{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
/* Generic plugin pages */
.th-app-page .dashboard-shell,.th-app-page .tutorshub-profile-page,.th-app-page .panel{scroll-margin-top:125px}.th-app-page>.container{width:min(1280px,92%)}
@media(max-width:1120px){.th84-nav{grid-template-columns:190px 1fr auto!important}.th84-links{gap:18px!important}.th84-links a{font-size:12px!important}.th-reg-layout{grid-template-columns:300px minmax(0,1fr)}.th-search-filter-card .searchrow{grid-template-columns:1fr 1fr!important}.th-search-filter-card .btn{grid-column:1/-1}}
@media(max-width:900px){.th84-links,.th84-actions{display:none!important}.th84-nav{display:flex!important;justify-content:space-between!important;height:66px!important;min-height:66px!important}.th84-header .mobile-toggle{display:block!important}.th84-topbar{display:none!important}.th-reg-layout{grid-template-columns:1fr}.th-reg-aside{position:relative;top:auto}.th-role-cards{grid-template-columns:1fr}.th-search-page .search-results{grid-template-columns:1fr 1fr!important}}
@media(max-width:782px){body.admin-bar .site-header.th84-header{top:46px!important}}
@media(max-width:650px){.th84-header .th84-shell{width:92%!important}.th84-mark{width:30px!important;height:30px!important}.th84-word{font-size:20px!important}.th-reg-page{padding:28px 0 55px!important}.th-reg-hero{text-align:left}.th-reg-hero h1{font-size:36px;letter-spacing:-1.3px}.th-reg-layout{gap:16px}.th-reg-aside,.th-reg-formcard.panel{padding:20px!important;border-radius:20px!important}.th-reg-aside h2{font-size:25px}.th-premium-register-form{grid-template-columns:1fr}.th-premium-register-form .th-field.full,.th-premium-register-form .th-submit-row{grid-column:auto}.th-premium-register-form .th-submit-row{display:grid}.th-premium-register-form .th-submit-row small{text-align:left;max-width:none}.th-search-page{padding-top:28px!important}.th-search-intro{padding:25px 21px;border-radius:20px}.th-search-filter-card .searchrow{grid-template-columns:1fr!important}.th-search-filter-card .btn{grid-column:auto}.th-results-head{align-items:flex-start;flex-direction:column}.th-search-page .search-results{grid-template-columns:1fr!important}}

/* v8.5.2 — remove legacy header spacer and improve Urdu/RTL rendering */
html{scroll-padding-top:118px!important}
body,body.admin-bar{padding-top:0!important;margin-top:0!important}
body:not(.home):not(.front-page) .site-header + main{padding-top:0!important}
.site-header.th84-header{margin-top:0!important}
@media(min-width:783px){body.admin-bar .site-header.th84-header{top:32px!important}}
@media(max-width:782px){body.admin-bar .site-header.th84-header{top:46px!important}}
html[dir="rtl"] body.th-urdu{font-family:Tahoma,"Noto Naskh Arabic","Noto Nastaliq Urdu",Arial,sans-serif!important;text-align:right}
html[dir="rtl"] body.th-urdu .th84-topbar .th84-shell,html[dir="rtl"] body.th-urdu .th84-nav,html[dir="rtl"] body.th-urdu .th-reg-layout,html[dir="rtl"] body.th-urdu .th-search-page,html[dir="rtl"] body.th-urdu .th-contact-grid{direction:rtl}
html[dir="rtl"] body.th-urdu .th84-actions,html[dir="rtl"] body.th-urdu .th-language-switch{direction:ltr}
html[dir="rtl"] body.th-urdu input:not([type="email"]):not([type="tel"]):not([type="number"]),html[dir="rtl"] body.th-urdu textarea,html[dir="rtl"] body.th-urdu select{text-align:right!important;direction:rtl}
html[dir="rtl"] body.th-urdu input[type="email"],html[dir="rtl"] body.th-urdu input[type="tel"],html[dir="rtl"] body.th-urdu input[type="number"],html[dir="rtl"] body.th-urdu input[name*="phone"],html[dir="rtl"] body.th-urdu input[name*="whatsapp"]{direction:ltr!important;text-align:left!important}
html[dir="rtl"] body.th-urdu .th-role-points li:before{margin-right:0!important;margin-left:8px!important}
html[dir="rtl"] body.th-urdu .th-reg-formcard .th-form-head,html[dir="rtl"] body.th-urdu .th-results-head{direction:rtl}

/* v8.5.3 — fix Urdu without breaking layout, remove hard header line */
html,body{margin:0!important;padding:0!important;overflow-x:hidden!important;}
body.th-urdu, body.th-urdu *{direction:ltr;}
body.th-urdu .th84-header,
body.th-urdu .th84-topbar .th84-shell,
body.th-urdu .th84-nav,
body.th-urdu .th84-links,
body.th-urdu .th84-actions,
body.th-urdu .th84-search,
body.th-urdu .th84-search form,
body.th-urdu .th-search-page,
body.th-urdu .th-search-filter-card .searchrow,
body.th-urdu .th-reg-page,
body.th-urdu .th-reg-layout,
body.th-urdu .th-contact-page,
body.th-urdu .footer{direction:ltr!important;text-align:left!important;}
body.th-urdu .th84-copy,
body.th-urdu .th84-section-head,
body.th-urdu .th-search-intro,
body.th-urdu .th-reg-hero,
body.th-urdu .th-reg-formcard,
body.th-urdu .th-role-card,
body.th-urdu .th-contact-copy,
body.th-urdu .footer p{unicode-bidi:plaintext;}
body.th-urdu input:not([type="email"]):not([type="tel"]):not([type="number"]),
body.th-urdu textarea,
body.th-urdu select{direction:rtl!important;text-align:right!important;}
body.th-urdu input[type="email"],body.th-urdu input[type="tel"],body.th-urdu input[type="number"],body.th-urdu input[name*="phone"],body.th-urdu input[name*="whatsapp"]{direction:ltr!important;text-align:left!important;}
.site-header.th84-header{border:0!important;border-bottom:0!important;box-shadow:0 10px 30px rgba(9,45,88,.07)!important;margin-bottom:0!important;}
.site-header.th84-header:before,.site-header.th84-header:after,.th84-nav:before,.th84-nav:after{content:none!important;display:none!important;border:0!important;}
.site-header.th84-header + main,.site-header.th84-header + .th84-home,main.th84-home,.th-app-page{border-top:0!important;margin-top:0!important;}
.th84-home .th84-hero,.th84-hero{border-top:0!important;margin-top:0!important;}
.th84-links a.is-active:after{bottom:-1px!important;height:3px!important;}
.th84-topbar{border:0!important;}
.th84-nav{border:0!important;}
