/* PakStudyHub header */
.psh-hd{--hd-acc:#059669;--hd-acc2:#047857;--hd-ink:#0f172a;--hd-text:#475569;--hd-muted:#94a3b8;--hd-line:rgba(100,116,139,.2);
  position:relative;font-family:'Plus Jakarta Sans',sans-serif;color:var(--hd-ink);line-height:1.4}
.psh-hd__mega{font-family:'Plus Jakarta Sans',sans-serif}
.psh-hd *,.psh-hd *::before,.psh-hd *::after{box-sizing:border-box;margin:0;padding:0}
:where(.psh-hd) a{text-decoration:none;color:inherit}
:where(.psh-hd) button{font:inherit;cursor:pointer;background:none;border:0;color:inherit}
.psh-hd__in{max-width:1180px;margin:0 auto;padding:0 20px}

/* company strip */
.psh-hd__co{padding:8px 20px 0}
.psh-hd__costrip{max-width:1140px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 12px;border:1px solid var(--hd-line);border-radius:10px;background:rgba(255,255,255,.55)}
.psh-hd__coname{font-size:11px;font-weight:800;color:#334155;white-space:nowrap;display:flex;align-items:center;gap:6px}
.psh-hd__coname svg{width:14px;height:14px;color:var(--hd-acc)}
.psh-hd__cobtns{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.psh-hd__cobtn{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid rgba(5,150,105,.45);border-radius:99px;background:#fff;color:var(--hd-acc2)!important;font-size:10px;font-weight:700;white-space:nowrap;transition:all .2s}
.psh-hd__cobtn::before{content:"✓";font-weight:900}
.psh-hd__cobtn:hover{background:var(--hd-acc);color:#fff!important;border-color:var(--hd-acc)}

/* top row */
.psh-hd__top{border-bottom:1px solid var(--hd-line)}
.psh-hd__row{display:flex;align-items:center;gap:16px;min-height:68px}
.psh-hd__logo{display:flex;align-items:center;gap:10px;flex:none}
.psh-hd__logo img{height:44px;width:auto;display:block;transition:transform .25s}
.psh-hd__logo:hover img{transform:scale(1.06) rotate(-3deg)}
.psh-hd__lname{display:block;font-size:14px;font-weight:800;line-height:1.2;color:#0f172a}
.psh-hd__lsub{display:block;font-size:10px;line-height:1.2;color:#64748b}
.psh-hd__pill{display:flex;align-items:center;gap:2px;margin:0 auto;padding:5px;border-radius:99px;background:rgba(100,116,139,.1)}
.psh-hd__pill a{padding:7px 20px;border-radius:99px;font-size:13px;font-weight:600;color:#64748b;white-space:nowrap;transition:all .2s}
.psh-hd__pill a:hover{color:var(--hd-ink)}
.psh-hd__pill a.is-on{background:#fff;color:var(--hd-ink);box-shadow:0 1px 4px rgba(0,0,0,.1)}
.psh-hd__links{display:flex;align-items:center;gap:14px;flex:none}
.psh-hd__link{position:relative;font-size:13px;font-weight:600;color:var(--hd-text);white-space:nowrap;padding:4px 0}
.psh-hd__link::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:var(--hd-acc);transform:scaleX(0);transform-origin:left;transition:transform .2s}
.psh-hd__link:hover,.psh-hd__link.is-on{color:var(--hd-ink)}
.psh-hd__link:hover::after,.psh-hd__link.is-on::after{transform:scaleX(1)}
.psh-hd__cta{display:inline-flex;align-items:center;gap:6px;padding:9px 20px;border-radius:99px;background:var(--hd-acc);color:#fff!important;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px -4px rgba(5,150,105,.6);transition:all .2s}
.psh-hd__cta:hover{background:var(--hd-acc2);transform:translateY(-1px)}
.psh-hd__ham{display:none;margin-left:auto;width:42px;height:42px;border-radius:12px;align-items:center;justify-content:center;color:var(--hd-text)}
.psh-hd__ham:hover{background:rgba(5,150,105,.08);color:var(--hd-acc)}
.psh-hd__ham svg{width:24px;height:24px}

/* category row + mega menus */
.psh-hd__nav{border-bottom:1px solid var(--hd-line)}
.psh-hd__navlist{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}
.psh-hd__wrap{position:static}
.psh-hd__sub{position:relative;display:flex;align-items:center;gap:4px;padding:14px;font-size:13px;font-weight:600;color:var(--hd-text);white-space:nowrap;transition:color .2s}
.psh-hd__sub::after{content:"";position:absolute;left:50%;right:50%;bottom:-1px;height:2px;border-radius:2px;background:var(--hd-acc);transition:left .22s,right .22s}
.psh-hd__wrap:hover .psh-hd__sub,.psh-hd__wrap.is-open .psh-hd__sub,.psh-hd__sub.is-on{color:var(--hd-acc)}
.psh-hd__wrap:hover .psh-hd__sub::after,.psh-hd__wrap.is-open .psh-hd__sub::after,.psh-hd__sub.is-on::after{left:8px;right:8px}
.psh-hd__chev{display:inline-block;margin-left:2px;font-size:10px;color:var(--hd-muted);transition:transform .25s}
.psh-hd__wrap:hover .psh-hd__chev,.psh-hd__wrap.is-open .psh-hd__chev{transform:rotate(90deg);color:var(--hd-acc)}
.psh-hd__mega{position:fixed;z-index:99999;display:none;padding:20px;border-radius:18px;background:#fff;box-shadow:0 24px 60px -12px rgba(15,23,42,.28),0 0 0 1px rgba(15,23,42,.06)}
.psh-hd__wrap.is-open .psh-hd__mega{display:block;animation:psh-hd-in .2s cubic-bezier(.16,1,.3,1)}
@keyframes psh-hd-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.psh-hd__cols{display:grid;grid-template-columns:repeat(var(--n),minmax(180px,220px));gap:22px}
.psh-hd__colhead{display:flex;align-items:center;gap:7px;margin-bottom:6px;padding:0 10px 9px;border-bottom:1px solid #f1f5f9;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--hd-muted)}
.psh-hd__colhead span{font-size:15px}
.psh-hd__item{display:block;padding:8px 10px;border-radius:11px;transition:background .15s}
.psh-hd__item b{display:block;font-size:13px;font-weight:600;color:#1e293b}
.psh-hd__item small{display:block;margin-top:1px;font-size:11px;color:var(--hd-muted)}
.psh-hd__item:hover,.psh-hd__item:focus-visible{background:#ecfdf5}
.psh-hd__item:hover b{color:var(--hd-acc)}
.psh-hd__all{display:block;margin-top:12px;padding:10px 12px;border-radius:11px;background:#f0fdf4;color:var(--hd-acc2)!important;font-size:12.5px;font-weight:800;text-align:center}
.psh-hd__all:hover{background:#dcfce7}
.psh-hd :focus-visible{outline:2px solid var(--hd-acc);outline-offset:2px;border-radius:8px}

/* mobile menu */
.psh-hd__mob{display:none;max-height:calc(100dvh - 110px);overflow-y:auto;background:#fff;border-bottom:1px solid var(--hd-line);box-shadow:0 18px 30px -20px rgba(15,23,42,.35)}
.psh-hd__mob.is-open{display:block}
.psh-hd__mtop{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:10px 12px;border-bottom:1px solid var(--hd-line)}
.psh-hd__mtop a{display:flex;align-items:center;gap:8px;padding:11px 10px;border-radius:10px;font-size:14px;font-weight:700;color:var(--hd-ink)}
.psh-hd__mtop a:hover,.psh-hd__mtop a.is-on{background:rgba(5,150,105,.08);color:var(--hd-acc)}
.psh-hd__mlbl{padding:10px 20px 4px;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#64748b}
.psh-hd__acc{border-bottom:1px solid var(--hd-line)}
.psh-hd__accbtn{width:100%;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font-size:13px;font-weight:700;color:#334155;text-align:left}
.psh-hd__accbtn > span:first-child{display:flex;align-items:center;gap:10px}
.psh-hd__accbtn[aria-expanded="true"],.psh-hd__accbtn.is-on{color:var(--hd-acc)}
.psh-hd__accbtn .psh-hd__chev{font-size:16px;transition:transform .2s}
.psh-hd__accbtn[aria-expanded="true"] .psh-hd__chev{transform:rotate(90deg);color:var(--hd-acc)}
.psh-hd__accpanel{padding:4px 12px 12px;background:#f8fafc}
.psh-hd__mcol{padding:8px 8px 4px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b}
.psh-hd__mitem{display:block;padding:10px 12px;border-radius:10px;font-size:13px;font-weight:600;color:#334155}
.psh-hd__mitem small{font-size:11px;font-weight:400;color:#64748b}
.psh-hd__mitem:hover{background:rgba(5,150,105,.1);color:var(--hd-acc)}
.psh-hd__mitem--all{margin-top:4px;color:var(--hd-acc)!important;font-weight:800}
.psh-hd__mcta{padding:14px 16px 16px}
.psh-hd__mcta .psh-hd__cta{display:flex;justify-content:center;width:100%;padding:13px}

@media(max-width:1100px){.psh-hd__links .psh-hd__link:nth-child(n+5){display:none}}
@media(max-width:960px){
  .psh-hd__pill,.psh-hd__links,.psh-hd__nav{display:none!important}
  .psh-hd__ham{display:inline-flex}
  .psh-hd__co{padding:6px 10px 0}
  .psh-hd__costrip{flex-direction:column;align-items:stretch;gap:6px;padding:8px}
  .psh-hd__coname{justify-content:center;white-space:normal;text-align:center}
  .psh-hd__cobtns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .psh-hd__cobtn{justify-content:center;padding:6px 3px;font-size:clamp(8.5px,2.6vw,10.5px);white-space:normal;text-align:center;line-height:1.15;min-height:32px}
  .psh-hd__cobtn::before{display:none}
  .psh-hd__in{padding:0 14px}
  .psh-hd__row{min-height:60px}
  .psh-hd__logo img{height:40px}
}
@media(prefers-reduced-motion:reduce){.psh-hd *{transition:none!important;animation:none!important}}

/* ---- theme integration ---- */
/* Company strip sits above the theme header; category row sits right under it. The theme header stays sticky. */
.psh-hd--nav{background:#fff}
.psh-hd--mob{border-top:1px solid var(--hd-line);background:#fff}
@media(max-width:960px){.psh-hd--nav{display:none}}
@media print{.psh-hd{display:none!important}}
