/*
Theme Name: Bihar4News
Theme URI: https://bihar4news.com
Author: Bihar4News
Description: तेज़, हल्की और AdSense-ready हिंदी न्यूज़ थीम — ब्रेकिंग टिकर, हीरो खबर, आज की बड़ी खबरें, कैटेगरी टाइल्स, ज़िलेवार खबरें, YouTube वीडियो सेक्शन और शेयर बटन।
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: bihar4news
*/

/* ---------- Tokens ---------- */
:root {
	--red: #c81e1e;
	--red-dark: #991b1b;
	--maroon: #881313;
	--green: #15803d;
	--green-dark: #166534;
	--saffron: #f97316;
	--yellow: #fde047;
	--ink: #111827;
	--text: #1f2937;
	--muted: #6b7280;
	--line: #e5e7eb;
	--bg: #f3f4f6;
	--card: #ffffff;
	--radius: 6px;
	--shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
	--font: "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
	--container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.ico { flex: 0 0 auto; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--maroon); color: #fff; font-size: 13px; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.top-left, .top-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.top-date { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.top-date .ico { color: var(--yellow); }
.top-city { font-weight: 600; }
.top-sep { opacity: .7; }
.top-links { display: flex; flex-wrap: wrap; margin-left: 8px; }
.top-links li + li::before { content: "|"; margin: 0 8px; opacity: .6; }
.top-links a:hover { color: var(--yellow); }
.live-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--green); border: 1px solid #22c55e; color: #fff; padding: 2px 9px; border-radius: 4px; font-weight: 700; font-size: 12px; }
.live-btn:hover { color: #fff; filter: brightness(1.1); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: pulse 1.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.social { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.social:hover { color: #fff; transform: translateY(-1px); }
.s-fb { background: #1877f2; font-size: 14px; font-family: Arial, sans-serif; }
.s-yt { background: #ff0000; }
.s-x { background: #000; font-size: 12px; }
.s-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.s-wa { background: #25d366; }
.admin-btn { display: inline-flex; align-items: center; gap: 4px; background: var(--yellow); color: var(--ink); padding: 2px 9px; border-radius: 4px; font-weight: 700; font-size: 12px; }
.admin-btn:hover { color: var(--ink); }
.search-toggle { background: none; border: 0; color: #fff; padding: 4px; display: inline-flex; }
.search-toggle .ico { width: 18px; height: 18px; }

/* ---------- Brand header ---------- */
.brand-header { background: linear-gradient(90deg, #fff 0%, #fff 55%, #eff6ff 100%); border-bottom: 1px solid var(--line); }
.brand-inner { display: flex; align-items: center; gap: 22px; min-height: 92px; padding-top: 6px; padding-bottom: 6px; }
.site-logo .custom-logo-link { display: inline-flex; }
.site-logo .custom-logo { height: 122px; width: auto; max-width: 100%; }
.logo-footer .custom-logo { height: 92px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
.logo-drawer .custom-logo { height: 56px; width: auto; }
.text-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 34px; letter-spacing: -.5px; line-height: 1; font-family: Arial, "Helvetica Neue", var(--font); }
.tl-box { color: #fff; padding: 9px 13px 10px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, .25), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.tl-red { background: linear-gradient(#d42a2a, #a51b1b); }
.tl-green { background: linear-gradient(#2f9a4a, #19702f); }
.tl-plain { color: var(--red); padding-left: 2px; }
.text-logo.small { font-size: 19px; gap: 3px; }
.text-logo.small .tl-box { padding: 5px 8px 6px; }
.slogan-box { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 3px solid #9ca3af; }
.slogan-text { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.tricolor { display: flex; width: 100%; max-width: 200px; height: 5px; border-radius: 3px; overflow: hidden; }
.tricolor i { flex: 1; }
.tricolor i:nth-child(1) { background: var(--saffron); }
.tricolor i:nth-child(2) { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tricolor i:nth-child(3) { background: #16a34a; }
.header-ad { margin: 0 0 0 auto; max-width: 728px; }

/* ---------- Main nav ---------- */
.main-nav { background: linear-gradient(#c81e1e, #991b1b); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.admin-bar .main-nav { top: 32px; }
.nav-inner { display: flex; align-items: stretch; min-height: 42px; }
.nav-home { display: flex; align-items: center; justify-content: center; width: 46px; background: rgba(255, 255, 255, .12); color: #fff; flex: 0 0 auto; }
.nav-home.active, .nav-home:hover { background: #e23b3b; color: #fff; }
.nav-home .ico { width: 18px; height: 18px; }
.nav-scroll { flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-menu { display: flex; align-items: center; height: 100%; white-space: nowrap; }
.nav-menu li { display: flex; align-items: center; height: 100%; }
.nav-menu li + li::before { content: ""; width: 1px; height: 14px; background: rgba(255, 255, 255, .45); }
.nav-menu a { color: #fff; font-weight: 700; font-size: 15px; padding: 0 12px; display: flex; align-items: center; height: 100%; }
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current-category-ancestor > a { background: rgba(0, 0, 0, .18); color: #fff; }
.nav-toggle { flex: 0 0 auto; background: none; border: 0; color: #fff; width: 46px; display: flex; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 24px; height: 24px; }

/* ---------- Breaking ticker ---------- */
.breaking { background: #fff; border-bottom: 1px solid var(--line); }
.breaking-inner { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.breaking-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: var(--red-dark); color: #fff; font-weight: 800; font-size: 13px; padding: 0 14px; align-self: stretch; }
.breaking-label .ico { fill: #fff; }
.ticker { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track a { font-weight: 600; font-size: 14.5px; padding: 0 14px; position: relative; }
.ticker-track a::before { content: "|"; position: absolute; left: -2px; color: var(--red); font-weight: 800; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; } }
.breaking-more { flex: 0 0 auto; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 4px; }
.breaking-more:hover { color: #fff; background: var(--red-dark); }

/* ---------- Common bits ---------- */
.site-main { padding: 18px 0 30px; min-height: 50vh; }
.cat-label { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 3px; line-height: 1.7; }
.cat-label:hover { color: #fff; background: var(--red-dark); }
.thumb-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--red-dark), var(--maroon)); color: rgba(255, 255, 255, .85); font-weight: 800; font-size: 18px; }
.section-head { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; }
.section-head::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--red), transparent); order: 1; }
.section-head .section-more { order: 2; font-size: 14px; font-weight: 700; color: var(--red); white-space: nowrap; }
.section-title { font-size: 20px; font-weight: 800; }
.empty { background: #fff; padding: 24px; border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ---------- Hero grid ---------- */
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 16px; align-items: start; }
.hero-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-bottom: 5px solid var(--green); background: #000; }
.hero-link { position: relative; display: block; color: #fff; }
.hero-link img, .hero-link .thumb-placeholder { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; transition: transform .4s; }
.hero-link:hover img { transform: scale(1.03); }
.hero-overlay { position: absolute; inset: auto 0 0 0; padding: 70px 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .9)); }
.hero-title { color: #fff; font-size: 25px; font-weight: 800; margin-top: 8px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.hero-link:hover .hero-title { color: var(--yellow); }
.hero-list { display: flex; flex-direction: column; gap: 12px; }
.list-item { display: grid; grid-template-columns: 112px 1fr; gap: 10px; background: var(--card); padding: 8px; border-radius: var(--radius); box-shadow: var(--shadow); align-items: center; }
.list-thumb { display: block; border-radius: 4px; overflow: hidden; }
.list-thumb img, .list-thumb .thumb-placeholder { width: 100%; aspect-ratio: 16/10; object-fit: cover; font-size: 11px; }
.list-title { font-size: 14.5px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.top-news { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.box-head { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(#1f8a3e, #166534); color: #fff; padding: 10px 14px; font-weight: 800; }
.box-head h2 { color: #fff; font-size: 17px; font-weight: 800; }
.top-news-list { counter-reset: tn; padding: 6px 14px 10px; }
.top-news-list li { counter-increment: tn; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.top-news-list li:last-child { border-bottom: 0; }
.top-news-list li::before { content: counter(tn); width: 24px; height: 24px; border-radius: 50%; background: var(--green-dark); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.home-widgets { padding: 0 14px 14px; }
.widget-title { font-size: 16px; font-weight: 800; border-left: 4px solid var(--red); padding-left: 8px; margin: 12px 0 8px; }

/* ---------- Category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 18px; }
.cat-tile { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.tile-img { display: block; overflow: hidden; }
.tile-img img, .tile-img .thumb-placeholder { width: 100%; aspect-ratio: 16/11; object-fit: cover; transition: transform .35s; font-size: 0; }
.cat-tile:hover img { transform: scale(1.07); }
.tile-label { display: block; background: var(--green); color: #fff; text-align: center; font-weight: 700; font-size: 13.5px; padding: 6px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tile:nth-child(odd) .tile-label { background: var(--green-dark); }
.cat-tile:hover .tile-label { background: var(--red); }

/* ---------- News grid / cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.news-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.card-thumb { display: block; overflow: hidden; }
.card-thumb img, .card-thumb .thumb-placeholder { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .cat-label { align-self: flex-start; background: none; color: var(--red); padding: 0; font-size: 12.5px; }
.card-title { font-size: 15.5px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); padding-top: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 4px; background: #16a34a; color: #fff; border: 0; border-radius: 3px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; flex: 0 0 auto; }
.share-btn .ico { width: 12px; height: 12px; }
.share-btn:hover { background: var(--green-dark); }

/* ---------- Video section ---------- */
.video-section { margin-top: 6px; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.video-card { background: #111827; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.yt-lite { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; aspect-ratio: 16/9; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 40px; border-radius: 10px; background: #ff0000; color: #fff; display: flex; align-items: center; justify-content: center; }
.yt-play .ico { width: 24px; height: 24px; }
.video-card iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.video-title { color: #fff; font-size: 14px; font-weight: 600; padding: 8px 10px 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Pagination ---------- */
.pagination { margin: 26px 0 0; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination a, .pagination span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 12px; background: #fff; border-radius: 4px; font-weight: 700; box-shadow: var(--shadow); }
.pagination .current { background: var(--red); color: #fff; }

/* ---------- Article ---------- */
.article-wrap { max-width: 860px; }
.article-card { background: var(--card); border-radius: 8px; box-shadow: var(--shadow); padding: 22px 26px 28px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--green-dark); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 4px; margin-bottom: 14px; }
.back-btn:hover { color: #fff; background: var(--green); }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a:hover { color: var(--red); }
.article-title { font-size: 30px; font-weight: 800; margin: 10px 0 10px; line-height: 1.35; }
.article-summary { font-size: 17px; color: #374151; font-weight: 500; margin: 0 0 10px; border-left: 4px solid var(--saffron); padding-left: 12px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.article-meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta-sep { opacity: .6; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #f9fafb; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 10px 0 18px; }
.share-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13.5px; color: var(--ink); margin-right: 4px; }
.sh { display: inline-flex; align-items: center; gap: 5px; border: 0; color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 4px; line-height: 1.2; }
.sh:hover { color: #fff; filter: brightness(1.08); }
.sh-wa { background: #16a34a; }
.sh-fb { background: #1877f2; }
.sh-x { background: #000; }
.sh-copy { background: var(--red-dark); }
.sh-copy .ico { width: 14px; height: 14px; }
.article-image { margin: 0 0 14px; }
.article-image img { width: 100%; border-radius: 6px; }
.article-image figcaption { font-size: 13px; color: var(--muted); padding-top: 6px; }
.article-dateline { font-size: 14px; color: #374151; font-weight: 600; margin-bottom: 10px; }
.entry-content { font-size: 17.5px; line-height: 1.85; color: #1f2937; overflow-wrap: break-word; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content h2 { font-size: 22px; margin: 1.4em 0 .6em; }
.entry-content h3 { font-size: 19px; margin: 1.3em 0 .5em; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.15em 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote { margin: 1.2em 0; padding: 12px 16px; background: #fef2f2; border-left: 4px solid var(--red); font-weight: 600; }
.entry-content img, .entry-content iframe, .entry-content video { max-width: 100%; border-radius: 6px; }
.entry-content figure { margin: 1.2em 0; }
.entry-content .wp-block-embed iframe, .entry-content .wp-embed-aspect-16-9 iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.article-tags a { background: #f3f4f6; border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.related { margin-top: 10px; }
.related .news-grid { grid-template-columns: repeat(2, 1fr); }
.page-card .article-title { margin-top: 0; }

/* ---------- Archive ---------- */
.archive-head { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 18px; border-top: 4px solid var(--red); }
.archive-title { font-size: 26px; font-weight: 800; }
.archive-title span { font-weight: 600; color: var(--muted); font-size: 18px; }
.archive-desc { color: #4b5563; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; max-height: 136px; overflow-y: auto; }
.chip { background: #fef2f2; color: var(--red-dark); border: 1px solid #fecaca; border-radius: 20px; padding: 3px 12px; font-size: 13.5px; font-weight: 600; }
.chip:hover, .chip.active { background: var(--red); color: #fff; border-color: var(--red); }
.search-inline { display: flex; gap: 8px; margin-top: 12px; }
.search-inline input { flex: 1; border: 1px solid #d1d5db; border-radius: 4px; padding: 9px 12px; font: inherit; }
.search-inline button { background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: 0 18px; font-weight: 700; }
.notfound { text-align: center; }

/* ---------- Ads ---------- */
.ad-slot { text-align: center; margin: 18px auto; overflow: hidden; }
.ad-label { display: block; font-size: 11px; color: var(--muted); letter-spacing: .5px; margin-bottom: 4px; }
.header-ad.ad-slot { margin: 0 0 0 auto; }
.top-news .ad-slot { margin: 10px 14px 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #111827; color: #e5e7eb; border-top: 4px solid var(--red-dark); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; padding-top: 30px; padding-bottom: 26px; }
.f-about p { font-size: 14px; line-height: 1.7; margin: 12px 0; color: #d1d5db; }
.f-socials { display: flex; gap: 8px; }
.footer-logo img { max-height: 56px; width: auto; }
.f-title { color: #fff; font-size: 17px; font-weight: 800; border-left: 4px solid var(--red); padding-left: 10px; margin-bottom: 14px; }
.f-title-green { border-color: #16a34a; }
.f-contact li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 9px; }
.f-contact .ico { color: var(--yellow); margin-top: 4px; }
.f-contact a:hover, .footer-links a:hover { color: var(--yellow); }
.footer-links li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid #1f2937; text-align: center; font-size: 13px; color: #9ca3af; padding: 14px 0; }

/* ---------- Off-canvas + search ---------- */
.offcanvas, .search-overlay { position: fixed; inset: 0; z-index: 200; }
.offcanvas[hidden], .search-overlay[hidden] { display: none; }
.offcanvas-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.offcanvas-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 88vw); background: #fff; overflow-y: auto; box-shadow: -4px 0 20px rgba(0, 0, 0, .2); animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
.offcanvas-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 3px solid var(--red); }
.offcanvas-close { background: none; border: 0; padding: 4px; }
.offcanvas-close .ico { width: 22px; height: 22px; }
.offcanvas-list > li { border-bottom: 1px solid var(--line); }
.offcanvas-list > li > a { display: block; padding: 11px 16px; font-weight: 700; }
.offcanvas-list details { padding: 0 16px 10px; }
.offcanvas-list summary { font-size: 13px; color: var(--red); font-weight: 600; cursor: pointer; }
.offcanvas-kids { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin-top: 6px; }
.offcanvas-kids a { font-size: 14px; padding: 3px 0; display: block; }
.search-overlay { background: rgba(17, 24, 39, .92); padding-top: 18vh; }
.search-big { display: flex; gap: 8px; max-width: 720px; margin: 0 auto; }
.search-big input { flex: 1; font: inherit; font-size: 18px; padding: 14px 16px; border-radius: 6px; border: 0; }
.search-big button[type=submit] { background: var(--red); color: #fff; border: 0; border-radius: 6px; padding: 0 22px; font-weight: 800; font-size: 16px; }
.search-close { background: none; border: 0; color: #fff; }
.search-close .ico { width: 28px; height: 28px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 600; opacity: 0; transition: .25s; z-index: 300; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--muted); }
.sticky .card-title::before { content: "📌 "; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hero-grid { grid-template-columns: 1fr 1fr; }
	.hero-main { grid-column: 1 / -1; }
	.hero-link img, .hero-link .thumb-placeholder { aspect-ratio: 16/9; }
	.news-grid, .video-grid { grid-template-columns: repeat(3, 1fr); }
	.cat-tiles { grid-template-columns: repeat(4, 1fr); }
	.header-ad { display: none; }
}
@media (max-width: 782px) {
	.admin-bar .main-nav { top: 0; }
	.top-bar-inner { justify-content: center; }
	.top-left { justify-content: center; }
	.top-links { margin-left: 0; width: 100%; justify-content: center; }
	.brand-inner { gap: 14px; min-height: 0; }
	.site-logo .custom-logo { height: 84px; }
	.slogan-box { padding-left: 12px; }
	.slogan-text { font-size: 19px; }
	.text-logo { font-size: 30px; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-title { font-size: 21px; }
	.news-grid, .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.related .news-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr; gap: 22px; }
	.article-card { padding: 16px 14px 20px; }
	.article-title { font-size: 23px; }
	.entry-content { font-size: 17px; }
	.breaking-label { padding: 0 10px; font-size: 12px; }
	.breaking-more { display: none; }
}
@media (max-width: 520px) {
	.container { padding: 0 12px; }
	.site-logo .custom-logo { height: 72px; }
	.slogan-text { font-size: 15px; }
	.slogan-box { padding-left: 10px; gap: 4px; }
	.tricolor { max-width: 120px; height: 4px; }
	.news-grid, .related .news-grid { grid-template-columns: 1fr; }
	.video-grid { grid-template-columns: 1fr; }
	.cat-tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
	.tile-label { font-size: 11.5px; padding: 4px 2px; }
	.list-item { grid-template-columns: 120px 1fr; }
	.list-title { font-size: 15px; }
	.text-logo { font-size: 26px; }
	.top-bar { font-size: 12.5px; }
	.search-overlay { padding-top: 10vh; }
	.search-big input { font-size: 16px; }
	.share-bar .share-label { width: 100%; }
}
