/*
Theme Name: SamvadBhoomi
Theme URI: https://samvadbhoomi.com
Author: SamvadBhoomi
Description: Chhattisgarh ki Hindi news website SamvadBhoomi.com ke liye custom broadsheet-style news theme. Breaking-news ticker, homepage hero, category grid, ad-ready widget areas aur trending sidebar ke saath.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: samvadbhoomi
*/

:root{
  --paper:#FAF6EE;
  --paper-dim:#F1EBDC;
  --ink:#1C1A17;
  --ink-soft:#5A5650;
  --maroon:#8E1B24;
  --maroon-dark:#6B1119;
  --gold:#B8862B;
  --rule:#D8CFBC;
  --ad-bg:#EFE6D2;
  --ad-border:#C9A227;
}
*{box-sizing:border-box;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Sans Devanagari', sans-serif;
  line-height:1.5;
  margin:0;
}
h1,h2,h3,.serif{font-family:'Noto Serif Devanagari', serif;}
a{color:inherit;text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px;}

/* Ad widget areas */
.ad-slot{
  background:repeating-linear-gradient(135deg, var(--ad-bg), var(--ad-bg) 10px, #E6DAB8 10px, #E6DAB8 20px);
  border:1.5px dashed var(--ad-border);
  color:#7A5C10;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; font-size:13px; font-weight:600;
  margin:22px auto; min-height:90px; padding:10px;
}
.ad-slot .dim{font-size:11px; font-weight:400; color:#8B6A15; margin-top:4px;}
.ad-slot.has-ad{background:none; border:none; padding:0; min-height:0;}

/* Utility bar */
.util-bar{background:var(--ink); color:#D9D2C2; font-size:12.5px;}
.util-bar .wrap{display:flex; justify-content:space-between; align-items:center; height:34px;}
.util-bar .left span{margin-right:16px;}
.util-bar .right a{margin-left:14px; opacity:.85;}

/* Masthead */
.masthead{padding:20px 0 12px; text-align:center; border-bottom:3px solid var(--maroon);}
.masthead .site-logo img{max-height:80px; margin:0 auto;}
.masthead .logo-text{font-size:40px; font-weight:900; color:var(--maroon); letter-spacing:1px;}
.masthead .logo-text span{color:var(--ink);}
.masthead .tagline{font-size:13px; color:var(--ink-soft); margin-top:6px;}

/* Nav */
.navbar{background:var(--ink); position:sticky; top:0; z-index:20;}
.navbar .wrap{display:flex; overflow-x:auto;}
.navbar ul{list-style:none; display:flex; margin:0; padding:0;}
.navbar a{display:block; padding:13px 16px; font-size:14.5px; font-weight:600; color:#EDE7D8; white-space:nowrap;}
.navbar a:hover{background:var(--maroon); color:#fff;}
.navbar .current-menu-item > a, .navbar .current-cat > a{background:var(--maroon); color:#fff;}

/* Ticker */
.ticker-row{background:var(--maroon); color:#fff; display:flex; align-items:stretch;}
.ticker-tag{background:var(--maroon-dark); padding:8px 16px; font-weight:700; font-size:13.5px; white-space:nowrap; display:flex; align-items:center; flex-shrink:0;}
.ticker-track{flex:1; overflow:hidden; display:flex; align-items:center; padding:0 14px;}
.ticker-track span{font-size:13.5px; white-space:nowrap;}
.ticker-track span a{margin-right:26px;}

section.block{padding:24px 0;}
.section-head{display:flex; align-items:center; gap:10px; margin-bottom:16px;}
.section-head h2{font-size:21px; color:var(--maroon); font-weight:700; margin:0;}
.section-head .line{flex:1; height:1px; background:var(--rule);}
.section-head .more{font-size:12.5px; color:var(--ink-soft); font-weight:600;}

/* Layout: main + sidebar */
.layout{display:grid; grid-template-columns:1fr 320px; gap:34px; align-items:start;}

/* Hero */
.hero{display:grid; grid-template-columns:1.6fr 1fr; gap:18px;}
.hero-lead{position:relative; overflow:hidden; background:var(--paper-dim); min-height:340px; display:flex; align-items:flex-end;}
.hero-lead img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.hero-lead .cap{position:relative; z-index:2; background:linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,0)); width:100%; padding:70px 22px 18px; color:#fff;}
.cat-tag{display:inline-block; background:var(--maroon); color:#fff; font-size:11.5px; font-weight:700; padding:3px 9px; border-radius:2px; margin-bottom:8px;}
.hero-lead h1{font-size:25px; line-height:1.35; font-weight:700; margin:0;}
.hero-side{display:flex; flex-direction:column; gap:14px;}
.hero-side .story{display:flex; gap:10px; border-bottom:1px solid var(--rule); padding-bottom:12px;}
.hero-side .story:last-child{border-bottom:none;}
.thumb{width:92px; height:66px; flex-shrink:0; background:linear-gradient(160deg,#D8CBA8,#C7B583); overflow:hidden;}
.thumb img{width:100%; height:100%; object-fit:cover;}
.story h3{font-size:14.5px; line-height:1.4; font-weight:600; margin:0;}
.meta{font-size:11.5px; color:var(--ink-soft); margin-top:5px;}

/* Category grid */
.card-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
.card .thumb{width:100%; height:110px; margin-bottom:9px;}
.card h3{font-size:14px; line-height:1.4; font-weight:600; margin:0;}
.card .meta{margin-top:6px;}

/* Sidebar */
.side-box{border:1px solid var(--rule); padding:16px; margin-bottom:20px; background:#fff;}
.side-box h2{font-size:16px; color:var(--maroon); font-weight:700; margin:0 0 14px; border-bottom:2px solid var(--maroon); padding-bottom:8px;}
.trend-item{display:flex; gap:12px; padding:9px 0; border-bottom:1px solid var(--rule);}
.trend-item:last-child{border-bottom:none;}
.trend-num{font-family:'Noto Serif Devanagari',serif; font-size:22px; font-weight:900; color:var(--gold); width:26px; flex-shrink:0;}
.trend-item h3{font-size:13.5px; font-weight:600; line-height:1.4; margin:0;}
.widget{margin-bottom:20px;}
.widget ul{list-style:none; margin:0; padding:0;}
.widget li{padding:6px 0; border-bottom:1px solid var(--rule);}

/* Single / Category listing */
.entry-title{font-size:28px; margin-bottom:10px;}
.entry-meta{color:var(--ink-soft); font-size:13px; margin-bottom:16px;}
.entry-content{font-size:16px; line-height:1.8;}
.entry-content img{margin:16px 0;}
.list-item{display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--rule);}
.list-item .thumb{width:180px; height:120px;}
.list-item h2{font-size:18px; margin:0 0 8px;}
.list-item p{color:var(--ink-soft); font-size:13.5px; margin:0 0 8px;}
.pagination{display:flex; gap:8px; padding:20px 0; justify-content:center;}
.pagination a, .pagination span{padding:8px 14px; border:1px solid var(--rule); font-size:13px;}
.pagination .current{background:var(--maroon); color:#fff; border-color:var(--maroon);}

footer.site-footer{background:var(--ink); color:#C9C2AF; margin-top:20px; padding:36px 0 16px; font-size:13px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:24px; padding-bottom:26px;}
footer.site-footer h4{color:#fff; font-size:14.5px; margin-bottom:12px;}
footer.site-footer a{display:block; padding:4px 0; color:#B7AF98;}
.foot-logo{font-family:'Noto Serif Devanagari',serif; color:#fff; font-size:24px; font-weight:700; margin-bottom:8px;}
.copyright{border-top:1px solid #3A362E; text-align:center; padding-top:16px; font-size:12px; color:#8B8574;}

@media(max-width:920px){
  .layout{grid-template-columns:1fr;}
  .hero{grid-template-columns:1fr;}
  .card-grid{grid-template-columns:repeat(2,1fr);}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .list-item{flex-direction:column;}
  .list-item .thumb{width:100%; height:180px;}
}
