/*
Theme Name: Pakistan Schemes Portal
Theme URI: https://example.com/
Author: Pakistan Schemes Portal
Description: A responsive news and information portal theme for government schemes, jobs, education and results.
Version: 1.1.12
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: pakistan-schemes
*/
:root{--green:#087b58;--deep:#064a38;--red:#d92d3f;--ink:#18221f;--muted:#68736f;--line:#e6ebe8;--bg:#f6f8f7;--card:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.wrap{max-width:1180px;margin:auto;padding:0 20px}
.top{background:var(--deep);color:#eaf7f2;font-size:13px}.top .wrap{min-height:36px;display:flex;align-items:center;justify-content:space-between}.top-links{display:flex;gap:20px;color:#d6ebe4}.header{background:#fff;border-bottom:1px solid var(--line)}.header .wrap{min-height:78px;display:flex;align-items:center;gap:34px}.brand{display:flex;align-items:center;gap:10px;min-width:235px}.brand-mark{width:43px;height:43px;border-radius:12px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:24px}.brand strong{display:block;font-size:21px;letter-spacing:-.5px}.brand small{display:block;color:#76827e;font-size:11px}.search{margin-left:auto;display:flex;width:min(360px,40vw);height:40px;border:1px solid #dce4e0;border-radius:7px;overflow:hidden;background:#fafcfb}.search input{border:0;outline:0;background:transparent;padding:0 13px;width:100%;color:var(--ink)}.search button{border:0;background:var(--green);color:#fff;padding:0 16px;cursor:pointer}.menu{display:none;border:0;background:#eef5f2;color:var(--green);width:42px;height:40px;border-radius:7px;font-size:22px}
.nav{background:#fff;border-bottom:1px solid var(--line)}.nav .wrap{display:flex;align-items:center;gap:3px}.nav a{padding:14px 15px;font-size:14px;font-weight:700;color:#33413d;border-bottom:2px solid transparent}.nav a:hover,.nav a.active{color:var(--green);border-bottom-color:var(--green)}
.breaking{background:#fff;border-bottom:1px solid var(--line)}.breaking .wrap{display:flex;min-height:42px;align-items:center;gap:12px;overflow:hidden}.badge{background:var(--red);color:#fff;font-size:11px;font-weight:800;padding:5px 9px;border-radius:4px;white-space:nowrap}.ticker{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ticker span{color:var(--green)}
main{padding:28px 0 45px}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.card,.side-card{background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden}.article{padding:26px 30px}.breadcrumb{font-size:12px;color:var(--muted);margin:0 0 12px}.tag{font-size:10px;color:var(--green);font-weight:900;text-transform:uppercase;letter-spacing:.5px}.article h1{font-size:40px;line-height:1.12;margin:7px 0 10px;letter-spacing:-1px}.lead{font-size:16px;color:var(--muted);line-height:1.7;margin:0 0 12px}.meta{font-size:12px;color:#82908b;margin-top:10px}.featured{width:100%;height:390px;object-fit:cover;border-radius:9px;margin:22px 0}.article h2{font-size:25px;margin:28px 0 9px}.article p,.article li{font-size:15px;line-height:1.85;color:#46544f}.article ul,.article ol{padding-left:22px}.notice{background:#f0f8f4;border-left:3px solid var(--green);padding:12px;font-size:13px;color:#52635d;margin:20px 0}.disclaimer{border-top:1px solid var(--line);margin-top:25px;padding-top:16px;font-size:12px;color:var(--muted)}
.side-stack{display:grid;gap:15px}.side-card{padding:18px}.side-card h3{font-size:16px;margin:0 0 13px;padding-bottom:10px;border-bottom:2px solid #edf2ef}.trend{display:flex;gap:11px;padding:10px 0;border-bottom:1px solid var(--line)}.trend:last-child{border-bottom:0}.num{font-size:20px;font-weight:900;color:#cbd5d1;min-width:27px}.trend h4{font-size:13px;line-height:1.35;margin:0}.cat-list{display:flex;flex-wrap:wrap;gap:7px}.cat{border:1px solid #dce7e2;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:700;color:#466159;background:#fbfdfc}.ad{min-height:110px;border:1px dashed #cdd8d3;border-radius:8px;display:grid;place-items:center;color:#9aa6a2;font-size:11px;background:#fbfcfc}
.section{margin-top:30px}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:15px}.section-head h2{font-size:21px;margin:0}.section-head p{font-size:12px;color:var(--muted);margin:4px 0 0}.section-head a{color:var(--green);font-size:12px;font-weight:800}.post-list{display:grid;gap:14px}.post-card{display:grid;grid-template-columns:215px 1fr;gap:18px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:10px}.post-card img{width:215px;height:140px;object-fit:cover;border-radius:7px}.post-card h3{font-size:19px;line-height:1.28;margin:5px 0 6px}.post-card p{font-size:13px;color:var(--muted);margin:0}.read{display:inline-block;color:var(--green);font-size:12px;font-weight:800;margin-top:8px}.more-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.more-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.more-card img{width:100%;height:125px;object-fit:cover}.more-card .body{padding:12px}.more-card h3{font-size:14px;line-height:1.35;margin:5px 0}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.85fr);gap:24px}.hero-card{position:relative;min-height:405px;background:#123;border-radius:10px;overflow:hidden}.hero-img{width:100%;height:405px;object-fit:cover;display:block}.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.04) 30%,rgba(0,0,0,.82) 100%)}.hero-copy{position:absolute;left:28px;right:28px;bottom:25px;color:#fff}.hero-copy h1{font-size:31px;line-height:1.12;margin:7px 0 8px;max-width:680px}.hero-copy p{margin:0;color:#e9eeec;font-size:14px;max-width:670px}.hero-copy .meta{color:#d7e0dc}.latest-panel{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-title{padding:17px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.panel-title h2{font-size:17px;margin:0}.panel-title a{font-size:12px;color:var(--green);font-weight:800}.latest-item{display:grid;grid-template-columns:104px 1fr;gap:13px;padding:14px 16px;border-bottom:1px solid var(--line)}.latest-item:last-child{border-bottom:0}.thumb{width:104px;height:72px;border-radius:6px;object-fit:cover;background:#dfeae6}.latest-item h3{font-size:14px;line-height:1.32;margin:2px 0 4px}.latest-item .meta{margin:0}
.footer{background:#10372d;color:#dcebe5;margin-top:15px}.footer-top{padding:38px 0;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:35px}.footer h3{color:#fff;font-size:16px;margin:0 0 12px}.footer p,.footer a{font-size:12px;color:#b9d0c8;line-height:1.7}.footer a{display:block;margin:6px 0}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:15px 0;font-size:11px;color:#9db8af;display:flex;justify-content:space-between}
.pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.pagination a,.pagination span{padding:8px 12px;background:#fff;border:1px solid var(--line);border-radius:6px;font-size:12px}.pagination .current{background:var(--green);color:#fff;border-color:var(--green)}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}.content-grid{grid-template-columns:1fr}.more-grid{grid-template-columns:1fr 1fr}.footer-top{grid-template-columns:1fr 1fr}.search{width:300px}}
@media(max-width:680px){.top-links,.search,.nav{display:none}.header .wrap{min-height:66px}.brand{min-width:0}.brand strong{font-size:18px}.brand small{display:none}.menu{display:block;margin-left:auto}.article{padding:20px 18px}.article h1{font-size:27px}.featured{height:320px}.post-card{grid-template-columns:110px 1fr;gap:12px}.post-card img{width:110px;height:90px}.post-card h3{font-size:16px}.post-card p{display:none}.more-grid{grid-template-columns:1fr 1fr}.footer-top{grid-template-columns:1fr 1fr;gap:22px}.footer-bottom{display:block}.footer-bottom span{display:block;margin-top:4px}.hero-card,.hero-img{min-height:320px;height:320px}.hero-copy{left:18px;right:18px;bottom:18px}.hero-copy h1{font-size:25px}.latest-item{grid-template-columns:88px 1fr}.thumb{width:88px;height:65px}}
@media(max-width:420px){.wrap{padding-left:13px;padding-right:13px}.more-grid{grid-template-columns:1fr}.hero-copy h1{font-size:22px}.footer-top{grid-template-columns:1fr}}
/* Fee section */
.fee-section{margin-top:8px}
.fee-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.fee-col{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px}
.fee-col-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;padding-bottom:10px;border-bottom:2px solid #edf2ef}
.fee-col-head h3{font-size:15px;margin:0}
.fee-col-head h3 a{color:var(--green)}
.fee-more{font-size:11px;font-weight:800;color:var(--green);white-space:nowrap}
.fee-list{list-style:none;margin:0;padding:0}
.fee-list li{padding:9px 0;border-bottom:1px solid var(--line)}
.fee-list li:last-child{border-bottom:0}
.fee-list a{font-size:13px;font-weight:600;line-height:1.45;display:block}
.fee-list .meta{font-size:11px;color:var(--muted)}
.fee-empty{font-size:12px;color:var(--muted);margin:6px 0 0}
.disclaimer{display:none!important}
/* v1.1.7: live breaking ticker + tighter spacing */
.ticker{flex:1;text-overflow:clip}
.ticker-track{display:inline-flex;align-items:center;gap:38px;padding-right:38px;white-space:nowrap;animation:tickmove 30s linear infinite;will-change:transform}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker-track a{font-size:13px;font-weight:600;color:#33413d}
.ticker-track a:hover{color:var(--green)}
@keyframes tickmove{from{transform:translateX(0)}to{transform:translateX(-50%)}}
main{padding:16px 0 32px}
.section{margin-top:20px}
.section-head{margin-bottom:12px}
.content-grid{gap:20px}
.hero-grid{gap:20px}
@media(max-width:900px){.fee-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.fee-grid{grid-template-columns:1fr}}

/* v1.1.8: kill stretched blank space in post cards + tighter top gap */
.post-list{align-content:start}
.content-grid{align-items:start}
.post-card{align-self:start}
main{padding:12px 0 30px}
.fee-section{margin-top:2px}

/* v1.1.9: light natural breathing room around fee section */
.fee-section{margin-bottom:18px}
