/* =========================================================
   TheNews By BJ Team — Main Stylesheet
   Mobile-first, vanilla CSS3, CSS variables for full
   Customizer-driven theming. No build step required.
   ========================================================= */

/* ---------- 1. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ol, ul { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
input, textarea, select { font: inherit; }

/* ---------- 2. CSS VARIABLES (defaults; overridden by Customizer inline <style>) ---------- */
:root {
	--tn-primary: #c8102e;
	--tn-secondary: #1a1a1a;
	--tn-link: #c8102e;
	--tn-font-size-base: 16px;
	--tn-bg: #f4f5f7;
	--tn-surface: #ffffff;
	--tn-text: #1a1a1a;
	--tn-text-muted: #6b7280;
	--tn-border: #e5e7eb;
	--tn-font: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
	--tn-radius: 6px;
	--tn-container-max: 1280px;
	--tn-header-height: 64px;
}

body {
	font-family: var(--tn-font);
	font-size: var(--tn-font-size-base);
	line-height: 1.65;
	color: var(--tn-text);
	background: var(--tn-bg);
	-webkit-font-smoothing: antialiased;
}

.tn-container {
	max-width: var(--tn-container-max);
	margin: 0 auto;
	padding: 0 16px;
}

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

.skip-link {
	position: absolute;
	top: -50px;
	left: 8px;
	background: var(--tn-primary);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--tn-radius);
	z-index: 9999;
	transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- 3. READING PROGRESS BAR ---------- */
.tn-reading-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0%;
	background: var(--tn-primary);
	z-index: 9999;
	transition: width .1s linear;
}

/* ---------- 4. TOP BAR ---------- */
.tn-topbar {
	background: var(--tn-secondary);
	color: #d1d5db;
	font-size: 12.5px;
}
.tn-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 6px 16px;
	overflow: hidden;
}
.tn-topbar-left {
	display: none;
	gap: 16px;
	align-items: center;
	flex-shrink: 0;
}
.tn-topbar-left span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tn-topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tn-topbar-epaper {
	color: #fff;
	background: var(--tn-primary);
	padding: 3px 10px;
	border-radius: 3px;
	font-weight: 600;
	white-space: nowrap;
}

.tn-topbar-ticker {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
	min-width: 0;
}
.tn-ticker-label {
	background: var(--tn-primary);
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-weight: 700;
	flex-shrink: 0;
	white-space: nowrap;
}
.tn-ticker-track { overflow: hidden; flex: 1; min-width: 0; }
.tn-ticker-list {
	display: flex;
	gap: 32px;
	white-space: nowrap;
	animation: tn-ticker-scroll 30s linear infinite;
	width: max-content;
}
.tn-ticker-list a:hover { text-decoration: underline; }
@keyframes tn-ticker-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.tn-ticker-list { animation: none; }
}

/* ---------- 5. SOCIAL ICONS ---------- */
.tn-social-icons { display: flex; gap: 8px; align-items: center; }
.tn-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	color: #fff;
	transition: background .15s ease;
}
.tn-social-icon:hover { background: var(--tn-primary); }

/* ---------- 6. MAIN HEADER ---------- */
.tn-header { background: var(--tn-surface); border-bottom: 1px solid var(--tn-border); }
.tn-header--sticky {
	position: sticky;
	top: 0;
	z-index: 500;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.tn-top-banner-ad-wrap { padding: 8px 16px; text-align: center; }

.tn-main-header { padding: 10px 0; }
.tn-main-header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.tn-mobile-menu-toggle {
	display: inline-flex;
	color: var(--tn-text);
}

.tn-logo { flex-shrink: 0; }
.tn-logo img { max-height: 48px; width: auto; }
.tn-logo-text {
	font-size: 24px;
	font-weight: 800;
	color: var(--tn-primary);
}

.tn-primary-nav { display: none; flex: 1; }
.tn-menu { display: flex; flex-wrap: wrap; gap: 4px; }
.tn-menu-item { position: relative; }
.tn-menu-link {
	display: block;
	padding: 10px 12px;
	font-weight: 600;
	font-size: 14.5px;
	border-radius: var(--tn-radius);
	transition: color .15s ease, background .15s ease;
}
.tn-menu-link:hover { color: var(--tn-primary); background: rgba(200,16,46,.06); }

.tn-menu-item--has-children .tn-sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	background: var(--tn-surface);
	border: 1px solid var(--tn-border);
	border-radius: var(--tn-radius);
	min-width: 200px;
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
	padding: 6px;
	z-index: 100;
}
.tn-menu-item--has-children:hover > .tn-sub-menu,
.tn-menu-item--has-children:focus-within > .tn-sub-menu { display: block; }
.tn-sub-menu .tn-menu-link { padding: 8px 10px; font-size: 14px; }
.tn-sub-menu--nested { top: 0; left: 100%; }

.tn-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.tn-search-toggle, .tn-notification-bell { color: var(--tn-text); }
.tn-search-toggle:hover, .tn-notification-bell:hover { color: var(--tn-primary); }

/* ---------- 7. MEGA NAV BAR ---------- */
.tn-mega-nav-bar { background: var(--tn-primary); }
.tn-mega-nav-bar .tn-menu { gap: 0; }
.tn-mega-nav-bar .tn-menu-link {
	color: #fff;
	border-radius: 0;
	padding: 10px 14px;
	font-size: 14px;
}
.tn-mega-nav-bar .tn-menu-link:hover { background: rgba(255,255,255,.15); color: #fff; }
.tn-mega-nav-bar .tn-menu-item--mega > .tn-menu-link { font-weight: 700; }
.tn-mega-nav-bar .tn-sub-menu {
	background: var(--tn-surface);
	color: var(--tn-text);
}
.tn-mega-nav-bar .tn-sub-menu .tn-menu-link { color: var(--tn-text); }

/* ---------- 8. SEARCH POPUP ---------- */
.tn-search-popup {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.85);
	z-index: 2000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 80px 16px;
}
.tn-search-popup[hidden] { display: none; }
.tn-search-popup-inner { width: 100%; max-width: 640px; position: relative; }
.tn-search-close {
	position: absolute;
	top: -48px; right: 0;
	color: #fff;
}
.tn-search-form { display: flex; background: #fff; border-radius: var(--tn-radius); overflow: hidden; }
.tn-search-input { flex: 1; border: none; padding: 16px; font-size: 16px; }
.tn-search-input:focus { outline: none; }
.tn-search-submit { background: var(--tn-primary); color: #fff; padding: 0 20px; }
.tn-live-search-results {
	background: #fff;
	margin-top: 8px;
	border-radius: var(--tn-radius);
	max-height: 60vh;
	overflow-y: auto;
}
.tn-live-search-results:empty { display: none; }
.tn-search-result-item {
	display: flex;
	gap: 12px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--tn-border);
	align-items: center;
}
.tn-search-result-item img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.tn-search-result-item:hover { background: var(--tn-bg); }
.tn-search-result-title { font-weight: 600; font-size: 14px; }
.tn-search-result-meta { font-size: 12px; color: var(--tn-text-muted); }

.tn-search-form--inline { display: flex; max-width: 480px; }
.tn-search-form--inline .tn-search-input {
	border: 1px solid var(--tn-border);
	border-radius: var(--tn-radius) 0 0 var(--tn-radius);
	padding: 10px 14px;
}
.tn-search-form--inline .tn-search-submit {
	border-radius: 0 var(--tn-radius) var(--tn-radius) 0;
	padding: 0 16px;
}

/* ---------- 9. MOBILE MENU ---------- */
.tn-mobile-menu {
	position: fixed;
	inset: 0 25% 0 0;
	background: var(--tn-surface);
	z-index: 2100;
	overflow-y: auto;
	box-shadow: 4px 0 24px rgba(0,0,0,.15);
	transform: translateX(-100%);
	transition: transform .25s ease;
}
.tn-mobile-menu:not([hidden]) { transform: translateX(0); }
.tn-mobile-menu[hidden] { display: block; visibility: hidden; }
.tn-mobile-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-bottom: 1px solid var(--tn-border);
}
.tn-mobile-menu-list { padding: 8px; }
.tn-mobile-menu-list li { border-bottom: 1px solid var(--tn-border); }
.tn-mobile-menu-list a { display: block; padding: 14px 8px; font-weight: 600; }
.tn-mobile-menu .tn-social-icons { padding: 16px; }
.tn-mobile-menu .tn-social-icon { background: var(--tn-bg); color: var(--tn-text); }

.tn-menu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 2050;
}
.tn-menu-overlay[hidden] { display: none; }

/* ---------- 10. BREAKING NEWS STRIP (homepage) ---------- */
.tn-home-breaking-ticker { margin: 16px 0; }
.tn-breaking-strip {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--tn-surface);
	border: 1px solid var(--tn-border);
	border-left: 4px solid var(--tn-primary);
	border-radius: var(--tn-radius);
	padding: 10px 14px;
	overflow: hidden;
}
.tn-breaking-strip-label {
	color: var(--tn-primary);
	font-weight: 800;
	flex-shrink: 0;
	text-transform: uppercase;
	font-size: 13px;
}
.tn-breaking-strip-track { overflow: hidden; flex: 1; }
.tn-breaking-strip-list {
	display: flex;
	gap: 40px;
	white-space: nowrap;
	width: max-content;
	animation: tn-ticker-scroll 35s linear infinite;
}
.tn-breaking-strip-list a:hover { color: var(--tn-primary); }

/* ---------- 11. BREAKING POPUP ---------- */
.tn-breaking-popup {
	position: fixed;
	bottom: 16px; left: 16px; right: 16px;
	max-width: 420px;
	background: var(--tn-secondary);
	color: #fff;
	padding: 14px 40px 14px 16px;
	border-radius: var(--tn-radius);
	z-index: 1500;
	box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.tn-breaking-popup-label {
	background: var(--tn-primary);
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	margin-right: 8px;
}
.tn-breaking-popup-close { position: absolute; top: 12px; right: 12px; color: #fff; }


/* ---------- 12. SECTION HEADERS / GENERIC POST GRID ---------- */
.tn-section { margin: 28px 0; }
.tn-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	border-bottom: 2px solid var(--tn-primary);
	padding-bottom: 8px;
}
.tn-section-title {
	font-size: 19px;
	font-weight: 800;
	color: var(--tn-secondary);
}
.tn-section-more {
	font-size: 13px;
	font-weight: 600;
	color: var(--tn-primary);
	flex-shrink: 0;
}
.tn-section-more:hover { text-decoration: underline; }

.tn-post-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tn-post-grid--3col, .tn-post-grid--4col { grid-template-columns: repeat(2, 1fr); }

.tn-post-card {
	background: var(--tn-surface);
	border-radius: var(--tn-radius);
	overflow: hidden;
	border: 1px solid var(--tn-border);
	display: flex;
	flex-direction: column;
}
.tn-post-card-thumb-link { aspect-ratio: 3/2; overflow: hidden; background: var(--tn-bg); }
.tn-post-card-thumb-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tn-post-card:hover .tn-post-card-thumb-link img { transform: scale(1.05); }
.tn-post-card-thumb-placeholder { display: block; width: 100%; height: 100%; background: var(--tn-bg); }
.tn-post-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tn-post-card-title { font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.tn-post-card-title a:hover { color: var(--tn-primary); }

.tn-post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12.5px; color: var(--tn-text-muted); }
.tn-post-meta--compact { font-size: 11.5px; gap: 8px; }
.tn-post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tn-post-cat {
	display: inline-block;
	background: var(--tn-cat-color, var(--tn-primary));
	color: #fff;
	padding: 2px 9px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
}

/* ---------- 13. HERO SLIDER SECTION ---------- */
.tn-home-hero { margin-top: 18px; }
.tn-hero-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tn-hero-main {
	position: relative;
	border-radius: var(--tn-radius);
	overflow: hidden;
	aspect-ratio: 16/9;
}
.tn-hero-main-link { display: block; height: 100%; position: relative; }
.tn-hero-main img { width: 100%; height: 100%; object-fit: cover; }
.tn-hero-main-overlay {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 20px 16px;
	background: linear-gradient(transparent, rgba(0,0,0,.85));
	color: #fff;
}
.tn-hero-main-title { font-size: 22px; font-weight: 800; line-height: 1.35; margin: 8px 0 6px; }
.tn-hero-main-meta { font-size: 12.5px; opacity: .85; }

.tn-hero-side { display: flex; flex-direction: column; gap: 12px; }
.tn-hero-side-item { display: flex; gap: 10px; align-items: center; }
.tn-hero-side-thumb { width: 90px; height: 64px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.tn-hero-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tn-hero-side-title { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.tn-hero-side-item:hover .tn-hero-side-title { color: var(--tn-primary); }
.tn-hero-side-meta { font-size: 11.5px; color: var(--tn-text-muted); }

/* ---------- 14. CATEGORY GRID BLOCKS ---------- */
.tn-cat-block { margin-bottom: 28px; }
.tn-cat-block-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.tn-cat-block-main { position: relative; border-radius: var(--tn-radius); overflow: hidden; aspect-ratio: 16/9; }
.tn-cat-block-main img { width: 100%; height: 100%; object-fit: cover; }
.tn-cat-block-main-title {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 14px;
	background: linear-gradient(transparent, rgba(0,0,0,.8));
	color: #fff; font-weight: 700; font-size: 16px;
}
.tn-cat-block-item {
	display: flex; flex-direction: column; gap: 4px;
	padding: 10px 0;
	border-bottom: 1px solid var(--tn-border);
}
.tn-cat-block-item-title { font-weight: 600; font-size: 14px; }
.tn-cat-block-item:hover .tn-cat-block-item-title { color: var(--tn-cat-color, var(--tn-primary)); }
.tn-cat-block-item-meta { font-size: 11.5px; color: var(--tn-text-muted); }


/* ---------- 15. MOST READ / TABS ---------- */
.tn-tabs-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--tn-border); margin-bottom: 14px; }
.tn-tab-btn {
	padding: 10px 16px;
	font-weight: 700;
	font-size: 14px;
	color: var(--tn-text-muted);
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}
.tn-tab-btn.is-active { color: var(--tn-primary); border-bottom-color: var(--tn-primary); }
.tn-tab-panel[hidden] { display: none; }
.tn-ranked-list { display: flex; flex-direction: column; gap: 12px; counter-reset: none; }
.tn-ranked-list li { display: flex; align-items: center; gap: 12px; }
.tn-rank-number {
	flex-shrink: 0;
	width: 28px; height: 28px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--tn-bg);
	color: var(--tn-primary);
	font-weight: 800;
	border-radius: 50%;
	font-size: 13px;
}
.tn-rank-title { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.tn-rank-title:hover { color: var(--tn-primary); }

/* ---------- 16. PHOTO / VIDEO GALLERY ---------- */
.tn-photo-gallery-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.tn-photo-gallery-item { position: relative; border-radius: var(--tn-radius); overflow: hidden; aspect-ratio: 4/3; }
.tn-photo-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.tn-photo-gallery-caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 8px 10px;
	background: linear-gradient(transparent, rgba(0,0,0,.85));
	color: #fff; font-size: 12.5px; font-weight: 600;
}

.tn-video-gallery-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tn-video-embed-wrap { position: relative; aspect-ratio: 16/9; border-radius: var(--tn-radius); overflow: hidden; background: #000; }
.tn-video-embed-wrap iframe { width: 100%; height: 100%; border: 0; }
.tn-video-gallery-title { display: block; margin-top: 8px; font-weight: 700; font-size: 14.5px; }
.tn-video-gallery-title:hover { color: var(--tn-primary); }

.tn-live-dot {
	display: inline-block;
	width: 9px; height: 9px;
	background: var(--tn-primary);
	border-radius: 50%;
	margin-right: 4px;
	animation: tn-pulse 1.4s ease-in-out infinite;
}
@keyframes tn-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 17. SPECIAL REPORT ---------- */
.tn-special-report-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tn-special-report-item {
	display: flex; flex-direction: column;
	background: var(--tn-surface);
	border-radius: var(--tn-radius);
	overflow: hidden;
	border: 1px solid var(--tn-border);
}
.tn-special-report-item img { aspect-ratio: 16/9; object-fit: cover; }
.tn-special-report-text { padding: 14px; }
.tn-special-report-badge {
	display: inline-block;
	background: var(--tn-secondary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 3px;
	margin-bottom: 8px;
}
.tn-special-report-text h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.tn-special-report-text p { font-size: 13.5px; color: var(--tn-text-muted); }

/* ---------- 18. EPAPER ---------- */
.tn-epaper-card { display: block; text-align: center; }
.tn-epaper-cover { max-width: 280px; margin: 0 auto 12px; border-radius: var(--tn-radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.tn-epaper-cta {
	display: inline-block;
	background: var(--tn-primary);
	color: #fff;
	padding: 10px 24px;
	border-radius: var(--tn-radius);
	font-weight: 700;
}

/* ---------- 19. FACEBOOK FEED ---------- */
.tn-facebook-feed-embed { display: flex; justify-content: center; }


/* ---------- 20. LAYOUT / SIDEBAR ---------- */
.tn-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 20px 0 40px; }
.tn-layout--none .tn-main-col { grid-column: 1 / -1; }

.tn-sidebar { display: flex; flex-direction: column; gap: 20px; }
.tn-widget {
	background: var(--tn-surface);
	border: 1px solid var(--tn-border);
	border-radius: var(--tn-radius);
	padding: 16px;
}
.tn-widget-title {
	font-size: 15px;
	font-weight: 800;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--tn-primary);
}
.tn-popular-list { display: flex; flex-direction: column; gap: 12px; }
.tn-popular-item { display: flex; gap: 10px; align-items: center; }
.tn-popular-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.tn-popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tn-popular-title { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.tn-popular-item:hover .tn-popular-title { color: var(--tn-primary); }
.tn-popular-meta { font-size: 11.5px; color: var(--tn-text-muted); }

/* ---------- 21. BREADCRUMB ---------- */
.tn-breadcrumb { padding: 14px 0; font-size: 12.5px; color: var(--tn-text-muted); }
.tn-breadcrumb a:hover { color: var(--tn-primary); }
.tn-breadcrumb-sep { margin: 0 4px; }
.tn-breadcrumb-current { color: var(--tn-text); font-weight: 600; }

/* ---------- 22. ARCHIVE HEADER ---------- */
.tn-archive-header { padding: 20px 0 12px; border-bottom: 3px solid var(--tn-cat-color, var(--tn-primary)); margin-bottom: 20px; }
.tn-archive-title { font-size: 24px; font-weight: 800; }
.tn-archive-description { margin-top: 8px; color: var(--tn-text-muted); font-size: 14px; }

/* ---------- 23. SINGLE ARTICLE ---------- */
.tn-single-header { padding: 8px 0 16px; }
.tn-single-title { font-size: 26px; font-weight: 800; line-height: 1.4; margin: 10px 0 8px; }
.tn-single-submeta { font-size: 13px; color: var(--tn-text-muted); }
.tn-single-featured-image { margin-bottom: 18px; border-radius: var(--tn-radius); overflow: hidden; }
.tn-single-featured-image figcaption { font-size: 12.5px; color: var(--tn-text-muted); padding: 8px 4px; }

.tn-single-content { font-size: 16.5px; line-height: 1.85; }
.tn-single-content p { margin-bottom: 1.2em; }
.tn-single-content h2, .tn-single-content h3 { font-weight: 800; margin: 1.4em 0 .6em; }
.tn-single-content img { border-radius: var(--tn-radius); margin: 1em 0; }
.tn-single-content blockquote {
	border-left: 4px solid var(--tn-primary);
	padding: 8px 18px;
	margin: 1.4em 0;
	font-style: italic;
	color: var(--tn-text-muted);
	background: var(--tn-bg);
}
.tn-single-content a { color: var(--tn-link); text-decoration: underline; }

.tn-single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tn-tag-chip { background: var(--tn-bg); padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600; }
.tn-tag-chip:hover { background: var(--tn-primary); color: #fff; }

.tn-single-share-sticky { display: none; }
.tn-single-share-bottom {
	display: flex; align-items: center; gap: 12px;
	padding: 16px 0; margin-top: 20px;
	border-top: 1px solid var(--tn-border);
	border-bottom: 1px solid var(--tn-border);
}
.tn-share-label { font-weight: 700; font-size: 13.5px; flex-shrink: 0; }
.tn-share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.tn-share-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--tn-bg);
	color: var(--tn-text);
	transition: transform .15s ease;
}
.tn-share-btn:hover { transform: translateY(-2px); }
.tn-share-whatsapp:hover { background: #25D366; color: #fff; }
.tn-share-facebook:hover { background: #1877F2; color: #fff; }
.tn-share-twitter:hover { background: #000; color: #fff; }
.tn-share-telegram:hover { background: #26A5E4; color: #fff; }
.tn-share-messenger:hover { background: #00B2FF; color: #fff; }
.tn-share-copy.is-copied { background: #16a34a; color: #fff; }

.tn-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.tn-post-nav-prev, .tn-post-nav-next {
	background: var(--tn-surface);
	border: 1px solid var(--tn-border);
	border-radius: var(--tn-radius);
	padding: 12px 14px;
}
.tn-post-nav-next { text-align: right; }
.tn-post-nav-label { display: block; font-size: 11.5px; color: var(--tn-primary); font-weight: 700; margin-bottom: 4px; }
.tn-post-nav-title { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; }

.tn-related-news { margin: 32px 0; }


/* ---------- 24. COMMENTS ---------- */
.tn-comments-area { margin: 32px 0; }
.tn-comments-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.tn-comment-list { display: flex; flex-direction: column; gap: 16px; }
.tn-comment-list .children { margin-top: 16px; margin-left: 24px; padding-left: 16px; border-left: 2px solid var(--tn-border); }
.comment-body { background: var(--tn-surface); border: 1px solid var(--tn-border); border-radius: var(--tn-radius); padding: 14px; }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: 10px; }
.comment-metadata { font-size: 11.5px; color: var(--tn-text-muted); }
.tn-comment-form { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.tn-comment-form input[type="text"], .tn-comment-form input[type="email"], .tn-comment-form input[type="url"], .tn-comment-textarea {
	width: 100%;
	border: 1px solid var(--tn-border);
	border-radius: var(--tn-radius);
	padding: 10px 14px;
}
.tn-comment-form .form-submit input {
	background: var(--tn-primary);
	color: #fff;
	padding: 10px 24px;
	border-radius: var(--tn-radius);
	font-weight: 700;
}

/* ---------- 25. ADS ---------- */
.tn-ad-slot { text-align: center; margin: 16px 0; position: relative; overflow: hidden; }
.tn-ad-label {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--tn-text-muted);
	margin-bottom: 4px;
}
.tn-ad-in-article { margin: 24px 0; }
.tn-sidebar-ad { margin-bottom: 20px; }

.tn-sticky-ad {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	background: var(--tn-surface);
	border-top: 1px solid var(--tn-border);
	z-index: 800;
	padding: 6px 36px 6px 8px;
	text-align: center;
}
.tn-sticky-ad-close { position: absolute; top: 4px; right: 8px; color: var(--tn-text-muted); }

.tn-popup-ad-overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,.7);
	z-index: 3000;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
}
.tn-popup-ad-overlay[hidden] { display: none; }
.tn-popup-ad-box { background: #fff; border-radius: var(--tn-radius); padding: 16px; position: relative; max-width: 90vw; }
.tn-popup-ad-close { position: absolute; top: -36px; right: 0; color: #fff; }

/* ---------- 26. FOOTER ---------- */
.tn-footer { background: var(--tn-secondary); color: #d1d5db; margin-top: 40px; }
.tn-footer-widgets { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
.tn-footer-widget-title { font-size: 14.5px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.tn-footer-widget a:hover { color: #fff; }
.tn-footer-ad-wrap { padding: 16px 0; text-align: center; border-top: 1px solid rgba(255,255,255,.08); }
.tn-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.tn-footer-bottom-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.tn-footer-logo .tn-logo-text { color: #fff; font-size: 20px; }
.tn-footer-menu ul { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.tn-footer-menu a:hover { color: #fff; }
.tn-footer-copyright { text-align: center; font-size: 12.5px; padding-top: 12px; }
.tn-developer-credit { margin-top: 4px; opacity: .7; }

/* ---------- 27. PAGINATION / LOAD MORE ---------- */
.tn-pagination ul { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.tn-pagination a, .tn-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; height: 36px;
	border-radius: var(--tn-radius);
	border: 1px solid var(--tn-border);
	font-size: 13.5px;
	padding: 0 8px;
}
.tn-pagination .current { background: var(--tn-primary); color: #fff; border-color: var(--tn-primary); }
.tn-pagination a:hover { border-color: var(--tn-primary); color: var(--tn-primary); }

.tn-load-more-wrap { text-align: center; margin: 24px 0; }
.tn-load-more-btn {
	background: var(--tn-primary);
	color: #fff;
	padding: 12px 32px;
	border-radius: var(--tn-radius);
	font-weight: 700;
}
.tn-load-more-btn[disabled] { opacity: .6; cursor: default; }

/* ---------- 28. 404 PAGE ---------- */
.tn-404-page { text-align: center; padding: 60px 0; }
.tn-404-code { font-size: 80px; font-weight: 900; color: var(--tn-primary); line-height: 1; }
.tn-404-title { font-size: 22px; font-weight: 800; margin: 12px 0; }
.tn-404-text { color: var(--tn-text-muted); max-width: 440px; margin: 0 auto 20px; }
.tn-404-page .tn-search-form--inline { margin: 0 auto 20px; }
.tn-404-home-btn { display: inline-block; background: var(--tn-primary); color: #fff; padding: 10px 24px; border-radius: var(--tn-radius); font-weight: 700; margin-bottom: 40px; }
.tn-404-recent { text-align: left; margin-top: 40px; }
.tn-404-recent h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }

/* ---------- 29. MAINTENANCE MODE ---------- */
.tn-maintenance-screen {
	min-height: 100vh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 20px;
	background: var(--tn-bg);
}
.tn-maintenance-screen h1 { font-size: 28px; font-weight: 800; color: var(--tn-primary); margin-bottom: 12px; }

/* ---------- 30. STATIC PAGE ---------- */
.tn-page-title { font-size: 26px; font-weight: 800; margin: 16px 0; }
.tn-page-body { font-size: 16px; line-height: 1.8; }
.tn-page-body p { margin-bottom: 1.2em; }


/* =========================================================
   RESPONSIVE BREAKPOINTS (mobile-first: base styles above
   are mobile; progressively enhanced from here up)
   ========================================================= */

/* ---------- TABLET: 768px+ ---------- */
@media (min-width: 768px) {
	.tn-topbar-left { display: flex; }
	.tn-mobile-menu { inset: 0 50% 0 0; }

	.tn-post-grid--3col { grid-template-columns: repeat(3, 1fr); }
	.tn-post-grid--4col { grid-template-columns: repeat(2, 1fr); }

	.tn-hero-grid { grid-template-columns: 2fr 1fr; }
	.tn-hero-main { aspect-ratio: 16/10; }

	.tn-cat-block-grid { grid-template-columns: 1.3fr 1fr; }
	.tn-cat-block-item:first-of-type { border-top: none; }

	.tn-photo-gallery-grid { grid-template-columns: repeat(3, 1fr); }
	.tn-video-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.tn-special-report-grid { grid-template-columns: repeat(3, 1fr); }

	.tn-footer-widgets { grid-template-columns: repeat(2, 1fr); }
	.tn-footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
	.tn-footer-copyright { display: flex; justify-content: space-between; text-align: left; }

	.tn-single-title { font-size: 30px; }
	.tn-post-nav { grid-template-columns: 1fr 1fr; }
}

/* ---------- DESKTOP: 1024px+ ---------- */
@media (min-width: 1024px) {
	.tn-mobile-menu-toggle { display: none; }
	.tn-primary-nav { display: block; }
	.tn-mobile-menu { display: none !important; }

	.tn-layout--right { grid-template-columns: 2.5fr 1fr; }
	.tn-layout--left { grid-template-columns: 1fr 2.5fr; }
	.tn-layout--left .tn-sidebar { order: -1; }

	.tn-post-grid--4col { grid-template-columns: repeat(4, 1fr); }
	.tn-post-grid--3col { grid-template-columns: repeat(3, 1fr); }

	.tn-cat-block-grid { grid-template-columns: 1.5fr 1fr 1fr; }

	.tn-photo-gallery-grid { grid-template-columns: repeat(4, 1fr); }
	.tn-video-gallery-grid { grid-template-columns: repeat(2, 1fr); }

	.tn-footer-widgets { grid-template-columns: repeat(4, 1fr); }

	.tn-single-share-sticky {
		display: flex;
		flex-direction: column;
		gap: 8px;
		position: sticky;
		top: 90px;
		float: left;
		margin: 0 -64px 0 -64px;
		width: 44px;
	}
}

/* ---------- LARGE DESKTOP: 1280px+ ---------- */
@media (min-width: 1280px) {
	.tn-hero-main-title { font-size: 26px; }
}

/* ---------- PRINT ---------- */
@media print {
	.tn-header, .tn-footer, .tn-sidebar, .tn-ad-slot, .tn-sticky-ad,
	.tn-popup-ad-overlay, .tn-share-buttons, .tn-breaking-popup { display: none !important; }
}

