/*
Theme Name: VegVan Maharashtra
Theme URI: https://vegvanmaharashtra.in/
Author: Right News Online
Description: VegVan Maharashtra — Marathi news front panel in ABP-style layout. Red + white, sticky category nav, breaking ticker, hero grid with trending rail, category sections, article template with breadcrumb, byline, share row, author box and similar posts. SEO-ready.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: vegvan-maharashtra
*/

/* ============ Reset & base ============ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --red:#d8232a;
  --red-dark:#a8121a;
  --dark:#141414;
  --ink:#222;
  --muted:#6b6b6b;
  --faint:#999;
  --line:#e7e7e7;
  --page:#f3f3f4;
  --card:#ffffff;
  --radius:6px;
  --font:'Mukta','Noto Sans Devanagari',Arial,sans-serif;
}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--ink);background:var(--page);line-height:1.6;font-size:16px}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--red)}
.wrap{min-height:100vh;display:flex;flex-direction:column}
.inner{max-width:1180px;margin:0 auto;padding:0 15px}
main{flex:1;padding-bottom:30px}
.site-h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ============ Top utility bar ============ */
.topline{background:var(--dark);color:#cfcfcf;font-size:12.5px}
.topline .inner{display:flex;justify-content:space-between;align-items:center;height:34px}
.topline .today{letter-spacing:.2px}
.topline .soc{display:flex;gap:6px}
.topline .soc a{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;background:#2b2b2b;border-radius:50%;color:#fff;font-size:12px;font-weight:700}
.topline .soc a:hover{background:var(--red);color:#fff}

/* ============ Masthead ============ */
.masthead{background:#fff;border-bottom:1px solid var(--line)}
.masthead .inner{display:flex;justify-content:space-between;align-items:center;padding-top:14px;padding-bottom:14px;gap:15px}
.brand a{font-size:42px;font-weight:800;color:var(--red);line-height:1.1;letter-spacing:-.5px}
.brand a:hover{color:var(--red-dark)}
.brand .tagline{display:block;font-size:13px;color:var(--muted);font-weight:500;margin-top:2px}
.masthead-right{display:flex;align-items:center;gap:10px}
.masthead-search{background:#f1f1f1;border:1px solid var(--line);border-radius:20px;padding:7px 14px;font-size:14px;display:flex;align-items:center;gap:8px;color:var(--muted);cursor:pointer}
.masthead-search:hover{border-color:var(--red);color:var(--red)}

/* ============ Main nav (sticky red) ============ */
.mainnav{background:var(--red);position:sticky;top:0;z-index:200;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.mainnav .inner{display:flex;align-items:stretch;min-height:46px}
.mainnav ul{list-style:none;display:flex;align-items:stretch;flex:1;overflow-x:auto;scrollbar-width:none}
.mainnav ul::-webkit-scrollbar{display:none}
.mainnav li{display:flex}
.mainnav li a{display:flex;align-items:center;color:#fff;font-weight:600;font-size:15.5px;padding:0 16px;white-space:nowrap;border-right:1px solid rgba(255,255,255,.14)}
.mainnav li a:hover{background:var(--red-dark);color:#fff}
.home-btn{display:flex;align-items:center;color:#fff;font-size:20px;padding:0 14px;border-right:1px solid rgba(255,255,255,.14)}
.home-btn:hover{background:var(--red-dark);color:#fff}
.nav-search{background:transparent;border:none;border-left:1px solid rgba(255,255,255,.14);color:#fff;font-size:19px;padding:0 16px;cursor:pointer}
.nav-search:hover{background:var(--red-dark)}
.nav-search-row{display:none;background:#fff;border-bottom:1px solid var(--line)}
.nav-search-row.open{display:block}
.nav-search-row form{max-width:1180px;margin:0 auto;padding:12px 15px;display:flex;gap:10px}
.nav-search-row input{flex:1;border:1px solid var(--line);border-radius:4px;padding:10px 12px;font-size:15px;font-family:inherit}
.nav-search-row button{background:var(--red);color:#fff;border:none;border-radius:4px;padding:10px 22px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit}
.nav-search-row button:hover{background:var(--red-dark)}

/* ============ Breaking ticker ============ */
.breaking{background:#fff;border-bottom:1px solid var(--line)}
.breaking .inner{display:flex;align-items:stretch;gap:0;min-height:44px}
.breaking-label{display:flex;align-items:center;gap:8px;background:var(--red);color:#fff;font-weight:700;font-size:14.5px;padding:0 16px;white-space:nowrap}
.breaking-label .dot{width:9px;height:9px;border-radius:50%;background:#fff;animation:blink 1.1s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.25}}
.ticker{flex:1;overflow:hidden;display:flex;align-items:center}
.ticker-track{overflow:hidden;white-space:nowrap;width:100%}
.ticker-track ul{display:inline-flex;gap:0;list-style:none;animation:tick 45s linear infinite;padding:0}
.ticker-track:hover ul{animation-play-state:paused}
.ticker-track li{padding:0 26px;position:relative;font-size:14.5px;font-weight:500}
.ticker-track li::before{content:"•";color:var(--red);position:absolute;left:8px;font-weight:800}
@keyframes tick{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ============ Hero ============ */
.hero{padding:18px 0 4px}
.hero-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}
.hero-lead{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--dark);min-height:380px;display:flex}
.hero-lead .img{position:absolute;inset:0}
.hero-lead .img img{width:100%;height:100%;object-fit:cover}
.hero-lead .ovl{position:absolute;inset:auto 0 0 0;padding:60px 20px 18px;background:linear-gradient(transparent,rgba(0,0,0,.88));color:#fff;margin-top:auto;align-self:flex-end;width:100%}
.hero-lead .cat{display:inline-block;background:var(--red);color:#fff;font-size:12.5px;font-weight:700;padding:3px 10px;border-radius:3px;margin-bottom:8px}
.hero-lead h2{font-size:26px;line-height:1.35;font-weight:700}
.hero-lead h2 a{color:#fff}
.hero-lead h2 a:hover{color:#ffd9db}
.hero-lead .meta{color:#d7d7d7;font-size:13px;margin-top:6px}
.hero-lead .excerpt{color:#e8e8e8;font-size:14.5px;margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-rail{display:flex;flex-direction:column;gap:18px;min-width:0}
.trending-box{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.trending-head{background:var(--dark);color:#fff;font-weight:700;font-size:16px;padding:10px 14px;display:flex;align-items:center;gap:8px}
.trending-head::before{content:"";width:4px;height:18px;background:var(--red);border-radius:2px}
.trend-row{display:flex;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);align-items:flex-start}
.trend-row:last-child{border-bottom:none}
.trend-num{font-size:26px;font-weight:800;color:var(--red);line-height:1;min-width:30px;opacity:.9}
.trend-row h4{font-size:14.5px;line-height:1.45;font-weight:600}
.rail-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.rail-card .img img{width:100%;height:150px;object-fit:cover}
.rail-card h3{font-size:15px;line-height:1.45;padding:10px 12px;font-weight:600}

/* ============ Sections ============ */
.section{padding:20px 0 4px}
.sec-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;border-bottom:2px solid var(--line);padding-bottom:8px}
.sec-head h2{font-size:21px;font-weight:700;border-left:5px solid var(--red);padding-left:10px;line-height:1.2}
.viewall{font-size:13.5px;font-weight:700;color:var(--red);white-space:nowrap}
.card-grid3,.card-grid4,.card-grid2{display:grid;gap:16px}
.card-grid4{grid-template-columns:repeat(4,1fr)}
.card-grid3{grid-template-columns:repeat(3,1fr)}
.card-grid2{grid-template-columns:repeat(2,1fr)}
.ncard{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:box-shadow .2s}
.ncard:hover{box-shadow:0 4px 14px rgba(0,0,0,.1)}
.ncard .img img{width:100%;height:170px;object-fit:cover}
.ncard h3{font-size:15.5px;line-height:1.45;padding:10px 12px 4px;font-weight:600}
.ncard .meta{padding:0 12px 12px;color:var(--faint);font-size:12.5px}
.ncard .cat{display:inline-block;margin:10px 12px 0;background:#fbe9ea;color:var(--red);font-size:12px;font-weight:700;padding:2px 8px;border-radius:3px}

/* ============ Latest + sidebar columns ============ */
.cols{display:grid;grid-template-columns:2fr 1fr;gap:22px;padding-top:20px;align-items:start}
.row-item{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px;display:flex;gap:14px;margin-bottom:12px}
.row-item h4{font-size:16px;line-height:1.45;font-weight:600;margin-bottom:4px}
.row-item .meta{color:var(--faint);font-size:12.5px}
.row-item .chip{display:inline-block;background:var(--red);color:#fff;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:3px;margin-right:6px}
.row-excerpt{color:var(--muted);font-size:13.5px;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.thumb img{width:150px;height:100px;object-fit:cover;border-radius:4px}
.rank{font-size:24px;font-weight:800;color:var(--red);min-width:28px;line-height:1.2}
.empty-note{background:var(--card);border:1px dashed var(--line);border-radius:var(--radius);padding:28px 20px;text-align:center;color:var(--muted)}

/* ============ Sidebar ============ */
.sidebar{display:flex;flex-direction:column;gap:18px;position:sticky;top:64px}
.widget{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.widget-head{background:var(--dark);color:#fff;font-weight:700;font-size:16px;padding:10px 14px;display:flex;align-items:center;gap:8px}
.widget-head::before{content:"";width:4px;height:18px;background:var(--red);border-radius:2px}
.widget-head h3{font-size:16px}
.widget .row-item{border:none;border-bottom:1px solid var(--line);border-radius:0;margin:0}
.widget .row-item:last-child{border-bottom:none}
.widget ul{list-style:none}
.widget li.row-item h4{font-size:14.5px}

/* ============ Footer ============ */
.site-footer{background:var(--dark);color:#cfcfcf;margin-top:34px}
.footer-cols{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:26px;padding:34px 0 22px}
.footer-cols h4{color:#fff;font-size:16px;margin-bottom:12px;border-left:4px solid var(--red);padding-left:10px}
.footer-cols p{font-size:14px;color:#a9a9a9}
.footer-cols ul{list-style:none}
.footer-cols li{margin-bottom:7px;font-size:14px}
.footer-cols a{color:#cfcfcf}
.footer-cols a:hover{color:#fff}
.footer-brand{font-size:26px;font-weight:800;color:#fff}
.footer-brand span{color:var(--red)}
.footer-inner{border-top:1px solid #2c2c2c;padding:14px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:#8f8f8f;flex-wrap:wrap}
.flinks a{color:#bdbdbd;margin:0 4px}
.flinks a:hover{color:#fff}

/* ============ Article ============ */
.crumb{font-size:13.5px;color:var(--muted);margin:16px 0 10px}
.crumb a:hover{color:var(--red)}
.crumb .sep{margin:0 8px;color:var(--faint)}
.article-h1{font-size:30px;line-height:1.35;font-weight:700;margin-bottom:10px}
.article-dek{font-size:16.5px;color:var(--muted);border-left:4px solid var(--red);padding-left:12px;margin-bottom:14px}
.byline{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);margin-bottom:12px;flex-wrap:wrap}
.byline .author{font-weight:700;color:var(--ink)}
.share-row{display:flex;gap:8px;margin-bottom:16px}
.share-row a{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:700}
.sh-fb{background:#1877f2}.sh-x{background:#111}.sh-in{background:#0a66c2}.sh-wa{background:#25d366}.sh-tg{background:#229ed9}.sh-em{background:#777}
.share-row a:hover{opacity:.85;color:#fff}
.article-hero{margin-bottom:18px}
.article-hero img{border-radius:var(--radius);width:100%}
.entry-content{font-size:17px;line-height:1.85;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.entry-content p{margin-bottom:16px}
.entry-content img{border-radius:4px;margin:14px 0}
.entry-content h2,.entry-content h3{margin:20px 0 10px;line-height:1.4}
.readmore-box{background:#fff8e1;border:1px solid #f0d879;border-radius:4px;padding:12px 14px;margin:16px 0;font-size:15px}
.readmore-box b{color:var(--red);margin-right:6px}
.tags-line{color:var(--muted);font-size:14px;margin-top:16px}
.updated-line{display:inline-block;background:#f1f1f1;border-radius:3px;font-size:12.5px;color:var(--muted);padding:3px 10px;margin-top:10px}
.authorbox{display:flex;gap:14px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-top:20px}
.authorbox img{border-radius:50%}
.authorbox h3{font-size:17px;margin-bottom:4px}
.authorbox p{font-size:14px;color:var(--muted)}
.similar{margin-top:26px}

/* ============ Archive / search / page ============ */
.page-head{margin:16px 0 6px}
.page-head h1{font-size:26px;border-left:5px solid var(--red);padding-left:12px}
.term-desc{color:var(--muted);font-size:14.5px;margin-bottom:14px}
.pagination{margin:18px 0;text-align:center}
.pagination .page-numbers{display:inline-block;background:var(--card);border:1px solid var(--line);border-radius:4px;padding:7px 13px;margin:0 3px;font-size:14px}
.pagination .current{background:var(--red);border-color:var(--red);color:#fff;font-weight:700}

/* ============ Back to top ============ */
.totop{position:fixed;right:18px;bottom:18px;width:42px;height:42px;border-radius:50%;background:var(--red);color:#fff;border:none;font-size:20px;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .25s;z-index:300}
.totop.show{opacity:1;pointer-events:auto}
.totop:hover{background:var(--red-dark)}

/* ============ Responsive ============ */
@media (max-width:960px){
  .hero-grid,.cols{grid-template-columns:1fr}
  .card-grid4{grid-template-columns:repeat(2,1fr)}
  .card-grid3{grid-template-columns:repeat(2,1fr)}
  .sidebar{position:static}
  .brand a{font-size:32px}
  .footer-cols{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
  .card-grid4,.card-grid3,.card-grid2{grid-template-columns:1fr}
  .hero-lead{min-height:300px}
  .hero-lead h2{font-size:20px}
  .article-h1{font-size:23px}
  .masthead-search span{display:none}
  .footer-cols{grid-template-columns:1fr}
  .thumb img{width:110px;height:80px}
}
