/*
Theme Name: Khalilabad News App Style
Theme URI: https://khalilabadnewsofficial.com
Author: Khalilabad News
Description: Mobile-first Hindi local news theme styled for Khalilabad News app.
Version: 1.0.0
Text Domain: khalilabad-news
*/

@import url('https://fonts.googleapis.com/css2?family=Anek+Devanagari:wght@400;500;600;700;800&display=swap');

:root {
  --kn-red: #e73332;
  --kn-red-dark: #c91f25;
  --kn-blue: #082a8f;
  --kn-text: #17191f;
  --kn-muted: #67707d;
  --kn-line: #e7e9ee;
  --kn-bg: #f5f6f9;
  --kn-card: #ffffff;
  --kn-gold: #d8b66a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kn-bg);
  color: var(--kn-text);
  font-family: "Anek Devanagari", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.kn-site {
  max-width: 820px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}

.kn-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kn-line);
  box-shadow: 0 10px 26px rgba(10, 20, 35, .06);
}
.kn-top-accent {
  height: 5px;
  background: linear-gradient(90deg, #ff8a00 0%, #e73332 38%, #082a8f 100%);
}
.kn-header-inner {
  display: grid;
  grid-template-columns: 132px 1fr 132px;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 4px;
}
.kn-logo {
  width: 112px;
  height: 58px;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 8px 10px rgba(8, 42, 143, .13));
}
.kn-brand-block {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}
.kn-brand-title {
  display: inline-block;
  color: #111;
  font-family: "Anek Devanagari", system-ui, sans-serif;
  font-size: 32px;
  line-height: .95;
  font-weight: 900;
  letter-spacing: 0;
  -webkit-text-stroke: .35px currentColor;
  text-shadow: 0 3px 0 rgba(255, 186, 61, .28), 0 12px 20px rgba(17, 19, 25, .08);
  white-space: nowrap;
  position: relative;
}
.kn-brand-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin: 6px 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff8a00, #e73332);
}
.kn-brand-subtitle {
  margin-top: 5px;
  color: #6b4c11;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
.kn-header-spacer { display: block; }
.kn-pill-red {
  border: 0;
  background: var(--kn-red);
  color: #fff;
  font-weight: 800;
  padding: 9px 17px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(231,51,50,.18);
}
.kn-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f1f3f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #111;
  font-size: 21px;
}
.kn-search {
  display: none;
  padding: 0 18px 14px;
}
.kn-search.is-open { display: block; }
.kn-search input {
  width: 100%;
  border: 1px solid var(--kn-line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.kn-tabs, .kn-business-tabs, .kn-tabs-menu {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 3px 18px 4px;
  white-space: nowrap;
}
.kn-tabs-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kn-tabs-menu li {
  flex: 0 0 auto;
}
.kn-tabs-menu a {
  display: inline-block;
  font-weight: 800;
  font-size: 19px;
  color: #222;
  padding: 5px 0;
  border-bottom: 3px solid transparent;
}
.kn-tabs-menu .current-menu-item a,
.kn-tabs-menu .current_page_item a {
  color: var(--kn-red);
  border-bottom-color: var(--kn-red);
}
.kn-tabs::-webkit-scrollbar, .kn-business-tabs::-webkit-scrollbar, .kn-tabs-menu::-webkit-scrollbar { display: none; }
.kn-tab {
  font-weight: 800;
  font-size: 19px;
  color: #222;
  padding: 5px 0;
  border-bottom: 3px solid transparent;
}
.kn-tab.is-active { color: var(--kn-red); border-bottom-color: var(--kn-red); }
.kn-business-tab {
  border: 1px solid var(--kn-line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kn-pin { color: var(--kn-red); font-weight: 900; }

.kn-main { padding-bottom: 40px; }
.kn-section-title {
  margin: 18px 18px 8px;
  font-size: 22px;
  font-weight: 800;
}
.kn-feed {
  border-top: 1px solid var(--kn-line);
}
.kn-card {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--kn-line);
  background: #fff;
}
.kn-card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 800;
}
.kn-card-title a:hover { color: var(--kn-red); }
.kn-title-accent {
  color: #e14a45;
  font-weight: 900;
}
.kn-card-img {
  width: 132px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  background: #202020;
}
.kn-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: var(--kn-muted);
  font-size: 14px;
  font-weight: 600;
}
.kn-cat {
  border: 1px solid rgba(216,182,106,.7);
  border-radius: 999px;
  padding: 2px 10px;
  color: #1f1f1f;
  background: #fffdf7;
  font-weight: 800;
}
.kn-share {
  margin-left: auto;
  color: #56606b;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-weight: 800;
}
.kn-wa { color: #18a957; }
.kn-dots { font-weight: 900; letter-spacing: 2px; }

.kn-hero {
  margin: 14px 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--kn-blue);
  color: #fff;
  position: relative;
}
.kn-hero img { width: 100%; max-height: 250px; object-fit: cover; opacity: .92; }
.kn-hero-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 45px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

.kn-single { padding: 18px; }
.kn-single-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--kn-line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.kn-back {
  font-size: 30px;
  line-height: 1;
}
.kn-single-location {
  flex: 1;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
}
.kn-single-title {
  font-size: 29px;
  line-height: 1.22;
  margin: 8px 0 12px;
  font-weight: 900;
}
.kn-single-title .kn-accent { color: #f09b21; }
.kn-byline {
  color: #9a9fa8;
  font-weight: 700;
  margin-bottom: 13px;
}
.kn-featured {
  border-radius: 4px;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}
.kn-content {
  font-size: 22px;
  line-height: 1.8;
  color: #252930;
}
.kn-content p { margin: 0 0 22px; }
.kn-content img { border-radius: 8px; margin: 16px 0; }
.kn-inline-share {
  display: flex;
  justify-content: center;
  border: 1px solid var(--kn-line);
  border-top: 0;
  padding: 10px;
  color: #666;
  font-weight: 800;
}

.kn-related .kn-card { grid-template-columns: 1fr 140px; padding-left: 0; padding-right: 0; }

.kn-page {
  padding: 22px 18px 36px;
  min-height: 55vh;
  background: #fff;
}
.kn-page-title {
  margin: 0 0 14px;
  color: #111;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
}
.kn-page-content {
  color: #2f3540;
  font-size: 19px;
  line-height: 1.75;
}
.kn-page-content p {
  margin: 0 0 16px;
}
.kn-page-content a {
  color: var(--kn-red);
  font-weight: 800;
}

.kn-empty {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--kn-muted);
  padding: 30px;
}
.kn-empty strong {
  display: block;
  color: #222;
  font-size: 23px;
  margin-bottom: 8px;
}

.kn-footer {
  text-align: center;
  border-top: 1px solid var(--kn-line);
  padding: 24px 18px 34px;
  color: var(--kn-muted);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
}
.kn-footer-brand {
  color: #111;
  font-size: 23px;
  font-weight: 900;
}
.kn-footer-tagline {
  margin-top: 2px;
  color: #6b4c11;
  font-size: 14px;
  font-weight: 800;
}
.kn-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 14px auto 12px;
  max-width: 620px;
}
.kn-footer-links a {
  color: #2d3440;
  font-size: 14px;
  font-weight: 800;
}
.kn-footer-copy {
  color: #67707d;
  font-size: 13px;
  font-weight: 600;
}
.kn-footer-dev {
  margin-top: 6px;
  color: var(--kn-red);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 560px) {
  .kn-site { max-width: none; }
  .kn-header-inner {
    grid-template-columns: 78px 1fr 32px;
    padding: 8px 12px 3px;
    gap: 8px;
  }
  .kn-logo { width: 70px; height: 42px; }
  .kn-brand-block { text-align: center; align-items: center; }
  .kn-brand-title { font-size: 27px; }
  .kn-brand-title::after { margin-left: 0; margin-right: 0; width: 100%; height: 3px; }
  .kn-brand-subtitle {
    font-size: 9px;
    line-height: 1.1;
    max-width: none;
    margin: 3px auto 0;
    text-align: center;
    white-space: nowrap;
  }
  .kn-pill-red { padding: 8px 13px; font-size: 15px; }
  .kn-icon-btn { width: 39px; height: 39px; }
  .kn-tabs { gap: 20px; padding: 2px 15px 3px; }
  .kn-tabs-menu { gap: 20px; padding: 2px 15px 3px; }
  .kn-tab { font-size: 18px; }
  .kn-tabs-menu a { font-size: 18px; }
  .kn-business-tabs { gap: 9px; padding: 7px 15px 9px; }
  .kn-business-tab { font-size: 14px; padding: 5px 10px; }
  .kn-card { grid-template-columns: 1fr 116px; gap: 10px; padding: 13px 14px; }
  .kn-card-title { font-size: 18px; line-height: 1.3; }
  .kn-card-img { width: 116px; height: 78px; }
  .kn-meta { font-size: 13px; gap: 8px; margin-top: 9px; }
  .kn-cat { padding: 2px 9px; }
  .kn-hero { margin: 12px 14px; }
  .kn-hero img { max-height: 220px; }
  .kn-hero-title { font-size: 22px; padding: 36px 14px 13px; }
  .kn-single-title { font-size: 26px; }
  .kn-content { font-size: 21px; }
}
