/*
Theme Name: Fact In India News Portal
Version: 3.0
Description: Mobile-first category news portal with automatic related posts.
*/
:root{--red:#d71920;--dark:#101010;--gray:#666;--line:#e7e7e7;--soft:#f6f6f6}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#171717;background:#fff;line-height:1.45}img{max-width:100%;height:auto}a{text-decoration:none;color:inherit}.wrap{width:min(1180px,92%);margin:auto}
.topbar{background:#111;color:#ddd;font-size:12px;padding:8px 0}.topbar .right{float:right}.header{background:#fff}.head{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:20px}.logo{font-size:34px;font-weight:900;letter-spacing:-1px}.logo b{color:var(--red)}.tagline{color:#777;font-size:13px}
.nav{border-top:1px solid var(--line);border-bottom:2px solid #111;background:#fff}.navin{display:flex;overflow-x:auto;scrollbar-width:none}.navin::-webkit-scrollbar{display:none}.nav a{padding:13px 15px;font-weight:700;font-size:14px;white-space:nowrap}.nav a:hover{color:var(--red)}
.breaking{background:var(--red);color:#fff}.breakin{display:flex;align-items:center;overflow:hidden}.break-label{background:#a80f14;font-weight:800;padding:10px 14px;white-space:nowrap}.ticker{overflow:hidden;white-space:nowrap;padding:10px 0}.ticker-track{display:inline-block;animation:fiiTicker 30s linear infinite}.ticker-track a{margin:0 45px 0 15px}@keyframes fiiTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.main{padding:28px 0}.section-title{font-size:25px;margin:0 0 16px;border-left:5px solid var(--red);padding-left:10px}.hero-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px}.card{border:1px solid var(--line);background:#fff;overflow:hidden}.card img{width:100%;height:190px;object-fit:cover;background:#eee}.card.big img{height:310px}.pad{padding:14px}.label{font-size:11px;color:var(--red);font-weight:800;text-transform:uppercase}.card h2,.card h3{margin:7px 0;line-height:1.22}.card h2{font-size:23px}.card h3{font-size:17px}.date{font-size:12px;color:#777}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;margin-top:28px}.post-list{display:grid;gap:17px}.post-item{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;padding-bottom:17px;border-bottom:1px solid var(--line)}.post-item img{width:220px;height:135px;object-fit:cover;background:#eee}.post-item h2{font-size:20px;line-height:1.25;margin:5px 0}.excerpt{font-size:14px;color:#555}.sidebar{border-left:1px solid var(--line);padding-left:20px}.side-title{font-size:18px;border-bottom:3px solid #111;padding-bottom:8px;margin-top:0}.side-item{padding:11px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:700}
.subcats{display:flex;gap:8px;overflow:auto;margin:0 0 20px;padding-bottom:4px}.subcats a{border:1px solid #ddd;border-radius:20px;padding:7px 13px;font-size:13px;white-space:nowrap}.subcats a:hover{background:var(--red);color:#fff;border-color:var(--red)}
.category-block{margin-top:35px}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.mini-card{border:1px solid var(--line);background:#fff}.mini-card img{height:150px;width:100%;object-fit:cover}.mini-card .pad{padding:12px}.mini-card h3{font-size:16px;margin:5px 0}
.pagination{margin:25px 0}.pagination a,.pagination span{display:inline-block;padding:8px 12px;border:1px solid var(--line);margin-right:5px}.page-title{font-size:34px;margin:0 0 20px;border-left:5px solid var(--red);padding-left:12px}
.footer{background:#111;color:#ddd;margin-top:45px;padding:45px 0 20px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px}.footer h3{color:#fff;margin-top:0}.footer a{color:#ccc}.footer a:hover{color:#fff}.footer-bottom{border-top:1px solid #333;margin-top:30px;padding-top:18px;font-size:12px;color:#999;display:flex;justify-content:space-between;gap:15px}
@media(max-width:850px){.hero-grid{grid-template-columns:1fr 1fr}.card.big{grid-column:1/-1}.content-grid{grid-template-columns:1fr}.sidebar{border-left:0;padding-left:0}.category-grid{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}.tagline{display:none}}
@media(max-width:600px){.topbar .right{display:none}.head{min-height:72px}.logo{font-size:27px}.nav a{padding:11px 12px;font-size:13px}.break-label{font-size:12px;padding:9px}.ticker{font-size:12px}.main{padding:20px 0}.section-title{font-size:21px}.hero-grid{grid-template-columns:1fr;gap:12px}.card.big{grid-column:auto}.card.big img,.card img{height:220px}.content-grid{margin-top:22px;gap:22px}.post-item{grid-template-columns:115px 1fr;gap:12px}.post-item img{width:115px;height:88px}.post-item h2{font-size:16px;margin:2px 0}.excerpt{display:none}.category-grid{grid-template-columns:1fr}.mini-card{display:grid;grid-template-columns:120px 1fr}.mini-card img{height:95px}.page-title{font-size:27px}.footer{padding:32px 0 15px}.footer-grid{grid-template-columns:1fr;gap:20px}.footer-bottom{display:block}.footer-bottom div+div{margin-top:8px}}

/* V4 newspaper portal enhancements */
.menu-wrap{background:#fff}.mega-nav{display:flex;align-items:center;gap:0;overflow-x:auto;scrollbar-width:none}.mega-nav::-webkit-scrollbar{display:none}.mega-nav>a{padding:14px 13px;font-weight:700;font-size:13px;white-space:nowrap;border-right:1px solid #eee}.mega-nav>a:first-child{color:#d71920}.news-strip{border-bottom:1px solid #ddd;background:#fafafa}.news-strip .wrap{display:flex;gap:0;overflow:auto;scrollbar-width:none}.news-strip a{white-space:nowrap;padding:9px 14px;font-size:12px;font-weight:700;border-right:1px solid #ddd}.portal-section{margin-top:30px}.portal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #111;margin-bottom:14px}.portal-head h2{font-size:22px;margin:0;border-left:5px solid #d71920;padding:7px 10px}.portal-head a{font-size:12px;color:#d71920;font-weight:700}.top-news{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}.top-news .story{position:relative;overflow:hidden;background:#111;color:#fff;min-height:180px}.top-news .story img{width:100%;height:100%;min-height:180px;object-fit:cover;opacity:.88}.top-news .story .story-text{position:absolute;left:0;right:0;bottom:0;padding:15px;background:linear-gradient(transparent,rgba(0,0,0,.9))}.top-news .story h2,.top-news .story h3{margin:4px 0;font-size:18px;line-height:1.2}.top-news .story:first-child{grid-row:span 2;min-height:380px}.top-news .story:first-child img{min-height:380px}.news-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.news-column{border-top:3px solid #111}.news-column h3{margin:8px 0 0;font-size:18px}.news-row{display:grid;grid-template-columns:95px 1fr;gap:10px;padding:12px 0;border-bottom:1px solid #ddd}.news-row img{width:95px;height:68px;object-fit:cover}.news-row h4{font-size:14px;line-height:1.25;margin:0}.ad-space{background:#f4f4f4;color:#aaa;text-align:center;padding:18px;margin:20px 0;font-size:11px;letter-spacing:1px}
@media(max-width:800px){.top-news{grid-template-columns:1fr 1fr}.top-news .story:first-child{grid-column:1/-1;grid-row:auto;min-height:260px}.top-news .story:first-child img{min-height:260px}.news-columns{grid-template-columns:1fr}.news-column{margin-top:12px}}
@media(max-width:600px){.top-news{grid-template-columns:1fr}.top-news .story:first-child{min-height:240px}.top-news .story:first-child img{min-height:240px}.top-news .story{min-height:170px}.top-news .story img{min-height:170px}.portal-head h2{font-size:19px}}
.category-header{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #111}.category-header h1{font-size:30px;margin:0;padding:8px 10px;border-left:5px solid var(--red)}
@media(max-width:600px){.post-item{grid-template-columns:105px 1fr}.post-item img{width:105px;height:82px}.post-item h2{font-size:15px}.category-header h1{font-size:24px}}
