/*
Theme Name: Ciekawy Serwis
Version: 1.0
Description: Dynamiczny magazyn internetowy Ciekawy Serwis.
Requires PHP: 7.4
Text Domain: ciekawy-serwis
*/
*{box-sizing:border-box}body{margin:0;background:#ffffff;color:#15243c;font:16px/1.6 system-ui,Arial,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:#174dcc}img{max-width:100%;height:auto}header,footer{background:#12357b;color:white}header{border-bottom:6px solid #245ee8} .wrap{max-width:1440px;margin:auto;padding:24px}.top{display:flex;align-items:center;justify-content:space-between;gap:24px}.logo{width:270px;display:block}.nav{display:flex;gap:20px;flex-wrap:wrap;list-style:none;padding:0;margin:0;font-weight:650}.layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,1fr);gap:28px}.hero{display:grid;grid-template-columns:1.9fr 1fr;grid-template-rows:190px 190px;gap:14px}.feature{position:relative;overflow:hidden;border-radius:12px;background:#16364d;color:white;display:flex;align-items:flex-end}.feature:first-child{grid-row:span 2}.feature img{position:absolute;width:100%;height:100%;object-fit:cover}.feature:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 20%,#071725e8)}.feature .copy{position:relative;z-index:1;padding:18px;width:100%}.feature h2{font-size:20px;line-height:1.2;margin:8px 0}.feature:first-child h2{font-size:32px}.tag{display:inline-block;background:#e6edff;color:#12357b;border-radius:5px;padding:4px 9px;font-size:12px;font-weight:800;text-transform:uppercase}.date{font-size:12px;opacity:.85}.section-title{display:flex;align-items:center;gap:15px;margin:30px 0 18px;font-size:25px}.section-title:after{content:'';height:2px;background:#d9e3f6;flex:1}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.latest{grid-template-columns:repeat(4,minmax(0,1fr))}.card img,.placeholder{width:100%;aspect-ratio:1.5;object-fit:cover;border-radius:9px;background:#dce9ee}.card h3{font-size:16px;line-height:1.35;margin:6px 0}.panel{border:1px solid #d4e0e8;border-radius:12px;padding:16px;margin-bottom:16px}.panel h2{font-size:20px;margin:0 0 12px}.searchpanel{background:#12357b;color:white}.searchform{display:flex;gap:4px}.searchform input{min-width:0;width:100%;padding:10px;border:1px solid #ccdbe3;border-radius:6px}.searchform button,.btn{background:#e6edff;color:#12357b;border:0;border-radius:7px;padding:10px;font-weight:700;cursor:pointer}.catrow{display:flex;justify-content:space-between;border-bottom:1px solid #e3ebef;padding:8px 0}.count{background:#e8eef2;border-radius:20px;padding:0 9px;font-size:12px;color:#12357b}.mini{display:flex;gap:10px;margin:12px 0;align-items:center;font-size:13px;font-weight:700;line-height:1.3}.mini img{width:80px;height:58px;object-fit:cover;border-radius:6px}.catgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.catbox{border:1px solid #d4e0e8;border-radius:12px;padding:15px;font-weight:700}.footgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px}.footgrid ul{list-style:none;padding:0}.copyright{border-top:1px solid #24718b;padding-top:16px;font-size:13px}.article h1{font-size:38px;line-height:1.2}.article .cover{width:100%;border-radius:12px}.content{overflow-wrap:anywhere}.content a{color:#174dcc;text-decoration:underline}.pagination{margin:25px 0}.more{font-size:13px;color:#174dcc}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.sectionhead .section-title{flex:1}.feature:hover{color:white}.feature:hover img{filter:brightness(.9)}@media(max-width:1000px){.layout{grid-template-columns:1fr}.top{flex-wrap:wrap}.latest{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.wrap{padding:15px}.hero{grid-template-columns:1fr;grid-template-rows:260px 180px 180px}.feature:first-child{grid-row:auto}.feature:first-child h2{font-size:24px}.cards,.catgrid{grid-template-columns:repeat(2,1fr)}.footgrid{grid-template-columns:1fr}.nav{gap:10px;font-size:13px}.article h1{font-size:28px}.logo{width:240px}}

/* Homepage sections */
.ps-section-icon{color:#174dcc;font-size:32px;line-height:1}.layout main{min-width:0}.layout .latest{padding-bottom:20px;border-bottom:1px solid #d4e0e8}.layout .catgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.layout .catbox{display:flex;align-items:center;gap:10px;padding:12px 10px;min-width:0;background:#f4f7fc;transition:background .2s,border-color .2s}.catbox:hover{background:#e7efff;border-color:#7296e7}.ps-cat-icon{width:32px;height:32px;flex:0 0 32px}.catlabel{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:14px;line-height:1.3;overflow-wrap:anywhere}.catlabel .count{font-weight:500;white-space:normal;font-size:11px;padding:3px 8px}.sectionhead .more{white-space:nowrap}.layout .latest .card h3{font-size:14px}.layout .latest .card img{aspect-ratio:1.4}@media(max-width:760px){.layout .catgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.sectionhead .more{white-space:normal}.section-title{font-size:21px}}

.ps-side-label{display:flex;align-items:center;gap:9px;min-width:0}.ps-side-label .ps-cat-icon{width:20px;height:20px;flex:0 0 20px}.catrow{align-items:center;gap:8px}

.catbox > svg.ps-cat-icon,.ps-side-label > svg.ps-cat-icon{display:block!important;visibility:visible!important;opacity:1!important;overflow:visible;max-width:none}.catbox > svg.ps-cat-icon{width:32px!important;height:32px!important;flex:0 0 32px}.ps-side-label > svg.ps-cat-icon{width:20px!important;height:20px!important;flex:0 0 20px}

.catbox .ps-cat-icon,.catrow .ps-cat-icon{display:block!important;min-width:20px;max-width:none!important;visibility:visible!important;opacity:1!important}.catbox .ps-cat-icon{min-width:32px}.catrow .count{flex-shrink:0}


header{background:white;color:#12244b;border-bottom:2px solid #245ee8}header .top{padding-block:18px}.nav{font-size:14px}.home-wide{display:block;max-width:1320px}.lead{display:grid;grid-template-columns:1.55fr 1fr;gap:0;background:#f2f6fd;border-radius:9px;overflow:hidden}.lead-media img,.lead-media .placeholder{display:block;width:100%;height:100%;min-height:310px;object-fit:cover;border-radius:0}.lead-copy{padding:clamp(20px,4vw,52px);align-self:center}.lead-copy h1{font-size:clamp(27px,3.5vw,48px);line-height:1.12;margin:12px 0}.lead-copy p{color:#43536c}.lead-copy .btn{display:inline-block;background:#174dcc;color:white;margin-top:14px;padding:10px 18px}.home-wide .latest{margin-top:20px}.home-wide .latest .card img{aspect-ratio:1.65}.section-title{color:#12357b}.footgrid .logo{filter:brightness(0) invert(1)}footer{background:#103474}.copyright{border-color:#5578b8}.custom-logo{max-width:270px;height:auto}.tag{color:#174dcc}.home-wide .catgrid{margin-bottom:24px}@media(max-width:700px){.lead{grid-template-columns:1fr}.lead-media img,.lead-media .placeholder{min-height:0;aspect-ratio:1.7}.lead-copy{padding:22px}.home-wide .latest{grid-template-columns:repeat(2,minmax(0,1fr))}}