/* ==========================================================================
   Bright Life Media Network – main stylesheet
   Modern CSS: custom properties, grid, clamp(), :focus-visible, container
   queries (blocks adapt to the column they sit in), dark mode.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--red: #d9141c;
	--blue: #0b3a8f;
	--navy: #071a45;
	--bg: #f3f5fa;
	--surface: #ffffff;
	--text: #14213d;
	--muted: #5b6784;
	--line: #dde3ef;
	--link: var(--blue);
	--shadow: 0 1px 2px rgba(7, 26, 69, .06), 0 6px 20px rgba(7, 26, 69, .06);
	--r: 10px;
	--container: 1240px;
	--gap: clamp(14px, 2vw, 24px);
	--font: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: light;
}
[data-theme="dark"] {
	--bg: #0a1121;
	--surface: #111b30;
	--text: #e8edf8;
	--muted: #9aa8c4;
	--line: #223250;
	--link: #7fa8ff;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
	color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 400 1.0625rem/1.65 var(--font);
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; clip-path: none; margin: 0; padding: 10px 16px; background: var(--red); color: #fff; z-index: 1000; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.icon { flex: none; vertical-align: middle; }
.when-dark, .when-open { display: none; }
[data-theme="dark"] .when-dark { display: inline-flex; }
[data-theme="dark"] .when-light { display: none; }

.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
	background: transparent; border: 0; border-radius: 50%; color: inherit; transition: background .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .15); }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.6em;
	background: var(--red); color: #fff; border: 0; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s, background .2s;
}
.btn:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--blue)); transform: scaleX(0); transform-origin: left; z-index: 200; }

/* ---------- 3. Header ---------- */
.topbar { background: var(--navy); color: #cdd7f0; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.topbar__date { white-space: nowrap; }
.topbar__nav { margin-left: auto; }
.topbar .menu { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar__nav + .topbar__tools { margin-left: 0; }
.topbar .icon-btn { width: 32px; height: 32px; }

.social { display: flex; gap: 6px; }
.social a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: inherit; transition: background .2s, color .2s; }
.social a:hover { background: var(--red); color: #fff; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand__date { display: none; margin: 4px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }
.brand__tagline { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.custom-logo-link img, .custom-logo { max-height: 72px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
[data-theme="dark"] .wordmark { color: #fff; }
.wordmark__mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--red) 0 50%, var(--blue) 50% 100%); color: #fff; font-weight: 800; font-size: 1.5rem; }
.wordmark__text { font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.9rem); line-height: 1.1; letter-spacing: -.01em; }

.mainnav { background: var(--blue); color: #fff; box-shadow: 0 2px 0 var(--red); position: relative; z-index: 60; }
.has-sticky-nav .site-header { display: contents; }
.has-sticky-nav .mainnav { position: sticky; top: 0; }
.admin-bar.has-sticky-nav .mainnav { top: 32px; }
.is-scrolled .mainnav { box-shadow: 0 4px 18px rgba(0, 0, 0, .25), 0 2px 0 var(--red); }
.mainnav__inner { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.mainnav__home { display: none; place-items: center; width: 34px; height: 34px; background: var(--red); color: #fff; font-weight: 800; border-radius: 8px; text-decoration: none; }
.mainnav__toggle { display: none; }
.primary-nav { flex: 1; min-width: 0; }
.primary-nav .menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav a { display: block; padding: 14px 14px; color: #fff; font-weight: 700; text-decoration: none; position: relative; }
.primary-nav .menu > li > a::after { content: ""; position: absolute; inset: auto 14px 6px; height: 3px; background: var(--red); border-radius: 2px; transform: scaleX(0); transition: transform .25s; }
.primary-nav .menu > li:hover > a::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after,
.primary-nav .current-cat > a::after { transform: scaleX(1); }
.submenu-toggle { display: none; }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 6px 0; list-style: none;
	background: var(--surface); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); border-top: 3px solid var(--red);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { color: var(--text); font-weight: 600; padding: 9px 16px; }
.primary-nav .sub-menu a:hover { background: var(--bg); color: var(--red); }
.primary-nav .menu-item-has-children > a { padding-right: 24px; }
.primary-nav .menu-item-has-children > a::before { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); }

.search-panel { background: var(--navy); padding: 14px 0; }
.searchform { display: flex; max-width: 640px; margin-inline: auto; background: var(--surface); border-radius: 999px; overflow: hidden; box-shadow: var(--shadow); }
.searchform__input { flex: 1; min-width: 0; padding: .75em 1.2em; border: 0; background: transparent; color: var(--text); font: inherit; outline-offset: -3px; }
.searchform__btn { display: grid; place-items: center; width: 52px; border: 0; background: var(--red); color: #fff; }
.searchform__btn:hover { background: var(--blue); }

.trending { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .9rem; }
.trending__inner { display: flex; align-items: center; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; white-space: nowrap; }
.trending__inner::-webkit-scrollbar { display: none; }
.trending__label { color: var(--red); font-weight: 800; }
.trending a { color: var(--muted); text-decoration: none; padding: 2px 10px; border-radius: 999px; background: var(--bg); }
.trending a:hover { background: var(--blue); color: #fff; }

.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 14px; height: 44px; }
.ticker__label { flex: none; background: var(--red); color: #fff; font-weight: 800; padding: 4px 14px; border-radius: 6px; position: relative; animation: pulse 2s infinite; }
.ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ticker 70s linear infinite; }
.ticker__track:hover, .ticker__track:focus-within { animation-play-state: paused; }
.ticker__track li { padding-right: 48px; white-space: nowrap; }
.ticker__track li::before { content: "●"; color: var(--red); font-size: .6em; margin-right: 10px; vertical-align: middle; }
.ticker__track a { color: var(--text); text-decoration: none; font-weight: 600; }
.ticker__track a:hover { color: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(217, 20, 28, .18); } }

.ad-slot { text-align: center; margin: 16px auto; }
.ad-slot__label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-slot img { margin-inline: auto; border-radius: 6px; }
.ad-slot .widget { margin: 0; }
.ad-slot--header { margin: 0; flex: 0 1 728px; }
.ad-slot--wide { width: 100%; margin-block: var(--gap); }
.ad-slot__body { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.ad-slot__body > a { display: block; max-width: 100%; }
.ad__img { max-width: 100%; height: auto; }
.ad-slot--sidebar-top, .ad-slot--sidebar-bottom { margin: 0; padding: 10px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
@media (max-width: 767px) { .ad--desktop { display: none !important; } }
@media (min-width: 768px) { .ad--mobile { display: none !important; } }
.ad-slot--inline { margin-block: 1.6em; padding: 10px; background: var(--bg); border-radius: var(--r); }

/* ---------- 4. Layout ---------- */
.site-main { min-height: 50vh; padding-bottom: 40px; }
.home-top { padding-top: var(--gap); }
.layout { display: grid; gap: var(--gap) calc(var(--gap) * 1.4); padding-top: var(--gap); align-items: start; }
.layout__main { min-width: 0; container-type: inline-size; }
.sidebar { min-width: 0; display: grid; gap: var(--gap); }
@media (min-width: 1024px) {
	.layout--sidebar { grid-template-columns: minmax(0, 1fr) 340px; }
	.sidebar { position: sticky; top: 76px; }
}

/* ---------- 5. Section heads & blocks ---------- */
.block { container-type: inline-size; margin-block: calc(var(--gap) * 1.2); }
.layout__main > .block:first-child, .home-top > .block:first-child { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--blue); margin-bottom: 16px; }
.section-head__title { margin: 0; font-size: 1.2rem; }
.section-head__title span { display: inline-block; padding: .3em 1em; background: var(--red); color: #fff; border-radius: var(--r) var(--r) 0 0; position: relative; }
.section-head__more { display: inline-flex; align-items: center; gap: 2px; padding-bottom: 6px; font-weight: 700; font-size: .92rem; text-decoration: none; }

/* Grids (respond to the container, not the viewport) */
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@container (min-width: 460px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@container (min-width: 640px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@container (min-width: 860px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@supports not (container-type: inline-size) {
	@media (min-width: 600px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
	@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
}

/* ---------- 6. Cards ---------- */
.card { position: relative; min-width: 0; }
.card__title { margin: 0 0 .35em; font-size: 1.08rem; line-height: 1.4; }
.card__title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s, color .2s; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.card:hover .card__title a { color: var(--red); }
.card__excerpt { color: var(--muted); font-size: .95rem; margin: 0 0 .6em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__media { display: block; position: relative; overflow: hidden; border-radius: var(--r); background: var(--line); }
.card__media img, .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.thumb-placeholder { display: grid; place-items: center; min-height: 100%; aspect-ratio: inherit; background: linear-gradient(135deg, var(--red), var(--blue)); color: rgba(255, 255, 255, .85); font-size: 2.2rem; font-weight: 800; }

.badge { position: relative; z-index: 2; display: inline-block; margin-bottom: .5em; padding: .12em .7em; background: var(--cat, var(--red)); color: #fff; font-size: .78rem; font-weight: 700; line-height: 1.6; border-radius: 4px; text-decoration: none; }
.badge:hover { color: #fff; filter: brightness(1.12); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: .82rem; }
.meta > span, .meta time { display: inline-flex; align-items: center; gap: 4px; }
.meta__author { font-weight: 700; color: var(--text); }

.play { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); transition: transform .2s; }
.play svg { margin-left: 3px; }
.card:hover .play { transform: scale(1.12); }

/* standard: image top */
.card--standard { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card--standard .card__media { aspect-ratio: 16 / 9; border-radius: 0; }
.card--standard .card__body { padding: 14px 16px 16px; flex: 1; }

/* horizontal: thumb left */
.card--horizontal { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
.card--horizontal .card__media { aspect-ratio: 4 / 3; }
.card--horizontal .card__title { font-size: 1rem; }
.card--horizontal.card--large { grid-template-columns: minmax(120px, 36%) 1fr; }
.card--horizontal.card--large .card__title { font-size: 1.25rem; }
.card--horizontal.card--large .card__media { aspect-ratio: 16 / 10; }

/* compact: title only */
.card--compact { padding: 10px 0 10px 18px; border-bottom: 1px dashed var(--line); }
.card--compact::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.card--compact .card__title { font-size: 1rem; margin: 0; }

/* numbered */
.card--numbered { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.card--numbered:last-child { border-bottom: 0; }
.card__num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; transition: background .2s; }
.card--numbered:nth-child(-n+3) .card__num { background: var(--red); }
.card--numbered:hover .card__num { background: var(--red); }
.card--numbered .card__title { font-size: 1rem; margin-bottom: .2em; }

/* overlay: image + gradient */
.card--overlay { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--navy); isolation: isolate; box-shadow: var(--shadow); }
.card--overlay .card__media { position: absolute; inset: 0; border-radius: 0; }
.card--overlay .card__body { position: absolute; inset: auto 0 0 0; padding: clamp(12px, 2.4cqi, 28px); color: #fff; background: linear-gradient(to top, rgba(7, 26, 69, .95) 0%, rgba(7, 26, 69, .6) 55%, transparent 100%); z-index: 1; pointer-events: none; }
.card--overlay .card__body a { pointer-events: auto; }
.card--overlay .card__title { color: #fff; margin-bottom: .3em; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); font-size: clamp(1rem, 1.2vw + .6rem, 1.4rem); }
.card--overlay .card__title a::after { display: none; } /* click falls through to the media link beneath */
.card--overlay:hover .card__title a { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card--overlay .meta { color: rgba(255, 255, 255, .8); }
.card--overlay .meta__author { color: #fff; }
.card--overlay.card--lg { aspect-ratio: 16 / 9; }
.card--overlay.card--lg .card__title { font-size: clamp(1.35rem, 2.2vw + .6rem, 2.3rem); line-height: 1.3; }
.card--overlay.card--sm { aspect-ratio: 4 / 3; }
.card--overlay.card--sm .card__title { font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--overlay.card--sm .badge { display: none; }
.card--overlay .play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }

.card--tile { aspect-ratio: 4 / 3; }
.card--tile .card__title { font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* video + opinion */
.card--video .card__media { aspect-ratio: 16 / 9; }
.card--video .card__title { color: #fff; font-size: 1rem; margin-top: 10px; }
.card--video .meta { color: #a9b6d6; }
.card--opinion { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--surface); border-radius: var(--r); border-left: 4px solid var(--red); box-shadow: var(--shadow); }
.card__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: block; background: var(--line); border: 3px solid var(--blue); }
.card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.card__author { display: block; color: var(--red); font-weight: 800; font-size: .88rem; }
.card--opinion .card__title { font-size: 1.02rem; }

/* ---------- 7. Block layouts ---------- */
/* hero grid */
.hero-grid { display: grid; gap: 12px; }
.hero-grid__side { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@container (min-width: 900px) {
	.hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
	.hero-grid__lead .card { height: 100%; aspect-ratio: auto; min-height: 440px; }
}
@container (max-width: 420px) { .hero-grid__side { grid-template-columns: 1fr; } }
@supports not (container-type: inline-size) {
	@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.55fr 1fr; } .hero-grid__lead .card { height: 100%; aspect-ratio: auto; min-height: 440px; } }
}

/* mosaic */
.mosaic { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mosaic__lead { grid-column: 1 / -1; }
@container (min-width: 720px) {
	.mosaic { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; }
	.mosaic__lead { grid-column: 1; grid-row: 1 / span 2; }
	.mosaic__lead .card { height: 100%; aspect-ratio: auto; }
}

/* lead + list */
.lead-list { display: grid; gap: var(--gap); }
.lead-list__items { display: grid; gap: 14px; align-content: start; }
@container (min-width: 640px) { .lead-list { grid-template-columns: 1.05fr 1fr; } }

/* dual column / stack / lists */
.dual { display: grid; gap: 18px var(--gap); }
@container (min-width: 560px) { .dual { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; gap: 0; background: var(--surface); border-radius: var(--r); padding: 6px 18px; box-shadow: var(--shadow); }
.stack > .card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.stack > .card:last-child { border-bottom: 0; }
.post-list { display: grid; }

/* slider */
.slider { position: relative; }
.slider__track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; padding-block: 4px 8px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 min(100%, 290px); scroll-snap-align: start; min-width: 0; }
.slider__slide .card--standard { height: 100%; }
.block--hero-slider .slider__slide { flex-basis: 100%; }
.block--hero-slider .card--overlay { aspect-ratio: 21 / 9; min-height: 280px; }
.slider__btn { position: absolute; top: 40%; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--blue); box-shadow: var(--shadow); opacity: .92; transition: background .2s, color .2s, transform .2s; }
.slider__btn:hover { background: var(--red); color: #fff; transform: scale(1.08); }
.slider__btn--prev { left: -10px; }
.slider__btn--next { right: -10px; }
@media (max-width: 640px) { .slider__btn { display: none; } }

/* dark video strip */
.block--video-strip { margin-block: calc(var(--gap) * 1.5); padding-block: 34px 40px; background: radial-gradient(1200px 400px at 85% -20%, rgba(217, 20, 28, .35), transparent 60%), var(--navy); color: #fff; }
.block--video-strip .section-head { border-color: rgba(255, 255, 255, .25); }
.block--video-strip .section-head__more { color: #fff; }
.block--video-strip .card__media { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }

/* ---------- 8. Widgets / sidebar ---------- */
.widget { background: var(--surface); border-radius: var(--r); padding: 16px 18px 18px; box-shadow: var(--shadow); min-width: 0; }
.widget-title { margin: 0 0 12px; font-size: 1.1rem; border-bottom: 3px solid var(--blue); }
.widget-title span { display: inline-block; padding: .25em .9em; background: var(--red); color: #fff; border-radius: 6px 6px 0 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget--tabs { padding-top: 0; overflow: hidden; }
.tabs { display: flex; margin: 0 -18px 8px; background: var(--blue); }
.tabs__tab { flex: 1; padding: 12px; border: 0; background: transparent; color: #fff; font-weight: 800; position: relative; }
.tabs__tab.is-active { background: var(--red); }
.tabs__panel[hidden] { display: none; }
.widget .card--horizontal { padding: 10px 0; border-bottom: 1px solid var(--line); }
.widget .card--horizontal:last-child { border-bottom: 0; }
.widget .card--compact:last-child { border-bottom: 0; }

/* ---------- 9. Archive / search / 404 ---------- */
.archive-head { margin: var(--gap) 0 0; padding: 20px 24px; background: var(--surface); border-radius: var(--r); border-left: 6px solid var(--cat, var(--red)); box-shadow: var(--shadow); }
.archive-head__title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.archive-head__title span { color: var(--red); }
.archive-head__desc { color: var(--muted); margin-top: 6px; }
.archive-head .searchform { margin: 14px 0 0; max-width: 520px; box-shadow: none; border: 1px solid var(--line); }
.archive-lead { margin-bottom: var(--gap); }
.archive-lead:empty { display: none; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; background: var(--surface); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; box-shadow: var(--shadow); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--red); color: #fff; }
.loadmore { display: flex; justify-content: center; margin-top: 28px; color: var(--muted); }
.notfound { text-align: center; padding-block: 56px; container-type: inline-size; }
.notfound__code { margin: 0; font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--red), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .searchform { margin-block: 20px 40px; }
.notfound__list { text-align: left; }

/* ---------- 10. Single story ---------- */
.story { background: var(--surface); border-radius: var(--r); padding: clamp(16px, 3vw, 36px); box-shadow: var(--shadow); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; font-weight: 700; }
.story__title { font-size: clamp(1.7rem, 3.4vw + .4rem, 2.7rem); line-height: 1.3; letter-spacing: -.01em; margin-bottom: .4em; }
.story__standfirst { font-size: 1.2rem; color: var(--muted); border-left: 4px solid var(--red); padding-left: 14px; }
.story__byline { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; }
.story__avatar img { border-radius: 50%; width: 48px; height: 48px; border: 2px solid var(--blue); }
.story__author { font-weight: 800; color: var(--text); text-decoration: none; }
.story__figure { margin: 18px calc(-1 * clamp(0px, 1vw, 12px)) 24px; }
.story__figure img { width: 100%; border-radius: var(--r); }
.story__figure figcaption { font-size: .85rem; color: var(--muted); padding: 8px 4px 0; }
.entry-content { font-size: clamp(1.08rem, .4vw + 1rem, 1.22rem); line-height: 1.9; overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; }
.entry-content blockquote { margin: 1.6em 0; padding: 14px 22px; border-left: 5px solid var(--red); background: var(--bg); border-radius: 0 var(--r) var(--r) 0; font-size: 1.12em; font-weight: 600; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 8px 12px; border: 1px solid var(--line); }
.entry-content iframe { width: 100%; }
.alignwide { margin-inline: calc(-1 * clamp(0px, 3vw, 36px)); max-width: none; }
.alignleft { float: left; margin: .3em 1.2em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.page-links, .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; align-items: center; }
.tag-list span { font-weight: 800; }
.tag-list a { padding: 3px 12px; border-radius: 999px; background: var(--bg); color: var(--text); text-decoration: none; font-size: .9rem; }
.tag-list a:hover { background: var(--blue); color: #fff; }
.share { display: flex; align-items: center; gap: 8px; margin-block: 14px; }
.share__label { font-weight: 800; font-size: .9rem; }
.share__btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); color: var(--text); transition: .2s; text-decoration: none; }
.share__btn--facebook:hover { background: #1877f2; color: #fff; }
.share__btn--x:hover { background: #000; color: #fff; }
.share__btn--whatsapp:hover { background: #25d366; color: #fff; }
.share__btn--copy:hover, .share__btn.is-done { background: var(--red); color: #fff; }
.story__foot { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--line); }
.author-box { display: flex; gap: 16px; padding: 18px; margin-block: 24px; background: var(--bg); border-radius: var(--r); }
.author-box img { border-radius: 50%; flex: none; }
.author-box__name { margin: 0 0 4px; font-size: 1.1rem; }
.author-box p { margin: 0; color: var(--muted); }
.post-navigation .nav-links { display: grid; gap: 12px; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; padding: 14px 16px; background: var(--bg); border-radius: var(--r); color: var(--text); text-decoration: none; font-weight: 700; }
.post-navigation a:hover { background: var(--blue); color: #fff; }
.post-navigation span { display: block; color: var(--red); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.post-navigation a:hover span { color: #fff; }
.related { margin-top: calc(var(--gap) * 1.4); }

/* comments */
.comments { margin-top: var(--gap); padding: clamp(16px, 3vw, 28px); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.comments__title { font-size: 1.3rem; }
.comment-list, .comment-list ol { list-style: none; padding: 0; }
.comment-list .children { padding-left: 24px; border-left: 2px solid var(--line); }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: .8rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .7em 1em; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.comment-form .submit { padding: .7em 1.8em; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--navy); color: #c3cde6; margin-top: 30px; border-top: 4px solid var(--red); }
.footer__grid { display: grid; gap: 32px; padding-block: 44px 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr repeat(auto-fit, minmax(180px, 1fr)); } }
.footer__logo .wordmark { color: #fff; }
.footer__company { color: #fff; font-size: 1.1rem; margin: 14px 0 8px; }
.contact { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.contact li { display: flex; gap: 10px; align-items: flex-start; }
.contact svg { margin-top: .3em; color: var(--red); }
.contact a, .site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ff8a8f; text-decoration: underline; }
.footer__reg { font-size: .88rem; opacity: .85; }
.site-footer .social a:hover { color: #fff; }
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; }
.site-footer .widget-title { border-color: rgba(255, 255, 255, .2); }
.site-footer .widget li { border-color: rgba(255, 255, 255, .12); }
.footer__bar { background: rgba(0, 0, 0, .25); font-size: .88rem; }
.footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.footer__bar .menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(217, 20, 28, .45); transition: transform .2s; }
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-3px); background: var(--blue); }

/* ---------- 12. Responsive navigation (off-canvas) ---------- */
@media (max-width: 959px) {
	.topbar__date { display: none; }
	.topbar__tools { margin-left: auto; }
	.masthead__inner { justify-content: center; text-align: center; }
	.brand__date { display: block; }
	.brand__tagline { display: none; }
	.ad-slot--header { display: none; }
	.mainnav__toggle { display: inline-grid; }
	.mainnav__home { display: grid; margin-right: auto; }
	body.nav-open .when-closed { display: none; }
	body.nav-open .when-open { display: inline-flex; }
	.primary-nav {
		position: fixed; inset: 0 auto 0 0; width: min(86vw, 340px); z-index: 2; padding: 64px 0 24px; overflow-y: auto;
		background: var(--surface); transform: translateX(-102%); transition: transform .3s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .25);
	}
	body.nav-open .primary-nav { transform: none; }
	/* The overlay is a child of .mainnav (its own stacking context) so the menu panel always sits above it. */
	body.nav-open .mainnav::before { content: ""; position: fixed; inset: 0; background: rgba(7, 26, 69, .6); z-index: 1; }
	body.nav-open .mainnav__toggle { position: fixed; top: 10px; right: 12px; z-index: 3; color: var(--text); background: var(--bg); }
	body.nav-open { overflow: hidden; }
	.primary-nav .menu { display: block; }
	.primary-nav a { color: var(--text); padding: 13px 20px; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a::after, .primary-nav .menu-item-has-children > a::before { display: none; }
	.primary-nav .current-menu-item > a, .primary-nav .current-cat > a { color: var(--red); border-left: 4px solid var(--red); }
	.primary-nav .menu-item-has-children { display: grid; grid-template-columns: 1fr 48px; }
	.primary-nav .menu-item-has-children > .sub-menu { grid-column: 1 / -1; }
	.submenu-toggle { display: grid; place-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); }
	.is-open > .submenu-toggle svg { transform: rotate(180deg); }
	.primary-nav .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--bg); border-radius: 0; padding: 0; }
	.primary-nav .is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { padding-left: 36px; }
}
@media (max-width: 782px) { .admin-bar.has-sticky-nav .mainnav { top: 46px; } }
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.card--horizontal.card--large { grid-template-columns: 1fr; }
	.story { border-radius: 0; margin-inline: -16px; }
	.author-box { flex-direction: column; }
}

/* ---------- 13. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ticker__viewport { overflow-x: auto; }
}
@media print {
	.topbar, .masthead .ad-slot, .mainnav, .ticker, .trending, .sidebar, .share, .site-footer, .to-top, .related, .comments, .progress, .ad-slot { display: none !important; }
	body { background: #fff; color: #000; }
	.story { box-shadow: none; padding: 0; }
}


/* ---------- 14. Big headline (Online Khabar style) ---------- */
.headline-stack { display: grid; gap: var(--gap); }
.card--headline { text-align: center; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card--headline .card__body { padding: clamp(18px, 3cqi, 34px) clamp(14px, 3cqi, 30px) 18px; }
.card--headline .badge { font-size: clamp(.95rem, 1.2cqi + .6rem, 1.3rem); padding: .2em 1.1em; border-radius: 6px; margin-bottom: .8em; }
.card--headline .card__title { font-size: clamp(1.75rem, 7.2vw, 3.1rem); line-height: 1.28; font-weight: 800; color: var(--navy); margin-bottom: .6em; letter-spacing: -.01em; }
[data-theme="dark"] .card--headline .card__title { color: #fff; }
.card--headline:hover .card__title a { color: var(--red); }
.byline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; color: var(--muted); font-size: .98rem; }
.byline__author, .byline__time, .byline__comments { display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 2; }
.byline__author img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue); }
.byline__time svg { color: var(--blue); }
.byline__comments { color: var(--blue); font-weight: 800; }
.byline__comments::before { content: ""; width: 20px; height: 18px; border: 2px solid var(--blue); border-radius: 4px; }
.card--headline .card__media { border-radius: 0; aspect-ratio: 16 / 9; }
@container (min-width: 760px) {
	.headline-stack--n2 { grid-template-columns: 1fr 1fr; }
	.headline-stack--n3 { grid-template-columns: 1fr 1fr 1fr; }
	.headline-stack--n1 .card--headline .card__title { font-size: clamp(2rem, 3.6cqi, 3.2rem); }
	.headline-stack--n2 .card--headline .card__title { font-size: clamp(1.5rem, 2.6cqi, 2.1rem); }
	.headline-stack--n3 .card--headline .card__title { font-size: clamp(1.25rem, 1.9cqi, 1.7rem); }
}

/* ---------- 15. Ads: popup + sticky bar ---------- */
.ad-popup { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(7, 26, 69, .72); animation: fadein .25s ease; }
.ad-popup[hidden], .ad-sticky[hidden] { display: none; }
.ad-popup__box { position: relative; max-width: min(96vw, 760px); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: var(--r); padding: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: popin .3s ease; }
.ad-popup__close, .ad-sticky__close { position: absolute; top: -14px; right: -10px; z-index: 2; width: 38px; height: 38px; border: 3px solid var(--surface); border-radius: 50%; background: var(--red); color: #fff; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; padding: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.ad-popup__close:hover, .ad-sticky__close:hover { background: var(--blue); }
.ad-popup .ad-slot { margin: 0; }
.ad-sticky { position: fixed; inset: auto 0 0 0; z-index: 90; display: flex; justify-content: center; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); border-top: 3px solid var(--red); animation: slideup .35s ease; }
.ad-sticky .ad-slot { margin: 0; max-width: 100%; }
.ad-sticky__close { top: -18px; right: 10px; width: 32px; height: 32px; font-size: 1.2rem; }
body.has-sticky-ad { padding-bottom: 86px; }
body.has-sticky-ad .to-top { bottom: 100px; }
body.popup-open { overflow: hidden; }
@keyframes fadein { from { opacity: 0; } }
@keyframes popin { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes slideup { from { transform: translateY(100%); } }

/* ---------- 16. Facebook comments ---------- */
.comments--fb { min-height: 120px; }
.comments--fb .fb-comments, .comments--fb .fb-comments > span, .comments--fb iframe { width: 100% !important; }
.comments--fb .comments__load { margin-top: 8px; }
.comments--fb.is-loaded .comments__load { display: none; }
