/*
Theme Name: SandhoPress Pro
Author: Sandho
Description: Fast, responsive magazine/news WordPress theme with featured hero, trending bar, category blocks, dark mode and clean static ad placements.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sandhopress
*/
:root{--a:#1769d2;--b:#e7e9ed;--m:#6b7280;--w:1180px}*{box-sizing:border-box}body{margin:0;color:#202124;background:#fff;font:16px/1.65 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}img{max-width:100%;height:auto}a{color:var(--a);text-decoration:none}a:hover{text-decoration:underline}.container{width:min(calc(100% - 32px),var(--w));margin:auto}.site-header{border-bottom:1px solid var(--b);background:#fff}.topbar{padding:18px 0;display:flex;justify-content:space-between;align-items:center;gap:20px}.site-title{font-size:28px;font-weight:800;color:#111}.custom-logo{max-height:58px;width:auto}.menu-toggle{display:none}.main-nav{border-top:1px solid var(--b)}.main-nav ul{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}.main-nav a{display:block;padding:12px 14px;color:#222;font-weight:600}.site-main{padding:28px 0}.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px}.content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.card,.widget{border:1px solid var(--b);border-radius:12px;background:#fff;overflow:hidden}.card-body,.widget{padding:18px}.card h2{font-size:21px;line-height:1.3;margin:0 0 8px}.thumb{display:block;aspect-ratio:16/9;background:#f3f4f6;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.meta{font-size:13px;color:var(--m)}.entry-title{font-size:clamp(30px,4vw,46px);line-height:1.15}.entry-content{font-size:18px}.featured-image{border-radius:12px;overflow:hidden}.widget{margin-bottom:22px}.ad-slot{width:100%;min-height:100px;margin:24px 0;overflow:hidden;display:flex;align-items:center;justify-content:center}.ad-slot:empty{display:none}.site-footer{margin-top:36px;background:#111;color:#ddd;padding:36px 0}.site-footer a{color:#fff}.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:900px){.layout{grid-template-columns:1fr}.content-grid{grid-template-columns:1fr}}@media(max-width:720px){.menu-toggle{display:block;border:1px solid var(--b);background:#fff;padding:9px 12px}.main-nav{display:none}.main-nav.open{display:block}.main-nav ul{display:block}.container{width:min(calc(100% - 24px),var(--w))}}
/* SandhoPress Pro magazine additions */
.breaking{border-bottom:1px solid var(--sp-border);background:var(--sp-card)}
.breaking-inner{display:flex;align-items:center;gap:14px;min-height:42px;overflow:hidden}
.breaking-label{font-weight:800;white-space:nowrap}.breaking-items{display:flex;gap:20px;overflow:auto;scrollbar-width:none;white-space:nowrap;font-size:14px}.breaking-items::-webkit-scrollbar{display:none}
.hero-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:18px;margin-bottom:30px}.hero-main,.hero-side article{position:relative;overflow:hidden;border-radius:14px;background:#111;min-height:220px}.hero-main{min-height:430px}.hero-side{display:grid;gap:18px}.hero-side article{min-height:206px}
.hero-grid img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.72}.hero-copy{position:absolute;left:0;right:0;bottom:0;padding:24px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.82))}.hero-copy a{color:#fff}.hero-copy h2,.hero-copy h3{margin:0;line-height:1.15}.hero-copy h2{font-size:34px}.hero-copy h3{font-size:21px}.hero-copy .meta{color:#eee}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:2px solid var(--sp-text);margin:30px 0 18px}.section-head h2{margin:0;padding:0 0 8px;font-size:23px}.section-head a{font-size:14px;font-weight:700}
.category-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.category-row .card h2{font-size:18px}
.header-actions{display:flex;align-items:center;gap:8px}.dark-toggle{border:1px solid var(--sp-border);background:var(--sp-card);color:var(--sp-text);padding:9px 11px;border-radius:7px;cursor:pointer}
body.sp-dark{--sp-bg:#101214;--sp-text:#edf0f2;--sp-muted:#a8b0b7;--sp-border:#30343a;--sp-accent:#77aaff;--sp-card:#171a1e}
body.sp-dark .site-header,body.sp-dark .menu-toggle{background:var(--sp-card);color:var(--sp-text)}body.sp-dark .site-title,body.sp-dark .main-nav a{color:var(--sp-text)}
body.sp-dark .site-footer{background:#08090a}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}.hero-main{min-height:360px}.hero-side{grid-template-columns:1fr 1fr}.category-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.hero-main{min-height:300px}.hero-side{grid-template-columns:1fr}.hero-side article{min-height:190px}.hero-copy h2{font-size:27px}.category-row{grid-template-columns:1fr}.breaking-label{font-size:13px}}


/* v1.3.0 single-post fit, 16:9 footer stories and comments */
html{overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{overflow-x:hidden}.single-article,.entry-content{min-width:0;max-width:100%}.entry-content{overflow-wrap:anywhere;word-break:normal}.entry-content iframe,.entry-content video,.entry-content embed,.entry-content object{max-width:100%}.entry-content pre{max-width:100%;overflow:auto}.entry-content table{display:block;max-width:100%;overflow-x:auto}.single-article .featured-image{max-width:100%;margin:20px 0}.single-article .entry-title{margin-top:0;overflow-wrap:anywhere}.post-footer-stories{clear:both;margin-top:38px}.post-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.post-footer-card{min-width:0;border:1px solid var(--b);border-radius:12px;overflow:hidden;background:#fff}.post-footer-thumb{display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#f3f4f6}.post-footer-thumb img,.post-footer-placeholder{display:block;width:100%;height:100%;object-fit:cover}.post-footer-body{padding:13px}.post-footer-body h3{font-size:16px;line-height:1.35;margin:0 0 7px}.post-footer-body h3 a{color:#202124}.comments-area{clear:both;margin-top:38px;padding-top:26px;border-top:1px solid var(--b)}.comments-title,.comment-reply-title{font-size:24px}.comment-list{padding-left:22px}.comment-list li{margin-bottom:18px}.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;max-width:100%;padding:11px;border:1px solid var(--b);border-radius:7px;font:inherit}.comment-form input[type=submit]{border:0;border-radius:7px;background:var(--a);color:#fff;padding:11px 18px;font-weight:700;cursor:pointer}body.sp-dark .post-footer-card{background:var(--sp-card);border-color:var(--sp-border)}body.sp-dark .post-footer-body h3 a{color:var(--sp-text)}body.sp-dark .comments-area{border-color:var(--sp-border)}
@media(max-width:900px){.single-layout{grid-template-columns:minmax(0,1fr)}.post-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.single-article{width:100%;max-width:100%;overflow:hidden}.single-article .entry-title{font-size:clamp(27px,8vw,36px)}.entry-content{font-size:17px;line-height:1.7}.post-footer-grid{grid-template-columns:1fr}.post-footer-card{display:block}.post-footer-thumb{display:block;width:100%;height:auto;aspect-ratio:16/9;overflow:hidden}.post-footer-thumb img,.post-footer-placeholder{width:100%;height:100%;object-fit:cover}.post-footer-body{padding:11px}.post-footer-body h3{font-size:15px}}

/* v1.4.0 footer post groups: all thumbnails remain exactly 16:9 */
.post-footer-category{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--a);margin-bottom:5px}.post-footer-stories+.post-footer-stories{margin-top:34px}.post-footer-stories .post-footer-thumb{aspect-ratio:16/9!important}.post-footer-stories .post-footer-thumb img,.post-footer-stories .post-footer-placeholder{width:100%!important;height:100%!important;object-fit:cover!important}
