/*
Theme Name: Zim Projects
Theme URI: https://zimprojects.online/
Author: Zim Projects
Author URI: https://zimprojects.online/
Description: A security-conscious construction news theme inspired by the compact editorial and advertising rhythm of the supplied FreshPlaza newsletter reference. Built for ZimProjects.online with 35 managed advertising slots.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: zimprojects
*/

:root{
    --zp-ink:#17212b;
    --zp-blue:#0d3557;
    --zp-blue-2:#174e7d;
    --zp-accent:#d58a24;
    --zp-light:#f4f6f8;
    --zp-line:#d8dee5;
    --zp-muted:#64707c;
    --zp-max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--zp-ink);font-family:Arial,Helvetica,sans-serif;line-height:1.55}
img{max-width:100%;height:auto;display:block}
a{color:var(--zp-blue);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(100% - 32px,var(--zp-max));margin-inline:auto}
.site-header{border-bottom:1px solid var(--zp-line);background:#fff}
.brand-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0}
.site-brand{display:flex;align-items:center;gap:12px}
.site-brand img{max-height:58px;width:auto}
.site-title{font-size:30px;line-height:1;font-weight:800;letter-spacing:-1px;color:var(--zp-blue)}
.site-tagline{font-size:12px;color:var(--zp-muted);margin-top:4px}
.header-tools{display:flex;align-items:center;gap:14px;font-size:13px}
.nav-wrap{background:var(--zp-blue)}
.primary-nav ul{display:flex;flex-wrap:wrap;gap:0;margin:0;padding:0;list-style:none}
.primary-nav a{display:block;color:#fff;padding:11px 14px;font-size:13px;font-weight:700}
.primary-nav a:hover{background:var(--zp-blue-2);text-decoration:none}
.ad-slot{display:flex;justify-content:center;align-items:center;min-height:0;margin:14px auto;overflow:hidden}
.ad-slot img{max-height:600px;width:auto;object-fit:contain}
.ad-placeholder{display:flex;align-items:center;justify-content:center;background:#f5f6f7;border:1px dashed #cbd2d9;color:#89939d;font-size:10px;min-height:24px;width:100%;letter-spacing:.6px;text-transform:uppercase}
.ad-horizontal .ad-placeholder{min-height:90px}
.ad-vertical .ad-placeholder{min-height:250px}
.home-top{padding-top:4px}
.hero-grid{display:grid;grid-template-columns:190px minmax(0,1fr) 190px;gap:14px;align-items:start}
.hero-main{border-left:1px solid var(--zp-line);border-right:1px solid var(--zp-line);padding:0 14px}
.hero-story img{width:100%;aspect-ratio:16/9;object-fit:cover}
.kicker{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:var(--zp-accent);font-weight:800;margin:10px 0 4px}
.hero-story h1{font-size:30px;line-height:1.08;margin:0 0 7px;letter-spacing:-.7px}
.excerpt{font-size:14px;color:#4d5964;margin:0}
.section-bar{margin:22px 0 12px;background:var(--zp-blue);color:#fff;padding:8px 12px;font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}
.story-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.story-card{border-bottom:1px solid var(--zp-line);padding-bottom:14px}
.story-card img{width:100%;aspect-ratio:16/9;object-fit:cover;margin-bottom:8px}
.story-card h2{font-size:19px;line-height:1.15;margin:0 0 5px}
.story-card p{font-size:13px;color:var(--zp-muted);margin:0}
.content-with-side{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}
.news-stream .story-row{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px;border-bottom:1px solid var(--zp-line);padding:0 0 15px;margin:0 0 15px}
.story-row img{width:230px;height:135px;object-fit:cover}
.story-row h2{font-size:21px;line-height:1.15;margin:0 0 6px}
.meta{font-size:11px;color:var(--zp-muted);text-transform:uppercase;letter-spacing:.35px}
.article-header{max-width:900px;margin:25px auto 0}
.article-header h1{font-size:42px;line-height:1.08;letter-spacing:-1px;margin:7px 0 10px}
.article-content{font-size:17px;max-width:820px}
.article-content img{margin:18px auto}
.article-content h2,.article-content h3{line-height:1.2}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px}
.article-side{padding-top:20px}
.archive-title{font-size:30px;margin:25px 0 12px}
.site-footer{margin-top:40px;background:var(--zp-blue);color:#fff;padding:28px 0}
.site-footer a{color:#fff}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:25px}
.footer-title{font-weight:800;margin-bottom:7px}
.search-form{display:flex;gap:7px}
.search-form input{flex:1;padding:10px;border:1px solid var(--zp-line)}
.button{border:0;background:var(--zp-blue);color:#fff;padding:10px 15px;font-weight:700;cursor:pointer}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){
    .hero-grid{grid-template-columns:1fr}
    .hero-main{border:0;padding:0}
    .hero-grid .ad-vertical{display:none}
    .content-with-side,.article-layout{grid-template-columns:1fr}
    .article-side{display:none}
    .story-list{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
    .container{width:min(100% - 20px,var(--zp-max))}
    .brand-row{align-items:flex-start}
    .site-title{font-size:24px}
    .header-tools{display:none}
    .primary-nav ul{overflow:auto;flex-wrap:nowrap}
    .primary-nav a{white-space:nowrap;padding:10px 11px}
    .hero-story h1{font-size:25px}
    .story-list{grid-template-columns:1fr}
    .news-stream .story-row{grid-template-columns:120px minmax(0,1fr);gap:10px}
    .story-row img{width:120px;height:82px}
    .story-row h2{font-size:17px}
    .article-header h1{font-size:32px}
    .article-content{font-size:16px}
    .footer-grid{grid-template-columns:1fr}
}
