/*
Theme Name: Amagdari
Theme URI: https://www.amagdari.ge
Author: Gardiani Saagento
Description: საგანმანათლებლო/სამეცნიერო ახალი ამბების პორტალის თემა amagdari.ge-სთვის — Oxford-ის და Cambridge-ის ოფიციალური ბრენდ-პალიტრების ნაზავი, მუქი ლურჯი საფუძველი.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: amagdari
*/

/* ---------- Variables ----------
   Oxford + Cambridge hybrid palette, built from both universities'
   public brand guidelines:
   - Oxford Blue #002147 — primary navy (header/footer)
   - Cambridge Dark Blue #133844 — secondary navy (nav bar / hover step)
   - Oxford Royal Blue #1D42A6 — link/kicker text + dropdown hover bg
   - Cambridge Warm Blue #00BDB6 — accent stripes, underlines, buttons
   - Oxford Charcoal #211D1C — body text
   - Cambridge Slate #546072 — muted text
   - Oxford Off White #F2F0F0 / Stone Grey #D9D8D6 — alt bg / borders
   - Light blue tint #E6EDF7 — "Explore the University"-style tile sections
   Typography mirrors Oxford's Roboto + Noto Serif pairing via the
   Georgian-script Noto families. */
:root {
	--color-navy-dark: #002147;
	--color-navy: #133844;
	--color-navy-light: #1d42a6;
	--color-accent: #00bdb6;
	--color-accent-dark: #1d42a6;
	--color-text: #211d1c;
	--color-text-muted: #546072;
	--color-bg: #ffffff;
	--color-bg-alt: #f2f0f0;
	--color-bg-tint: #e6edf7;
	--color-border: #d9d8d6;
	--font-heading: "Noto Serif Georgian", "Noto Serif", Georgia, serif;
	--font-body: "Noto Sans Georgian", "Roboto", Arial, sans-serif;
	--container-width: 1200px;
	--reading-width: 960px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.65;
	font-size: 17px;
}

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

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	line-height: 1.25;
	color: var(--color-navy-dark);
	margin: 0 0 0.5em;
}

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

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

/* ---------- Minimal scroll-reveal (see assets/js/main.js) ---------- */
.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-revealed {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
	position: absolute;
	top: -60px;
	left: 0;
	z-index: 1000;
	background: var(--color-navy-dark);
	color: #fff;
	padding: 12px 20px;
	font-weight: 600;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 0;
	position: fixed;
}

/* ---------- Utility bar (Oxford-style top strip above the logo) ---------- */
.utility-bar {
	background: var(--color-bg-alt);
	border-bottom: 1px solid var(--color-border);
	font-size: 13px;
}

.utility-bar-inner {
	display: flex;
	justify-content: flex-end;
}

.utility-menu {
	display: flex;
	flex-wrap: wrap;
}

.utility-menu a {
	display: block;
	padding: 9px 14px;
	color: var(--color-text-muted);
	font-weight: 600;
}

.utility-menu a:hover {
	color: var(--color-accent-dark);
}

/* ---------- Site Header ---------- */
.site-header {
	background: var(--color-navy-dark);
	color: #fff;
	position: relative;
	z-index: 100;
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 0;
	max-width: var(--container-width);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.site-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: 1px solid rgba(255,255,255,0.4);
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.search-toggle-icon {
	width: 19px;
	height: 19px;
	display: inline-flex;
}

.site-search-panel {
	max-height: 0;
	overflow: hidden;
	background: var(--color-navy);
	transition: max-height 0.2s ease;
}

.site-search-panel.is-open {
	max-height: 120px;
}

.site-search-panel .container {
	padding-top: 18px;
	padding-bottom: 18px;
}

.site-search-form {
	display: flex;
	max-width: 560px;
}

.site-search-field {
	flex: 1 1 auto;
	padding: 12px 16px;
	border: 1px solid transparent;
	font-family: var(--font-body);
	font-size: 15px;
}

.site-search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	background: var(--color-accent);
	color: #fff;
	border: none;
	cursor: pointer;
}

.site-search-submit svg {
	width: 18px;
	height: 18px;
}

.site-logo {
	font-family: var(--font-heading);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #fff;
}

.site-logo a {
	color: #fff;
}

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(255,255,255,0.4);
	color: #fff;
	padding: 8px 12px;
	font-size: 15px;
	cursor: pointer;
	border-radius: 4px;
}

/* ---------- Primary Navigation ---------- */
.primary-navigation {
	background: var(--color-navy);
	border-top: 1px solid rgba(255,255,255,0.08);
	border-bottom: 3px solid var(--color-accent);
}

.primary-navigation .container {
	max-width: var(--container-width);
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
}

.primary-menu > li {
	position: relative;
}

.primary-menu > li > a {
	display: block;
	padding: 15px 18px;
	color: #dfe8f5;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.primary-menu > li > a:hover,
.primary-menu > li.active > a,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
	background: var(--color-navy-light);
	color: #fff;
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	width: max-content;
	max-width: 360px;
	grid-template-columns: repeat(2, minmax(130px, 1fr));
	gap: 8px;
	background: var(--color-navy-dark);
	box-shadow: 0 8px 20px rgba(0,0,0,0.25);
	display: none;
	padding: 12px;
	z-index: 200;
	border-radius: 4px;
}

.primary-menu li.menu-item-has-children:hover > .sub-menu,
.primary-menu li.menu-item-has-children.open > .sub-menu {
	display: grid;
}

.primary-menu .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 64px;
	padding: 10px 12px;
	background: linear-gradient(155deg, var(--color-navy) 0%, var(--color-navy-light) 70%, var(--color-accent-dark) 140%);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	border-radius: 4px;
	transition: transform 0.15s ease, background 0.15s ease;
}

.primary-menu .sub-menu a:hover {
	background: var(--color-accent);
	color: #fff;
	transform: translateY(-2px);
}

.menu-item-has-children > a::after {
	content: "▾";
	font-size: 10px;
	margin-left: 6px;
	opacity: 0.75;
}

/* ---------- Hero / Lead story slider ---------- */
.lead-story {
	position: relative;
	margin-bottom: 48px;
}

.hero-slider-photos {
	position: relative;
	width: 100%;
	height: 78vh;
	min-height: 480px;
	max-height: 760px;
	overflow: hidden;
	background: linear-gradient(155deg, var(--color-navy-dark) 0%, var(--color-navy-light) 60%, var(--color-accent-dark) 130%);
}

.hero-slide-photo-link {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease;
}

.hero-slide-photo-link.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.hero-slide-photo-link .lead-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0,0,0,0.35);
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.hero-slider-arrow:hover {
	background: rgba(0,0,0,0.55);
}

.hero-slider-prev { left: 20px; }
.hero-slider-next { right: 20px; }

.lead-story .lead-body {
	max-width: var(--reading-width);
	margin: 24px auto 0;
	position: relative;
	background: #fff;
	padding: 28px 32px;
	border: 1px solid var(--color-border);
}

.hero-slide-text {
	display: none;
}

.hero-slide-text.is-active {
	display: block;
	animation: heroFadeUp 0.5s ease;
}

.lead-story .lead-body .kicker {
	color: var(--color-accent-dark);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.lead-story .lead-body h2 {
	font-size: 34px;
	margin: 10px 0 14px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.lead-story .lead-body p {
	color: var(--color-text-muted);
	font-size: 17px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.hero-slider-dots {
	display: flex;
	gap: 8px;
	margin-top: 18px;
}

.hero-slider-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--color-border);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, transform 0.15s ease;
}

.hero-slider-dot.is-active {
	background: var(--color-accent-dark);
	transform: scale(1.3);
}

@keyframes heroFadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 782px) {
	.hero-slider-photos {
		height: 52vh;
		min-height: 320px;
		max-height: 460px;
	}
	.lead-story .lead-body {
		padding: 20px 20px;
	}
	.lead-story .lead-body h2 {
		font-size: 26px;
	}
	.hero-slider-arrow {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-slide-photo-link,
	.hero-slide-text.is-active {
		transition: none;
		animation: none;
	}
}

/* ---------- Featured banner (photo + big title split, below hero) ---------- */
.featured-banner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 60vh;
	margin-bottom: 48px;
}

.featured-banner-photo {
	display: block;
	overflow: hidden;
}

.featured-banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.featured-banner-img--placeholder {
	background: linear-gradient(155deg, var(--color-navy-dark) 0%, var(--color-navy-light) 60%, var(--color-accent-dark) 130%);
}

.featured-banner-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	background: var(--color-navy-dark);
	color: #fff;
	padding: 60px;
}

.featured-banner-text .kicker {
	color: var(--color-accent);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.featured-banner-text h2 {
	font-size: 48px;
	line-height: 1.15;
	margin: 0;
}

.featured-banner-text h2 a {
	color: #fff;
}

@media (max-width: 900px) {
	.featured-banner {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.featured-banner-photo {
		height: 320px;
	}
	.featured-banner-text {
		padding: 32px 24px;
	}
	.featured-banner-text h2 {
		font-size: 30px;
	}
}

/* ---------- Article grid (home / archive) ---------- */
.article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-bottom: 48px;
}

.article-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.article-card .card-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.article-card .card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	padding: 18px 20px 22px;
}

.article-card .kicker {
	color: var(--color-accent-dark);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.article-card h3 {
	font-size: 19px;
	margin: 8px 0 8px;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.article-card .card-excerpt {
	color: var(--color-text-muted);
	font-size: 14.5px;
	margin: 0;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.article-card .card-meta {
	margin-top: auto;
	padding-top: 10px;
	font-size: 12.5px;
	color: var(--color-text-muted);
	opacity: 0.85;
}

@media (max-width: 992px) {
	.article-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.article-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Section titles ---------- */
.section-title {
	font-size: 22px;
	border-bottom: 3px solid var(--color-accent);
	padding-bottom: 10px;
	margin-bottom: 28px;
	display: inline-block;
}

/* ---------- Category tile grid (homepage rubrics showcase) ---------- */
.category-showcase {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 52px;
}

.category-tile {
	position: relative;
	display: block;
	min-width: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-navy);
}

.category-tile .tile-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.category-tile:hover .tile-photo {
	transform: scale(1.05);
}

.category-tile .tile-photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(155deg, var(--color-navy-dark) 0%, var(--color-navy-light) 60%, var(--color-accent-dark) 130%);
}

.category-tile .tile-photo--placeholder span {
	font-family: var(--font-heading);
	font-size: 64px;
	color: rgba(255, 255, 255, 0.85);
}

.category-tile .tile-label {
	position: absolute;
	left: 14px;
	bottom: 14px;
	max-width: calc(100% - 28px);
	background: rgba(7, 26, 51, 0.82);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	padding: 8px 14px;
	line-height: 1.3;
}

@media (max-width: 992px) {
	.category-showcase {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.category-showcase {
		grid-template-columns: 1fr;
	}
}

/* ---------- News showcase ("Explore the University" tile-grid style) ---------- */
.news-showcase-section {
	background: var(--color-bg-tint);
	padding: 52px 0;
	margin-bottom: 52px;
}

.news-showcase-section--plain {
	background: var(--color-bg);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.news-showcase-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.news-showcase-title {
	font-size: 32px;
	margin: 0;
}

.pill-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	border: 1.5px solid var(--color-accent-dark);
	color: var(--color-accent-dark);
	font-family: var(--font-body);
	font-size: 14.5px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.pill-link:hover {
	background: var(--color-accent-dark);
	color: #fff;
}

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

.news-showcase-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
}

.news-showcase-photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 16px;
	transition: box-shadow 0.2s ease;
}

.news-showcase-item:hover .news-showcase-photo {
	box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.news-showcase-photo--placeholder {
	display: block;
	background: linear-gradient(155deg, var(--color-navy-dark) 0%, var(--color-navy-light) 60%, var(--color-accent-dark) 130%);
}

.news-showcase-item-title {
	font-size: 20px;
	color: var(--color-navy-dark);
	margin: 0 0 8px;
	overflow-wrap: anywhere;
	transition: color 0.15s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-showcase-item:hover .news-showcase-item-title {
	color: var(--color-accent-dark);
}

.news-showcase-item-desc {
	color: var(--color-text-muted);
	font-size: 14.5px;
	margin: auto 0 0;
	padding-top: 4px;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 992px) {
	.news-showcase-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.news-showcase-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.news-showcase-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Featured article + social spotlight block ---------- */
.spotlight-section {
	background: var(--color-bg-alt);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	padding: 48px 0;
	margin-bottom: 48px;
}

.spotlight-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.spotlight-col {
	min-width: 0;
}

.spotlight-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--color-navy);
}

.spotlight-photo,
.spotlight-photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.spotlight-social-icon {
	width: 46px;
	height: 46px;
	color: rgba(255, 255, 255, 0.85);
}

.spotlight-social-badge {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(7, 26, 51, 0.82);
	color: #fff;
	border-radius: 50%;
}

.spotlight-social-badge svg {
	width: 18px;
	height: 18px;
}

.spotlight-caption {
	margin-top: 14px;
	color: var(--color-text-muted);
	font-size: 14.5px;
}

.spotlight-caption--empty {
	font-style: italic;
	opacity: 0.75;
}

@media (max-width: 782px) {
	.spotlight-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* ---------- Single article ---------- */
.single-article {
	padding-bottom: 60px;
}

.article-header {
	max-width: var(--reading-width);
	margin: 40px auto 24px;
	padding: 0 24px;
	text-align: left;
}

.article-header .kicker {
	color: var(--color-accent-dark);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.article-header h1 {
	font-size: 38px;
	margin: 12px 0 14px;
}

.article-meta {
	color: var(--color-text-muted);
	font-size: 14px;
}

.share-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
}

.share-label {
	color: var(--color-text-muted);
	font-size: 13px;
	font-weight: 600;
}

.share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	color: var(--color-navy-dark);
	background: none;
	padding: 0;
	cursor: pointer;
	position: relative;
}

.share-link svg {
	width: 16px;
	height: 16px;
}

.share-link:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}

.share-copy-feedback {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--color-navy-dark);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.share-link--copy.is-copied .share-copy-feedback {
	opacity: 1;
}

.article-hero-photo {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	height: 55vh;
	min-height: 380px;
	max-height: 640px;
	object-fit: cover;
	margin-bottom: 40px;
}

.entry-content {
	max-width: var(--reading-width);
	margin: 0 auto;
	padding: 0 24px;
	font-size: 18.5px;
}

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

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
}

/* full-bleed in-content images — enlarged automatically, no click needed;
   clicking still opens the lightbox below for a distraction-free view
   and to browse the other photos in the post via the arrows. */
.entry-content img,
.entry-content figure {
	width: calc(100vw - 40px);
	max-width: calc(100vw - 40px);
	margin-left: calc(50% - 50vw + 20px);
	margin-right: calc(50% - 50vw + 20px);
	margin-top: 2em;
	margin-bottom: 2em;
}

.entry-content img {
	display: block;
	cursor: zoom-in;
}

.entry-content figure img {
	width: 100%;
	margin: 0;
}

.entry-content figcaption {
	max-width: var(--reading-width);
	margin: 10px auto 0;
	padding: 0 24px;
	font-size: 13.5px;
	color: var(--color-text-muted);
	text-align: center;
}

/* ---------- In-content image lightbox ---------- */
.lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
	z-index: 1000;
}

.lightbox-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.lightbox-image {
	max-width: 90vw;
	max-height: 88vh;
	object-fit: contain;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.lightbox-close:hover {
	background: var(--color-accent);
}

.lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: none;
	font-size: 26px;
	cursor: pointer;
}

.lightbox-arrow:hover {
	background: var(--color-accent);
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

.lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 13px;
	font-family: var(--font-body);
}

body.lightbox-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.lightbox-arrow {
		width: 38px;
		height: 38px;
		font-size: 20px;
	}
}

/* ---------- Related articles ---------- */
.related-articles {
	max-width: var(--container-width);
	margin: 20px auto 0;
	padding: 40px 24px 0;
	border-top: 1px solid var(--color-border);
}

/* ---------- Site footer ---------- */
.site-footer {
	background: var(--color-navy-dark);
	color: #c6d3e3;
	margin-top: 60px;
	font-size: 14px;
}

.site-footer a:hover {
	color: #fff;
}

.footer-columns {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 32px;
	padding: 48px 24px;
}

.footer-site-name {
	display: block;
	font-family: var(--font-heading);
	font-size: 20px;
	color: #fff;
	margin-bottom: 10px;
}

.footer-about p {
	margin: 0 0 16px;
	color: #c6d3e3;
}

.footer-social-list {
	display: flex;
	gap: 10px;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 50%;
	color: #fff;
}

.footer-social-link svg {
	width: 17px;
	height: 17px;
}

.footer-social-link:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
}

.footer-widgets h4 {
	color: #fff;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 14px;
}

.footer-widgets ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-widgets a {
	color: #c6d3e3;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 18px 24px;
	font-size: 13px;
}

.footer-copyright {
	margin: 0;
	color: #9fb0c7;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

@media (max-width: 992px) {
	.footer-columns {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.footer-columns {
		grid-template-columns: 1fr;
	}
}

/* ---------- Responsive nav toggle ---------- */
@media (max-width: 900px) {
	.menu-toggle {
		display: inline-block;
	}
	.primary-navigation {
		display: none;
	}
	.primary-navigation.is-open {
		display: block;
	}
	.primary-menu {
		flex-direction: column;
	}
	.primary-menu .sub-menu {
		position: static;
		width: auto;
		max-width: none;
		box-shadow: none;
		display: none;
	}
	.primary-menu li.menu-item-has-children.open > .sub-menu {
		display: grid;
	}
	.article-hero-photo {
		height: 40vh;
		min-height: 260px;
	}
}
