/*
Theme Name: Bongo Updates Pro
Theme URI: https://bongoupdates.com
Author: Bongo Updates
Description: Responsive Swahili news magazine theme with accessible navigation, featured stories, category sections and ad widget areas.
Version: 1.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bongo-updates-pro
License: GPL-2.0-or-later
*/
:root{--ink:#151b28;--muted:#6a7280;--red:#e51d35;--bg:#f5f6f9;--line:#e5e8ee;--white:#fff;--max:1200px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}a:hover{color:var(--red)}img{max-width:100%;height:auto}button,input{font:inherit}.container{width:min(var(--max),calc(100% - 36px));margin-inline:auto}.topbar{background:#101827;color:#d8deeb;font-size:12px;padding:7px 0}.topbar-inner,.header-inner,.nav-inner,.section-head,.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:20px}.site-header{background:#fff}.header-inner{padding:27px 0}.brand{font-size:clamp(25px,3vw,38px);font-weight:900;letter-spacing:-1.6px;line-height:1.1}.brand span{color:var(--red)}.tagline{font-size:12px;color:var(--muted);letter-spacing:2px;text-transform:uppercase}.header-ad{color:var(--muted);font-size:12px;text-align:center;min-width:250px}.main-nav{background:#111827;color:#fff}.nav-inner{min-height:52px}.menu{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0;flex-wrap:wrap}.menu li a{display:block;padding:14px 17px;font-size:13px;font-weight:800;text-transform:uppercase}.menu li a:hover,.current-menu-item>a{background:var(--red);color:#fff}.menu-toggle{display:none;background:none;color:#fff;border:0;padding:13px;cursor:pointer}.search-form{display:flex;max-width:310px}.search-form input{width:100%;min-width:0;border:1px solid var(--line);padding:9px 12px;border-radius:4px 0 0 4px}.search-form button{background:var(--red);color:#fff;border:0;padding:9px 14px;border-radius:0 4px 4px 0;cursor:pointer}.nav-search input{background:#263043;border:0;color:#fff}.ticker{display:flex;align-items:center;background:#fff;margin:20px auto;border:1px solid var(--line);overflow:hidden}.ticker-label{background:var(--red);color:#fff;padding:11px 15px;font-size:12px;font-weight:900;white-space:nowrap}.ticker-items{display:flex;gap:24px;overflow:auto;white-space:nowrap;padding:0 15px;font-size:13px;font-weight:700}.ticker-items a:before{content:'●';font-size:8px;color:var(--red);margin-right:8px}.hero{display:grid;grid-template-columns:1.6fr 1fr;gap:16px;margin-bottom:32px}.hero-side{display:grid;grid-template-rows:1fr 1fr;gap:16px}.story-overlay{position:relative;min-height:220px;overflow:hidden;background:#222;border-radius:7px;display:flex;align-items:end;color:#fff}.story-overlay.primary{min-height:460px}.story-overlay img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s}.story-overlay:hover img{transform:scale(1.035)}.story-overlay:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 25%,rgba(0,0,0,.88))}.story-content{position:relative;z-index:1;padding:24px;width:100%}.story-overlay h2{font-size:clamp(21px,2.5vw,34px);line-height:1.25;margin:8px 0}.hero-side h2{font-size:19px}.story-overlay a:hover{color:#fff}.cat-label{display:inline-block;background:var(--red);color:#fff;padding:3px 9px;border-radius:2px;font-size:10px;font-weight:900;text-transform:uppercase}.meta{font-size:12px;color:var(--muted)}.story-overlay .meta{color:#d5d5d5}.layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(260px,1fr);gap:28px;align-items:start}.section-head{border-bottom:2px solid var(--ink);margin-bottom:18px}.section-head h2{font-size:20px;text-transform:uppercase;margin:0;padding:0 0 10px;font-weight:900}.section-head h2:before{content:'';display:inline-block;background:var(--red);width:5px;height:20px;vertical-align:-3px;margin-right:10px}.posts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.post-card,.widget,.article{background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden}.post-card .thumb{display:block;aspect-ratio:16/10;background:#e1e5eb;overflow:hidden}.post-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.post-card:hover img{transform:scale(1.04)}.post-body{padding:17px}.post-body h3{font-size:19px;line-height:1.35;margin:8px 0}.excerpt{font-size:14px;color:#5e6672;margin:8px 0 0}.widget{padding:20px;margin-bottom:22px}.widget-title{font-size:17px;margin:0 0 15px;border-bottom:2px solid var(--red);padding-bottom:9px}.widget ul{padding-left:18px}.widget li{margin:9px 0}.ad-slot{min-height:90px;display:flex;justify-content:center;align-items:center;color:#8b929e;background:#f0f2f5;border:1px dashed #ccd2dc;font-size:12px}.pagination{margin:30px 0;display:flex;gap:8px;flex-wrap:wrap}.page-numbers{padding:8px 13px;background:#fff;border:1px solid var(--line);border-radius:3px}.page-numbers.current{background:var(--red);color:#fff}.article{padding:clamp(20px,3vw,38px)}.article h1{font-size:clamp(27px,4vw,43px);line-height:1.2;margin:10px 0}.article .featured{width:100%;margin:20px 0;border-radius:5px}.entry-content{font-size:17px;line-height:1.85;overflow-wrap:anywhere}.entry-content iframe{max-width:100%}.entry-content a{color:var(--red);text-decoration:underline}.category-strip{margin:32px 0}.category-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.category-posts .post-body h3{font-size:16px}.site-footer{background:#111827;color:#d8dce5;margin-top:45px;padding:42px 0 18px}.footer-inner{align-items:flex-start}.footer-inner>div{flex:1}.site-footer a:hover{color:#fff}.footer-bottom{border-top:1px solid #364052;padding-top:18px;margin-top:28px;font-size:12px;color:#aab3c2}.screen-reader-text{position:absolute;left:-9999px}.screen-reader-text:focus{left:10px;top:10px;z-index:999;background:#fff;padding:10px}.aligncenter{display:block;margin-inline:auto}.wp-caption{max-width:100%}.wp-caption-text{font-size:12px;color:var(--muted)}.sticky{outline:1px solid var(--red)}.gallery-caption{font-size:12px}.bypostauthor{font-weight:inherit}@media(max-width:850px){.layout{grid-template-columns:1fr}.hero{grid-template-columns:1fr}.hero-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}.story-overlay.primary{min-height:370px}.header-ad{display:none}.nav-search{display:none}.menu-toggle{display:block}.nav-inner{display:block}.main-nav .menu{display:none;flex-direction:column;align-items:stretch}.main-nav .menu.is-open{display:flex}.main-nav .menu li a{padding:11px 14px}.footer-inner{flex-wrap:wrap}}@media(max-width:540px){.container{width:min(100% - 24px,var(--max))}.hero-side,.posts-grid,.category-posts{grid-template-columns:1fr}.story-overlay.primary{min-height:340px}.story-overlay{min-height:220px}.header-inner{padding:22px 0}.story-content{padding:18px}.story-overlay h2{font-size:24px}.hero-side h2{font-size:20px}}

/* Reference-inspired magazine redesign v1.1 */
:root{--ink:#222;--red:#ed1015;--bg:#eeeeee;--line:#e9e9e9;--max:1020px}
body{font-family:Arial,"Helvetica Neue",sans-serif;line-height:1.5;background:#efefef}
body:before{content:"";position:absolute;z-index:-1;left:50%;transform:translateX(-50%);top:0;width:min(1060px,100%);height:100%;background:white;box-shadow:0 0 30px #00000012}
.container{width:min(var(--max),calc(100% - 32px))}
.topbar{background:transparent;padding:0;color:white}.topbar-inner{background:#222;min-height:29px;padding:0 13px}.utility-links,.top-social{display:flex;gap:16px;align-items:center}.utility-links a{font-size:10px;font-weight:800;text-transform:uppercase}.top-social a{font-weight:900;font-size:13px}
.site-header{background:transparent}.header-inner{justify-content:center;min-height:112px;padding:15px 0 20px}.branding{text-align:center}.brand{font-size:clamp(29px,4vw,43px);font-weight:900;letter-spacing:-2px}.brand span{color:var(--red)}.tagline{font-size:10px;color:#222;letter-spacing:5px;font-weight:900}.custom-logo{max-width:330px;max-height:92px;width:auto;height:auto}
.main-nav{background:transparent}.nav-inner{background:#191919;min-height:43px}.menu li a{padding:13px 17px;font-size:12px}.nav-search{margin-left:auto}.nav-search input{max-width:115px;background:#222}.nav-search button{background:#292929}
.ticker{margin:15px 0 17px;background:#f6f6f6;border:0;min-height:36px}.ticker-label{background:#252525;padding:10px 13px;font-size:11px}.ticker-items{font-size:11px}
.hero{grid-template-columns:1.12fr 1.12fr 1fr;gap:9px;margin-bottom:34px}.hero-side{gap:9px;grid-template-rows:1fr 1fr}.story-overlay,.story-overlay.primary{min-height:310px;border-radius:0}.hero-side .story-overlay{min-height:150px}.story-content{padding:14px}.story-overlay h2{font-size:20px;line-height:1.2}.hero-side h2{font-size:14px}.story-overlay.primary h2{font-size:20px}.story-overlay .meta{font-size:10px}.cat-label{background:#ed2525;font-size:10px;border-radius:0;padding:2px 6px}.story-overlay:after{background:linear-gradient(transparent 25%,rgba(0,0,0,.92))}
.layout{grid-template-columns:minmax(0,2.05fr) minmax(240px,1fr);gap:22px}.section-head{background:#222;border:0;color:#fff;min-height:29px;margin-bottom:14px}.section-head h2{font-size:12px;padding:7px 10px}.section-head h2:before{height:15px;width:4px;margin-right:8px}.section-head a{font-size:11px;padding-right:8px}.recent-list{display:block}.recent-list .post-card{display:grid;grid-template-columns:40% 1fr;gap:15px;padding:0 0 13px;margin:0 0 13px;border:0;border-bottom:1px solid #eee;border-radius:0}.recent-list .post-card .thumb{aspect-ratio:1.45}.recent-list .post-body{padding:0}.recent-list .post-body h3{font-size:19px;margin:0 0 7px;line-height:1.3}.recent-list .post-body .cat-label{display:none}.recent-list .post-body .excerpt{font-size:12px;color:#777}.recent-list .meta{font-size:11px}.widget{border:0;border-radius:0;padding:0;margin-bottom:20px}.widget-title{background:#222;color:#fff;border:0;font-size:12px;padding:9px 11px;margin:0 0 10px}.widget>p,.widget>ul{padding:10px 14px}.video-frame{aspect-ratio:16/9}.video-frame iframe{border:0;width:100%;height:100%}.category-strip .section-head{background:#222}.post-card{border-radius:0}.site-footer{background:#222}.pagination{margin:18px 0}
@media(max-width:850px){.hero{grid-template-columns:1fr 1fr}.hero-side{grid-column:1/-1;grid-template-columns:1fr 1fr;grid-template-rows:auto}.hero-side .story-overlay{min-height:180px}.layout{grid-template-columns:1fr}.nav-search{display:none}.main-nav .menu{display:none}.main-nav .menu.is-open{display:flex}}
@media(max-width:540px){.utility-links{gap:8px;flex-wrap:wrap}.utility-links a{font-size:8px}.top-social{display:none}.hero{grid-template-columns:1fr}.hero-side{grid-template-columns:1fr 1fr}.story-overlay.primary{min-height:270px}.hero-side .story-overlay{min-height:170px}.hero-side h2{font-size:14px}.recent-list .post-card{grid-template-columns:38% 1fr;gap:10px}.recent-list .post-body h3{font-size:15px}.recent-list .post-body .excerpt{display:none}.header-inner{min-height:100px}.brand{font-size:32px}}

/* v1.2 — condensed news typography matching reference and continuous breaking ticker */
.brand,.menu li a,.ticker-label,.story-overlay h2,.post-body h3,.section-head h2,.widget-title,.article h1,.article h2,.article h3,.cat-label,.utility-links a,.site-footer h2,.site-footer h3{font-family:"Oswald","Arial Narrow",Impact,sans-serif;letter-spacing:.05px}
.story-overlay h2,.post-body h3{font-weight:500}
.menu li a,.section-head h2,.widget-title,.ticker-label{font-weight:600}
.ticker{width:100%;overflow:hidden}
.ticker-label{position:relative;z-index:2;flex:none}
.ticker-window{flex:1;min-width:0;overflow:hidden;white-space:nowrap;mask-image:linear-gradient(to right,#000 0%,#000 94%,transparent 100%)}
.ticker-track{display:flex;width:max-content;align-items:center;animation:bup-ticker-scroll 32s linear infinite;will-change:transform}
.ticker-group{display:flex;align-items:center;flex:none;gap:32px;padding-right:32px;white-space:nowrap}
.ticker-group a,.ticker-group span{display:inline-block;font:600 12px/1.4 Arial,sans-serif;white-space:nowrap}
.ticker-group a:before,.ticker-group span:before{content:"◆";font-size:8px;color:#e11;margin-right:9px}
.ticker-window:hover .ticker-track,.ticker-window:focus-within .ticker-track{animation-play-state:paused}
@keyframes bup-ticker-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.ticker-track{animation:none}.ticker-window{overflow-x:auto;mask-image:none}}

/* v1.3 — featured and recent image proportions matched to supplied reference */
@media (min-width: 851px){
 .hero{grid-template-columns:minmax(0,1.14fr) minmax(0,1.14fr) minmax(0,1fr);gap:9px;align-items:stretch}
 .hero>.story-overlay.primary{height:auto;min-height:0;aspect-ratio:296/328}
 .hero-side{min-height:0;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:9px}
 .hero-side .story-overlay{height:100%;min-height:0;aspect-ratio:auto}
 .recent-list .post-card{grid-template-columns:minmax(0,40%) minmax(0,1fr);align-items:start}
 .recent-list .post-card .thumb{aspect-ratio:245/184}
}
.hero .story-overlay img,.recent-list .post-card .thumb img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.hero .story-overlay{isolation:isolate}
@media (min-width:541px) and (max-width:850px){
 .hero>.story-overlay.primary{aspect-ratio:296/328;min-height:0}
 .hero-side .story-overlay{aspect-ratio:260/160;min-height:0}
 .recent-list .post-card .thumb{aspect-ratio:245/184}
}
@media (max-width:540px){
 .hero>.story-overlay.primary{aspect-ratio:296/328;min-height:0}
 .hero-side .story-overlay{aspect-ratio:260/160;min-height:0}
 .recent-list .post-card .thumb{aspect-ratio:245/184}
}

/* v1.4 header */
.tagline{display:none!important}.top-social{display:flex;gap:8px;align-items:center}.top-social a{display:inline-flex;align-items:center;justify-content:center;color:#fff!important;width:25px;height:25px;border-radius:50%;font-size:16px;font-weight:bold}.top-social .social-facebook{background:#1877f2}.top-social .social-instagram{background:linear-gradient(45deg,#feda75,#d62976,#962fbf)}.top-social .social-youtube{background:#ff0033;border-radius:6px}@media(max-width:540px){.top-social{display:flex;gap:4px}.top-social a{width:20px;height:20px;font-size:12px}.topbar-inner{gap:5px}.utility-links{gap:6px}.utility-links a{font-size:7px}}
