/**
 * Live Khagaria — Mobile-first pack
 * Search icon + top panel work on desktop too (styles in main.css).
 */

/* Hidden on desktop */
.lk-nav--drawer,
.lk-header-spacer,
.lk-mobile-wa {
	display: none;
}

@media (max-width: 768px) {
	.lk-nav--desktop {
		display: none !important;
	}

	/* Fixed header — sticky was broken by overflow-x on html/body */
	.lk-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 1200;
	}

	body.admin-bar .lk-header {
		top: 46px;
	}

	.lk-header-spacer {
		display: block;
		height: 0;
		flex-shrink: 0;
		pointer-events: none;
	}

	.lk-logo img,
	.lk-logo .custom-logo {
		max-height: var(--lk-logo-height-mobile, 70px);
		max-width: min(var(--lk-logo-max-width, 480px), 68vw);
	}

	.lk-header-inner {
		min-height: var(--lk-header-height);
	}

	.lk-cat-rail-item {
		min-width: 5.75rem;
		padding: 0.5rem 0.45rem;
		font-size: 0.75rem;
	}

	.lk-search-toggle,
	.lk-menu-toggle {
		width: 2.5rem;
		height: 2.5rem;
	}

	.lk-content {
		padding-top: 0.5rem;
		padding-bottom: 1.25rem;
	}

	.lk-layout {
		gap: 1.25rem;
		padding-top: 0.5rem;
	}

	.home .lk-layout,
	.blog .lk-layout {
		padding-top: 0.35rem;
	}

	.lk-hero {
		margin-bottom: 1.25rem;
	}

	/* Taller frame so overlay title/excerpt don’t clip under overflow:hidden */
	.lk-hero-image {
		aspect-ratio: 3 / 4;
		min-height: 22.5rem;
	}

	.lk-hero-content {
		padding: 1.15rem 1.1rem 1.25rem;
	}

	.lk-hero-featured-tag {
		margin-bottom: 0.45rem;
		font-size: 0.65rem;
		padding: 0.28rem 0.6rem;
	}

	.lk-hero-content .lk-badge,
	.lk-hero .lk-badge {
		margin-bottom: 0.45rem;
		font-size: 0.68rem;
		padding: 0.28rem 0.6rem;
	}

	.lk-breadcrumbs {
		padding: 0.5rem 0 0.4rem;
		font-size: 0.78rem;
	}

	.lk-article-header {
		margin-bottom: 0.55rem;
	}

	.lk-article-title {
		margin: 0.4rem 0 0.5rem;
	}

	.lk-article-featured {
		margin-bottom: 0.75rem;
	}

	.lk-archive-header {
		padding: 0.25rem 0 0.5rem;
	}

	.lk-menu-toggle {
		display: inline-flex;
		flex-direction: column;
		gap: 5px;
		padding: 0.55rem;
	}

	.lk-menu-toggle[aria-expanded="true"] .lk-menu-bar {
		background: #fff;
	}

	/* ------------------------------------------------------------------
	   Menu drawer — branded full-height panel
	   ------------------------------------------------------------------ */
	.lk-nav--drawer {
		display: flex;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		width: min(100%, 21rem);
		max-width: 100%;
		height: 100%;
		height: 100dvh;
		max-height: 100dvh;
		z-index: 2147483001;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0;
		margin: 0;
		background: #fff;
		border: none;
		box-shadow: -16px 0 48px rgba(15, 23, 42, 0.22);
		overflow: hidden;
		box-sizing: border-box;
		transform: translateX(105%);
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0.34s ease;
	}

	.lk-nav--drawer.is-open {
		transform: translateX(0);
		visibility: visible;
		pointer-events: auto;
	}

	.lk-nav-drawer-brand {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 1rem;
		flex-shrink: 0;
		padding: calc(1.15rem + env(safe-area-inset-top)) 1.15rem 1.25rem;
		background:
			radial-gradient(120% 80% at 100% 0%, rgba(234, 88, 12, 0.35), transparent 55%),
			linear-gradient(145deg, #7f1d1d 0%, var(--lk-primary) 48%, #c2410c 100%);
		color: #fff;
	}

	.lk-nav-drawer-brand-text {
		display: flex;
		flex-direction: column;
		gap: 0.2rem;
		min-width: 0;
	}

	.lk-nav-drawer-live {
		display: inline-flex;
		align-items: center;
		gap: 0.35rem;
		align-self: flex-start;
		padding: 0.15rem 0.55rem;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.16);
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.lk-nav-drawer-live .lk-live-dot {
		width: 0.45rem;
		height: 0.45rem;
		border-radius: 50%;
		background: #4ade80;
		box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
		animation: lk-live-pulse 1.6s ease-in-out infinite;
	}

	@keyframes lk-live-pulse {
		0%, 100% { opacity: 1; }
		50% { opacity: 0.45; }
	}

	.lk-nav-drawer-title {
		font-family: var(--lk-font-sans);
		font-size: 1.35rem;
		font-weight: 700;
		line-height: 1.25;
		color: #fff;
	}

	.lk-nav-drawer-sub {
		font-size: 0.85rem;
		opacity: 0.85;
	}

	.lk-nav-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.6rem;
		height: 2.6rem;
		flex-shrink: 0;
		padding: 0;
		border: 1px solid rgba(255, 255, 255, 0.28);
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.12);
		color: #fff;
		cursor: pointer;
		backdrop-filter: blur(6px);
	}

	.lk-nav-drawer-body {
		flex: 1 1 auto;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 1rem 0.85rem 1.25rem;
		background:
			linear-gradient(180deg, #fff7f5 0%, #ffffff 28%);
	}

	.lk-nav-drawer-label {
		margin: 0 0.4rem 0.65rem;
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--lk-text-muted, #6b7280);
	}

	.lk-nav--drawer .lk-menu {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 0.35rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.lk-nav--drawer .lk-menu > li {
		width: 100%;
		border: none;
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
		overflow: hidden;
	}

	.lk-nav--drawer .lk-menu > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 0.95rem 1rem;
		font-size: 1.05rem;
		font-weight: 600;
		color: var(--lk-text);
		text-decoration: none;
		box-sizing: border-box;
		border-left: 3px solid transparent;
		transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	}

	.lk-nav--drawer .lk-menu > li > a::after {
		content: "";
		width: 0.45rem;
		height: 0.45rem;
		border-right: 2px solid #cbd5e1;
		border-bottom: 2px solid #cbd5e1;
		transform: rotate(-45deg);
		flex-shrink: 0;
		margin-left: 0.75rem;
	}

	.lk-nav--drawer .lk-menu > li > a:hover,
	.lk-nav--drawer .lk-menu > li > a:focus,
	.lk-nav--drawer .lk-menu .current-menu-item > a,
	.lk-nav--drawer .lk-menu .current-menu-ancestor > a {
		background: #fff1f0;
		border-left-color: var(--lk-primary);
		color: var(--lk-primary);
	}

	.lk-nav--drawer .lk-menu .sub-menu {
		position: static;
		display: block;
		width: 100%;
		margin: 0;
		padding: 0 0 0.35rem;
		list-style: none;
		box-shadow: none;
		border: none;
		background: #f8fafc;
	}

	.lk-nav--drawer .lk-menu .sub-menu a {
		display: block;
		padding: 0.7rem 1rem 0.7rem 1.35rem;
		font-size: 0.95rem;
		font-weight: 500;
		color: var(--lk-text-muted, #64748b);
	}

	.lk-nav-drawer-foot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		flex-shrink: 0;
		padding: 0.85rem 1.15rem calc(0.95rem + env(safe-area-inset-bottom));
		border-top: 1px solid var(--lk-border);
		background: var(--lk-bg-alt, #f8fafc);
		font-size: 0.75rem;
		color: var(--lk-text-muted, #64748b);
	}

	body.lk-nav-open,
	body.lk-search-open {
		overflow: hidden;
		touch-action: none;
	}

	html,
	body {
		max-width: 100%;
	}

	.lk-site,
	.lk-header,
	.lk-header-inner,
	.lk-container,
	.lk-main {
		max-width: 100%;
	}

	.lk-main {
		overflow-x: clip;
	}

	/* ------------------------------------------------------------------
	   Slim homepage / sidebar on phone
	   ------------------------------------------------------------------ */
	.home .lk-latest .lk-grid > *:nth-child(n + 5),
	.blog .lk-latest .lk-grid > *:nth-child(n + 5) {
		display: none;
	}

	.home .lk-layout-main > .lk-category-block:nth-child(n + 5) {
		display: none;
	}

	.lk-sidebar-news:nth-of-type(n + 2) {
		display: none;
	}

	/* Show ad boxes on phone too (client wants visible AdSense slots) */

	/* ------------------------------------------------------------------
	   Bigger type + spacing
	   ------------------------------------------------------------------ */
	body {
		font-size: 17px;
	}

	.lk-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.lk-hero-title {
		font-size: clamp(1.2rem, 4.8vw, 1.45rem);
		/* Devanagari matras need room above the line box */
		line-height: 1.5;
		margin-bottom: 0.4rem;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.lk-hero-excerpt {
		font-size: 0.9rem;
		line-height: 1.55;
		margin-bottom: 0.5rem;
		-webkit-line-clamp: 2;
	}

	.lk-section-title {
		font-size: 1.2rem;
	}

	.lk-card-title,
	.lk-card-h .lk-card-title {
		font-size: 1.05rem;
		line-height: 1.4;
	}

	.lk-article-title {
		font-size: clamp(1.4rem, 5vw, 1.75rem);
		line-height: 1.35;
		margin-bottom: 0.75rem;
	}

	.lk-article-content {
		font-size: 1.125rem;
		line-height: 1.75;
	}

	.lk-article-content p {
		margin-bottom: 1.15em;
	}

	.lk-layout {
		gap: 1.5rem;
	}

	.lk-grid {
		gap: 1.25rem;
	}

	/* ------------------------------------------------------------------
	   Sticky WhatsApp share (articles)
	   ------------------------------------------------------------------ */
	.single .lk-mobile-wa {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.45rem;
		position: fixed;
		right: 1rem;
		bottom: calc(1.25rem + env(safe-area-inset-bottom));
		z-index: 100020;
		min-height: 3rem;
		padding: 0.65rem 1.1rem;
		border-radius: 999px;
		background: #25d366;
		color: #fff;
		font-family: var(--lk-font-sans);
		font-size: 0.9rem;
		font-weight: 700;
		text-decoration: none;
		box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
		-webkit-tap-highlight-color: transparent;
	}

	.single .lk-mobile-wa:hover,
	.single .lk-mobile-wa:focus {
		color: #fff;
		filter: brightness(1.05);
	}

	.single .lk-mobile-wa svg {
		width: 1.25rem;
		height: 1.25rem;
		flex-shrink: 0;
	}
}

@media (max-width: 480px) {
	.lk-hero-image {
		aspect-ratio: 3 / 4;
		min-height: 24rem;
	}

	.lk-hero-content {
		padding: 1rem 0.95rem 1.15rem;
	}

	.lk-hero-excerpt {
		-webkit-line-clamp: 1;
	}

	.lk-article-content {
		font-size: 1.15rem;
	}
}
