/*
Theme Name: KrianPress Core
Theme URI: https://servicelaptopkrian.com/
Author: KrianPress
Description: KrianPress Core v2.5.4 — modular niche WordPress theme foundation with modern business layout.
Version: 2.5.4
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: krianpress
*/
:root{
  --kp-primary:#063b63;
  --kp-accent:#08afd0;
  --kp-dark:#08283f;
  --kp-text:#234158;
  --kp-muted:#66798a;
  --kp-bg:#f5f9fc;
  --kp-white:#fff;
  --kp-border:#e4edf3;
  --kp-radius:16px;
  --kp-shadow:0 12px 35px rgba(8,40,63,.08);
  --kp-container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--kp-text);background:#fff;line-height:1.7}
a{color:var(--kp-primary);text-decoration:none}
a:hover{color:var(--kp-accent)}
img{max-width:100%;height:auto;display:block}
.kp-container{width:min(calc(100% - 40px),var(--kp-container));margin-inline:auto}
.kp-topbar{background:var(--kp-dark);color:#dcebf5;font-size:13px}
.kp-topbar .kp-container{display:flex;justify-content:space-between;gap:20px;padding:8px 0}
.kp-header{background:#fff;border-bottom:1px solid var(--kp-border);position:relative;z-index:20}
.kp-header-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.kp-brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:22px;color:var(--kp-dark);min-width:0}.kp-brand .custom-logo-link{display:flex;align-items:center}.kp-brand .custom-logo{width:auto;max-width:220px;max-height:58px;object-fit:contain}
.kp-brand-mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,var(--kp-primary),var(--kp-accent));display:grid;place-items:center;color:white;font-weight:900}
.kp-nav ul{list-style:none;display:flex;align-items:center;gap:24px;margin:0;padding:0}.kp-nav .sub-menu{display:none;position:absolute;background:#fff;border:1px solid var(--kp-border);border-radius:12px;padding:10px;box-shadow:var(--kp-shadow);min-width:190px}.kp-nav li{position:relative}.kp-nav li:hover>.sub-menu,.kp-nav li:focus-within>.sub-menu{display:block}.kp-nav .sub-menu li{margin:0}.kp-nav .sub-menu a{display:block;padding:8px 10px;white-space:nowrap}
.kp-nav a{font-weight:600;font-size:14px;color:var(--kp-dark)}
.kp-nav .current-menu-item>a{color:var(--kp-accent)}
.kp-menu-toggle{display:none;border:0;background:var(--kp-primary);color:white;border-radius:10px;padding:10px 13px;font-size:18px}
.kp-hero{background:linear-gradient(135deg,#f1f8fc 0%,#fff 55%,#eaf9fc 100%);padding:92px 0 84px;overflow:hidden}
.kp-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:60px}
.kp-eyebrow{display:inline-flex;background:#e4f7fb;color:#087d98;border-radius:999px;padding:7px 14px;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.kp-hero h1{font-size:clamp(40px,5vw,68px);line-height:1.08;color:var(--kp-dark);margin:18px 0}
.kp-hero p{font-size:18px;color:var(--kp-muted);max-width:650px}
.kp-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.kp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;border-radius:10px;font-weight:800;border:2px solid transparent;transition:.2s}
.kp-btn-primary{background:var(--kp-accent);color:white}
.kp-btn-primary:hover{background:#078fa9;color:white;transform:translateY(-1px)}
.kp-btn-outline{border-color:var(--kp-primary);color:var(--kp-primary);background:white}
.kp-btn-outline:hover{background:var(--kp-primary);color:white}
.kp-hero-card{background:white;border:1px solid var(--kp-border);border-radius:24px;padding:16px;box-shadow:var(--kp-shadow);transform:rotate(1deg)}
.kp-hero-card-inner{min-height:360px;border-radius:18px;background:linear-gradient(135deg,var(--kp-primary),#0b658e);display:flex;align-items:flex-end;padding:30px;color:white;overflow:hidden;position:relative}
.kp-hero-card-inner:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.08);right:-60px;top:-80px}
.kp-hero-card h3{font-size:28px;line-height:1.2;margin:0;position:relative;z-index:1}
.kp-section{padding:78px 0}
.kp-section-soft{background:var(--kp-bg)}
.kp-section-head{text-align:center;max-width:760px;margin:0 auto 42px}
.kp-section-head h2{font-size:36px;line-height:1.2;color:var(--kp-dark);margin:0 0 12px}
.kp-section-head p{color:var(--kp-muted);margin:0}
.kp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.kp-card{background:#fff;border:1px solid var(--kp-border);border-radius:var(--kp-radius);padding:28px;box-shadow:0 6px 20px rgba(8,40,63,.04)}
.kp-card-icon{width:48px;height:48px;border-radius:13px;background:#e8f8fb;color:#078ca6;display:grid;place-items:center;font-weight:900;margin-bottom:18px}
.kp-card h3{color:var(--kp-dark);margin:0 0 8px;font-size:20px}
.kp-card p{color:var(--kp-muted);margin:0}
.kp-cta{background:var(--kp-primary);color:white;border-radius:24px;padding:48px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.kp-cta h2{margin:0 0 8px;font-size:32px}
.kp-cta p{margin:0;color:#cfe2ee}
.kp-footer{background:#061e30;color:#b9cbd7;padding:54px 0 22px}
.kp-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:45px}
.kp-footer h3{color:white;margin-top:0}
.kp-footer a{color:#c9dbe5}
.kp-footer ul{list-style:none;margin:0;padding:0}
.kp-footer li{margin:7px 0}
.kp-footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:35px;padding-top:18px;font-size:13px}
.kp-page{padding:70px 0}
.kp-page h1,.kp-content h1{font-size:44px;line-height:1.2;color:var(--kp-dark)}
.kp-content{max-width:820px;margin:auto}
.kp-content img{border-radius:14px}
.kp-posts{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.kp-post{border:1px solid var(--kp-border);border-radius:16px;overflow:hidden;background:#fff}
.kp-post-body{padding:22px}
.kp-post h2{font-size:21px;margin:0 0 8px}
.kp-meta{font-size:13px;color:var(--kp-muted)}
@media(max-width:900px){
 .kp-hero-grid{grid-template-columns:1fr;gap:35px}
 .kp-grid,.kp-posts{grid-template-columns:1fr 1fr}
 .kp-footer-grid{grid-template-columns:1fr 1fr}
 .kp-nav{display:none;position:absolute;left:20px;right:20px;top:70px;background:white;border:1px solid var(--kp-border);box-shadow:var(--kp-shadow);border-radius:14px;padding:18px}
 .kp-nav.is-open{display:block}.kp-nav ul{flex-direction:column;align-items:flex-start;gap:12px}.kp-nav .sub-menu{position:static;box-shadow:none;border:0;padding:4px 0 0 14px;min-width:0}.kp-nav li:hover>.sub-menu,.kp-nav li:focus-within>.sub-menu{display:none}.kp-nav li.kp-submenu-open>.sub-menu{display:block}
 .kp-menu-toggle{display:block}
}
@media(max-width:600px){
 .kp-container{width:min(calc(100% - 28px),var(--kp-container))}
 .kp-topbar .kp-container{display:none}
 .kp-hero{padding:62px 0}
 .kp-section{padding:55px 0}
 .kp-grid,.kp-posts,.kp-footer-grid{grid-template-columns:1fr}
 .kp-cta{padding:32px;display:block}
 .kp-cta .kp-btn{margin-top:20px}
 .kp-page h1,.kp-content h1{font-size:34px}
}

/* Core v2.1 safeguards */
.kp-header .custom-logo-link{line-height:0}
.kp-header .custom-logo{display:block}
.kp-brand span:not(.kp-brand-mark){line-height:1.15}
@media(max-width:600px){.kp-brand .custom-logo{max-width:170px;max-height:50px}.kp-header-inner{min-height:68px}}


/* Core v2.2 premium header + hero */
.kp-header{position:sticky;top:32px;box-shadow:0 5px 22px rgba(8,40,63,.04);transition:box-shadow .2s,background .2s}
.admin-bar .kp-header{top:32px}
.kp-header-inner{position:relative}
.kp-header-cta{display:inline-flex;align-items:center;justify-content:center;background:var(--kp-primary);color:#fff!important;border-radius:10px;padding:10px 16px;font-size:13px;font-weight:800;white-space:nowrap}
.kp-header-cta:hover{background:var(--kp-accent);color:#fff!important}
.kp-hero{position:relative}
.kp-hero:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:rgba(8,175,208,.08);right:-180px;top:-180px;pointer-events:none}
.kp-hero-card{transform:none}
.kp-hero-card-inner{min-height:390px;background:linear-gradient(145deg,#063b63 0%,#0a587f 58%,#087d98 100%);padding:30px;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.kp-hero-badge{position:absolute;top:24px;left:28px;font-size:11px;font-weight:900;letter-spacing:.12em;color:#dff7fc;opacity:.9}
.kp-hero-lines{position:absolute;right:28px;top:28px;display:flex;gap:6px}
.kp-hero-lines i{display:block;width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.65)}
.kp-hero-card-copy{position:relative;z-index:2;margin-top:auto;max-width:430px}
.kp-hero-card-copy small{font-size:11px;letter-spacing:.13em;font-weight:900;color:#9ce8f3}
.kp-hero-card-copy h3{margin:8px 0 10px;font-size:32px}
.kp-hero-card-copy p{margin:0;color:#d7ebf3;font-size:14px;line-height:1.6}
.kp-proof-strip{border-top:1px solid var(--kp-border);border-bottom:1px solid var(--kp-border);background:#fff}
.kp-proof-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.kp-proof-grid>div{padding:22px 24px;display:flex;align-items:center;gap:12px;border-right:1px solid var(--kp-border)}
.kp-proof-grid>div:last-child{border-right:0}
.kp-proof-grid strong{font-size:12px;color:var(--kp-accent)}
.kp-proof-grid span{font-size:14px;font-weight:800;color:var(--kp-dark)}
.kp-card{transition:transform .2s,box-shadow .2s}
.kp-card:hover{transform:translateY(-4px);box-shadow:0 14px 35px rgba(8,40,63,.09)}
.kp-section-head h2{letter-spacing:-.02em}
@media(max-width:900px){
 .kp-header-cta{display:none}
 .kp-proof-grid{grid-template-columns:repeat(2,1fr)}
 .kp-proof-grid>div:nth-child(2){border-right:0}
 .kp-proof-grid>div:nth-child(-n+2){border-bottom:1px solid var(--kp-border)}
}
@media(max-width:600px){
 .kp-header{top:0}
 .admin-bar .kp-header{top:46px}
 .kp-proof-grid{grid-template-columns:1fr 1fr}
 .kp-proof-grid>div{padding:16px 12px}
 .kp-hero-card-inner{min-height:330px}
 .kp-hero-card-copy h3{font-size:27px}
}

/* KrianPress Core v2.3 refinements */
.kp-header-inner{min-height:86px}
.kp-brand .custom-logo-link{display:flex!important;align-items:center!important;height:76px!important;overflow:hidden}
.kp-brand .custom-logo{height:72px!important;width:auto!important;max-width:210px!important;max-height:72px!important;object-fit:contain!important}
.kp-brand{max-width:230px}
.kp-hero-copy{position:relative;z-index:2}
.kp-hero-trust{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px;color:#537086;font-size:13px;font-weight:700}
.kp-mini-label{display:inline-block;color:#078ca6;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;margin-bottom:10px}
.kp-hero-window{position:absolute;right:30px;top:72px;width:180px;height:112px;border-radius:12px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);padding:12px;z-index:1}
.kp-hero-window span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#bceef4;margin-right:5px}
.kp-hero-window b{display:block;margin-top:26px;font-size:12px;letter-spacing:.1em;color:#e8fbfe}
.kp-niche-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.kp-niche-grid article{background:#fff;border:1px solid var(--kp-border);border-radius:18px;padding:25px;transition:.2s}
.kp-niche-grid article:hover{transform:translateY(-3px);box-shadow:var(--kp-shadow)}
.kp-niche-grid span{font-size:12px;font-weight:900;color:var(--kp-accent)}
.kp-niche-grid h3{margin:10px 0 7px;color:var(--kp-dark);font-size:19px}
.kp-niche-grid p{margin:0;color:var(--kp-muted);font-size:14px}
.kp-split{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center}
.kp-split h2{font-size:40px;line-height:1.15;color:var(--kp-dark);margin:0 0 16px}
.kp-split p{color:var(--kp-muted);font-size:17px}
.kp-checklist{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kp-checklist div{padding:16px 18px;border:1px solid var(--kp-border);border-radius:12px;background:#fff;font-weight:700;color:var(--kp-dark);font-size:14px}
.kp-section-dark{background:#f0f8fb}
.kp-section-dark .kp-cta{background:linear-gradient(135deg,#063b63,#0a6588);box-shadow:var(--kp-shadow)}
.kp-section-dark .kp-cta h2{color:#fff}
@media(max-width:900px){
 .kp-brand .custom-logo{height:62px!important;max-height:62px!important;max-width:190px!important}
 .kp-brand .custom-logo-link{height:66px!important}
 .kp-niche-grid{grid-template-columns:1fr 1fr}
 .kp-split{grid-template-columns:1fr;gap:35px}
}
@media(max-width:600px){
 .kp-brand .custom-logo{height:54px!important;max-height:54px!important;max-width:175px!important}
 .kp-brand .custom-logo-link{height:58px!important}
 .kp-header-inner{min-height:64px}
 .kp-niche-grid{grid-template-columns:1fr}
 .kp-checklist{grid-template-columns:1fr}
 .kp-split h2{font-size:32px}
 .kp-hero-window{right:20px;top:55px;width:135px;height:92px}
 .kp-hero-window b{font-size:10px;margin-top:20px}
}

/* KrianPress Core v2.4 — compact professional header */
.kp-header{height:96px!important;overflow:visible!important}
.kp-header-inner{height:96px!important;min-height:96px!important;max-height:96px!important;align-items:center!important}
.kp-brand{height:96px!important;max-width:220px!important;display:flex!important;align-items:center!important;overflow:visible!important}
.kp-brand .custom-logo-link{width:190px!important;height:82px!important;max-height:82px!important;display:flex!important;align-items:center!important;overflow:hidden!important}
.kp-brand .custom-logo-link img.custom-logo,
.kp-brand img.custom-logo{display:block!important;width:auto!important;height:78px!important;max-width:190px!important;max-height:78px!important;object-fit:contain!important;margin:0!important;padding:0!important}
.kp-nav{align-self:center!important}
.kp-header-cta{flex:0 0 auto!important}
@media(max-width:900px){
 .kp-header{height:78px!important}
 .kp-header-inner{height:78px!important;min-height:78px!important;max-height:78px!important}
 .kp-brand{height:78px!important;max-width:200px!important}
 .kp-brand .custom-logo-link{height:68px!important;max-height:68px!important;width:175px!important}
 .kp-brand .custom-logo-link img.custom-logo,.kp-brand img.custom-logo{height:64px!important;max-height:64px!important;max-width:175px!important}
}
@media(max-width:600px){
 .kp-header{height:68px!important}
 .kp-header-inner{height:68px!important;min-height:68px!important;max-height:68px!important}
 .kp-brand{height:68px!important;max-width:180px!important}
 .kp-brand .custom-logo-link{height:58px!important;max-height:58px!important;width:160px!important}
 .kp-brand .custom-logo-link img.custom-logo,.kp-brand img.custom-logo{height:54px!important;max-height:54px!important;max-width:160px!important}
}


/* KrianPress Core v2.5 — final header/logo lock
 * This block intentionally comes last so older header rules cannot override it.
 */
.kp-header{
  height:92px !important;
  min-height:92px !important;
  max-height:92px !important;
  overflow:visible !important;
}
.kp-header-inner{
  height:92px !important;
  min-height:92px !important;
  max-height:92px !important;
  display:flex !important;
  align-items:center !important;
}
.kp-brand{
  flex:0 0 180px !important;
  width:180px !important;
  max-width:180px !important;
  height:92px !important;
  min-height:0 !important;
  display:flex !important;
  align-items:center !important;
  overflow:hidden !important;
}
.kp-brand .custom-logo-link{
  width:170px !important;
  height:70px !important;
  max-width:170px !important;
  max-height:70px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  overflow:hidden !important;
  line-height:0 !important;
}
.kp-brand .custom-logo-link img.custom-logo,
.kp-brand img.custom-logo{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:170px !important;
  max-height:64px !important;
  min-width:0 !important;
  min-height:0 !important;
  object-fit:contain !important;
  margin:0 !important;
  padding:0 !important;
}
.kp-nav{
  flex:1 1 auto !important;
}
.kp-header-cta{
  flex:0 0 auto !important;
}
@media(max-width:900px){
  .kp-header{height:76px !important;min-height:76px !important;max-height:76px !important}
  .kp-header-inner{height:76px !important;min-height:76px !important;max-height:76px !important}
  .kp-brand{flex-basis:170px !important;width:170px !important;max-width:170px !important;height:76px !important}
  .kp-brand .custom-logo-link{width:160px !important;height:62px !important;max-width:160px !important;max-height:62px !important}
  .kp-brand .custom-logo-link img.custom-logo,.kp-brand img.custom-logo{max-width:160px !important;max-height:56px !important}
}
@media(max-width:600px){
  .kp-header{height:66px !important;min-height:66px !important;max-height:66px !important}
  .kp-header-inner{height:66px !important;min-height:66px !important;max-height:66px !important}
  .kp-brand{flex-basis:150px !important;width:150px !important;max-width:150px !important;height:66px !important}
  .kp-brand .custom-logo-link{width:145px !important;height:54px !important;max-width:145px !important;max-height:54px !important}
  .kp-brand .custom-logo-link img.custom-logo,.kp-brand img.custom-logo{max-width:145px !important;max-height:48px !important}
}


/* KrianPress Core v2.5.4 — hard header boundary / logo containment */
.kp-header{
  position:relative !important;
  height:96px !important;
  min-height:96px !important;
  max-height:96px !important;
  overflow:hidden !important;
}
.kp-header-inner{
  position:relative !important;
  height:96px !important;
  min-height:96px !important;
  max-height:96px !important;
  overflow:hidden !important;
  align-items:center !important;
}
.kp-brand{
  position:relative !important;
  flex:0 0 190px !important;
  width:190px !important;
  max-width:190px !important;
  height:96px !important;
  max-height:96px !important;
  min-height:0 !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
}
.kp-brand .custom-logo-link{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:180px !important;
  max-width:180px !important;
  height:78px !important;
  max-height:78px !important;
  min-height:0 !important;
  overflow:hidden !important;
  line-height:0 !important;
}
.kp-brand .custom-logo-link img.custom-logo,
.kp-brand img.custom-logo{
  display:block !important;
  width:180px !important;
  height:72px !important;
  max-width:180px !important;
  max-height:72px !important;
  min-width:0 !important;
  min-height:0 !important;
  object-fit:contain !important;
  object-position:left center !important;
  margin:0 !important;
  padding:0 !important;
}
.kp-nav{min-width:0 !important;}
.kp-header-cta{flex:0 0 auto !important;}
@media(max-width:900px){
  .kp-header,.kp-header-inner{height:76px !important;min-height:76px !important;max-height:76px !important;}
  .kp-brand{flex-basis:170px !important;width:170px !important;height:76px !important;max-height:76px !important;}
  .kp-brand .custom-logo-link{width:160px !important;max-width:160px !important;height:62px !important;max-height:62px !important;}
  .kp-brand .custom-logo-link img.custom-logo,.kp-brand img.custom-logo{width:160px !important;height:56px !important;max-width:160px !important;max-height:56px !important;}
}
@media(max-width:600px){
  .kp-header,.kp-header-inner{height:68px !important;min-height:68px !important;max-height:68px !important;}
  .kp-brand{flex-basis:150px !important;width:150px !important;height:68px !important;max-height:68px !important;}
  .kp-brand .custom-logo-link{width:145px !important;max-width:145px !important;height:56px !important;max-height:56px !important;}
  .kp-brand .custom-logo-link img.custom-logo,.kp-brand img.custom-logo{width:145px !important;height:50px !important;max-width:145px !important;max-height:50px !important;}
}


/* KrianPress Core v2.5.4 — preserve logo aspect ratio and reduce visual footprint */
.kp-header{
  height:88px !important;
  min-height:88px !important;
  max-height:88px !important;
  overflow:hidden !important;
}
.kp-header-inner{
  height:88px !important;
  min-height:88px !important;
  max-height:88px !important;
  overflow:hidden !important;
}
.kp-brand{
  flex:0 0 165px !important;
  width:165px !important;
  max-width:165px !important;
  height:88px !important;
  overflow:hidden !important;
}
.kp-brand .custom-logo-link{
  width:155px !important;
  max-width:155px !important;
  height:72px !important;
  max-height:72px !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
}
.kp-brand .custom-logo-link img.custom-logo,
.kp-brand img.custom-logo{
  width:auto !important;
  height:auto !important;
  max-width:145px !important;
  max-height:58px !important;
  object-fit:contain !important;
  object-position:center !important;
  flex:0 0 auto !important;
}
@media(max-width:900px){
  .kp-header,.kp-header-inner{height:74px !important;min-height:74px !important;max-height:74px !important}
  .kp-brand{flex-basis:155px !important;width:155px !important;height:74px !important;max-width:155px !important}
  .kp-brand .custom-logo-link{width:145px !important;max-width:145px !important;height:62px !important;max-height:62px !important}
  .kp-brand .custom-logo-link img.custom-logo,.kp-brand img.custom-logo{max-width:135px !important;max-height:50px !important}
}
@media(max-width:600px){
  .kp-header,.kp-header-inner{height:64px !important;min-height:64px !important;max-height:64px !important}
  .kp-brand{flex-basis:135px !important;width:135px !important;height:64px !important;max-width:135px !important}
  .kp-brand .custom-logo-link{width:128px !important;max-width:128px !important;height:54px !important;max-height:54px !important}
  .kp-brand .custom-logo-link img.custom-logo,.kp-brand img.custom-logo{max-width:120px !important;max-height:44px !important}
}
