/*
Theme Name: News Domain
Theme URI: https://newsdomain.co.za/
Author: News Domain
Author URI: https://newsdomain.co.za/
Description: A responsive South African digital news theme built for News Domain, with dynamic posts, categories, featured stories, trending sidebar, ad slots and mobile navigation.
Version: 4.3.0
Text Domain: news-domain
*/

:root{
  --nd-red:#e00000;
  --nd-black:#0d0d0d;
  --nd-text:#111;
  --nd-muted:#6f6f6f;
  --nd-border:#e8e8e8;
  --nd-bg:#fff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--nd-text);background:var(--nd-bg)}
img{max-width:100%;height:auto}
a{text-decoration:none;color:inherit}
.container{width:min(1180px,calc(100% - 32px));margin:auto}
.top-strip{background:#111;color:#bbb;font-size:12px}
.top-strip-inner{height:34px;display:flex;align-items:center;justify-content:space-between}
.site-header{background:#fff;border-bottom:1px solid var(--nd-border);position:sticky;top:0;z-index:999}
.header-inner{height:112px;display:flex;align-items:center;justify-content:space-between}
.site-logo{display:block;width:330px;max-width:56vw}
.header-actions{display:flex;gap:10px}
.search-toggle,.menu-btn{background:none;border:1px solid #ddd;width:42px;height:42px;font-size:22px;cursor:pointer}
.menu-btn{display:none}
.main-nav{border-top:1px solid #eee;background:#fff}
.nav-inner{display:flex;gap:30px;min-height:52px;align-items:center;font-size:13px;font-weight:700;text-transform:uppercase}
.nav-inner a:hover,.nav-inner .current-menu-item>a{color:var(--nd-red)}
.breaking{background:#0d0d0d;color:#fff}
.breaking-inner{display:flex;align-items:center;min-height:42px}
.breaking-label{background:var(--nd-red);padding:12px 18px;font-size:12px;font-weight:800;letter-spacing:.08em}
.ticker{padding-left:18px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:22px;padding-top:28px}
.lead-card{min-height:540px;position:relative;overflow:hidden;background:#111}
.lead-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.placeholder{background:linear-gradient(135deg,#e6e6e6,#c9c9c9)}
.lead-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.92),rgba(0,0,0,.05) 65%)}
.lead-content{position:absolute;left:34px;right:34px;bottom:32px;color:#fff}
.category{display:inline-block;color:var(--nd-red);text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.08em;margin-bottom:9px}
.lead-content h1{font-family:Georgia,"Times New Roman",serif;font-size:44px;line-height:1.06;margin:0 0 14px}
.lead-content p{max-width:700px;color:#ddd;font-size:15px;line-height:1.5}
.meta{font-size:12px;color:var(--nd-muted)}
.lead-content .meta{color:#bbb}
.side-stories{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.story-card img,.story-card .placeholder{width:100%;height:160px;object-fit:cover;display:block;margin-bottom:12px}
.story-card h3{font-size:18px;line-height:1.25;margin:0 0 8px}
.ad-slot{margin-top:34px;margin-bottom:34px;min-height:110px;border:1px dashed #bbb;background:#fafafa;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999;font-size:11px;letter-spacing:.08em;text-align:center;padding:20px}
.ad-slot strong{font-size:18px;color:#bbb;margin-top:6px}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:44px;padding-bottom:50px}
.section-heading{display:flex;align-items:end;justify-content:space-between;border-bottom:3px solid #111;margin-bottom:22px;padding-bottom:10px}
.section-heading h2{font-family:Georgia,"Times New Roman",serif;font-size:32px;margin:0}
.section-heading a{font-size:13px;font-weight:700;color:var(--nd-red)}
.latest-list{display:flex;flex-direction:column;gap:24px}
.news-row{display:grid;grid-template-columns:260px 1fr;gap:22px;padding-bottom:24px;border-bottom:1px solid #eee}
.news-row img,.news-row .placeholder{width:100%;height:160px;object-fit:cover;display:block}
.news-row h3{font-size:22px;line-height:1.2;margin:0 0 9px}
.news-row p{color:#666;line-height:1.55;margin:0 0 10px}
.sidebar-card{border-top:4px solid var(--nd-red);padding-top:12px}
.trending-list{list-style:none;padding:0;margin:0}
.trending-list li{display:grid;grid-template-columns:48px 1fr;gap:12px;padding:16px 0;border-bottom:1px solid #eee}
.trending-list span{font-size:28px;font-weight:800;color:#ddd}
.trending-list a{font-weight:700;line-height:1.35}
.dark-section{background:#111;color:#fff;padding:52px 0}
.section-heading.light{border-color:#fff}
.three-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.feature-card img,.feature-card .placeholder{width:100%;height:230px;object-fit:cover;display:block;margin-bottom:16px}
.feature-card h3{font-size:23px;line-height:1.25;margin:0}
.category-block{padding:54px 0 0}
.four-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.mini-card img,.mini-card .placeholder{width:100%;height:170px;object-fit:cover;display:block;margin-bottom:12px}
.mini-card h3{font-size:17px;line-height:1.35;margin:0}
.newsletter{margin-top:60px;background:var(--nd-red);color:#fff;padding:48px 0}
.newsletter-inner{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px}
.newsletter h2{font-family:Georgia,"Times New Roman",serif;font-size:34px;margin:8px 0}
.newsletter p{margin:0;color:#ffe1e1;line-height:1.5}
.newsletter-form{display:flex}
.newsletter-form input{flex:1;padding:17px;border:none;font-size:14px}
.newsletter-form button{border:none;background:#111;color:#fff;padding:0 24px;font-weight:800;cursor:pointer}
.site-footer{background:#0a0a0a;color:#aaa;padding-top:48px;margin-top:60px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px}
.footer-logo{width:260px;max-width:100%;margin-bottom:18px}
.site-footer p{line-height:1.6;max-width:420px}
.site-footer h4{color:#fff;margin:0 0 16px}
.site-footer a{display:block;margin:10px 0;font-size:14px}
.copyright{border-top:1px solid #222;margin-top:38px;padding:20px 0;font-size:12px}
.archive-header{padding:40px 0 10px}
.archive-header h1{font-family:Georgia,"Times New Roman",serif;font-size:42px;margin:0}
.article-wrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:48px;padding:45px 0}
.single-article h1{font-family:Georgia,"Times New Roman",serif;font-size:48px;line-height:1.08;margin:0 0 15px}
.single-article .featured{width:100%;max-height:580px;object-fit:cover;margin:26px 0}
.entry-content{font-size:18px;line-height:1.8}
.entry-content h2,.entry-content h3{line-height:1.25}
.entry-content a{color:var(--nd-red);text-decoration:underline}
.pagination{display:flex;gap:8px;justify-content:center;padding:35px 0}
.pagination .page-numbers{padding:10px 13px;border:1px solid #ddd}
.pagination .current{background:#111;color:#fff;border-color:#111}
.search-panel{display:none;padding:14px 0;border-top:1px solid #eee}
.search-panel.open{display:block}
.search-panel form{display:flex;gap:8px}
.search-panel input{flex:1;padding:12px;border:1px solid #ccc}
.search-panel button{background:#111;color:#fff;border:0;padding:0 18px}
@media(max-width:900px){
.header-inner{height:86px}.menu-btn{display:block}.main-nav{display:none}.main-nav.open{display:block}.nav-inner{height:auto;flex-direction:column;align-items:flex-start;padding:18px 0;gap:18px}
.hero-grid,.content-layout,.article-wrap{grid-template-columns:1fr}.side-stories{grid-template-columns:1fr 1fr}.three-grid{grid-template-columns:1fr 1fr}.four-grid{grid-template-columns:1fr 1fr}.newsletter-inner{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.single-article h1{font-size:40px}
}
@media(max-width:600px){
.container{width:min(100% - 22px,1180px)}.top-strip-inner span:first-child{display:none}.top-strip-inner{justify-content:flex-end}.site-logo{width:230px;max-width:70vw}.hero-grid{padding-top:14px}.lead-card{min-height:430px}.lead-content{left:20px;right:20px;bottom:22px}.lead-content h1{font-size:30px}.side-stories{grid-template-columns:1fr}.story-card{display:grid;grid-template-columns:120px 1fr;grid-template-rows:auto auto auto;gap:0 14px}.story-card img,.story-card .placeholder{height:95px;grid-row:1/4;margin-bottom:0}.news-row{grid-template-columns:120px 1fr;gap:14px}.news-row img,.news-row .placeholder{height:100px}.news-row p{display:none}.news-row h3{font-size:17px}.three-grid,.four-grid{grid-template-columns:1fr}.newsletter-form{flex-direction:column}.newsletter-form button{padding:16px}.footer-grid{grid-template-columns:1fr}.section-heading h2{font-size:27px}.single-article h1{font-size:32px}.entry-content{font-size:17px}
}


/* =========================
   NEWS DOMAIN V2 REFINEMENTS
   ========================= */

body{overflow-x:hidden}
.site-header{box-shadow:0 1px 0 rgba(0,0,0,.04)}
.header-inner{height:88px}
.site-logo,
.custom-logo-link img,
.custom-logo{width:360px;max-width:54vw;height:auto;display:block}
.custom-logo-link{display:flex;align-items:center}

.main-nav{border-top:1px solid #ececec}
.nav-inner{min-height:50px}
.nav-inner .menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:28px;
  width:100%;
}
.nav-inner .menu li{list-style:none;margin:0;padding:0}
.nav-inner .menu li::marker{content:""}
.nav-inner .menu a{
  display:block;
  padding:17px 0;
  font-size:13px;
  line-height:1;
  font-weight:800;
  text-transform:uppercase;
  white-space:nowrap;
}
.nav-inner .menu .current-menu-item>a,
.nav-inner .menu a:hover{color:var(--nd-red)}

.breaking-inner{min-height:40px}
.breaking-label{padding:11px 17px}
.hero-grid{
  grid-template-columns:minmax(0,1.65fr) minmax(340px,.95fr);
  gap:22px;
  padding-top:28px;
}
.lead-card{min-height:470px;border-radius:2px}
.lead-content{left:32px;right:32px;bottom:28px}
.lead-content h1{font-size:42px;max-width:830px}
.side-stories{gap:18px}
.story-card img,.story-card .placeholder{height:145px}
.story-card h3{font-size:17px}

.ad-slot{margin-top:28px;margin-bottom:28px}
.content-layout{gap:38px}
.news-row{grid-template-columns:235px 1fr}
.news-row img,.news-row .placeholder{height:145px}
.news-row h3{font-size:21px}
.sidebar-card{position:relative}
.trending-list li{padding:15px 0}

.dark-section{padding:46px 0}
.feature-card img,.feature-card .placeholder{height:215px}
.category-block{padding-top:48px}
.mini-card img,.mini-card .placeholder{height:158px}

.site-footer{margin-top:52px}

@media(max-width:1100px){
  .nav-inner .menu{gap:20px;overflow-x:auto;scrollbar-width:none}
  .nav-inner .menu::-webkit-scrollbar{display:none}
  .nav-inner .menu a{font-size:12px}
  .hero-grid{grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr)}
  .lead-content h1{font-size:38px}
}

@media(max-width:900px){
  .header-inner{height:78px}
  .site-logo,.custom-logo-link img,.custom-logo{width:285px;max-width:68vw}
  .nav-inner .menu{
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    overflow:visible;
    width:100%;
  }
  .nav-inner .menu li{width:100%;border-bottom:1px solid #eee}
  .nav-inner .menu a{padding:14px 0;width:100%}
  .hero-grid{grid-template-columns:1fr}
  .lead-card{min-height:430px}
}

@media(max-width:600px){
  .header-inner{height:72px}
  .site-logo,.custom-logo-link img,.custom-logo{width:235px;max-width:72vw}
  .lead-card{min-height:390px}
  .lead-content{left:20px;right:20px;bottom:20px}
  .lead-content h1{font-size:29px;line-height:1.08}
  .lead-content p{display:none}
}


/* =========================
   NEWS DOMAIN V3 REFINEMENTS
   ========================= */

.site-footer ul,
.site-footer li{
  list-style:none;
  margin:0;
  padding:0;
}
.site-footer li::marker{content:""}
.site-footer li{margin:10px 0}

.home-section{
  padding:50px 0 0;
}
.home-section.alt{
  background:#f7f7f7;
  padding:50px 0;
  margin-top:50px;
}
.home-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.home-grid .feature-card{
  background:#fff;
}
.home-section.alt .feature-card{
  background:#fff;
  padding-bottom:8px;
}
.home-grid .feature-card h3{
  padding-right:6px;
}
.empty-home-message{
  padding:40px 0;
  color:#666;
  font-size:16px;
}
.newsletter p{
  max-width:620px;
}

@media(max-width:900px){
  .home-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .home-grid{grid-template-columns:1fr}
}


/* =========================================================
   NEWS DOMAIN V4 — FINAL POLISH, ACCESSIBILITY & AD LAYOUT
   ========================================================= */

:root{
  --nd-red:#ed0000;
  --nd-black:#0b0b0b;
  --nd-text:#141414;
  --nd-muted:#6b6b6b;
  --nd-border:#e7e7e7;
  --nd-soft:#f6f6f6;
  --nd-container:1180px;
}

body{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  line-height:1.45;
}
body.admin-bar .site-header{top:32px}
@media(max-width:782px){body.admin-bar .site-header{top:46px}}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  position:fixed;
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:12px 18px;
  background:#fff;
  color:#000;
  z-index:10000;
  box-shadow:0 4px 20px rgba(0,0,0,.2);
}

.container{width:min(var(--nd-container),calc(100% - 36px))}
.top-strip{background:#101010}
.top-strip-inner{height:32px}
.site-header{position:sticky;top:0}
.header-inner{height:82px}
.site-logo,.custom-logo-link img,.custom-logo{width:330px;max-height:58px;object-fit:contain}
.header-actions button{transition:.2s ease}
.header-actions button:hover{background:#111;color:#fff;border-color:#111}
.main-nav{box-shadow:0 1px 0 rgba(0,0,0,.03)}
.nav-inner .menu a{letter-spacing:.01em}
.breaking{border-bottom:1px solid #222}
.ticker a{color:#fff}
.ticker a:hover{text-decoration:underline}

.hero-grid{padding-top:26px}
.lead-card{min-height:500px;border-radius:0}
.lead-card:focus-within{outline:3px solid var(--nd-red);outline-offset:2px}
.lead-content h1{font-size:clamp(35px,3.1vw,49px);text-wrap:balance}
.lead-content p{font-size:15px;max-width:760px}
.story-card{min-width:0}
.story-card a,.feature-card a,.mini-card a{display:block}
.story-card h3,.news-row h3,.feature-card h3,.mini-card h3{text-wrap:balance}
.story-card img,.story-card .placeholder{height:150px}
.story-card a:hover h3,.news-row a:hover,.feature-card a:hover h3,.mini-card a:hover h3{color:var(--nd-red)}

.nd-ad{
  width:100%;
  margin:30px auto;
  overflow:hidden;
  text-align:center;
}
.nd-ad:empty{display:none}
.nd-ad .widget{margin:0}
.nd-ad img,.nd-ad iframe{max-width:100%}

.content-layout{padding-top:10px}
.section-heading{border-bottom-width:2px}
.section-heading h2{font-size:clamp(27px,2.4vw,35px)}
.news-row{grid-template-columns:245px minmax(0,1fr)}
.news-row img,.news-row .placeholder{height:150px}
.news-row h3{font-size:21px}
.news-row p{font-size:14px}
.trending-list li a:hover{color:var(--nd-red)}

.home-section{padding-top:48px}
.home-section.alt{margin-top:48px;padding:48px 0}
.home-grid .feature-card img,.home-grid .feature-card .placeholder{height:220px}
.home-grid .feature-card h3{font-size:21px}
.home-grid .feature-card .category{margin-top:3px}

.newsletter{margin-top:54px;padding:44px 0}
.newsletter h2{font-size:clamp(30px,3vw,40px);line-height:1.08}
.newsletter-form input{
  min-height:52px;
  border-radius:0;
  outline:none;
}
.newsletter-form input:focus{box-shadow:inset 0 0 0 3px rgba(0,0,0,.25)}
.newsletter-form button{min-height:52px}
.newsletter-form button:hover{background:#2a2a2a}

.site-footer{margin-top:0;padding-top:52px}
.footer-grid{grid-template-columns:1.65fr 1fr 1fr 1fr}
.site-footer a:hover{color:#fff}
.footer-logo{width:220px}
.copyright{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}

.article-wrap{padding-top:42px}
.single-article{min-width:0}
.single-article h1{font-size:clamp(36px,4vw,58px);text-wrap:balance}
.article-deck{font-size:20px;line-height:1.5;color:#555;margin:14px 0 4px}
.byline{font-size:13px;color:#777;margin-top:14px}
.single-article .featured{display:block;width:100%;max-height:620px;object-fit:cover}
.entry-content{max-width:790px}
.entry-content>p:first-of-type{font-size:20px}
.entry-content img{height:auto}
.entry-content figure{max-width:100%;margin-left:0;margin-right:0}
.entry-content blockquote{
  margin:28px 0;
  padding:4px 0 4px 22px;
  border-left:4px solid var(--nd-red);
  font-size:21px;
  color:#333;
}
.entry-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.entry-content th,.entry-content td{border:1px solid #ddd;padding:10px}
.article-tags{margin-top:30px;font-size:13px}
.article-tags a{display:inline-block;background:#f1f1f1;padding:7px 10px;margin:4px 4px 0 0;text-decoration:none}
.article-tags a:hover{background:#111;color:#fff}
.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:40px;padding-top:24px;border-top:1px solid #ddd}
.post-nav a{font-weight:700}
.post-nav .next{text-align:right}

.archive-header{padding-top:34px}
.archive-description{max-width:760px;color:#666}
.no-results{padding:60px 0}
.search-result-count{color:var(--nd-muted);margin-top:5px}

.page-404{text-align:center;padding:90px 0}
.page-404 h1{font-size:80px;margin:0;color:var(--nd-red)}
.page-404 h2{font-size:30px;margin:0 0 12px}
.page-404 p{color:#666}
.button-link{display:inline-block;background:#111;color:#fff;padding:13px 20px;margin-top:12px;font-weight:700}
.button-link:hover{background:var(--nd-red)}

.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);
  height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important
}
.screen-reader-text:focus{
  background:#f1f1f1;clip:auto!important;clip-path:none;color:#21759b;
  display:block;font-size:14px;font-weight:700;height:auto;left:5px;line-height:normal;
  padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000
}

@media(max-width:900px){
  .container{width:min(100% - 28px,var(--nd-container))}
  .header-inner{height:74px}
  .site-logo,.custom-logo-link img,.custom-logo{width:270px;max-height:52px}
  .hero-grid{gap:18px}
  .side-stories{gap:16px}
  .content-layout{padding-top:0}
  .footer-grid{grid-template-columns:1fr 1fr}
  .entry-content{max-width:none}
}
@media(max-width:600px){
  .container{width:min(100% - 22px,var(--nd-container))}
  .top-strip{display:none}
  .header-inner{height:68px}
  .site-logo,.custom-logo-link img,.custom-logo{width:215px;max-width:68vw}
  .breaking-label{padding:10px 12px}
  .ticker{font-size:12px;padding-left:12px}
  .lead-card{min-height:400px}
  .lead-content h1{font-size:30px}
  .story-card img,.story-card .placeholder{height:94px}
  .news-row{grid-template-columns:115px minmax(0,1fr)}
  .news-row img,.news-row .placeholder{height:92px}
  .home-grid .feature-card img,.home-grid .feature-card .placeholder{height:210px}
  .footer-grid{grid-template-columns:1fr}
  .newsletter{padding:38px 0}
  .article-wrap{padding-top:28px}
  .single-article h1{font-size:34px}
  .article-deck{font-size:18px}
  .entry-content>p:first-of-type{font-size:18px}
  .post-nav{grid-template-columns:1fr}
  .post-nav .next{text-align:left}
}


/* =========================================================
   V4.1 MOBILE WIDTH / BLANK-SPACE FIX
   ========================================================= */

html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

main,
section,
article,
aside,
header,
footer,
.container,
.hero-grid,
.content-layout,
.latest-list,
.news-row,
.home-grid,
.side-stories{
  min-width:0;
  max-width:100%;
}

img,
video,
iframe,
embed,
object{
  max-width:100%;
}

.entry-content,
.entry-content *{
  max-width:100%;
}

.entry-content pre,
.entry-content code{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

@media(max-width:600px){
  .container{
    width:calc(100% - 22px);
    max-width:calc(100% - 22px);
  }

  .content-layout,
  .article-wrap{
    width:100%;
    max-width:100%;
    grid-template-columns:minmax(0,1fr);
    overflow:hidden;
  }

  .latest-list{
    width:100%;
    max-width:100%;
  }

  .news-row{
    width:100%;
    max-width:100%;
    grid-template-columns:110px minmax(0,1fr);
    gap:12px;
    overflow:hidden;
  }

  .news-row > *{
    min-width:0;
    max-width:100%;
  }

  .news-row h3,
  .news-row p,
  .story-card h3,
  .feature-card h3,
  .mini-card h3{
    overflow-wrap:anywhere;
  }

  .news-row img,
  .news-row .placeholder{
    width:110px;
    max-width:110px;
    height:88px;
    object-fit:cover;
  }

  .side-stories,
  .home-grid,
  .three-grid,
  .four-grid{
    width:100%;
    max-width:100%;
    grid-template-columns:minmax(0,1fr);
  }

  .story-card,
  .feature-card,
  .mini-card,
  .single-article,
  .entry-content{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .main-nav,
  .nav-inner,
  .nav-inner .menu{
    width:100%;
    max-width:100%;
  }

  .nav-inner .menu a{
    white-space:normal;
    overflow-wrap:anywhere;
  }
}


/* =========================================================
   V4.2 MOBILE SIDE-MARGIN / BLANK-SPACE FIX
   ========================================================= */

@media(max-width:600px){
  /* Use almost the full phone width while keeping a small safe gutter */
  .container{
    width:calc(100% - 12px) !important;
    max-width:calc(100% - 12px) !important;
    margin-left:6px !important;
    margin-right:6px !important;
  }

  /* Remove unnecessary inner spacing from main mobile content */
  .hero-grid,
  .content-layout,
  .home-section .container,
  .newsletter-inner,
  .footer-grid,
  .article-wrap{
    padding-left:0 !important;
    padding-right:0 !important;
  }

  /* Let cards fully use the available width */
  .latest-list,
  .news-row,
  .side-stories,
  .home-grid,
  .story-card,
  .feature-card,
  .mini-card,
  .single-article,
  .entry-content{
    width:100% !important;
    max-width:100% !important;
  }

  /* Slightly reduce mobile gaps between image and text */
  .news-row{
    grid-template-columns:104px minmax(0,1fr);
    gap:10px;
  }

  .news-row img,
  .news-row .placeholder{
    width:104px;
    max-width:104px;
    height:86px;
  }

  /* Prevent section headings from creating side overflow */
  .section-heading{
    width:100%;
    margin-left:0;
    margin-right:0;
  }

  /* Footer should also use the full mobile width */
  .site-footer .container{
    width:calc(100% - 20px) !important;
    max-width:calc(100% - 20px) !important;
    margin-left:10px !important;
    margin-right:10px !important;
  }
}


/* =========================================================
   V4.3 — SEO, TRUST, ACCESSIBILITY & INTERNAL LINKING
   ========================================================= */

/* Keyboard focus visibility, without affecting mouse clicks */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu a:focus-visible{
  outline:3px solid var(--nd-red);
  outline-offset:2px;
}

/* Breadcrumbs */
.breadcrumbs{padding:18px 0 0;font-size:13px;color:var(--nd-muted)}
.breadcrumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.breadcrumbs li{display:flex;align-items:center;gap:6px}
.breadcrumbs li:not(:last-child)::after{content:"/";color:#ccc;margin-left:6px}
.breadcrumbs a{color:var(--nd-muted)}
.breadcrumbs a:hover{color:var(--nd-red)}
.breadcrumbs span[aria-current]{color:var(--nd-text);font-weight:700}

/* Author trust box */
.author-box{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:18px;
  align-items:start;
  margin:36px 0;
  padding:20px;
  background:var(--nd-soft, #f6f6f6);
  border-left:4px solid var(--nd-red);
}
.author-box img{border-radius:50%;display:block}
.author-box-name{display:block;font-weight:800;margin-bottom:6px}
.author-box p{margin:0 0 8px;color:#444;line-height:1.6;font-size:15px}
.author-box a{font-weight:700;color:var(--nd-red)}
.author-box a:hover{text-decoration:underline}

/* Related articles */
.related-posts{margin-top:46px;padding-top:30px;border-top:1px solid var(--nd-border)}

@media(max-width:600px){
  .author-box{grid-template-columns:48px 1fr;padding:16px}
  .author-box img{width:48px;height:48px}
  .breadcrumbs{font-size:12px}
}

/* 404 page search + popular categories */
.page-404-search{max-width:440px;margin:34px auto 0}
.page-404-search form{display:flex;gap:8px}
.page-404-search input{flex:1;padding:13px;border:1px solid #ccc}
.page-404-search button{background:#111;color:#fff;border:0;padding:0 20px;font-weight:700;cursor:pointer}
.page-404-categories{margin:40px auto 0;max-width:520px}
.page-404-categories h3{font-size:15px;text-transform:uppercase;letter-spacing:.04em;color:var(--nd-muted);margin-bottom:14px}
.page-404-categories ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.page-404-categories li{margin:0}
.page-404-categories a{display:inline-block;background:#f1f1f1;padding:9px 16px;font-weight:700;font-size:14px}
.page-404-categories a:hover{background:#111;color:#fff}
