/*
Theme Name: OneZero News — News Grid
Theme URI: https://onezeronews.com/
Author: OneZero News
Description: Fast, responsive Hindi news portal theme with a compact newspaper-style grid inspired by modern Indian news layouts.
Version: 2.0.0
License: GPL-2.0-or-later
Text Domain: onezero-news-grid
*/
:root{
 --blue:#0b72e7;--blue2:#075fc7;--red:#e21b23;--text:#1d1d1f;--muted:#6b7280;
 --line:#e4e4e4;--bg:#fff;--soft:#f5f6f8;--green:#168b45;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,"Noto Sans Devanagari","Nirmala UI",sans-serif;font-size:15px;line-height:1.55}
img{display:block;max-width:100%;height:auto}
a{text-decoration:none;color:inherit}
.container{width:min(1180px,calc(100% - 28px));margin:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
/* top utility */
.utility{border-bottom:1px solid #eee;background:#fff;font-size:12px;color:#555}
.utility-inner{height:32px;display:flex;align-items:center;justify-content:space-between}
.utility-left,.utility-right{display:flex;gap:15px;align-items:center}
.utility a:hover{color:var(--blue)}
/* masthead */
.masthead{background:#fff}
.masthead-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:11px}
.custom-logo{max-height:58px;width:auto}
.logo-box{width:54px;height:54px;border-radius:3px;background:var(--blue);display:grid;place-items:center;color:#fff;font-weight:900;font-size:17px;line-height:.85;text-align:center}
.logo-name{font-size:28px;font-weight:900;letter-spacing:-.8px}
.logo-sub{font-size:11px;color:#777}
.header-tools{display:flex;align-items:center;gap:10px}
.header-search{display:flex}
.header-search input{height:38px;width:220px;border:1px solid #ddd;padding:0 12px;outline:0}
.header-search button{height:38px;background:var(--blue);color:#fff;border:0;padding:0 15px;font-weight:700;cursor:pointer}
/* primary nav */
.primary-nav{border-top:1px solid #eee;border-bottom:1px solid #d9d9d9;background:#fff}
.nav-inner{display:flex;align-items:center;min-height:42px}
.menu-toggle{display:none;background:var(--blue);color:#fff;border:0;padding:8px 12px;font-weight:700}
.primary-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;flex-wrap:wrap}
.primary-menu li{margin:0}
.primary-menu a{display:block;padding:9px 15px;font-weight:700;font-size:14px}
.primary-menu a:hover,.primary-menu .current-menu-item>a{color:var(--blue)}
/* category strip */
.category-strip{background:#f0f0f0;border-bottom:1px solid #ddd}
.category-scroll{display:flex;overflow:auto;white-space:nowrap;scrollbar-width:none}
.category-scroll::-webkit-scrollbar{display:none}
.category-scroll a{padding:8px 12px;font-size:13px;font-weight:700}
.category-scroll a:hover{background:#fff;color:var(--blue)}
/* ad */
.ad-box{min-height:72px;border:1px solid #eee;background:#fafafa;display:grid;place-items:center;color:#aaa;font-size:11px;margin:14px 0}
/* lead news */
.lead-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr) minmax(250px,1fr);gap:16px}
.lead-main{border-bottom:2px solid var(--blue)}
.lead-main .thumb{aspect-ratio:16/9;overflow:hidden;background:#eee}
.lead-main .thumb img{width:100%;height:100%;object-fit:cover}
.lead-title{font-size:28px;line-height:1.25;margin:8px 0 5px;font-weight:850}
.lead-excerpt{color:#666;margin:0 0 8px}
.story-list{display:flex;flex-direction:column;gap:12px}
.story-item{display:grid;grid-template-columns:135px 1fr;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.story-item:last-child{border-bottom:0}
.story-item .thumb{aspect-ratio:16/10;background:#eee;overflow:hidden}
.story-item img{width:100%;height:100%;object-fit:cover}
.story-title{font-size:16px;line-height:1.35;font-weight:750;margin:0}
.story-meta{font-size:11px;color:#888;margin-top:5px}
/* section headings */
.section{margin-top:26px}
.section-head{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--text);margin-bottom:12px}
.section-title{font-size:20px;margin:0;padding:7px 11px 6px 0;font-weight:900}
.section-title::before{content:"";display:inline-block;width:4px;height:20px;background:var(--red);margin-right:8px;vertical-align:-4px}
.view-all{font-size:12px;color:var(--blue);font-weight:800}
/* compact 3-column section */
.compact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.compact-card{display:grid;grid-template-columns:105px 1fr;gap:10px;padding-bottom:11px;border-bottom:1px solid var(--line)}
.compact-thumb{width:105px;height:70px;background:#eee;overflow:hidden}
.compact-thumb img{width:100%;height:100%;object-fit:cover}
.compact-card h3{font-size:15px;line-height:1.32;margin:0;font-weight:800}
.compact-card .story-meta{margin-top:4px}
/* category columns */
.columns-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.category-box{border-top:3px solid var(--blue)}
.category-box .cat-head{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.category-box .cat-head h2{margin:0;font-size:18px}
.category-box .cat-head a{font-size:12px;color:var(--blue);font-weight:700}
.category-box .cat-story{display:grid;grid-template-columns:105px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.category-box .cat-story:last-child{border-bottom:0}
.category-box .cat-story .thumb{width:105px;height:68px;background:#eee;overflow:hidden}
.category-box .cat-story img{width:100%;height:100%;object-fit:cover}
.category-box .cat-story h3{font-size:14px;line-height:1.3;margin:0;font-weight:750}
/* article */
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px}
.article{background:#fff}
.article h1{font-size:40px;line-height:1.2;margin:7px 0 8px}
.article-meta{font-size:12px;color:#777;border-bottom:1px solid var(--line);padding-bottom:12px}
.article-featured{width:100%;margin:18px 0;max-height:none}
.article-content{font-size:18px;line-height:1.85}
.article-content p{margin:0 0 1em}
.article-content h2,.article-content h3{line-height:1.3}
/* sidebar */
.sidebar-widget{border:1px solid var(--line);margin-bottom:18px;padding:13px}
.sidebar-title{font-size:18px;margin:0 0 9px;border-bottom:2px solid var(--blue);padding-bottom:6px}
.sidebar-list{list-style:none;margin:0;padding:0}
.sidebar-list li{padding:8px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:700}
.sidebar-list li:last-child{border-bottom:0}
/* footer */
.site-footer{background:#171717;color:#ddd;margin-top:35px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:35px;padding:35px 0}
.footer-title{color:#fff;margin:0 0 10px;font-size:18px}
.footer-text{color:#aaa;font-size:13px}
.footer-menu{list-style:none;padding:0;margin:0}
.footer-menu li{margin:7px 0;font-size:13px}
.footer-bottom{border-top:1px solid #333;padding:13px 0;color:#999;font-size:12px}
/* responsive */
@media(max-width:900px){
 .container{width:min(100% - 20px,1180px)}
 .header-search input{width:150px}
 .lead-grid{grid-template-columns:1.5fr 1fr}
 .lead-grid>.story-list:last-child{display:none}
 .compact-grid{grid-template-columns:repeat(2,1fr)}
 .columns-3{grid-template-columns:1fr 1fr}
 .content-layout{grid-template-columns:1fr}
}
@media(max-width:680px){
 body{font-size:14px}
 .utility{display:none}
 .masthead-inner{min-height:62px}
 .logo-name{font-size:22px}
 .logo-box{width:42px;height:42px;font-size:13px}
 .logo-sub{display:none}
 .header-search{display:none}
 .menu-toggle{display:block;margin-left:auto}
 .primary-menu{display:none;width:100%;padding:5px 0}
 .primary-menu.open{display:block}
 .primary-menu a{padding:9px 10px;border-bottom:1px solid #eee}
 .nav-inner{justify-content:flex-end;flex-wrap:wrap;padding:6px 0}
 .category-strip{overflow:hidden}
 .category-scroll a{font-size:12px;padding:7px 10px}
 .ad-box{min-height:55px;margin:10px 0}
 .lead-grid{grid-template-columns:1fr;gap:13px}
 .lead-grid>.story-list:last-child{display:flex}
 .lead-main .thumb{aspect-ratio:16/9}
 .lead-title{font-size:22px}
 .story-item{grid-template-columns:110px 1fr;gap:9px}
 .story-item .thumb{aspect-ratio:16/10}
 .story-title{font-size:15px}
 .compact-grid{grid-template-columns:1fr;gap:0}
 .compact-card{grid-template-columns:110px 1fr;padding:10px 0}
 .compact-thumb{width:110px;height:73px}
 .columns-3{grid-template-columns:1fr;gap:18px}
 .section{margin-top:20px}
 .section-title{font-size:18px}
 .article h1{font-size:28px}
 .article-content{font-size:17px}
 .footer-grid{grid-template-columns:1fr;gap:20px;padding:28px 0}
}


/* =========================================================
   ONEZERO NEWS v2.1 — HEADER + FULL LEAD IMAGE FIX
   ========================================================= */
html,body{width:100%;max-width:100%;overflow-x:hidden}
.masthead,.primary-nav,.category-strip,.utility{width:100%}
.masthead-inner,.nav-inner,.category-scroll,.utility-inner{width:min(1200px,calc(100% - 28px));margin-left:auto;margin-right:auto}

/* Do not crop the first/hero article image. Preserve its complete image. */
.lead-main .thumb{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:auto;
  overflow:hidden;
  background:#f1f2f4;
}
.lead-main .thumb img{
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
}

/* Make the desktop header more readable and balanced. */
.masthead-inner{min-height:86px}
.logo-name{font-size:30px}
.logo-sub{font-size:12px}
.primary-nav{background:#fff}
.primary-menu a{padding:10px 16px}

/* On smaller screens the complete lead image remains visible. */
@media(max-width:680px){
  .masthead-inner,.nav-inner,.category-scroll,.utility-inner{
    width:calc(100% - 20px);
  }
  .masthead-inner{min-height:68px}
  .logo-name{font-size:22px}
  .lead-main .thumb{aspect-ratio:auto}
  .lead-main .thumb img{height:auto;object-fit:contain}
}



/* =========================================================
   ONEZERO NEWS v2.3 — MOBILE HEADER FINAL
   ========================================================= */

/* Site title beside custom logo */
.brand-with-title{display:flex;align-items:center;gap:9px;min-width:0}
.brand-with-title .custom-logo{max-height:48px;width:auto}
.brand-title-text{display:flex;flex-direction:column;min-width:0}
.brand-title-text .logo-name{font-size:25px;line-height:1.1;font-weight:900;white-space:nowrap}
.brand-title-text .logo-sub{font-size:11px;color:#777;white-space:nowrap}

/* Mobile search icon */
.mobile-search-toggle{
  display:none;
  width:38px;
  height:38px;
  border:1px solid #dfe3e8;
  border-radius:6px;
  background:#fff;
  color:#222;
  font-size:19px;
  line-height:1;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.mobile-search-form{display:none}

@media screen and (max-width:680px){
  .masthead-inner{
    width:calc(100% - 20px);
    min-height:62px;
    height:62px;
    padding:0;
    gap:6px;
  }

  .brand-with-title{flex:1 1 auto;min-width:0;overflow:hidden}
  .brand-with-title .custom-logo{
    max-width:42px;
    max-height:42px;
    object-fit:contain;
    flex:0 0 auto;
  }
  .brand-title-text .logo-name{
    font-size:18px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .brand-title-text .logo-sub{display:none}

  .brand-with-title .logo-box{
    flex:0 0 40px;
    width:40px;
    height:40px;
  }

  .header-tools{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
    margin:0;
    flex:0 0 auto;
  }

  .header-search{display:none !important}

  .mobile-search-toggle{
    display:flex !important;
  }

  .menu-toggle{
    display:flex !important;
    align-items:center;
    justify-content:center;
    height:38px;
    min-width:42px;
    padding:0 9px;
    border:0;
    border-radius:6px;
    background:var(--blue);
    color:#fff;
    font-size:13px;
    font-weight:800;
  }

  /* Search opens under the header */
  .mobile-search-form{
    width:100%;
    padding:7px 10px;
    background:#fff;
    border-top:1px solid #eee;
    border-bottom:1px solid #ddd;
  }
  .mobile-search-form.open{display:flex}
  .mobile-search-form input{
    flex:1;
    min-width:0;
    height:38px;
    border:1px solid #ddd;
    padding:0 10px;
    outline:0;
  }
  .mobile-search-form button{
    height:38px;
    border:0;
    background:var(--blue);
    color:#fff;
    padding:0 13px;
    font-weight:700;
  }

  /* Only ONE primary menu on mobile */
  .primary-nav{border-top:0;border-bottom:1px solid #ddd}
  .nav-inner{
    width:100%;
    min-height:0;
    display:block;
  }
  .primary-menu{
    display:none !important;
    width:100%;
    padding:5px 10px 8px;
    background:#fff;
  }
  .primary-menu.open{display:block !important}
  .primary-menu li{display:block;width:100%}
  .primary-menu a{
    display:block;
    padding:9px 8px;
    border-bottom:1px solid #eee;
    font-size:14px;
  }

  /* The second category strip was visually duplicating the primary menu.
     Keep it on desktop; hide it on phones. */
  .category-strip{display:none !important}
}


/* =========================================================
   ONEZERO NEWS v2.4 — SINGLE MENU + LEFT MOBILE MENU
   ========================================================= */
.category-strip{display:none !important}

.mobile-menu-left{display:none}

@media screen and (max-width:680px){
  .masthead-inner{
    width:calc(100% - 20px);
    min-height:62px;
    height:62px;
    display:flex;
    align-items:center;
    gap:7px;
  }

  /* Hamburger is now on the LEFT */
  .mobile-menu-left{
    display:flex !important;
    flex:0 0 38px;
    width:38px;
    height:38px;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    border-radius:6px;
    background:var(--blue);
    color:#fff;
    font-size:18px;
    line-height:1;
  }

  .brand-with-title{
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
  }

  .brand-title-text .logo-name{
    font-size:18px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .header-tools{
    flex:0 0 auto;
    margin-left:auto;
    display:flex;
    align-items:center;
  }

  .mobile-search-toggle{
    display:flex !important;
    width:38px;
    height:38px;
    align-items:center;
    justify-content:center;
    border:1px solid #dfe3e8;
    border-radius:6px;
    background:#fff;
    font-size:19px;
  }

  /* Hide any accidental second mobile menu button */
  .header-tools .menu-toggle{display:none !important}

  .primary-nav{
    border-top:1px solid #eee;
    border-bottom:1px solid #ddd;
  }

  .nav-inner{
    width:100%;
    min-height:0;
    display:block;
  }

  .primary-menu{
    display:none !important;
    width:100%;
    padding:5px 10px 8px;
    margin:0;
    background:#fff;
  }

  .primary-menu.open{
    display:block !important;
  }

  .primary-menu li{
    display:block;
    width:100%;
  }

  .primary-menu a{
    display:block;
    width:100%;
    padding:9px 8px;
    border-bottom:1px solid #eee;
  }
}
