/*
Theme Name: Bharat Bulletin
Theme URI: https://example.com/bharat-bulletin
Author: Codex
Description: A dense Hindi news theme inspired by Indian broadcast news portals, built for WordPress.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: bharat-bulletin
*/

:root {
  --bb-red: #e21b2d;
  --bb-red-dark: #b51220;
  --bb-blue: #20248a;
  --bb-blue-dark: #11145f;
  --bb-ink: #171717;
  --bb-muted: #686868;
  --bb-line: #dedede;
  --bb-bg: #f3f5fb;
  --bb-paper: #ffffff;
  --bb-yellow: #ffd447;
  --bb-green: #167a4a;
  --bb-radius: 8px;
  --bb-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --bb-font: "Noto Sans Devanagari", "Mukta", "Hind", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bb-bg);
  color: var(--bb-ink);
  font-family: var(--bb-font);
  line-height: 1.5;
  animation: bb-page-enter 0.42s ease both;
}

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

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

.site-wrap {
  min-height: 100vh;
}

@keyframes bb-page-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.network-bar {
  background: #111;
  color: #eee;
  font-size: 13px;
}

.network-inner,
.masthead-inner,
.nav-inner,
.content-shell,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.network-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
}

.network-links,
.quick-links,
.main-menu,
.topic-strip,
.ticker-list {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.network-links {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.network-links::-webkit-scrollbar {
  display: none;
}

.masthead {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 30%, rgba(255, 255, 255, 0.1) 38%, transparent 48% 100%),
    linear-gradient(90deg, var(--bb-red), #c91425 52%, var(--bb-red));
  background-size: 220% 100%, 100% 100%;
  color: #fff;
  animation: bb-masthead-flow 8s ease-in-out infinite;
}

.masthead::before,
.masthead::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.masthead::before {
  right: clamp(18px, 8vw, 180px);
  bottom: -58px;
  width: clamp(170px, 20vw, 280px);
  aspect-ratio: 1;
  background: url("assets/images/news-mic-hero.jpeg") center / contain no-repeat;
  filter: drop-shadow(0 18px 22px rgba(88, 0, 0, 0.22));
  opacity: 0.16;
  transform: rotate(-14deg);
  animation: bb-header-mic-float 5.8s ease-in-out infinite;
}

.masthead::after {
  right: clamp(150px, 25vw, 430px);
  top: 34px;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.12), 0 0 0 28px rgba(255, 255, 255, 0.06);
  animation: bb-header-live-pulse 2.1s ease-out infinite;
}

.masthead-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
}

@keyframes bb-header-mic-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-14deg) scale(1);
  }

  50% {
    transform: translate3d(-10px, -8px, 0) rotate(-10deg) scale(1.04);
  }
}

@keyframes bb-masthead-flow {
  0%,
  100% {
    background-position: 120% 0, 0 0;
  }

  50% {
    background-position: -20% 0, 0 0;
  }
}

@keyframes bb-header-live-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.76);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18), 0 0 0 0 rgba(255, 255, 255, 0.1);
  }

  100% {
    opacity: 0;
    transform: scale(1.35);
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0), 0 0 0 34px rgba(255, 255, 255, 0);
  }
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--bb-blue-dark);
  color: var(--bb-yellow);
  font-size: 27px;
  font-weight: 900;
}

.fallback-logo,
.custom-logo {
  width: auto;
  height: 78px;
  max-width: 140px;
  max-height: 78px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: #fff;
}

.brand-text strong {
  display: block;
  font-size: clamp(22px, 3.3vw, 34px);
  font-weight: 900;
  line-height: 1;
}

.brand-text span {
  display: block;
  margin-top: 4px;
  color: #ffe8e8;
  font-size: 14px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 440px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--bb-radius);
  background: #fff;
}

.search-form input {
  min-width: 0;
  border: 0;
  padding: 12px 14px;
  font: inherit;
}

.search-form button,
.icon-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffdb4d;
  box-shadow: 0 0 0 0 rgba(255, 219, 77, 0.7);
  animation: status-pulse 1.8s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 219, 77, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 219, 77, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 219, 77, 0);
  }
}

.search-form button {
  background: var(--bb-blue-dark);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--bb-radius);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 21px;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--bb-line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  overflow-x: visible;
  overflow-y: visible;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.main-menu {
  white-space: nowrap;
  font-weight: 800;
}

.main-menu > li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.main-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 3px solid transparent;
  transition: color 0.18s ease;
}

.main-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--bb-red);
  transition: transform 0.22s ease;
}

.main-menu > li:hover > a::after,
.main-menu > li:focus-within > a::after,
.main-menu > .current-menu-item > a::after {
  transform: scaleX(1);
}

.submenu-toggle {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 48px;
  margin-left: -4px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
  color: var(--bb-red);
  outline: none;
}

.main-menu > li:hover > .submenu-toggle,
.main-menu > li:focus-within > .submenu-toggle,
.main-menu li.is-expanded > .submenu-toggle {
  color: var(--bb-red);
}

.main-menu li.is-expanded > .submenu-toggle {
  transform: rotate(180deg);
}

.sub-menu-wrap,
.main-menu .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  display: none;
  min-width: 280px;
  max-width: 360px;
  padding: 10px;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: #fff;
  box-shadow: var(--bb-shadow);
  z-index: 40;
}

.main-menu > li {
  padding-bottom: 12px;
}

.main-menu > li:hover .sub-menu-wrap,
.main-menu > li:focus-within .sub-menu-wrap,
.main-menu > li:hover > .sub-menu,
.main-menu > li:focus-within > .sub-menu {
  display: block;
}

.sub-menu-wrap ul,
.main-menu .sub-menu,
.main-menu .sub-menu ul,
.category-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-menu-wrap li,
.main-menu .sub-menu li {
  position: relative;
  display: flex;
  align-items: center;
}

.sub-menu-wrap a,
.main-menu .sub-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

.sub-menu-wrap .submenu-toggle,
.main-menu .sub-menu .submenu-toggle {
  width: 28px;
  height: 34px;
  margin-left: 4px;
  border-bottom: 0;
  color: var(--bb-muted);
}

.sub-menu-wrap ul ul,
.main-menu .sub-menu ul {
  margin-top: 6px;
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
  display: grid;
  gap: 4px;
}

.main-menu .sub-menu a:hover,
.main-menu .sub-menu .current-menu-item > a {
  background: #f1f5ff;
  color: var(--bb-blue-dark);
}

.main-menu > li > .sub-menu::before,
.main-menu > li > .sub-menu-wrap::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 18px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid var(--bb-line);
  border-top: 1px solid var(--bb-line);
}

.main-menu a:hover,
.main-menu .current-menu-item > a {
  color: var(--bb-blue);
}

.main-nav.is-open .nav-inner {
  display: flex;
}

.main-nav.is-collapsed .nav-inner {
  display: none;
}

.breaking {
  background: #fff;
  border-bottom: 1px solid var(--bb-line);
}

.breaking-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 14px;
	width: min(1180px, calc(100% - 32px));
	min-height: 46px;
	margin: 0 auto;
	overflow: hidden;
}

.breaking-label {
  background: linear-gradient(135deg, var(--bb-red), var(--bb-blue));
  color: #fff;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
	text-transform: uppercase;
  animation: bb-breaking-label 2.8s ease-in-out infinite;
}

.ticker-viewport {
	min-width: 0;
	flex: 1;
	overflow: hidden;
	background: #fff;
}

.ticker-list {
	width: max-content;
	max-width: none;
	overflow: visible;
	color: #242424;
	white-space: nowrap;
	will-change: transform;
	animation: bb-ticker 60s linear infinite;
	transform-origin: 0 0;
}

.ticker-list li {
	display: inline-flex;
	align-items: center;
	padding-right: 38px;
}

.ticker-viewport:hover .ticker-list {
	animation-play-state: paused;
}

.ticker-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--bb-blue);
}

@keyframes bb-ticker {
	0% {
		transform: translateX(0);
	}

	50% {
		transform: translateX(-50%);
	}

	100% {
		transform: translateX(-50%);
	}
}

.topic-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.topic-strip::-webkit-scrollbar {
  display: none;
}

.topic-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--bb-line);
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.topic-strip a:hover,
.topic-strip a:focus-visible {
  border-color: rgba(226, 27, 45, 0.35);
  box-shadow: 0 8px 18px rgba(17, 20, 95, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 22px 0 42px;
  animation: bb-home-shell-enter 0.55s ease both;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  animation: bb-home-rise 0.6s 0.08s ease both;
}

.latest-carousel {
  overflow: hidden;
}

.latest-carousel-head {
  margin-bottom: 0;
  align-items: flex-end;
}

.carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 5px;
}

.carousel-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(226, 27, 45, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--bb-blue-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 0;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  border-color: var(--bb-red);
  background: var(--bb-red);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.latest-carousel-viewport {
  overflow: hidden;
  border-radius: var(--bb-radius);
}

.latest-carousel-track {
  display: flex;
  transition: transform 0.48s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.latest-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.latest-slide:not(.is-active) {
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 18px;
  padding-top: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 20, 95, 0.24);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, width 0.18s ease;
}

.carousel-dot.is-active {
  width: 22px;
  background: var(--bb-red);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--bb-blue);
  outline-offset: 3px;
}

.story-card,
.side-widget,
.video-card,
.story-mini,
.wp-block-group {
  background: var(--bb-paper);
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
}

.story-card {
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.story-card:hover {
  border-color: rgba(226, 27, 45, 0.28);
  box-shadow: 0 14px 34px rgba(17, 35, 72, 0.1);
  transform: translateY(-2px);
  filter: saturate(1.04);
}

.story-card.featured:hover {
  transform: none;
}

.story-card.featured {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  min-height: 260px;
  box-shadow: var(--bb-shadow);
  animation: bb-feature-card-in 0.72s 0.14s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.story-card.featured .story-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.story-card.featured .story-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.story-card.no-image {
  display: block;
}

.story-card.no-image .story-body {
  padding: 18px;
}

.story-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #c9d7e8, #f4c4c6);
  overflow: hidden;
}

.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.28) 36%, transparent 54%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.story-card:hover .story-media::after,
.story-mini:hover .thumb::after,
.visual-card:hover::after {
  animation: bb-card-shine 0.82s ease;
  opacity: 1;
}

.story-media img,
.story-placeholder {
  width: 100%;
  height: 100%;
}

.story-media img {
  object-fit: cover;
  transition: transform 0.42s ease;
}

.story-placeholder {
  display: block;
  background:
    linear-gradient(135deg, rgba(32, 36, 138, 0.12), rgba(226, 27, 45, 0.1)),
    #edf1f7;
}

.story-media img[src*="crime-khabar-logo"] {
  opacity: 0;
}

.story-card:hover .story-media img,
.visual-card:hover img {
  transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .masthead,
  .masthead::before,
  .masthead::after {
    animation: none;
  }
}

.media-badge,
.category-badge,
.duration {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  font-weight: 900;
}

.media-badge {
  left: 12px;
  top: 12px;
  background: var(--bb-red);
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
}

.story-body {
  padding: 14px;
}

.story-card h1,
.story-card h2,
.story-card h3,
.section-title,
.side-widget h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.24;
}

.story-card h1 {
  font-size: clamp(24px, 3vw, 31px);
}

.story-card h2 {
  font-size: 21px;
}

.story-card h3,
.story-mini h3 {
  font-size: 17px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--bb-muted);
  font-size: 13px;
}

.summary {
  margin: 10px 0 0;
  color: #3d3d3d;
}

.stacked-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: stretch;
}

.story-mini {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border-left: 4px solid transparent;
  animation: bb-home-rise 0.5s ease both;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.story-mini:nth-child(1) { animation-delay: 0.18s; }
.story-mini:nth-child(2) { animation-delay: 0.23s; }
.story-mini:nth-child(3) { animation-delay: 0.28s; }
.story-mini:nth-child(4) { animation-delay: 0.33s; }
.story-mini:nth-child(5) { animation-delay: 0.38s; }
.story-mini:nth-child(6) { animation-delay: 0.43s; }
.story-mini:nth-child(7) { animation-delay: 0.48s; }
.story-mini:nth-child(8) { animation-delay: 0.53s; }
.story-mini:nth-child(9) { animation-delay: 0.58s; }

.story-mini:hover {
  border-left-color: var(--bb-red);
  box-shadow: 0 10px 24px rgba(18, 34, 64, 0.08);
  transform: translateY(-1px);
}

.story-mini.no-image {
  grid-template-columns: 1fr;
}

.story-mini .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #e6e6e6;
  overflow: hidden;
}

.story-mini .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.35) 36%, transparent 54%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.story-mini .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-mini .meta {
  margin-top: 6px;
}

.category-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 5px;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--bb-blue-dark);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  margin-top: 24px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.category-directory {
  margin-bottom: 18px;
}

.category-tree {
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: #fff;
  padding: 16px;
}

.category-tree > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.category-tree li {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(234, 242, 255, 0.8);
  border: 1px solid rgba(32, 74, 145, 0.12);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tree li:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.category-tree a {
  display: inline-flex;
  align-items: center;
  color: var(--bb-blue-dark);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
}

.category-tree ul ul {
  margin-top: 10px;
  padding-left: 0;
  border-left: none;
  display: grid;
  gap: 8px;
}

.category-tree ul ul a {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(21, 81, 207, 0.08);
  color: var(--bb-blue);
  font-size: 14px;
  font-weight: 700;
}

.filter-status {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 4px solid var(--bb-red);
  background: #fff;
  color: var(--bb-muted);
  font-weight: 800;
}

.filter-status:empty {
  display: none;
}

.is-hidden {
  display: none !important;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 3px solid var(--bb-blue);
}

.section-title {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  background: var(--bb-blue);
  color: #fff;
  font-size: 22px;
}

.section-link {
  color: var(--bb-red);
  font-weight: 900;
}

/* Share buttons for detail page */
.article-meta {
  align-items: center;
}

.article-share-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.share-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-btn:hover,
.share-btn:focus-visible {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.share-facebook { background: #1877f2; color: #fff; }
.share-twitter { background: #111; color: #fff; }
.share-whatsapp { background: #25d366; color: #fff; }
.share-telegram { background: #0088cc; color: #fff; }
.share-copy { background: var(--bb-red); color: #fff; }

.article-context { background: #fffef6; border-left: 4px solid var(--bb-blue); padding: 12px 14px; margin: 12px 0 8px; color: #333; font-size: 15px; line-height: 1.6; }
.article-context strong { color: var(--bb-blue); margin-right: 6px; }

/* View counter */
.article-views { 
  display: inline-flex; 
  align-items: center; 
  gap: 4px; 
  font-size: 13px; 
  color: var(--bb-muted); 
  font-weight: 700; 
}

/* Read-next sidebar styles */
#read-next-list { display: grid; gap: 12px; }
.read-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bb-line); }
.read-thumb { width: 78px; height: 56px; overflow: hidden; border-radius: 6px; flex-shrink: 0; }
.read-thumb img { width: 100%; height: 100%; object-fit: cover; }
.read-title { font-weight: 800; font-size: 14px; color: #222; }

@media (max-width: 980px) {
  aside.sidebar { display: none; }
}

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

.news-grid .story-card h3 {
  min-height: 64px;
}

.video-band {
  background: linear-gradient(135deg, var(--bb-blue-dark), #171717);
  color: #fff;
  padding: 18px;
  border-radius: var(--bb-radius);
}

.video-band .section-head {
  border-bottom-color: #444;
}

.video-band .section-title {
  background: var(--bb-red);
}

.video-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-color: #343434;
  background: #242424;
}

.video-card h3 {
  min-height: 62px;
  margin: 0;
  padding: 12px;
  font-size: 15px;
  line-height: 1.35;
}

.duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.visual-card {
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--bb-radius);
  background: #222;
  color: #fff;
  position: relative;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.28) 36%, transparent 54%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.visual-card:hover {
  box-shadow: 0 16px 34px rgba(17, 35, 72, 0.14);
  transform: translateY(-2px);
}

.visual-card img,
.visual-placeholder {
  width: 100%;
  height: 100%;
  min-height: 210px;
}

.visual-card img {
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.22s ease, transform 0.42s ease;
}

.visual-placeholder {
  display: block;
  background:
    linear-gradient(135deg, rgba(32, 36, 138, 0.48), rgba(226, 27, 45, 0.36)),
    #28314a;
}

.visual-card:hover img {
  opacity: 0.92;
}

.visual-card h3 {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

[data-ad-slots] {
  display: grid;
  gap: 18px;
}

.side-widget {
  padding: 14px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.side-widget:hover {
  box-shadow: 0 14px 32px rgba(17, 35, 72, 0.08);
  transform: translateY(-1px);
}

.side-widget h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bb-blue);
  font-size: 20px;
}

.trending-widget {
  border-top: 4px solid var(--bb-red);
  background: linear-gradient(180deg, #fff, #fbfcff);
  box-shadow: 0 10px 28px rgba(17, 35, 72, 0.07);
}

.trending-widget h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom-color: #f0d3d4;
  color: var(--bb-blue-dark);
}

.trending-widget h2::after {
  content: "Top 4";
  border-radius: 999px;
  background: #eef4ff;
  color: var(--bb-blue);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ranked-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranked-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--bb-line);
  font-weight: 900;
  line-height: 1.35;
  transition: transform 0.18s ease;
}

.ranked-list li:hover {
  transform: translateX(3px);
}

.ranked-list a {
  color: #1f2937;
}

.ranked-list a:hover {
  color: var(--bb-red);
}

.ranked-list li:last-child,
.plain-list li:last-child {
  border-bottom: 0;
}

.rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bb-red), #9b111e);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(226, 27, 45, 0.35);
  animation: bb-rank-pulse 3.2s ease-in-out infinite;
}

.plain-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--bb-line);
}

.subcategory-blocks {
  display: grid;
  gap: 16px;
}

.subcategory-block {
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: #fff;
  padding: 14px;
}

.subcategory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--bb-blue);
}

.subcategory-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.subcategory-head h2 a {
  color: var(--bb-blue-dark);
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
}

.category-card-grid-full {
  padding-top: 4px;
}

.category-post-card {
  overflow: hidden;
  border: 1px solid rgba(17, 35, 72, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 35, 72, 0.06);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.category-post-card:hover {
  border-color: rgba(226, 27, 45, 0.22);
  box-shadow: 0 14px 30px rgba(17, 35, 72, 0.12);
  transform: translateY(-3px);
}

.category-post-media {
  display: block;
  aspect-ratio: 16 / 8.8;
  background: #edf1f7;
  overflow: hidden;
}

.category-post-media img,
.category-post-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.category-post-media img {
  object-fit: cover;
  transition: transform 0.34s ease;
}

.category-post-placeholder {
  background:
    linear-gradient(135deg, rgba(32, 36, 138, 0.12), rgba(226, 27, 45, 0.1)),
    #edf1f7;
}

.category-post-media img[src*="crime-khabar-logo"] {
  opacity: 0;
}

.category-post-card:hover .category-post-media img {
  transform: scale(1.035);
}

.category-post-body {
  padding: 10px 12px 12px;
}

.category-post-body h2 {
  display: -webkit-box;
  min-height: 72px;
  margin: 0;
  overflow: hidden;
  color: #111;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-post-body h2 a {
  color: inherit;
}

.category-post-body h2 a:hover {
  color: var(--bb-blue);
}

.category-post-date {
  margin-top: 8px;
  color: #111;
  font-size: 12px;
  line-height: 1.3;
}

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

.category-post-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bb-line);
}

.category-post-list li:last-child {
  border-bottom: 0;
}

.category-post-list li a {
  color: #1f1f1f;
  font-weight: 800;
  line-height: 1.35;
}

.category-post-list li a:hover {
  color: var(--bb-blue);
}

.category-post-list .meta {
  margin-top: 0;
  white-space: nowrap;
  font-size: 12px;
  color: var(--bb-muted);
}

.category-post-list-full {
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: #fff;
  padding: 0 14px;
}

.weather-temp[data-weather-temp] {
  display: none;
}

.weather-widget {
  background: linear-gradient(135deg, #19315f, #1c7751);
  color: #fff;
  border: 0;
}

.weather-temp {
  margin: 12px 0 2px;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.empty-state {
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: #fff;
  padding: 18px;
  color: var(--bb-muted);
  font-weight: 800;
}

.ad-box {
  display: grid;
  place-items: center;
  min-height: 250px;
  border: 1px dashed #bbb;
  border-radius: var(--bb-radius);
  background: #fafafa;
  color: #777;
  font-weight: 800;
}

[data-ad-slots] {
  margin-bottom: 24px;
}

.recommended-card {
  display: grid;
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.recommended-card a {
  display: grid;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.recommended-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.recommended-body {
  padding: 14px;
}

.recommended-body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bb-blue);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.recommended-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.recommended-body p {
  margin: 0;
  color: var(--bb-muted);
  line-height: 1.5;
}

.newsletter {
  background: #fff7d7;
}

.newsletter form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.newsletter-message {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--bb-blue);
  font-weight: 800;
}

.newsletter-message.is-error {
  color: var(--bb-red);
}

.newsletter-message.is-success {
  color: var(--bb-green);
}

.newsletter input {
  width: 100%;
  border: 1px solid var(--bb-line);
  border-radius: 6px;
  padding: 11px;
  font: inherit;
}

.newsletter button {
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bb-red), var(--bb-blue));
  color: #fff;
  padding: 11px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

/* Weather carousel styles */
.weather-carousel {
  margin-top: 12px;
}

.weather-carousel .weather-carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.weather-carousel .weather-slides {
  display: flex;
  width: 160px;
  margin: 0 auto;
  overflow: hidden;
  transition: transform 0.32s ease;
}

.weather-slide {
  min-width: 160px;
  box-sizing: border-box;
  padding: 8px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #f7fbff);
  border-radius: 8px;
  border: 1px solid rgba(32, 74, 145, 0.06);
  animation: bb-weather-glow 4.6s ease-in-out infinite;
}

.weather-city { font-weight: 800; color: var(--bb-blue); margin-bottom: 6px; }
.weather-main { display:flex; align-items:center; justify-content:center; gap:8px; }
.weather-icon { width:48px; height:48px; }
.weather-reading { font-size: 24px; font-weight: 900; color: var(--bb-blue-dark); }
.weather-desc { font-size:12px; color:var(--bb-muted); margin-top:6px; }
.weather-prev, .weather-next { border:0; background:transparent; font-size:20px; cursor:pointer; }
.weather-error { color: var(--bb-red); font-weight:700; }

@keyframes bb-home-shell-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bb-home-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bb-feature-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bb-card-shine {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes bb-breaking-label {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(226, 27, 45, 0.2);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(226, 27, 45, 0);
  }
}

@keyframes bb-rank-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(226, 27, 45, 0.25);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(226, 27, 45, 0);
  }
}

@keyframes bb-weather-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: 0 10px 22px rgba(255, 255, 255, 0.18);
  }
}

.site-footer {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(226, 27, 45, 0.16), transparent 34%),
    linear-gradient(180deg, #11145f, #07082a);
  color: #dde3ff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) repeat(auto-fit, minmax(145px, 1fr));
  gap: 30px;
  padding: 38px 0 28px;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

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

.footer-inner li {
  margin-bottom: 9px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 82px;
  max-height: 58px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.footer-brand span {
  color: #cfd4ff;
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
  color: #cfd4ff;
  max-width: 440px;
}

.footer-links a,
.footer-contact a {
  color: #e9ecff;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.footer-contact li {
  color: #cfd4ff;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px 0;
  color: #cfd4ff;
  font-size: 14px;
  text-align: center;
}

.legal-page {
  display: block;
  max-width: 900px;
}

.legal-article {
  background: #fff;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  padding: clamp(20px, 4vw, 38px);
  box-shadow: var(--bb-shadow);
}

.legal-article h1 {
  margin: 0 0 10px;
  color: var(--bb-blue-dark);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.legal-article h2 {
  margin: 26px 0 8px;
  color: var(--bb-blue-dark);
  font-size: 21px;
}

.legal-article p,
.legal-article li {
  color: #333;
}

.legal-article ul {
  padding-left: 20px;
}

.legal-updated {
  margin: 0 0 22px;
  color: var(--bb-muted);
  font-weight: 800;
}

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

@media (max-width: 980px) {
  .masthead-inner {
    grid-template-columns: 1fr auto;
  }

  .search-form {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    width: 100%;
    margin: 0 0 14px;
  }

  .icon-button {
    grid-column: 2;
    grid-row: 1;
  }

  .content-shell {
    grid-template-columns: 1fr;
  }

  .lead-grid {
    grid-template-columns: 1fr;
  }

  .stacked-news {
    grid-template-columns: 1fr;
  }

  .story-card.featured {
    grid-template-columns: 1fr;
  }

  .story-card.featured .story-media {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .news-grid,
  .video-row,
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-tree > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .network-inner,
  .masthead-inner,
  .nav-inner,
  .content-shell,
  .footer-inner,
  .breaking-inner,
  .topic-strip {
    width: min(100% - 20px, 1180px);
  }

  .network-inner {
    justify-content: flex-start;
  }

  .quick-links {
    display: none;
  }

  .masthead-inner {
    min-height: 74px;
    gap: 12px;
  }

  .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .fallback-logo,
  .custom-logo {
    width: auto;
    height: 64px;
    max-width: 116px;
    max-height: 64px;
  }

  .breaking-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  .main-nav {
    position: fixed;
    inset: 0 auto auto 0;
    width: min(280px, 85vw);
    max-width: 100%;
    height: 100vh;
    padding-top: 20px;
    transform: translateX(-100%);
    transition: transform 0.24s ease, visibility 0.24s ease;
    background: #fff;
    border-bottom: none;
    box-shadow: 10px 0 32px rgba(0, 0, 0, 0.16);
    z-index: 30;
    visibility: hidden;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  body.drawer-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 25;
    pointer-events: auto;
  }

  .main-nav .nav-inner {
    display: block;
    min-height: auto;
    padding: 8px 16px 18px;
    max-height: calc(100vh - 20px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .main-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .main-menu li,
  .main-menu > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 0;
    width: 100%;
    padding-bottom: 0;
  }

  .submenu-toggle,
  .sub-menu-wrap .submenu-toggle,
  .main-menu .sub-menu .submenu-toggle {
    width: 38px;
    height: 38px;
    margin-left: 0;
    border-bottom: 0;
    border-radius: 6px;
    background: #f3f5fb;
    color: var(--bb-blue-dark);
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus-visible,
  .main-menu li.is-expanded > .submenu-toggle {
    background: #eef4ff;
    color: var(--bb-red);
  }

  .main-menu .sub-menu-wrap,
  .main-menu .sub-menu {
    display: none;
    padding-left: 16px;
    margin-top: 6px;
  }

  .main-menu li.is-expanded > .sub-menu-wrap,
  .main-menu li.is-expanded > .sub-menu {
    display: block;
  }

  .main-menu .sub-menu-wrap,
  .main-menu .sub-menu {
    position: static;
    grid-column: 1 / -1;
    min-width: 0;
    max-width: none;
    border: none;
    box-shadow: none;
    padding: 8px 0 0 12px;
    background: transparent;
  }

  .main-menu .sub-menu-wrap a,
  .main-menu .sub-menu a {
    padding-left: 0;
  }

  .main-menu a {
    width: 100%;
    min-height: 34px;
  }

  .story-mini {
    grid-template-columns: 96px 1fr;
  }

  .story-card.featured .story-body {
    padding: 14px;
  }

  .story-card.featured .story-media {
    max-height: 190px;
  }

  .story-card h1 {
    font-size: 24px;
  }

  .news-grid,
  .video-row,
  .visual-strip,
  .category-card-grid,
  .category-tree > ul,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .video-band {
    padding: 12px;
  }
}







