/* ==========================================================================
   GuardNews — Premium Broadsheet Newspaper & Magazine Stylesheet
   ========================================================================== */

:root {
	--gn-primary: #102e5c;
	--gn-topbar: #082047;
	--gn-accent: #cb1111;
	--gn-gold: #fcd000;
	--gn-bg: #ffffff;
	--gn-surface: #f8f9fa;
	--gn-paper: #fdfaf5;
	--gn-text: #000000;
	--gn-text-muted: #5c5c5c;
	--gn-border: #e0e0e0;
	--gn-border-strong: #121212;
	--gn-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--gn-nav-font: 'PT Serif', Georgia, serif;
	--gn-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--gn-bangla: 'Hind Siliguri', 'SolaimanLipi', 'Kalpurush', sans-serif;
	--gn-radius: 0px;
	--gn-transition: 0.2s ease;
}

/* Base Reset */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--gn-sans);
	color: var(--gn-text);
	background-color: var(--gn-bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--gn-transition);
}

a:hover {
	color: var(--gn-accent);
}

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

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	background-color: var(--gn-primary);
	color: #fff;
	clip: auto !important;
	clip-path: none;
	display: block;
	font-weight: 700;
	height: auto;
	left: 8px;
	padding: 12px 18px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.gn-container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 20px;
}

/* ==========================================================================
   Header: Guard2 3-Band Deep Navy Header (Topbar #082047, Masthead & Nav #102E5C)
   ========================================================================== */
.header-top-bar {
	background-color: var(--gn-topbar);
	color: #ffffff;
	font-size: 0.875rem;
	min-height: 54px;
	display: flex;
	align-items: center;
}

.top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 54px;
}

.topbar-yellow-burger {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: var(--gn-gold);
	color: #000000;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}

.topbar-yellow-burger:hover {
	background-color: #ffd71c;
}

.topbar-cta-pill {
	background-color: var(--gn-gold);
	color: #000000;
	font-weight: 700;
	font-size: 0.8125rem;
	padding: 6px 16px;
	border-radius: 20px;
	white-space: nowrap;
}

.topbar-cta-pill:hover {
	background-color: #ffd71c;
	color: #000000;
}

.top-bar-left {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1;
}

.top-date {
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	padding-right: 12px;
	border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.breaking-ticker-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.ticker-badge {
	background-color: var(--gn-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 2px 8px;
	border-radius: 2px;
	white-space: nowrap;
}

.ticker-viewport {
	overflow: hidden;
	height: 24px;
	flex: 1;
}

.ticker-list {
	list-style: none;
	margin: 0;
	padding: 0;
	transition: transform 0.4s ease;
}

.ticker-item {
	height: 24px;
	line-height: 24px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ticker-item a:hover {
	color: var(--gn-gold);
	text-decoration: underline;
}

.top-bar-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.top-socials {
	display: flex;
	align-items: center;
	gap: 10px;
}

.top-socials a {
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.15);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.top-socials a:hover {
	background: var(--gn-gold);
	color: #000000;
}

.theme-toggle-btn {
	background: rgba(255, 255, 255, 0.14);
	border: none;
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.theme-toggle-btn .icon-sun { display: none; }
body.dark-mode .theme-toggle-btn .icon-moon { display: none; }
body.dark-mode .theme-toggle-btn .icon-sun { display: inline-flex; }

/* Masthead (#102E5C Deep Navy) */
.header-masthead {
	padding: 16px 0;
	background-color: var(--gn-primary);
	color: #ffffff;
}

.masthead-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.masthead-layout-centered .masthead-inner {
	justify-content: center;
	text-align: center;
}

.site-title {
	margin: 0;
	font-family: var(--gn-serif);
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: #ffffff;
}

.site-title a:hover {
	color: var(--gn-gold);
}

.site-description {
	margin: 4px 0 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.78);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.masthead-editorial-quote {
	max-width: 520px;
	text-align: left;
}

.masthead-editorial-quote .quote-heading {
	display: block;
	font-family: var(--gn-serif);
	font-size: 0.9375rem;
	color: var(--gn-gold);
	margin-bottom: 2px;
}

.masthead-editorial-quote .quote-body {
	margin: 0;
	font-family: var(--gn-serif);
	font-style: italic;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.4;
}

/* Left Sidebar & No Sidebar Layout Support */
body.sidebar-left .content-sidebar-grid {
	grid-template-columns: 330px 1fr;
}

body.sidebar-left .sidebar-col {
	order: -1;
}

body.no-sidebar .content-sidebar-grid {
	grid-template-columns: 1fr;
}

/* Guard2 Crisp Broadsheet Column Dividers */
.editorial-grid-4 > .news-card:not(:last-child) {
	border-right: 1px solid var(--gn-border);
	padding-right: 20px;
}

@media (max-width: 1024px) {
	.editorial-grid-4 > .news-card:not(:last-child) {
		border-right: none;
		padding-right: 0;
	}
}

.custom-logo-link img {
	max-height: 68px;
	width: auto;
}

/* Primary Navigation Bar (#102E5C with #3F6297 border & #FCD000 active bar) */
.header-navigation-bar {
	background-color: var(--gn-primary);
	border-top: 1px solid #3f6297;
	position: relative;
	z-index: 900;
}

body.has-sticky-header .header-navigation-bar.is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.nav-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 50px;
}

.main-navigation {
	flex: 1;
}

.primary-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
}

.primary-menu-list > li {
	position: relative;
	border-right: 1px solid #3f6297;
}

.primary-menu-list > li:last-child {
	border-right: none;
}

.primary-menu-list > li > a {
	display: block;
	padding: 12px 18px;
	font-family: var(--gn-nav-font);
	font-weight: 700;
	font-size: 1.125rem;
	color: #ffffff;
	border-top: 3px solid transparent;
}

.primary-menu-list > li > a:hover,
.primary-menu-list > li.current-menu-item > a {
	background-color: var(--gn-topbar);
	color: #ffffff;
	border-top-color: var(--gn-gold);
}

/* Submenus */
.primary-menu-list ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: var(--gn-primary);
	border: 1px solid #3f6297;
	border-top: 2px solid var(--gn-gold);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.2s ease;
	z-index: 999;
}

.primary-menu-list li:hover > ul.sub-menu,
.primary-menu-list li:focus-within > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-menu-list ul.sub-menu a {
	display: block;
	padding: 8px 16px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #ffffff;
}

.primary-menu-list ul.sub-menu a:hover {
	color: var(--gn-gold);
	background-color: var(--gn-topbar);
}

.mobile-menu-toggle,
.search-trigger-btn {
	background: transparent;
	border: none;
	color: #ffffff;
	cursor: pointer;
	padding: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mobile-menu-toggle {
	display: none;
}

/* ==========================================================================
   Hero Guard2 Broadsheet Grid
   ========================================================================== */
.gn-section {
	padding: 28px 0;
}

.hero-guard-section {
	padding-top: 24px;
	border-bottom: 1px solid var(--gn-border);
}

.hero-guard-grid {
	display: grid;
	grid-template-columns: 26% 1fr 26%;
	gap: 24px;
	align-items: start;
}

.hero-col-left {
	display: flex;
	flex-direction: column;
	gap: 20px;
	border-right: 1px solid var(--gn-border);
	padding-right: 20px;
}

.hero-col-right {
	border-left: 1px solid var(--gn-border);
	padding-left: 20px;
}

/* Category Kicker & Cards */
.category-kicker {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--gn-accent);
	margin-bottom: 6px;
}

.card-thumb-link {
	display: block;
	overflow: hidden;
	background: var(--gn-surface);
	border-radius: var(--gn-radius);
	aspect-ratio: 16 / 10;
	margin-bottom: 10px;
}

.card-hero-lead .card-thumb-link {
	aspect-ratio: 16 / 9;
	margin-bottom: 14px;
}

.entry-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.news-card:hover .entry-thumb-img,
.news-list-item:hover .entry-thumb-img,
.video-card:hover .entry-thumb-img {
	transform: scale(1.03);
}

.thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #475569;
	font-family: var(--gn-serif);
	font-weight: 700;
	font-size: 1rem;
}

.hero-lead-title {
	font-family: var(--gn-serif);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.18;
	margin: 0 0 10px;
}

.hero-lead-excerpt {
	font-size: 1rem;
	color: var(--gn-text-muted);
	margin: 0 0 12px;
	line-height: 1.55;
}

.card-title {
	font-family: var(--gn-serif);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

.card-excerpt {
	font-size: 0.875rem;
	color: var(--gn-text-muted);
	margin: 0 0 10px;
	line-height: 1.5;
}

.card-kicker-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.reading-time-sm,
.reading-time-badge {
	font-size: 0.75rem;
	color: var(--gn-text-muted);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.card-meta {
	font-size: 0.75rem;
	color: var(--gn-text-muted);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.byline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.author-avatar-sm {
	border-radius: 50%;
}

/* Right Column Headlines List */
.section-header-mini {
	border-top: 3px solid var(--gn-primary);
	padding-top: 8px;
	margin-bottom: 14px;
}

.section-title-sm {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gn-primary);
}

.hero-headlines-list,
.guardnews-ranked-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.headline-item,
.ranked-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--gn-border);
}

.headline-item:last-child,
.ranked-item:last-child {
	border-bottom: none;
}

.headline-rank,
.rank-num {
	font-family: var(--gn-serif);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--gn-accent);
	min-width: 24px;
}

.headline-title,
.ranked-title {
	font-family: var(--gn-serif);
	font-size: 0.96rem;
	font-weight: 700;
	line-height: 1.32;
	margin: 0 0 4px;
}

/* ==========================================================================
   Section Headers & Grids
   ========================================================================== */
.section-header-bar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	border-top: 3px solid var(--gn-primary);
	padding-top: 10px;
	margin-bottom: 20px;
}

.section-heading {
	margin: 0;
	font-family: var(--gn-serif);
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--gn-primary);
}

.section-more-link {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--gn-accent);
}

.editorial-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.editorial-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

/* ==========================================================================
   Opinion Section (Warm Paper Contrast)
   ========================================================================== */
.opinion-section {
	background-color: var(--gn-paper);
	border-top: 1px solid var(--gn-border);
	border-bottom: 1px solid var(--gn-border);
}

.section-header-opinion {
	border-top-color: #d97706;
}

.opinion-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.opinion-card {
	background: var(--gn-bg);
	border: 1px solid var(--gn-border);
	border-top: 3px solid #d97706;
	padding: 18px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
}

.opinion-quote-mark {
	font-family: var(--gn-serif);
	font-size: 2.5rem;
	line-height: 0.6;
	color: #d97706;
	display: block;
	margin-bottom: 8px;
}

.opinion-title {
	font-family: var(--gn-serif);
	font-style: italic;
	font-size: 1.125rem;
	line-height: 1.3;
	margin: 0 0 8px;
}

.opinion-excerpt {
	font-size: 0.875rem;
	color: var(--gn-text-muted);
	margin: 0;
}

.opinion-author-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var(--gn-border);
	padding-top: 12px;
}

.opinion-author-name {
	display: block;
	font-weight: 700;
	font-size: 0.875rem;
	color: #b45309;
}

.opinion-date {
	font-size: 0.75rem;
	color: var(--gn-text-muted);
}

.opinion-avatar img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

/* ==========================================================================
   Video Showcase Section (Dark Contrast)
   ========================================================================== */
.video-showcase-section {
	background-color: #111827;
	color: #f9fafb;
}

.section-header-dark {
	border-top-color: var(--gn-gold);
}

.section-header-dark .section-heading {
	color: #ffffff;
}

.section-header-dark .section-more-link {
	color: var(--gn-gold);
}

.video-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.video-thumb-wrap {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--gn-radius);
	margin-bottom: 12px;
}

.video-play-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(199, 0, 0, 0.9);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-card-title {
	font-family: var(--gn-serif);
	font-size: 1.125rem;
	margin: 4px 0 8px;
}

.video-showcase-section .card-meta {
	color: #9ca3af;
}

/* ==========================================================================
   Content + Sidebar Grid & List Stack
   ========================================================================== */
.content-sidebar-grid {
	display: grid;
	grid-template-columns: 1fr 330px;
	gap: 36px;
	align-items: start;
}

.news-list-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.news-list-item {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--gn-border);
	align-items: start;
}

.list-thumb-link {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--gn-radius);
}

.list-title {
	font-family: var(--gn-serif);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.28;
	margin: 4px 0 8px;
}

.list-excerpt {
	font-size: 0.9375rem;
	color: var(--gn-text-muted);
	margin: 0 0 10px;
}

/* Sidebar Widgets */
.card-widget {
	background: var(--gn-surface);
	border: 1px solid var(--gn-border);
	padding: 18px;
	margin-bottom: 24px;
	border-radius: var(--gn-radius);
}

.widget-title {
	margin: 0 0 14px;
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gn-primary);
	border-bottom: 2px solid var(--gn-primary);
	padding-bottom: 8px;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-banner {
	background-color: var(--gn-primary);
	color: #fff;
	padding: 36px 40px;
	border-radius: var(--gn-radius);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: center;
}

.newsletter-kicker {
	color: var(--gn-gold);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.newsletter-heading {
	font-family: var(--gn-serif);
	font-size: 1.75rem;
	margin: 6px 0 8px;
}

.newsletter-desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
}

.newsletter-input-group {
	display: flex;
	gap: 8px;
}

.newsletter-input-group input[type="email"] {
	flex: 1;
	padding: 12px 16px;
	border: none;
	border-radius: var(--gn-radius);
	font-size: 0.9375rem;
}

.btn-subscribe {
	background: var(--gn-gold);
	color: #111827;
	border: none;
	padding: 12px 24px;
	font-weight: 800;
	border-radius: var(--gn-radius);
	cursor: pointer;
}

.newsletter-feedback {
	margin: 10px 0 0;
	color: #86efac;
	font-weight: 600;
}

/* ==========================================================================
   Single Article Page
   ========================================================================== */
.single-article-main {
	padding: 24px 0 48px;
}

.guardnews-breadcrumbs {
	font-size: 0.8125rem;
	color: var(--gn-text-muted);
	margin-bottom: 14px;
}

.bc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.single-entry-title {
	font-family: var(--gn-serif);
	font-size: 2.5rem;
	font-weight: 900;
	line-height: 1.15;
	margin: 6px 0 12px;
}

.single-entry-subtitle {
	font-size: 1.2rem;
	color: var(--gn-text-muted);
	line-height: 1.5;
	margin: 0 0 18px;
}

.single-meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid var(--gn-border);
	border-bottom: 1px solid var(--gn-border);
	margin-bottom: 24px;
}

.single-meta-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.875rem;
	color: var(--gn-text-muted);
}

.single-featured-media {
	margin: 0 0 24px;
}

.featured-caption {
	font-size: 0.8125rem;
	color: var(--gn-text-muted);
	padding: 8px 0;
	border-bottom: 1px solid var(--gn-border);
}

.single-entry-content {
	font-size: 1.125rem;
	line-height: 1.78;
}

.single-entry-content p {
	margin: 0 0 1.35em;
}

.single-entry-content blockquote {
	margin: 24px 0;
	padding: 18px 24px;
	border-left: 4px solid var(--gn-accent);
	background: var(--gn-surface);
	font-family: var(--gn-serif);
	font-style: italic;
	font-size: 1.25rem;
}

/* Social Share Bar */
.social-share-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.share-label {
	font-size: 0.8125rem;
	font-weight: 700;
	margin-right: 4px;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--gn-border);
	background: var(--gn-bg);
	color: var(--gn-text);
	cursor: pointer;
}

.share-btn:hover {
	background: var(--gn-primary);
	color: #fff;
	border-color: var(--gn-primary);
}

/* Author Bio & Post Navigation */
.post-tags-wrap {
	margin: 24px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.post-tags-wrap a {
	background: var(--gn-surface);
	border: 1px solid var(--gn-border);
	padding: 4px 12px;
	font-size: 0.8125rem;
	border-radius: 20px;
}

.author-bio-box {
	display: flex;
	align-items: center;
	gap: 20px;
	background: var(--gn-surface);
	border: 1px solid var(--gn-border);
	padding: 22px;
	margin: 28px 0;
	border-radius: var(--gn-radius);
}

.author-bio-avatar img {
	border-radius: 50%;
}

.author-bio-name {
	margin: 4px 0 6px;
	font-family: var(--gn-serif);
	font-size: 1.2rem;
}

.author-bio-desc {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--gn-text-muted);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 28px 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	border: 1px solid var(--gn-border);
	padding: 16px;
	border-radius: var(--gn-radius);
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--gn-accent);
	margin-bottom: 4px;
}

.post-navigation .nav-title {
	font-family: var(--gn-serif);
	font-weight: 700;
}

.related-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ==========================================================================
   Archives, Search, 404, Ads & Footer
   ========================================================================== */
.archive-banner {
	padding: 24px 0;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--gn-primary);
}

.archive-title {
	font-family: var(--gn-serif);
	font-size: 2.1rem;
	margin: 0 0 8px;
}

.category-banner-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.layout-switcher {
	display: flex;
	gap: 6px;
}

.layout-btn {
	border: 1px solid var(--gn-border);
	background: var(--gn-surface);
	padding: 6px 14px;
	font-weight: 600;
	cursor: pointer;
	border-radius: var(--gn-radius);
}

.layout-btn.active {
	background: var(--gn-primary);
	color: #fff;
	border-color: var(--gn-primary);
}

#category-posts-container[data-view="list"] {
	grid-template-columns: 1fr;
}

.card-category-featured {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--gn-border);
}

.guardnews-pagination .nav-links {
	display: flex;
	gap: 8px;
	margin: 32px 0;
}

.guardnews-pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--gn-border);
	font-weight: 600;
}

.guardnews-pagination .page-numbers.current {
	background: var(--gn-primary);
	color: #fff;
	border-color: var(--gn-primary);
}

/* Ads (CLS-Safe) */
.ad-slot {
	text-align: center;
	margin: 20px auto;
	max-width: 100%;
	overflow: hidden;
}

.ad-label {
	display: block;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gn-text-muted);
	margin-bottom: 4px;
}

/* 404 */
.error-404 {
	text-align: center;
	padding: 72px 20px;
}

.error-code {
	font-family: var(--gn-serif);
	font-size: 6rem;
	font-weight: 900;
	color: var(--gn-accent);
	line-height: 1;
}

.btn-home {
	display: inline-block;
	background: var(--gn-primary);
	color: #fff;
	padding: 12px 26px;
	font-weight: 700;
	border-radius: var(--gn-radius);
	margin: 16px 0 24px;
}

/* Footer */
.site-footer {
	background-color: #0b1320;
	color: #e2e8f0;
	margin-top: 40px;
}

.footer-widgets-area {
	padding: 48px 0 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-widgets-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.footer-widget .widget-title {
	color: #ffffff;
	border-bottom-color: var(--gn-gold);
}

.footer-bottom-bar {
	padding: 20px 0;
	font-size: 0.875rem;
}

.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 18px;
}

/* Search Modal & Mobile Drawer */
.search-modal {
	position: fixed;
	inset: 0;
	background: rgba(5, 41, 98, 0.95);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.search-modal[hidden] { display: none; }

.search-modal-inner {
	width: 100%;
	max-width: 640px;
	text-align: center;
	color: #fff;
	position: relative;
}

.search-modal-close {
	position: absolute;
	top: -50px;
	right: 0;
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
}

.search-modal .search-form {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}

.search-modal .search-field {
	flex: 1;
	padding: 14px 18px;
	font-size: 1.1rem;
	border: none;
	border-radius: var(--gn-radius);
}

.search-modal .search-submit {
	padding: 14px 24px;
	background: var(--gn-gold);
	color: #111;
	font-weight: 800;
	border: none;
	border-radius: var(--gn-radius);
	cursor: pointer;
}

.mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 300px;
	max-width: 85vw;
	background: var(--gn-bg);
	z-index: 10001;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
	padding: 20px;
	overflow-y: auto;
}

.mobile-drawer[hidden] { display: none; }

.mobile-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
}

.mobile-drawer-backdrop[hidden] { display: none; }

.mobile-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--gn-border);
	margin-bottom: 14px;
}

.mobile-brand {
	font-family: var(--gn-serif);
	font-weight: 800;
	font-size: 1.25rem;
}

.mobile-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-menu-list li a {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid var(--gn-border);
	font-weight: 600;
}

.back-to-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--gn-primary);
	color: #fff;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	z-index: 800;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top[hidden] { display: none; }


/* ==========================================================================
   Guard2 Modular Section Variants (Hero 1, Block 1-5, Dark Banner, Popular)
   ========================================================================== */
.gn-guard-section {
	border-top: 1px solid var(--gn-border);
	padding: 28px 0;
}

.guard-outer-split {
	display: grid;
	grid-template-columns: 18% 1fr;
	gap: 24px;
	align-items: start;
}

.guard-sec-sidebar {
	padding-right: 12px;
}

.guard-sec-title {
	font-family: var(--gn-serif);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 10px;
	color: var(--gn-text);
}

.guard-sec-desc {
	font-size: 0.875rem;
	color: var(--gn-text-muted);
	margin: 0;
	line-height: 1.5;
}

.guard-sec-main {
	border-left: 1px solid var(--gn-border);
	padding-left: 24px;
}

/* Shared Guard2 Card Typography & Hairlines */
.g-thumb-32 {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--gn-surface);
	margin-bottom: 10px;
}

.g-thumb-32 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.g-card:hover .g-thumb-32 img {
	transform: scale(1.03);
}

.g-meta-top {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	margin-bottom: 4px;
}

.g-meta-top .category-kicker {
	margin-bottom: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}

.g-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gn-accent);
	display: inline-block;
}

.g-date {
	color: #707070;
	font-size: 0.75rem;
}

.g-title-xl {
	font-family: var(--gn-serif);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 4px 0 10px;
}

.g-title-lg {
	font-family: var(--gn-serif);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.22;
	margin: 4px 0 8px;
}

.g-title-md {
	font-family: var(--gn-serif);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.28;
	margin: 4px 0 6px;
}

.g-title-sm {
	font-family: var(--gn-serif);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 4px 0 4px;
}

.g-excerpt {
	font-size: 0.9375rem;
	color: var(--gn-text-muted);
	margin: 0 0 8px;
	line-height: 1.5;
}

.g-excerpt-xs {
	font-size: 0.8125rem;
	color: var(--gn-text-muted);
	margin: 0;
	line-height: 1.4;
}

.g-read-more {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--gn-accent);
	letter-spacing: 0.05em;
	margin-top: 4px;
}

/* Hero 1 Bands */
.h1-top-row {
	display: grid;
	grid-template-columns: 72% 1fr;
	gap: 20px;
	padding-bottom: 20px;
}

.g-card-horiz-lead {
	display: grid;
	grid-template-columns: 1fr 52%;
	gap: 18px;
	border-right: 1px solid var(--gn-border);
	padding-right: 20px;
	align-items: start;
}

.h1-mid-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--gn-border);
	border-bottom: 1px solid var(--gn-border);
	padding: 16px 0;
	gap: 18px;
}

.g-card-text-only:not(:last-child) {
	border-right: 1px solid var(--gn-border);
	padding-right: 16px;
}

.h1-bot-row {
	display: grid;
	grid-template-columns: 48% 26% 1fr;
	gap: 20px;
	padding-top: 20px;
}

.h1-bot-row > article {
	border-right: 1px solid var(--gn-border);
	padding-right: 18px;
}

.g-stack-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--gn-border);
}

.g-stack-item:first-child { padding-top: 0; }
.g-stack-item:last-child { border-bottom: none; padding-bottom: 0; }

/* Block 1 (50% / 25% / 25%) */
.b1-grid {
	display: grid;
	grid-template-columns: 50% 1fr 1fr;
	gap: 20px;
}

.b1-grid > article:not(:last-child) {
	border-right: 1px solid var(--gn-border);
	padding-right: 18px;
}

/* Block 2 (Combo) */
.b2-bot-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	border-top: 1px solid var(--gn-border);
	padding-top: 20px;
}

.b2-compact-list {
	border-right: 1px solid var(--gn-border);
	padding-right: 20px;
}

.g-compact-item {
	display: grid;
	grid-template-columns: 1fr 110px;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--gn-border);
	align-items: start;
}

.g-compact-item:first-child { padding-top: 0; }
.g-compact-item:last-child { border-bottom: none; }

.g-thumb-compact {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.g-thumb-compact img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.b2-two-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.b2-two-cards > article:first-child {
	border-right: 1px solid var(--gn-border);
	padding-right: 16px;
}

/* Block 3 & 5 (4-Col Grid) */
.b3-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.b3-grid-4 > article:not(:last-child) {
	border-right: 1px solid var(--gn-border);
	padding-right: 18px;
}

/* Block 4 (Mixed 4-Col) */
.b4-bot-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	border-top: 1px solid var(--gn-border);
	padding-top: 20px;
}

.b4-bot-grid > *:not(:last-child) {
	border-right: 1px solid var(--gn-border);
	padding-right: 18px;
}

/* Video Play Overlay */
.g-thumb-video,
.dark-banner-media {
	position: relative;
}

.g-play-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #ffffff;
}

/* Pill CTA Buttons */
.g-cta-row {
	margin-top: 22px;
}

.g-pill-btn-dark {
	display: inline-block;
	background: #000000;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 10px 22px;
	border-radius: 30px;
}

.g-pill-btn-dark:hover {
	background: var(--gn-primary);
	color: #ffffff;
}

.g-pill-btn-yellow {
	display: inline-block;
	background: var(--gn-gold);
	color: #000000;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 10px 22px;
	border-radius: 30px;
}

/* Full-Width Black Dark Spotlight Banner */
.gn-dark-banner-section {
	background-color: #000000;
	color: #ffffff;
	padding: 36px 0;
}

.dark-banner-grid {
	display: grid;
	grid-template-columns: 20% 1fr 40%;
	gap: 28px;
	align-items: center;
}

.dark-brand-title {
	font-family: var(--gn-serif);
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1.05;
	color: #ffffff;
}

.dark-banner-cats a {
	color: var(--gn-gold);
	font-weight: 700;
	font-size: 0.875rem;
}

.dark-banner-title {
	font-family: var(--gn-serif);
	font-size: 1.9rem;
	line-height: 1.18;
	margin: 8px 0 12px;
}

.dark-banner-title a:hover {
	color: var(--gn-gold);
}

.dark-banner-excerpt {
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
}

.dark-banner-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.dark-banner-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Popular 2-Col Ranked + Sidebar Ad */
.guard-popular-split {
	display: grid;
	grid-template-columns: 18% 1fr 25%;
	gap: 24px;
	align-items: start;
}

.guard-popular-main {
	border-left: 1px solid var(--gn-border);
	padding-left: 24px;
}

.popular-2col-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 24px;
}

.popular-rank-item {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--gn-border);
}

.popular-num {
	font-family: var(--gn-serif);
	font-size: 1.75rem;
	font-weight: 700;
	color: #000000;
	min-width: 28px;
}

.popular-link {
	font-family: var(--gn-serif);
	font-weight: 600;
	font-size: 0.96rem;
	line-height: 1.35;
}

.guard-sample-ad-box {
	background: #e0e0e0;
	padding: 28px 20px;
	text-align: center;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.ad-box-brand {
	font-family: var(--gn-serif);
	font-size: 1.5rem;
}

/* Deep Navy Footer Override */
.site-footer {
	background-color: var(--gn-primary);
	color: #ffffff;
}

.footer-widget .widget-title {
	border-top: 2px solid var(--gn-accent);
	border-bottom: none;
	padding-top: 10px;
	padding-bottom: 0;
}

@media (max-width: 1024px) {
	.guard-outer-split,
	.guard-popular-split,
	.dark-banner-grid {
		grid-template-columns: 1fr;
	}
	.guard-sec-main,
	.guard-popular-main {
		border-left: none;
		padding-left: 0;
	}
	.h1-top-row,
	.h1-bot-row,
	.b1-grid,
	.b2-bot-row,
	.b3-grid-4,
	.b4-bot-grid {
		grid-template-columns: 1fr 1fr;
	}
	.g-card-horiz-lead {
		grid-template-columns: 1fr;
		border-right: none;
		padding-right: 0;
	}
}

@media (max-width: 768px) {
	.h1-top-row,
	.h1-mid-strip,
	.h1-bot-row,
	.b1-grid,
	.b2-bot-row,
	.b2-two-cards,
	.b3-grid-4,
	.b4-bot-grid,
	.popular-2col-grid {
		grid-template-columns: 1fr;
	}
	.h1-bot-row > article,
	.b1-grid > article,
	.b2-compact-list,
	.b2-two-cards > article,
	.b3-grid-4 > article,
	.b4-bot-grid > *,
	.g-card-text-only {
		border-right: none !important;
		padding-right: 0 !important;
	}
	.topbar-cta-pill {
		display: none;
	}
}


/* ==========================================================================
   Sidebar Latest Posts Compact Fix, Empty Widget Cleanup & Mobile Polish
   ========================================================================== */
.card-widget:has(.wp-block-group__inner-container:empty),
.card-widget:empty {
	display: none;
}

.sidebar-col .wp-block-latest-posts li,
.guard-popular-sidebar .wp-block-latest-posts li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--gn-border);
	clear: both;
}

.sidebar-col .wp-block-latest-posts li:last-child,
.guard-popular-sidebar .wp-block-latest-posts li:last-child {
	border-bottom: none;
}

.sidebar-col .wp-block-latest-posts__featured-image,
.guard-popular-sidebar .wp-block-latest-posts__featured-image {
	width: 84px !important;
	flex-shrink: 0;
	margin: 0 !important;
}

.sidebar-col .wp-block-latest-posts__featured-image img,
.guard-popular-sidebar .wp-block-latest-posts__featured-image img {
	width: 84px !important;
	height: 58px !important;
	object-fit: cover;
}

.sidebar-col .wp-block-latest-posts__post-title,
.guard-popular-sidebar .wp-block-latest-posts__post-title {
	font-family: var(--gn-serif);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.32;
}

@media (max-width: 768px) {
	/* Prevent duplicate hamburger buttons on mobile */
	.header-navigation-bar .mobile-menu-toggle {
		display: none !important;
	}
	/* Give Breaking News Ticker full readable width on mobile */
	.top-socials {
		display: none;
	}
	.header-top-bar .top-bar-inner {
		gap: 8px;
	}
	.breaking-ticker-wrap {
		min-width: 0;
		flex: 1;
	}
	/* Prevent floating back-to-top from overlapping footer links */
	.footer-bottom-bar {
		padding-bottom: 64px;
	}
	.back-to-top {
		bottom: 14px;
		right: 14px;
	}
}
