/*
Theme Name: Nation Khabar
Theme URI: https://example.com/nation-khabar
Author: Nation Khabar
Description: A customizable Hindi news channel WordPress theme with breaking ticker, featured stories, category sections, ad slots, video/live TV area, and widgetized sidebar/footer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: nation-khabar
*/

:root {
  --nk-red: #d71920;
  --nk-dark: #101820;
  --nk-ink: #17212b;
  --nk-muted: #667085;
  --nk-line: #e7e9ee;
  --nk-bg: #f6f7f9;
  --nk-card: #ffffff;
  --nk-accent: #f7b500;
  --nk-radius: 6px;
  --nk-shadow: 0 10px 28px rgba(16, 24, 32, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--nk-bg);
  color: var(--nk-ink);
  font-family: Arial, "Noto Sans Devanagari", "Mangal", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--nk-red);
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.nk-container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 16px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.nk-topbar {
  background: var(--nk-dark);
  color: #fff;
  font-size: 13px;
}

.nk-topbar__inner,
.nk-main-header__inner,
.nk-nav__inner,
.nk-breaking,
.nk-grid,
.nk-footer__grid {
  display: flex;
  gap: 16px;
}

.nk-topbar__inner {
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.nk-topbar ul,
.nk-nav ul {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nk-topbar a {
  color: #fff;
  opacity: 0.9;
}

.nk-date {
  color: #d5dbe3;
  white-space: nowrap;
}

.nk-main-header {
  background: #fff;
  border-bottom: 1px solid var(--nk-line);
}

.nk-main-header__inner {
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
}

.nk-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 220px;
}

.nk-brand__mark {
  align-items: center;
  background: var(--nk-red);
  border-radius: var(--nk-radius);
  color: #fff;
  display: inline-flex;
  font-size: 30px;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.nk-brand__name {
  color: var(--nk-dark);
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}

.nk-brand__tagline {
  color: var(--nk-muted);
  display: block;
  font-size: 13px;
}

.nk-header-ad {
  align-items: center;
  background: #f0f2f5;
  border: 1px dashed #c8ced8;
  color: var(--nk-muted);
  display: flex;
  font-size: 14px;
  justify-content: center;
  min-height: 90px;
  overflow: hidden;
  text-align: center;
  width: min(728px, 100%);
}

.nk-header-ad img {
  width: 100%;
}

.nk-nav {
  background: var(--nk-red);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-bar .nk-nav {
  top: 32px;
}

.nk-nav__inner {
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.nk-nav a {
  color: #fff;
  display: block;
  font-weight: 700;
  padding: 13px 0;
}

.nk-menu-toggle,
.nk-search-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: var(--nk-radius);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 40px;
}

.nk-menu-toggle {
  display: none;
}

.nk-search-panel {
  background: #fff;
  border-bottom: 1px solid var(--nk-line);
  display: none;
  padding: 14px 0;
}

.nk-search-panel.is-open {
  display: block;
}

.nk-search-form {
  display: flex;
  gap: 8px;
}

.nk-search-form input[type="search"] {
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius);
  flex: 1;
  font-size: 16px;
  padding: 11px 12px;
}

.nk-button,
.nk-search-form button,
.wp-block-search__button,
input[type="submit"] {
  background: var(--nk-red);
  border: 0;
  border-radius: var(--nk-radius);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 11px 16px;
}

.nk-breaking {
  align-items: stretch;
  background: #fff;
  border-bottom: 1px solid var(--nk-line);
  min-height: 44px;
}

.nk-breaking__label {
  align-items: center;
  background: var(--nk-dark);
  color: #fff;
  display: flex;
  font-weight: 800;
  padding: 0 16px;
  white-space: nowrap;
}

.nk-breaking__items {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 26px;
  overflow: hidden;
  white-space: nowrap;
}

.nk-breaking__items a {
  animation: nkTicker 24s linear infinite;
  display: inline-block;
}

@keyframes nkTicker {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-900%);
  }
}

.nk-main {
  padding: 22px 0 38px;
}

.nk-grid {
  align-items: flex-start;
}

.nk-content {
  flex: 1;
  min-width: 0;
}

.nk-sidebar {
  flex: 0 0 330px;
}

.nk-hero {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.25fr 1fr;
  margin-bottom: 22px;
}

.nk-hero__side {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.nk-card {
  background: var(--nk-card);
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius);
  overflow: hidden;
}

.nk-card--overlay {
  background: #111;
  min-height: 260px;
  position: relative;
}

.nk-card--overlay .nk-card__image {
  height: 100%;
  min-height: inherit;
}

.nk-card--overlay img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.nk-card--overlay::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.78));
  content: "";
  inset: 0;
  position: absolute;
}

.nk-card--overlay .nk-card__body {
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 18px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.nk-card__image {
  background: #dfe3e8;
  aspect-ratio: 16 / 9;
}

.nk-placeholder {
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.16), rgba(16, 24, 32, 0.12)),
    #e2e6ec;
  height: 100%;
  min-height: inherit;
  width: 100%;
}

.nk-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.nk-card__body {
  padding: 12px;
}

.nk-card__title {
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
}

.nk-card--large .nk-card__title {
  font-size: 30px;
}

.nk-meta {
  color: var(--nk-muted);
  font-size: 13px;
  margin-top: 8px;
}

.nk-section {
  margin-top: 24px;
}

.nk-section__head {
  align-items: center;
  border-bottom: 2px solid var(--nk-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.nk-section__title {
  border-bottom: 3px solid var(--nk-red);
  color: var(--nk-dark);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 -2px;
  padding-bottom: 8px;
}

.nk-section__link {
  color: var(--nk-red);
  font-size: 14px;
  font-weight: 700;
}

.nk-post-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nk-list {
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius);
}

.nk-list .nk-list-item {
  border-bottom: 1px solid var(--nk-line);
  display: grid;
  gap: 12px;
  grid-template-columns: 96px 1fr;
  padding: 12px;
}

.nk-list .nk-list-item:last-child {
  border-bottom: 0;
}

.nk-list-item__image {
  aspect-ratio: 4 / 3;
  background: #dfe3e8;
}

.nk-list-item__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.nk-list-item h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}

.nk-video-band {
  background: var(--nk-dark);
  color: #fff;
  margin-top: 26px;
  padding: 22px;
}

.nk-video-band .nk-section__head {
  border-color: rgba(255, 255, 255, 0.2);
}

.nk-video-band .nk-section__title {
  color: #fff;
}

.nk-video-embed {
  aspect-ratio: 16 / 9;
  background: #05080c;
  overflow: hidden;
}

.nk-video-embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.nk-widget {
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius);
  margin-bottom: 16px;
  padding: 14px;
}

.nk-widget h2,
.nk-widget .wp-block-heading {
  border-bottom: 2px solid var(--nk-red);
  font-size: 20px;
  margin: 0 0 12px;
  padding-bottom: 8px;
}

.nk-ad-box {
  align-items: center;
  background: #f0f2f5;
  border: 1px dashed #c8ced8;
  color: var(--nk-muted);
  display: flex;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  text-align: center;
}

.nk-pagination {
  margin-top: 24px;
}

.nk-pagination .page-numbers {
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius);
  display: inline-block;
  margin-right: 4px;
  padding: 8px 12px;
}

.nk-pagination .current {
  background: var(--nk-red);
  color: #fff;
}

.nk-article {
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius);
  padding: 22px;
}

.nk-article h1 {
  color: var(--nk-dark);
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.nk-article__image {
  margin: 18px -22px 20px;
}

.nk-article__content {
  font-size: 18px;
}

.nk-article__content a {
  color: var(--nk-red);
  font-weight: 700;
}

.nk-footer {
  background: var(--nk-dark);
  color: #d7dde5;
  margin-top: 28px;
  padding-top: 32px;
}

.nk-footer__grid {
  align-items: flex-start;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.nk-footer h2,
.nk-footer h3 {
  color: #fff;
  margin-top: 0;
}

.nk-footer a {
  color: #f4f7fb;
}

.nk-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nk-footer li {
  margin-bottom: 8px;
}

.nk-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 24px;
  padding: 14px 0;
  text-align: center;
}

.comment-respond,
.comments-area {
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius);
  margin-top: 18px;
  padding: 18px;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list li {
  border-bottom: 1px solid var(--nk-line);
  padding: 14px 0;
}

textarea,
input[type="text"],
input[type="email"],
input[type="url"] {
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius);
  max-width: 100%;
  padding: 10px 12px;
  width: 100%;
}

@media (max-width: 960px) {
  .nk-main-header__inner,
  .nk-grid {
    flex-direction: column;
  }

  .nk-header-ad,
  .nk-sidebar {
    width: 100%;
  }

  .nk-sidebar {
    flex-basis: auto;
  }

  .nk-hero {
    grid-template-columns: 1fr;
  }

  .nk-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nk-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .admin-bar .nk-nav {
    top: 46px;
  }

  .nk-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 8px 16px;
  }

  .nk-menu-toggle {
    display: inline-flex;
  }

  .nk-nav ul {
    background: var(--nk-red);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 0 16px 12px;
    position: absolute;
    right: 0;
    top: 48px;
  }

  .nk-nav ul.is-open {
    display: flex;
  }

  .nk-brand__name {
    font-size: 25px;
  }

  .nk-brand__mark {
    font-size: 24px;
    height: 46px;
    width: 46px;
  }

  .nk-hero__side,
  .nk-post-grid,
  .nk-footer__grid {
    grid-template-columns: 1fr;
  }

  .nk-card--large .nk-card__title {
    font-size: 24px;
  }

  .nk-article {
    padding: 16px;
  }

  .nk-article h1 {
    font-size: 28px;
  }

  .nk-article__image {
    margin-left: -16px;
    margin-right: -16px;
  }
}
