/*
Theme Name: Kundeshwar Times
Theme URI: https://kundeshwartimes.com/
Author: Sygitech Solutions Pvt. Ltd.
Description: A modern, fast, Hindi-first news theme for Kundeshwar Times — सामना सच का. Breaking ticker, featured hero, trending list, category blocks, video strip, ad slots, e-paper link and a clean reading layout. No page builder required.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kundeshwar
Tags: news, blog, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

:root{
  --kt-accent:#C4161C;
  --kt-ink:#15171C;
  --kt-text:#22252B;
  --kt-muted:#5B5F66;
  --kt-soft:#3A3D44;
  --kt-paper:#FFFFFF;
  --kt-surface:#F5F2EC;
  --kt-rule:#E3DED4;
  --kt-ph:#E4DFD5;
  --kt-dark:#0D0E12;
  --kt-serif:'Noto Serif Devanagari',Georgia,serif;
  --kt-sans:'Mukta',system-ui,-apple-system,'Segoe UI',sans-serif;
  --kt-w:1240px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--kt-sans);font-size:17px;line-height:1.6;color:var(--kt-ink);background:var(--kt-paper)}
img{max-width:100%;height:auto;display:block}
a{color:var(--kt-ink);text-decoration:none}
a:hover,a:focus{color:var(--kt-accent)}
:focus-visible{outline:2px solid var(--kt-accent);outline-offset:2px}
button{font:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:8px;left:8px;z-index:999;background:#fff;padding:10px 16px;clip:auto;width:auto;height:auto}

.kt-wrap{max-width:var(--kt-w);margin:0 auto;padding:0 24px}
.kt-hl{font-family:var(--kt-serif);font-weight:700;line-height:1.35;margin:0}
.kt-meta{font-size:13px;color:var(--kt-muted)}
.kt-kick{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--kt-accent);text-transform:uppercase}
.kt-sec{display:flex;align-items:center;gap:12px;margin:0 0 18px;font-family:var(--kt-serif);font-size:22px;font-weight:800;line-height:1.3}
.kt-sec::after{content:"";flex:1;height:2px;background:var(--kt-ink)}
.kt-sec a{color:inherit}
.kt-thumb{display:block;background:var(--kt-ph);overflow:hidden;aspect-ratio:3/2}
.kt-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
a:hover .kt-thumb img,.kt-card:hover .kt-thumb img{transform:scale(1.04)}
.kt-thumb--wide{aspect-ratio:16/9}
.kt-ad{display:flex;align-items:center;justify-content:center;overflow:hidden}
.kt-ad:empty{display:none}

/* Top bar */
.kt-topbar{background:var(--kt-ink);color:#D9DADD;font-size:13px}
.kt-topbar .kt-wrap{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between;align-items:center;padding-top:8px;padding-bottom:8px}
.kt-topbar a{color:#D9DADD}.kt-topbar a:hover{color:#fff}
.kt-topbar__links{display:flex;flex-wrap:wrap;gap:6px 20px;list-style:none;margin:0;padding:0}
.kt-topbar .kt-epaper{color:#fff;font-weight:700}

/* Header */
.kt-header .kt-wrap{display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;align-items:center;padding-top:22px;padding-bottom:22px}
.kt-brand{display:flex;align-items:center;gap:16px}
.kt-brand__badge{width:88px;height:88px;border-radius:50%;flex:0 0 auto;object-fit:cover}
.kt-brand__text{display:flex;flex-direction:column;gap:2px}
.kt-brand__name{font-family:var(--kt-serif);font-weight:800;font-size:44px;line-height:1.1;color:var(--kt-ink)}
.kt-brand__name span{color:var(--kt-accent)}
.kt-brand__tag{font-size:14px;letter-spacing:.18em;color:var(--kt-muted);font-weight:500}
.custom-logo{max-height:80px;width:auto}
.kt-header__ad{max-width:728px;flex:0 1 728px}

/* Nav */
.kt-nav{border-top:3px solid var(--kt-ink);border-bottom:1px solid var(--kt-rule);background:var(--kt-paper);position:sticky;top:0;z-index:50}
.admin-bar .kt-nav{top:32px}
.kt-nav .kt-wrap{display:flex;align-items:center;gap:4px}
.kt-menu{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0;font-weight:700;font-size:16px;flex:1}
.kt-menu li{position:relative}
.kt-menu a{display:block;padding:14px 12px;border-bottom:3px solid transparent}
.kt-menu .current-menu-item>a,.kt-menu .current-menu-ancestor>a,.kt-menu .current-category-ancestor>a{color:var(--kt-accent);border-bottom-color:var(--kt-accent)}
.kt-menu .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:220px;background:#fff;border:1px solid var(--kt-rule);list-style:none;margin:0;padding:6px 0;box-shadow:0 8px 24px rgba(0,0,0,.08);z-index:60}
.kt-menu .sub-menu a{padding:9px 16px;border:0;font-weight:500}
.kt-menu li:hover>.sub-menu,.kt-menu li:focus-within>.sub-menu{display:block}
.kt-iconbtn{width:44px;height:44px;border:0;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--kt-ink);flex:0 0 auto}
.kt-burger{display:none}
.kt-search-panel{display:none;border-top:1px solid var(--kt-rule);padding:14px 0;background:var(--kt-paper)}
.kt-search-panel.is-open{display:block}
.kt-searchform{display:flex;gap:8px}
.kt-searchform input[type=search]{flex:1;min-width:0;padding:12px 14px;border:2px solid var(--kt-ink);font:inherit;font-size:16px}
.kt-searchform button,.kt-btn{background:var(--kt-accent);color:#fff;border:0;padding:12px 20px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.kt-btn:hover{color:#fff;filter:brightness(.92)}
.kt-btn--outline{background:transparent;color:var(--kt-ink);border:2px solid var(--kt-ink)}
.kt-btn--outline:hover{background:var(--kt-ink);color:#fff;filter:none}

/* Ticker */
.kt-ticker{background:var(--kt-surface);border-bottom:1px solid var(--kt-rule)}
.kt-ticker .kt-wrap{display:flex;align-items:stretch;gap:16px;overflow:hidden}
.kt-ticker__label{background:var(--kt-accent);color:#fff;font-weight:700;padding:10px 14px;white-space:nowrap;font-size:14px;display:flex;align-items:center;gap:8px}
.kt-ticker__label::before{content:"";width:8px;height:8px;border-radius:50%;background:#fff;animation:kt-pulse 1.4s infinite}
@keyframes kt-pulse{50%{opacity:.25}}
.kt-ticker__viewport{overflow:hidden;flex:1;display:flex;align-items:center;mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.kt-ticker__track{display:flex;gap:48px;white-space:nowrap;font-size:15px;font-weight:500;animation:kt-scroll var(--kt-ticker-speed,45s) linear infinite;padding-left:12px}
.kt-ticker:hover .kt-ticker__track{animation-play-state:paused}
@keyframes kt-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.kt-ticker__track{animation:none}.kt-ticker__label::before{animation:none}}

/* Main layout */
.kt-main{padding-top:32px}
.kt-hero{display:grid;grid-template-columns:2fr 1fr;gap:28px;padding-bottom:36px;border-bottom:1px solid var(--kt-rule)}
.kt-lead{display:flex;flex-direction:column;gap:14px;min-width:0}
.kt-lead .kt-hl{font-size:34px}
.kt-lead p{margin:0;font-size:17px;color:var(--kt-soft)}
.kt-trend{list-style:none;margin:0;padding:0;counter-reset:kt}
.kt-trend li{counter-increment:kt;border-bottom:1px solid var(--kt-rule)}
.kt-trend li:last-child{border-bottom:0}
.kt-trend a{display:flex;gap:14px;padding:14px 0}
.kt-trend a::before{content:counter(kt);font-family:var(--kt-serif);font-size:30px;font-weight:800;color:var(--kt-accent);line-height:1;min-width:22px}
.kt-trend .kt-hl{font-size:17px}

.kt-grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:32px 0;border-bottom:1px solid var(--kt-rule)}
.kt-card{display:flex;flex-direction:column;gap:10px;min-width:0}
.kt-card .kt-hl{font-size:18px}

.kt-cols{display:flex;flex-wrap:wrap;gap:40px;padding:36px 0}
.kt-content{flex:999 1 560px;min-width:0}
.kt-sidebar{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:32px}

.kt-row{display:flex;gap:20px;padding:18px 0;border-bottom:1px solid var(--kt-rule)}
.kt-row .kt-thumb{flex:0 0 240px}
.kt-row__body{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}
.kt-row .kt-hl{font-size:21px}
.kt-row p{margin:0;color:var(--kt-soft)}

.kt-catblocks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;padding:8px 0 40px}
.kt-catblock__lead{display:flex;flex-direction:column;gap:10px;margin-bottom:6px}
.kt-catblock__lead .kt-hl{font-size:19px}
.kt-mini{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--kt-rule)}
.kt-mini:last-child{border-bottom:0}
.kt-mini .kt-thumb{flex:0 0 96px;height:64px;aspect-ratio:auto}
.kt-mini .kt-hl{font-size:15px}

/* Widgets */
.kt-widget ul{list-style:none;margin:0;padding:0}
.kt-widget li{padding:8px 0;border-bottom:1px solid var(--kt-rule)}
.kt-epaper-card{background:var(--kt-ink);color:#fff;padding:24px;display:flex;flex-direction:column;gap:12px}
.kt-epaper-card strong{font-family:var(--kt-serif);font-size:22px}
.kt-epaper-card span{color:#C9CBD0}
.kt-epaper-card .kt-btn{align-self:flex-start}
.kt-whatsapp{background:var(--kt-surface);padding:24px;display:flex;flex-direction:column;gap:12px}
.kt-whatsapp strong{font-family:var(--kt-serif);font-size:20px}
.kt-whatsapp .kt-btn{background:#146C43;align-self:flex-start}

/* Video */
.kt-video{background:var(--kt-ink);color:#fff;padding:40px 0}
.kt-video .kt-sec{color:#fff}.kt-video .kt-sec::after{background:#3A3D44}
.kt-video__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.kt-video a{color:#fff;display:flex;flex-direction:column;gap:10px;font-weight:500}
.kt-video a:hover{color:#FF8A8D}
.kt-video .kt-thumb{aspect-ratio:16/9;background:#2A2D34;position:relative}
.kt-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.kt-play span{width:54px;height:54px;border-radius:50%;background:var(--kt-accent);display:flex;align-items:center;justify-content:center}

/* Footer */
.kt-footer{background:var(--kt-dark);color:#C9CBD0;padding:48px 0 24px;font-size:15px}
.kt-footer a{color:#C9CBD0}.kt-footer a:hover{color:#fff}
.kt-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px}
.kt-footer .kt-brand__name{font-size:28px;color:#fff}
.kt-footer .kt-brand__badge{width:60px;height:60px}
/* Footer is self-contained: nothing from plugins/old widgets can restyle it. */
.kt-footer,.kt-footer *{font-style:normal;font-family:var(--kt-sans)}
.kt-footer .kt-brand__name,.kt-footer .kt-brand__name *{font-family:var(--kt-serif)}
.kt-footer__col h3{color:#fff;font-size:16px;margin:0 0 12px;font-weight:700}
.kt-footer__col li{margin:0;padding:0;border:0}
.kt-footer__col .children,.kt-footer__col .sub-menu{display:none}
.kt-footer iframe,.kt-footer img{max-width:100%}
.kt-footer .kt-brand__name span{color:#F04A4F}
.kt-footer h3,.kt-footer .widget-title{color:#fff;font-size:16px;margin:0 0 10px}
.kt-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.kt-footer__bottom{margin-top:32px;padding-top:20px;border-top:1px solid #2A2D34;font-size:13px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
.kt-social{display:flex;gap:10px;flex-wrap:wrap}
.kt-social a{width:40px;height:40px;border:1px solid #3A3D44;display:inline-flex;align-items:center;justify-content:center}
.kt-social a:hover{background:var(--kt-accent);border-color:var(--kt-accent)}

/* Single */
.kt-single{display:flex;flex-direction:column;gap:18px}
.kt-crumbs{font-size:14px;color:var(--kt-muted)}
.kt-crumbs a{color:var(--kt-muted)}.kt-crumbs a:last-child{color:var(--kt-accent);font-weight:700}
.kt-single h1{font-size:40px;line-height:1.3}
.kt-dek{margin:0;font-size:20px;line-height:1.55;color:var(--kt-soft)}
.kt-byline{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;padding:14px 0;border-top:1px solid var(--kt-rule);border-bottom:1px solid var(--kt-rule)}
.kt-author{display:flex;gap:12px;align-items:center}
.kt-author img{border-radius:50%;width:44px;height:44px}
.kt-author strong{display:block}
.kt-share{display:flex;gap:8px;flex-wrap:wrap}
.kt-share a{padding:9px 14px;color:#fff;font-weight:700;font-size:14px}
.kt-share .fb{background:#1877F2}.kt-share .wa{background:#146C43}.kt-share .x{background:var(--kt-ink)}.kt-share .cp{background:var(--kt-muted);border:0;cursor:pointer;padding:9px 14px;color:#fff;font-weight:700;font-size:14px}
.kt-share a:hover{color:#fff;filter:brightness(.9)}
.kt-figure{margin:0}.kt-figure figcaption{font-size:13px;color:var(--kt-muted);margin-top:8px}
.kt-entry{font-size:19px;line-height:1.85;color:var(--kt-text);max-width:720px}
.kt-entry>*{margin:0 0 1.1em}
.kt-entry a{color:var(--kt-accent);text-decoration:underline;text-underline-offset:3px}
.kt-entry h2,.kt-entry h3{font-family:var(--kt-serif);line-height:1.35;color:var(--kt-ink)}
.kt-entry blockquote{padding:4px 0 4px 20px;border-left:4px solid var(--kt-accent);font-family:var(--kt-serif);font-size:22px;font-weight:600;margin-left:0}
.kt-entry img,.kt-entry iframe{max-width:100%}
.kt-entry .wp-block-embed__wrapper iframe{width:100%;aspect-ratio:16/9;height:auto}
.kt-tags{display:flex;flex-wrap:wrap;gap:8px}
.kt-tags a{padding:6px 12px;background:var(--kt-surface);font-size:14px}
.kt-related{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.kt-related .kt-hl{font-size:16px}
.alignwide{max-width:100%}.aligncenter{margin-left:auto;margin-right:auto}
.alignleft{float:left;margin:0 1em 1em 0}.alignright{float:right;margin:0 0 1em 1em}
.wp-caption-text,.wp-element-caption{font-size:13px;color:var(--kt-muted)}

/* Archive */
.kt-archive-head{padding:8px 0 20px;border-bottom:3px solid var(--kt-ink);margin-bottom:8px}
.kt-archive-head h1{font-family:var(--kt-serif);font-size:34px;margin:0}
.kt-archive-head p{margin:6px 0 0;color:var(--kt-muted)}
.kt-pagination{margin-top:28px}
.kt-pagination .nav-links{display:flex;flex-wrap:wrap;gap:6px}
.kt-pagination .page-numbers{min-width:44px;height:44px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--kt-rule);font-weight:700}
.kt-pagination .current{background:var(--kt-ink);color:#fff;border-color:var(--kt-ink)}

/* Comments */
.kt-comments{margin-top:24px}
.kt-comments ol{list-style:none;padding:0}
.kt-comments .comment-body{padding:16px 0;border-bottom:1px solid var(--kt-rule)}
.kt-comments textarea,.kt-comments input[type=text],.kt-comments input[type=email],.kt-comments input[type=url]{width:100%;padding:10px;border:1px solid #B9B2A3;font:inherit}
.kt-comments .submit{background:var(--kt-accent);color:#fff;border:0;padding:12px 20px;font-weight:700;cursor:pointer}

.kt-404{text-align:center;padding:80px 0}
.kt-404 h1{font-family:var(--kt-serif);font-size:96px;margin:0;color:var(--kt-accent)}

/* Responsive */
@media (max-width:1024px){
  .kt-grid4,.kt-video__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kt-catblocks{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kt-footer__grid{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .kt-hero{grid-template-columns:1fr}
  .kt-burger{display:inline-flex}
  .kt-menu{display:none;flex-direction:column;flex-basis:100%;order:3;padding-bottom:10px}
  .kt-menu.is-open{display:flex}
  .kt-nav .kt-wrap{flex-wrap:wrap;justify-content:space-between}
  .kt-menu a{padding:12px 4px;border-bottom:1px solid var(--kt-rule)}
  .kt-menu .sub-menu{display:block;position:static;box-shadow:none;border:0;padding-left:16px}
  .kt-header__ad{display:none}
  .kt-nav__brand{display:flex!important;align-items:center;gap:8px;font-family:var(--kt-serif);font-weight:800;font-size:20px}
  .kt-nav__brand img{width:32px;height:32px;border-radius:50%}
}
@media (max-width:640px){
  body{font-size:16px}
  .kt-brand__name{font-size:30px}
  .kt-brand__badge{width:64px;height:64px}
  .kt-brand{gap:12px}
  .kt-brand__tag{font-size:12px;letter-spacing:.1em}
  .kt-lead .kt-hl{font-size:26px}
  .kt-single h1{font-size:28px}
  .kt-entry{font-size:18px}
  .kt-grid4,.kt-catblocks,.kt-video__grid,.kt-related,.kt-footer__grid{grid-template-columns:1fr}
  .kt-row .kt-thumb{flex-basis:120px}
  .kt-row .kt-hl{font-size:17px}
  .kt-row p{display:none}
  .admin-bar .kt-nav{top:0}
}
