/*
Theme Name: C Bharat Professional News
Theme URI: https://cbharat.com/
Author: Maa Vaishno IT Solutions
Description: Professional, mobile-responsive Hindi news theme with horizontal top navigation and fixed SVG bottom navigation.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: cbharat-news
*/
:root{--primary:#d71920;--dark:#111827;--nav:#fff;--muted:#6b7280;--border:#e5e7eb;--soft:#f5f7fa;--accent:#f59e0b}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f4f6f8;color:#171717;font-family:system-ui,-apple-system,"Noto Sans Devanagari","Nirmala UI",Arial,sans-serif;line-height:1.55;padding-bottom:76px}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.site-wrap{max-width:1240px;margin:auto;padding:0 14px}
.topbar{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:1000;box-shadow:0 1px 7px rgba(0,0,0,.05)}
.header-row{height:70px;display:flex;align-items:center;gap:20px}.brand{display:flex;align-items:center;min-width:max-content}.custom-logo{max-height:48px;width:auto}.brand-text{font-weight:900;font-size:25px;color:var(--primary);letter-spacing:-.5px}.brand-text span{color:#111}
.desktop-nav{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:2px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;flex:1;min-width:0;flex-wrap:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}.desktop-nav::-webkit-scrollbar{display:none}.desktop-nav li{display:inline-flex!important;flex:0 0 auto;list-style:none}.desktop-nav a{display:block;padding:10px 11px;font-weight:700;font-size:14px;border-radius:7px;white-space:nowrap}.desktop-nav a:hover{background:#f3f4f6;color:var(--primary)}.header-actions{display:flex;gap:8px;align-items:center}.icon-btn{border:0;background:#f3f4f6;border-radius:8px;width:40px;height:40px;display:grid;place-items:center;cursor:pointer}.search-box{display:none;position:absolute;right:14px;top:64px;background:#fff;border:1px solid var(--border);padding:10px;border-radius:10px;box-shadow:0 8px 25px rgba(0,0,0,.12)}.search-box.show{display:block}.search-box input{width:260px;padding:10px;border:1px solid #ddd;border-radius:7px}
.breaking{background:var(--primary);color:#fff}.breaking-inner{display:flex;align-items:center;min-height:40px;overflow:hidden}.breaking-label{font-weight:900;background:#9f1116;padding:8px 13px;white-space:nowrap}.ticker{white-space:nowrap;overflow:hidden}.ticker a{display:inline-block;padding-left:18px;font-weight:700;animation:ticker 18s linear infinite}@keyframes ticker{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}
.main{padding:18px 0 30px}.hero-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin-bottom:18px}.hero-card{position:relative;background:#111;color:#fff;border-radius:12px;overflow:hidden;min-height:245px}.hero-card img{width:100%;height:100%;object-fit:cover;opacity:.8}.hero-card:first-child{min-height:360px;grid-row:span 2}.hero-overlay{position:absolute;inset:auto 0 0;padding:22px;background:linear-gradient(transparent,rgba(0,0,0,.9))}.hero-overlay h2,.hero-overlay h3{margin:4px 0 0;line-height:1.25}.badge{display:inline-block;background:var(--primary);color:#fff;font-size:12px;font-weight:800;padding:3px 8px;border-radius:4px}
.section{background:#fff;border:1px solid var(--border);border-radius:12px;padding:15px;margin-bottom:18px}.section-head{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #eee;margin-bottom:13px;padding-bottom:9px}.section-title{margin:0;font-size:21px;font-weight:900;position:relative;padding-left:11px}.section-title:before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:4px;background:var(--primary);border-radius:4px}.more{font-weight:800;color:var(--primary);font-size:13px}.news-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.news-card{border:1px solid var(--border);border-radius:9px;overflow:hidden;background:#fff}.news-card img{width:100%;aspect-ratio:16/9;object-fit:cover;background:#eee}.news-card-body{padding:10px}.news-card h3{font-size:16px;line-height:1.35;margin:5px 0 7px}.meta{font-size:12px;color:var(--muted)}.two-col{display:grid;grid-template-columns:2fr 1fr;gap:18px}.list-card{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid var(--border)}.list-card:last-child{border-bottom:0}.list-card img{width:150px;height:92px;object-fit:cover;border-radius:8px;background:#eee}.list-card h3{margin:0 0 4px;font-size:16px;line-height:1.35}.side-box{background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:15px}.side-box h3{margin:0 0 10px;border-bottom:2px solid var(--primary);padding-bottom:7px}.ad-box{min-height:150px;display:grid;place-items:center;background:#fafafa;color:#999;border:1px dashed #ccc}
.single-layout{display:grid;grid-template-columns:minmax(0,2fr) 330px;gap:20px}.article{background:#fff;border:1px solid var(--border);border-radius:12px;padding:22px}.article h1{font-size:36px;line-height:1.25;margin:0 0 12px}.article-content{font-size:18px}.article-content p{margin:0 0 18px}.article-content img{border-radius:10px;margin:15px 0}.pagination{display:flex;gap:8px;justify-content:center;margin:20px 0}.pagination a,.pagination span{padding:8px 12px;background:#fff;border:1px solid var(--border);border-radius:7px}
.footer{background:#111827;color:#d1d5db;margin-top:25px}.footer-inner{padding:28px 14px;max-width:1240px;margin:auto;display:grid;grid-template-columns:2fr 1fr 1fr;gap:25px}.footer h3{color:#fff;margin-top:0}.footer a:hover{color:#fff}.copyright{text-align:center;border-top:1px solid #374151;padding:14px;font-size:13px}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:68px;background:#fff;border-top:1px solid #ddd;z-index:2000;display:flex;justify-content:space-around;box-shadow:0 -4px 16px rgba(0,0,0,.1)}.bottom-nav a{flex:1;max-width:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:800;color:#555}.bottom-nav a.active,.bottom-nav a:hover{color:var(--primary)}.bottom-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.menu-toggle{display:none}
@media(max-width:900px){.header-row{height:60px;gap:8px}.brand-text{font-size:20px}.desktop-nav{display:none}.menu-toggle{display:grid}.header-actions{margin-left:auto}.hero-grid{grid-template-columns:1fr 1fr}.hero-card:first-child{grid-column:1/-1;grid-row:auto;min-height:300px}.news-grid{grid-template-columns:repeat(2,1fr)}.two-col,.single-layout{grid-template-columns:1fr}.article h1{font-size:29px}.footer-inner{grid-template-columns:1fr 1fr}}
@media(max-width:600px){body{padding-bottom:70px}.site-wrap{padding:0 9px}.brand-text{font-size:18px}.custom-logo{max-height:40px}.breaking-label{font-size:12px;padding:7px 9px}.ticker a{font-size:12px}.main{padding-top:10px}.hero-grid{display:block}.hero-card,.hero-card:first-child{min-height:225px;margin-bottom:10px}.hero-card:not(:first-child){min-height:170px}.news-grid{grid-template-columns:1fr 1fr;gap:9px}.news-card h3{font-size:14px}.news-card-body{padding:8px}.section{padding:10px;margin-bottom:11px;border-radius:9px}.section-title{font-size:18px}.list-card img{width:105px;height:70px}.list-card h3{font-size:14px}.article{padding:14px}.article h1{font-size:25px}.article-content{font-size:17px}.footer-inner{grid-template-columns:1fr;padding:22px 14px}.search-box{left:9px;right:9px}.search-box input{width:100%}}
@media(min-width:901px){.bottom-nav{display:none}}

/* Top Menu Bar - always horizontal */
.desktop-nav, .desktop-nav ul { margin:0; padding:0; list-style:none; }
@media(max-width:900px){
  .topbar .header-row{overflow:hidden}
  .topbar .top-horizontal-menu{display:flex;flex:1;min-width:0;overflow:hidden}.topbar .desktop-nav{display:flex!important}
  .topbar .brand{flex:0 0 auto}
  .topbar .top-horizontal-menu{order:3;position:absolute;left:0;right:0;top:60px;width:100%;background:#fff;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:5px 8px;box-shadow:0 4px 12px rgba(0,0,0,.08);}
  .topbar .header-row{position:relative}
  .topbar .header-row .desktop-nav{transform:none}
  .topbar .menu-toggle{display:none}
  .topbar .header-actions{margin-left:auto}
}
@media(max-width:600px){
  .topbar .desktop-nav{top:60px;padding:4px 6px}
  .topbar .desktop-nav a{padding:8px 10px;font-size:13px}
}
