/*
Theme Name:  VMag Child
Theme URI:   https://kmcss.kyiv.ua
Description: Дочірня тема для VMag — Київський міський центр соціальних служб
Author:      KMCSS
Template:    vmag
Version:     1.0.0
Text Domain: vmag-child
*/

/* ─── SELF-HOSTED FONTS ──────────────────────────────────────────────────── */

/* Inter variable font — cyrillic-ext */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/inter-cyrillic-ext.woff2') format('woff2');
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Inter variable font — cyrillic */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/inter-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter variable font — latin-ext */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/inter-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter variable font — latin */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── GLOBAL RESET ───────────────────────────────────────────────────────── */

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.btn {
	box-shadow: none;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	box-shadow: none;
}

button:focus,
button:focus-visible,
input[type="button"]:focus,
input[type="button"]:focus-visible,
input[type="reset"]:focus,
input[type="reset"]:focus-visible,
input[type="submit"]:focus,
input[type="submit"]:focus-visible,
.button:focus,
.btn:focus {
	box-shadow: none;
}

.left-sidebar #primary {
	float: initial;
}

.site-content {
	padding: 0;
}

#primary {
	width: 100%;
	float: none;
	padding: 0;
}

/* ─── BASE ───────────────────────────────────────────────────────────────── */

body {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
}

.entry-content p,
.site-main .page-content p {
	margin: 0 0 1em;
}

.entry-content p:last-child,
.site-main .page-content p:last-child {
	margin-bottom: 0;
}

.entry-content ul,
.site-main .page-content ul {
	list-style: disc;
	margin: 0 0 1em 1.5em;
	padding: 0;
}

.entry-content ol,
.site-main .page-content ol {
	list-style: decimal;
	margin: 0 0 1em 1.5em;
	padding: 0;
}

.entry-content li,
.site-main .page-content li {
	margin-bottom: 6px;
	line-height: 1.6;
}

.entry-content li > ul,
.entry-content li > ol,
.site-main .page-content li > ul,
.site-main .page-content li > ol {
	margin-top: 6px;
	margin-bottom: 0;
}

.entry-content a,
.site-main .page-content a {
	color: #2C3582;
	text-decoration: underline;
}

.entry-content a:hover,
.site-main .page-content a:hover {
	color: #2C3582;
	text-decoration: none;
}

.vmag-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */

.site-header {
	background-color: #2C3582;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Mobile: burger | logo | contacts */
.header-inner {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: 8px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 10px 16px;
	box-sizing: border-box;
}

.header-logo {
	order: 2;
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.header-logo img {
	width: 86px;
	height: 86px;
	object-fit: contain;
	flex-shrink: 0;
}

.header-logo-text {
	color: #FEFEF4;
	font-size: 14px;
	line-height: 1.3;
	text-transform: uppercase;
}

.bvi-shortcode {
	padding: 0 !important;
	height: 32px;
	width: 36px;
	overflow: hidden;
}

.header-phone {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #FEFEF4;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.header-phone:hover {
	text-decoration: underline;
	color: #FEFEF4;
}

.header-phone-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Nav — mobile: order 1, shrink to burger size */
.header-nav {
	order: 1;
	flex: 0 0 auto;
	display: flex;
}

/* Right block — mobile */
.header-right {
	order: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
}

.header-contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

/* CTA — hidden on mobile */
.btn-contact {
	display: none;
}

/* Burger — visible on mobile */
.nav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid #FEFEF4;
	border-radius: 6px;
	box-shadow: none;
	cursor: pointer;
	padding: 0;
	color: #FEFEF4;
	flex-shrink: 0;
	transition: background 0.2s;
}

.nav-toggle:hover {
	background: rgba(255, 255, 255, 0.12);
	box-shadow: none;
}

.nav-toggle:focus-visible {
	outline: 1px solid #FBE822;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.header-logo-text {
		font-size: 12px;
	}

	.header-logo img {
		width: 70px;
		height: 70px;
	}
}

@media (min-width: 1024px) {
	.header-inner {
		padding: 12px 16px;
		gap: 16px;
	}

	.header-logo {
		order: 0;
	}

	.header-logo-text {
		font-size: 10px;
	}

	.header-nav {
		order: 0;
		flex: 1;
		justify-content: center;
		min-width: 0;
	}

	.header-right {
		order: 0;
		flex: 0 0 auto;
		align-items: center;
	}

	.bvi-shortcode {
		width: auto;
		height: auto;
		overflow: visible;
	}

	.header-phone {
		line-height: 32px;
	}

	.header-phone-icon {
		width: 26px;
		height: 26px;
	}

	.header-phone-text {
		position: static;
		width: auto;
		height: auto;
		padding: 0;
		margin: 0;
		overflow: visible;
		clip: auto;
		white-space: normal;
		display: inline;
	}

	.btn-contact {
		display: inline-block;
		padding: 9px 18px;
		background-color: #FBE822;
		color: #2C3582;
		font-size: 14px;
		font-weight: 700;
		text-decoration: none;
		border-radius: 6px;
		white-space: nowrap;
		transition: background 0.2s, color 0.2s;
	}

	.btn-contact:hover {
		background-color: #F9F499;
		color: #2C3582;
	}

	.nav-toggle {
		display: none;
	}
}

@media (min-width: 1080px) {
	.header-logo-text {
		font-size: 14px;
	}
}

@media (min-width: 1320px) {
	.header-right {
		gap: 12px;
		flex-direction: row;
	}
}

/* ─── OVERLAY ────────────────────────────────────────────────────────────── */

.nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	cursor: pointer;
}

.nav-overlay.nav-overlay-active {
	display: block;
}

/* ─── NAV / DRAWER ───────────────────────────────────────────────────────── */

/* Mobile + tablet: slide-in drawer */
#nav-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: min(360px, 90vw);
	height: 100vh;
	height: 100dvh;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	background: #2C3582;
	z-index: 9999;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: block;
}

#nav-wrapper.nav-drawer-open {
	transform: translateX(0);
}

/* WordPress admin bar: 46px on ≤782px */
.admin-bar #nav-wrapper {
	top: 46px;
	height: calc(100vh - 46px);
	height: calc(100dvh - 46px);
}

body.nav-is-open {
	overflow: hidden;
}

/* Drawer top bar */
.nav-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	position: sticky;
	top: 0;
	z-index: 3;
	background: #2C3582;
}

.nav-drawer-title {
	color: #FEFEF4;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.nav-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	color: #FEFEF4;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.15s;
	flex-shrink: 0;
}

.nav-close:hover {
	background: rgba(255, 255, 255, 0.12);
}

.nav-close:focus-visible {
	outline: 2px solid #FBE822;
	outline-offset: 2px;
}

/* Root panel */
#nav-wrapper #primary-menu {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 0 0 32px;
	gap: 0;
}

/* Sub-panels (JS moves .sub-menu here as .nav-panel) */
#nav-wrapper > .nav-panel {
	display: none;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 0 0 32px;
}

#nav-wrapper > .nav-panel.nav-panel-active {
	display: flex;
}

#nav-wrapper > #primary-menu.nav-panel-out {
	display: none;
}

/* Menu items */
#nav-wrapper .menu-item {
	position: static;
}

#nav-wrapper .menu-item-has-children {
	display: flex;
	align-items: stretch;
}

#nav-wrapper .menu-item-has-children > a {
	flex: 1;
}

#nav-wrapper .menu-item > a {
	display: block;
	padding: 14px 20px;
	color: #FEFEF4;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: background 0.15s;
	border-radius: 0 !important;
}

#nav-wrapper .menu-item > a:hover {
	background: rgba(255, 255, 255, 0.08);
}

#nav-wrapper .current-menu-item > a,
#nav-wrapper .current-menu-ancestor > a,
#nav-wrapper .current-menu-parent > a {
	background: rgba(255, 255, 255, 0.15);
}

#nav-wrapper .menu-item > a:focus-visible {
	outline: 2px solid #FBE822;
	outline-offset: -2px;
}

/* Arrow button */
.nav-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	border-left: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	color: #FEFEF4;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s;
}

.nav-arrow:hover {
	background: rgba(255, 255, 255, 0.1);
}

.nav-arrow:focus-visible {
	outline: 2px solid #FBE822;
	outline-offset: -2px;
}

/* Back button */
.nav-back-item {
	display: block;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	margin-bottom: 4px;
}

.nav-back {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 15px 20px;
	background: rgba(0, 0, 0, 0.2);
	border: none;
	color: #FEFEF4;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s;
}

.nav-back:hover {
	background: rgba(0, 0, 0, 0.3);
	box-shadow: none;
}

.nav-back:focus-visible {
	outline: 2px solid #FBE822;
	outline-offset: -2px;
}

.nav-wrapper .current-menu-item a:before,
.nav-wrapper .current-menu-ancestor a:before {
	display: none;
}

/* WordPress admin bar: 32px on ≥783px (where drawer is still active) */
@media (min-width: 783px) {
	.admin-bar #nav-wrapper {
		top: 32px;
		height: calc(100vh - 32px);
		height: calc(100dvh - 32px);
	}
}

/* Desktop: reset drawer → inline horizontal nav */
@media (min-width: 1024px) {
	.admin-bar #nav-wrapper {
		height: auto;
	}

	#nav-wrapper {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		background: transparent;
		z-index: auto;
		transform: none;
		transition: none;
	}

	.nav-drawer-header {
		display: none;
	}

	.nav-arrow {
		display: none;
	}

	.nav-back-item {
		display: none;
	}

	#nav-wrapper #primary-menu {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		padding: 0;
		gap: 4px;
	}

	#nav-wrapper .menu-item-has-children {
		display: block;
	}

	#nav-wrapper .menu-item-has-children > a {
		flex: none;
	}

	#nav-wrapper #primary-menu > li > a {
		padding: 8px;
		font-size: 14px;
		font-weight: 500;
		border-bottom: none;
		border-radius: 4px !important;
		transition: background 0.2s;
	}

	#nav-wrapper #primary-menu > li > a:hover,
	#nav-wrapper #primary-menu > li.current-menu-item > a,
	#nav-wrapper #primary-menu > li.current-menu-ancestor > a,
	#nav-wrapper #primary-menu > li.current-menu-parent > a {
		background-color: rgba(255, 255, 255, 0.15);
	}

	/* Dropdown panels */
	#nav-wrapper > .nav-panel {
		display: none;
		position: fixed;
		background: #2C3582;
		min-width: 240px;
		list-style: none;
		margin: 0;
		padding: 6px 0;
		box-shadow: 0 6px 20px rgba(0,0,0,0.3);
		border-radius: 4px;
		z-index: 10000;
	}

	#nav-wrapper > .nav-panel.desktop-open {
		display: block;
	}

	/* Mega menu: 2 columns for panels with many items */
	#nav-wrapper > .nav-panel--mega.desktop-open {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		min-width: 460px;
		padding: 6px;
		gap: 0;
	}

	#nav-wrapper > .nav-panel--mega > li {
		break-inside: avoid;
	}

	#nav-wrapper > .nav-panel > li > a {
		padding: 9px 16px;
		font-size: 13px;
		border-bottom: none;
		border-radius: 0 !important;
		font-weight: 400;
	}

	#nav-wrapper > .nav-panel > li > a:hover {
		background-color: rgba(255, 255, 255, 0.15);
	}
}

@media (min-width: 1300px) {
	#nav-wrapper #primary-menu > li > a {
		padding: 8px 16px;
	}
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */

.hero {
	background: #F5F9FD;
	padding: 16px 0;
	overflow: hidden;
}

/* Mobile: stacked */
.hero-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 0;
}

.hero-content {
	width: 100%;
	padding-bottom: 0;
	padding-inline: 16px;
}

.hero-title {
	font-size: 28px;
	font-weight: 700;
	color: #2C3582;
	line-height: 1.2;
	margin: 0 0 24px;
}

.hero-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 100%;
}

.hero-link {
	display: block;
	padding: 11px 24px;
	border: 2px solid #2C3582;
	border-radius: 30px;
	color: #2C3582;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.hero-link:hover {
	background: #2C3582;
	color: #FEFEF4;
}

.hero-link--filled {
	background: #2C3582;
	color: #FEFEF4;
}

.hero-link--filled:hover {
	background: #3e4dd2;
}

.hero-media {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.hero-photo {
	border-radius: 90px 36px 36px 36px;
	overflow: hidden;
	margin: 0 auto;
}

.hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.hero-photo-placeholder {
	width: 100%;
	height: 100%;
	min-height: 400px;
}

.hero-infobar {
	position: relative;
	bottom: auto;
	right: auto;
	background: #C4DDF9;
	border-radius: 12px;
	padding: 16px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	max-width: 100%;
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
	margin: 16px 16px 0;
}

.hero-infobar-icon {
	color: #2C3582;
	flex-shrink: 0;
}

.hero-infobar-phone {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hero-infobar-label {
	font-size: 16px;
	color: #555;
}

.hero-infobar-number {
	font-size: 18px;
	font-weight: 700;
	color: #2C3582;
	text-decoration: none;
}

.hero-infobar-number:hover {
	text-decoration: underline;
}

.hero-infobar-hours {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 16px;
	font-weight: 700;
	color: #2C3582;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.hero-infobar-icon svg {
		width: 24px;
		height: 24px;
	}

	.hero-infobar {
		padding: 16px;
	}

	.hero-infobar-label,
	.hero-infobar-number,
	.hero-infobar-hours {
		font-size: 13px;
	}

	.hero-photo img {
		transform: scale(1.2);
	}
}

@media (min-width: 768px) {
	.hero {
		padding: 0;
	}

	.hero-inner {
		flex-direction: row;
		align-items: center;
		gap: 0;
		justify-content: space-between;
	}

	.hero-media {
		padding: 0;
	}

	.hero-photo {
		border-radius: 50% 0 0 50%;
		width: 100%;
		height: 440px;
	}

	.hero-title {
		font-size: 36px;
		margin-bottom: 40px;
	}

	.hero-links {
		max-width: 320px;
	}

	.hero-infobar {
		position: absolute;
		bottom: 16px;
		right: 16px;
		max-width: 330px;
		gap: 8px;
		padding: 16px;
		margin: 0;
	}

	.hero-infobar-icon svg {
		width: 24px;
		height: 24px;
	}

	.hero-infobar-label,
	.hero-infobar-number,
	.hero-infobar-hours {
		font-size: 13px;
	}
}

@media (min-width: 1024px) {
	.hero-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.hero-content {
		width: auto;
	}

	.hero-title {
		font-size: 48px;
	}

	.hero-media {
		align-self: stretch;
		height: 540px;
		width: 55%;
		padding-bottom: 0;
	}

	.hero-photo {
		border-radius: 50% 0 0 50%;
		max-width: 100%;
		margin: 0;
		width: 100%;
		height: 100%;
	}

	.hero-infobar {
		position: absolute;
		bottom: 24px;
		right: 24px;
		max-width: 470px;
		gap: 24px;
		padding: 16px 24px;
		margin-top: 0;
	}

	.hero-infobar-icon svg {
		width: 56px;
		height: 56px;
	}

	.hero-infobar-label,
	.hero-infobar-number,
	.hero-infobar-hours {
		font-size: 16px;
	}

	.hero-infobar-hours {
		padding-left: 0;
	}
}

@media (min-width: 1200px) {
	.hero-media {
		height: 640px;
		width: 100%;
		max-width: 800px;
	}

	.hero-title {
		font-size: clamp(48px, 4vw, 72px);
	}

	.hero-link {
		font-size: clamp(16px, 4vw, 18px);
	}
}

@media (min-width: 1440px) {
	.hero-inner {
		padding-left: calc((100vw - 1400px) / 2 + 80px);
	}

	.hero-media {
		height: 740px;
		width: 100%;
		max-width: 900px;
	}
}

/* ─── BREADCRUMBS ────────────────────────────────────────────────────────── */

.vmag-breadcrumbs {
	padding: 16px 0 20px;
	font-size: 14px;
	color: #767676;
}

.vmag-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.vmag-breadcrumbs li {
	display: flex;
	align-items: center;
}

.vmag-breadcrumbs li + li::before {
	content: "›";
	margin-right: 4px;
	color: #999;
}

.vmag-breadcrumbs a {
	color: #767676;
	text-decoration: none;
}

.vmag-breadcrumbs a:hover {
	text-decoration: underline;
}

.vmag-breadcrumbs a:focus-visible {
	outline: 2px solid #2C3582;
	outline-offset: 2px;
	border-radius: 2px;
}

.vmag-breadcrumbs [aria-current="page"] {
	color: #767676;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────── */

/* Override parent theme entry-header spacing */
#primary .entry-header {
	margin-bottom: 32px;
}

@media (min-width: 1024px) {
	#primary .entry-header {
		margin-bottom: 40px;
	}
}

/* H1 — page/post title */
.entry-title {
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 700;
	color: #2C3582;
	line-height: 1.2;
	margin: 0 0 8px;
}

.entry-title::after {
	content: '';
	display: block;
	width: 120px;
	height: 3px;
	background: linear-gradient(to right, #C8960A 30%, transparent);
	margin-top: 12px;
}

/* Override parent theme high-specificity title link rules */
.archive #primary h3.entry-title a,
.single #primary h2.entry-title a {
	color: #2C3582;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	text-decoration: none;
}

.archive #primary h3.entry-title a:hover,
.single #primary h2.entry-title a:hover {
	color: #2C3582;
	text-decoration: underline;
}

/* H3 — section headings on pages */
.entry-content h2 {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	color: #2C3582;
	line-height: 1.3;
	margin: 32px 0 12px;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h3 {
	font-size: clamp(20px, 2.5vw, 28px);
	font-weight: 700;
	color: #2C3582;
	line-height: 1.3;
	margin: 20px 0 8px;
}

.entry-content h3::after {
	content: '';
	display: block;
	width: 100px;
	height: 3px;
	background: linear-gradient(to right, #C8960A 30%, transparent);
	margin-top: 8px;
	margin-bottom: 16px;
}

.entry-content h4 {
	font-size: clamp(17px, 2vw, 22px);
	font-weight: 700;
	color: #2C3582;
	line-height: 1.4;
	margin: 20px 0 8px;
}

.entry-content h5 {
	font-size: 17px;
	font-weight: 600;
	color: #333333;
	line-height: 1.4;
	margin: 16px 0 6px;
}

.entry-content h6 {
	font-size: 15px;
	font-weight: 600;
	color: #555555;
	line-height: 1.4;
	margin: 14px 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* По центру — полоска центрується і розмивається в обидва боки */
.entry-content h3.has-text-align-center::after {
	margin-left: auto;
	margin-right: auto;
	background: linear-gradient(to right, transparent, #C8960A 30%, #C8960A 70%, transparent);
}

/* Праворуч — полоска притягується до правого краю і розмивається ліворуч */
.entry-content h3.has-text-align-right::after {
	margin-left: auto;
	margin-right: 0;
	background: linear-gradient(to left, #C8960A 30%, transparent);
}

/* ─── ENTRY META ─────────────────────────────────────────────────────────── */

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 20px;
	margin-bottom: 24px;
	font-size: 14px;
	color: #767676;

	&::before {
		display: none;
	}
}

.entry-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 0;
}

/* Links */
.entry-meta a {
	color: #555;
	font-size: 14px;
	text-decoration: none;
	transition: color 0.15s;
}

.entry-meta a:hover {
	color: #2C3582;
}

/* Hide duplicate .updated time */
.entry-meta .updated {
	display: none;
}

/* Reset FontAwesome :before from parent theme */
article .entry-meta .posted-on a::before,
article .entry-meta .post-author a::before,
.entry-meta .cat-links::before {
	font-family: inherit;
	content: '';
	position: static;
	display: inline-block;
	width: 14px;
	height: 14px;
	vertical-align: middle;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	flex-shrink: 0;
}

/* Author icon — person SVG */
article .entry-meta .post-author a {
	padding-left: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

article .entry-meta .post-author a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='5' r='3' stroke='%23767676' stroke-width='1.5'/%3E%3Cpath d='M2 14c0-3.314 2.686-5 6-5s6 1.686 6 5' stroke='%23767676' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Date icon — calendar SVG */
article .entry-meta .posted-on a {
	padding-left: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

article .entry-meta .posted-on a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='1.5' y='3' width='13' height='11' rx='1.5' stroke='%23767676' stroke-width='1.5'/%3E%3Cpath d='M1.5 7h13' stroke='%23767676' stroke-width='1.5'/%3E%3Cpath d='M5 1.5V4M11 1.5V4' stroke='%23767676' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Category icon — tag SVG */
.entry-meta .cat-links {
	padding-left: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.entry-meta .cat-links::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2 2h5.5l6.5 6.5-5.5 5.5L2 7.5V2z' stroke='%23767676' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='5' cy='5' r='1' fill='%23767676'/%3E%3C/svg%3E");
}

/* ─── POST NAVIGATION ────────────────────────────────────────────────────── */

.post-navigation {
	margin: 48px 0 32px;
}

/* Reset parent theme float/table layout */
.post-navigation .nav-links {
	display: flex;
	gap: 16px;
	border: none;
	padding: 0;
	overflow: visible;
	width: auto;
	margin: 0;
}

.post-navigation .nav-links .nav-previous,
.post-navigation .nav-links .nav-next {
	flex: 1;
	float: none;
	width: auto;
	padding: 0;
	border: none;
	text-align: left;
}

/* Cards */
.post-navigation .nav-links .nav-previous a,
.post-navigation .nav-links .nav-next a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 20px;
	border: 1px solid #D0D5E8;
	border-radius: 6px;
	color: #2C3582;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	height: 100%;
	box-sizing: border-box;
	float: none;
	width: auto;
	position: static;
}

.post-navigation .nav-links .nav-previous a:hover,
.post-navigation .nav-links .nav-next a:hover {
	background: #2C3582;
	border-color: #2C3582;
	color: #FEFEF4;
}

/* Direction labels via ::before — reset FA, add text */
.post-navigation .nav-links .nav-previous a::before,
.post-navigation .nav-links .nav-next a::before {
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #767676;
	position: static;
	transform: none;
	left: auto;
	right: auto;
	top: auto;
}

.post-navigation .nav-links .nav-previous a::before {
	content: '← Попередня';
}

.post-navigation .nav-links .nav-next a::before {
	content: 'Наступна →';
}

.post-navigation .nav-links .nav-previous a:hover::before,
.post-navigation .nav-links .nav-next a:hover::before {
	color: rgba(254, 254, 244, 0.7);
}

@media (max-width: 767px) {
	.post-navigation .nav-links {
		flex-direction: column;
	}
}

/* ─── AUTHOR BOX ─────────────────────────────────────────────────────────── */

#primary .vmag-author-metabox {
	/*display: flex;*/
	gap: 24px;
	align-items: flex-start;
	padding: 24px;
	margin: 0 0 32px;
	border: 1px solid #D0D5E8;
	border-radius: 8px;
	background: #F4F6FB;
	display: none;
}

#primary .vmag-author-metabox .author-avatar {
	float: none;
	width: auto;
	flex: 0 0 88px;
	border: none;
}

#primary .vmag-author-metabox .author-avatar a {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #2C3582;
}

#primary .vmag-author-metabox .author-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#primary .vmag-author-metabox .author-desc-wrapper {
	float: none;
	width: auto;
	margin-left: 0;
	padding-top: 0;
	font-size: 14px;
	flex: 1 1 0;
	min-width: 0;
}

#primary .vmag-author-metabox .author-desc-wrapper a.author-title {
	color: #2C3582;
	font-size: 18px;
	font-weight: 700;
	font-family: inherit;
	display: block;
	margin-bottom: 8px;
	text-decoration: none;
}

#primary .vmag-author-metabox .author-desc-wrapper a.author-title:hover {
	color: #2C3582;
	text-decoration: underline;
}

#primary .vmag-author-metabox .author-desc-wrapper .author-description {
	margin: 0 0 8px;
	color: #444444;
	line-height: 1.6;
}

#primary .vmag-author-metabox .author-desc-wrapper a {
	color: #2C3582;
	font-style: normal;
	font-size: 14px;
	text-decoration: underline;
	word-break: break-all;
}

#primary .vmag-author-metabox .author-desc-wrapper a:hover {
	color: #2C3582;
	text-decoration: none;
}

@media (max-width: 480px) {
	#primary .vmag-author-metabox {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* ─── RELATED POSTS ──────────────────────────────────────────────────────── */

.vmag-related-wrapper {
	overflow: visible;
	margin: 0 0 40px;
	display: none;
}

.vmag-related-wrapper h4.related-title {
	font-size: 22px;
	font-weight: 700;
	color: #2C3582;
	border-bottom: none;
	margin: 0 0 20px;
	padding-bottom: 0;
	text-transform: none;
	font-family: inherit;
}

.vmag-related-wrapper h4.related-title::after {
	content: '';
	display: block;
	width: 80px;
	height: 3px;
	background: linear-gradient(to right, #C8960A 30%, transparent);
	margin-top: 10px;
}

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

.vmag-related-wrapper .related-posts-wrapper::before,
.vmag-related-wrapper .related-posts-wrapper::after {
	display: none;
	content: none;
}

.vmag-related-wrapper .single-post {
	float: none;
	width: auto;
	margin: 0;
	border: 1px solid #D0D5E8;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.vmag-related-wrapper .post-thumb {
	margin: 0;
}

.vmag-related-wrapper .post-thumb img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.vmag-related-wrapper .post-thumb:empty {
	display: none;
}

.vmag-related-wrapper h3.small-font {
	padding: 16px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	flex: 1;
}

.vmag-related-wrapper h3.small-font a {
	color: #2C3582;
	text-decoration: none;
}

.vmag-related-wrapper h3.small-font a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.vmag-related-wrapper .related-posts-wrapper {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.vmag-related-wrapper .related-posts-wrapper {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ─── IMAGES ─────────────────────────────────────────────────────────────── */

.entry-content img.alignleft,
.entry-content .wp-block-image.alignleft img {
	float: left;
	margin: 4px 24px 16px 0;
}

.entry-content img.alignright,
.entry-content .wp-block-image.alignright img {
	float: right;
	margin: 4px 0 16px 24px;
}

.entry-content img.aligncenter,
.entry-content .wp-block-image.aligncenter img {
	display: block;
	margin: 0 auto 16px;
}

.entry-content .wp-block-image,
.entry-content img {
	max-width: 100%;
	height: auto;
}

.entry-content .wp-block-image {
	margin: 24px 0;
}

.entry-content .wp-block-image img {
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(44, 53, 130, 0.1);
	display: block;
}

.entry-content .wp-block-image figcaption {
	font-size: 13px;
	color: #767676;
	text-align: center;
	margin-top: 8px;
}

.entry-content p {
	overflow-wrap: break-word;
}

/* ─── GUTENBERG BLOCKS ───────────────────────────────────────────────────── */

.entry-content hr,
.entry-content .wp-block-separator {
	border: none;
	border-top: 1px solid #D0D5E8;
	margin: 32px 0;
	background: none;
	height: auto;
}

/* Info cards — .wp-block-column with inline background-color */
.entry-content .wp-block-column.has-background,
.site-main .wp-block-column.has-background {
	padding: 20px 24px;
	border-radius: 6px;
	border: 1px solid rgba(44, 53, 130, 0.1);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Bold labels inside cards — styled as mini-headings */
.entry-content .wp-block-column.has-background p > strong:first-child,
.site-main .wp-block-column.has-background p > strong:first-child {
	display: inline-block;
	color: #2C3582;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
}

/* Paragraph text inside cards */
.entry-content .wp-block-column.has-background p,
.site-main .wp-block-column.has-background p {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
}

.entry-content .wp-block-column.has-background p:last-child,
.site-main .wp-block-column.has-background p:last-child {
	margin-bottom: 0;
}

/* Links inside cards */
.entry-content .wp-block-column.has-background a,
.site-main .wp-block-column.has-background a {
	color: #2C3582;
	text-underline-offset: 3px;
}

.entry-content .wp-block-column.has-background a:hover,
.site-main .wp-block-column.has-background a:hover {
	color: #2C3582;
	text-decoration-color: #2C3582;
}

/* Lists inside cards */
.entry-content .wp-block-column.has-background ul,
.site-main .wp-block-column.has-background ul {
	margin: 4px 0 0;
	padding-left: 20px;
	list-style-type: disc;
}

.entry-content .wp-block-column.has-background li,
.site-main .wp-block-column.has-background li {
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	padding: 2px 0;
}

/* Columns gap adjustment */
.entry-content .wp-block-columns,
.site-main .wp-block-columns {
	gap: 16px;
	margin-bottom: 24px;
	align-items: stretch;
}

/* Override :where(.wp-block-columns.has-background) padding (specificity 0) */
.entry-content .wp-block-columns.has-background,
.site-main .wp-block-columns.has-background {
	padding: 0;
}

@media (max-width: 767px) {
	.entry-content .wp-block-column.has-background,
	.site-main .wp-block-column.has-background {
		padding: 16px 18px;
	}
}

/* ─── FILE DOWNLOAD BUTTON ───────────────────────────────────────────────── */

.entry-content .wp-block-file:not(.wp-element-button),
.site-main .wp-block-file:not(.wp-element-button) {
	font-size: 1em;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 16px 0;
}

.entry-content .wp-block-file:not(.wp-element-button) a:not(.wp-block-file__button),
.site-main .wp-block-file:not(.wp-element-button) a:not(.wp-block-file__button) {
	color: #2C3582;
	font-weight: 500;
	text-decoration: underline;
}

.entry-content .wp-block-file:not(.wp-element-button) a:not(.wp-block-file__button):hover,
.site-main .wp-block-file:not(.wp-element-button) a:not(.wp-block-file__button):hover {
	text-decoration: none;
}

.entry-content .wp-block-file__button,
.site-main .wp-block-file__button {
	background-color: #2C3582;
	color: #FEFEF4;
	padding: 9px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	transition: background 0.2s;
}

.entry-content .wp-block-file__button:hover,
.site-main .wp-block-file__button:hover {
	background-color: #3e4dd2;
	color: #FEFEF4;
	text-decoration: none;
}

/* ─── ACCORDION (Ultimate Blocks) ───────────────────────────────────────── */

.entry-content .wp-block-ub-content-toggle-accordion,
.site-main .wp-block-ub-content-toggle-accordion {
	border: 1px solid #D0D5E8 !important;
	border-radius: 8px;
	margin-bottom: 8px;
}

.entry-content .wp-block-ub-content-toggle-accordion-title-wrap,
.site-main .wp-block-ub-content-toggle-accordion-title-wrap {
	background-color: #EEF1F8 !important;
	border-radius: 7px 7px 0 0;
}

.entry-content .wp-block-ub-content-toggle-accordion-title-wrap:hover,
.site-main .wp-block-ub-content-toggle-accordion-title-wrap:hover {
	background-color: #2C3582 !important;
}

.entry-content .wp-block-ub-content-toggle-accordion-title,
.site-main .wp-block-ub-content-toggle-accordion-title {
	color: #2C3582 !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.entry-content .wp-block-ub-content-toggle-accordion-title-wrap:hover .wp-block-ub-content-toggle-accordion-title,
.site-main .wp-block-ub-content-toggle-accordion-title-wrap:hover .wp-block-ub-content-toggle-accordion-title {
	color: #FEFEF4 !important;
}

.entry-content .wp-block-ub-content-toggle-accordion-toggle-wrap,
.site-main .wp-block-ub-content-toggle-accordion-toggle-wrap {
	color: #2C3582 !important;
}

.entry-content .wp-block-ub-content-toggle-accordion-title-wrap:hover .wp-block-ub-content-toggle-accordion-toggle-wrap,
.site-main .wp-block-ub-content-toggle-accordion-title-wrap:hover .wp-block-ub-content-toggle-accordion-toggle-wrap {
	color: #FEFEF4 !important;
}

.entry-content .wp-block-ub-content-toggle-accordion-content-wrap,
.site-main .wp-block-ub-content-toggle-accordion-content-wrap {
	padding: 0 20px;
}

.entry-content .wp-block-ub-content-toggle-accordion-content-wrap > *:first-child,
.site-main .wp-block-ub-content-toggle-accordion-content-wrap > *:first-child {
	margin-top: 16px;
}

.entry-content .wp-block-ub-content-toggle-accordion-content-wrap > *:last-child,
.site-main .wp-block-ub-content-toggle-accordion-content-wrap > *:last-child {
	margin-bottom: 16px;
}

/* ─── VIDEO EMBEDS ───────────────────────────────────────────────────────── */

.entry-content .wp-block-embed,
.site-main .wp-block-embed {
	max-width: 720px;
	margin: 24px auto;
}

/* Responsive 16:9 wrapper */
.entry-content .wp-block-embed__wrapper,
.site-main .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px;
}

.entry-content .wp-block-embed__wrapper iframe,
.site-main .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Caption below video */
.entry-content .wp-block-embed figcaption,
.site-main .wp-block-embed figcaption {
	font-size: 13px;
	color: #767676;
	text-align: center;
	margin-top: 8px;
}

/* ─── TABLES ─────────────────────────────────────────────────────────────── */

.entry-content table,
.site-main table,
.dataTables_wrapper .tablepress {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #B8C0D8;
	border-radius: 6px;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
	margin: 24px 0 !important;
}

/* Header — light blue-gray bg, navy text (contrast ~10:1, WCAG AAA) */
.entry-content table thead th,
.site-main table thead th {
	background-color: #EEF1F8;
	color: #2C3582;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	padding: 12px 16px;
	white-space: nowrap;
	border-bottom: 1px solid #B8C0D8;
	border-right: 1px solid #D0D5E8;
}

.entry-content table thead th:last-child,
.site-main table thead th:last-child {
	border-right: none;
}

/* Header hover */
.entry-content table thead th:hover,
.site-main table thead th:hover,
.entry-content .tablepress .sorting:hover,
.site-main .tablepress .sorting:hover {
	background-color: #2C3582;
	color: #FEFEF4;
	cursor: pointer;
}

/* TablePress active sort state */
.entry-content .tablepress .sorting_asc,
.entry-content .tablepress .sorting_desc,
.site-main .tablepress .sorting_asc,
.site-main .tablepress .sorting_desc {
	background-color: #232a6a;
	color: #FEFEF4;
}

/* Body cells */
.entry-content table tbody td,
.site-main table tbody td {
	padding: 11px 16px;
	color: #333;
	vertical-align: top;
	border-bottom: 1px solid #E8EAF0;
	border-right: 1px solid #E8EAF0;
}

.entry-content table tbody td:last-child,
.site-main table tbody td:last-child {
	border-right: none;
}

.entry-content table tbody tr:last-child td,
.site-main table tbody tr:last-child td {
	border-bottom: none;
}

.entry-content table tbody tr:last-child td:first-child,
.site-main table tbody tr:last-child td:first-child {
	border-bottom-left-radius: 6px;
}

.entry-content table tbody tr:last-child td:last-child,
.site-main table tbody tr:last-child td:last-child {
	border-bottom-right-radius: 6px;
}

/* Zebra rows */
.entry-content table tbody tr:nth-child(even),
.site-main table tbody tr:nth-child(even) {
	background-color: #F5F8FD;
}

/* TablePress wrapper — scroll container for the table */
.dataTables_wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .tablepress {
	min-width: 480px;
}

@media (max-width: 767px) {
	/* Regular content tables */
	.entry-content table:not(.tablepress),
	.site-main table:not(.tablepress) {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}
}

/* ─── TABLE COLUMN WIDTHS ────────────────────────────────────────────────── */

#tablepress-15 .column-1 { width: 55%; }
#tablepress-15 .column-2 { width: 30%; }
#tablepress-15 .column-3 { width: 15%; white-space: nowrap; }

/* ─── DATATABLES (TablePress controls) ──────────────────────────────────── */

/* Top row: length + filter side by side */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
	margin-bottom: 12px;
	font-size: 14px;
	color: #444;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: #444;
	flex-wrap: wrap;
}

/* Select (кількість рядків) */
.dataTables_wrapper .dataTables_length select {
	appearance: none;
	-webkit-appearance: none;
	background-color: #fff;
	border: 1px solid #C0C6DA;
	border-radius: 4px;
	padding: 6px 28px 6px 10px;
	font-size: 14px;
	color: #2C3582;
	font-weight: 600;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232C3582' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	transition: border-color 0.15s;
}

.dataTables_wrapper .dataTables_length select:hover,
.dataTables_wrapper .dataTables_length select:focus {
	border-color: #2C3582;
	outline: none;
}

.dataTables_wrapper .dataTables_length select:focus-visible {
	outline: 2px solid #2C3582;
	outline-offset: 2px;
}

/* Search input */
.dataTables_wrapper .dataTables_filter input[type="search"] {
	background-color: #fff;
	border: 1px solid #C0C6DA;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 14px;
	color: #333;
	min-width: 220px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.dataTables_wrapper .dataTables_filter input[type="search"]:hover {
	border-color: #2C3582;
}

.dataTables_wrapper .dataTables_filter input[type="search"]:focus {
	border-color: #2C3582;
	outline: none;
	box-shadow: 0 0 0 3px rgba(44, 53, 130, 0.15);
}

/* Info row (Записи з 1 по N із M) */
/* Bottom row: info left, paginate right */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
	float: none;
	display: block;
}

.dataTables_wrapper::after {
	content: '';
	display: table;
	clear: both;
}

.dataTables_wrapper .dataTables_info {
	float: left;
	font-size: 13px;
	color: #767676;
	padding: 12px 0;
	line-height: 32px;
}

.dataTables_wrapper .dataTables_paginate {
	float: right;
	display: flex;
	gap: 4px;
	align-items: center;
	flex-wrap: wrap;
	padding: 8px 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid #C0C6DA;
	border-radius: 4px;
	font-size: 14px;
	color: #2C3582 !important;
	cursor: pointer;
	background: #fff;
	transition: background 0.15s, border-color 0.15s;
	text-decoration: none;
	line-height: 1.5;
	position: relative;
}

/* Reset TablePress icon-font arrows */
.dataTables_wrapper .paging_simple .paginate_button.previous::before,
.dataTables_wrapper .paging_simple .paginate_button.next::after {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	text-shadow: none;
	position: static;
	width: auto;
	height: auto;
	line-height: inherit;
}

/* Clean SVG arrows via background-image on a pseudo-element */
.dataTables_wrapper .paging_simple .paginate_button.previous::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M10 3L5 8l5 5' stroke='%232C3582' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
	flex-shrink: 0;
}

.dataTables_wrapper .paging_simple .paginate_button.next::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 3l5 5-5 5' stroke='%232C3582' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
	flex-shrink: 0;
}

/* Disabled state — gray arrows */
.dataTables_wrapper .paging_simple .paginate_button.previous.disabled::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M10 3L5 8l5 5' stroke='%23C0C6DA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.dataTables_wrapper .paging_simple .paginate_button.next.disabled::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 3l5 5-5 5' stroke='%23C0C6DA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):hover {
	background: #EEF1F8;
	border-color: #2C3582;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: #2C3582 !important;
	border-color: #2C3582 !important;
	color: #FEFEF4 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
	color: #C0C6DA !important;
	border-color: #E8EAF0;
	cursor: default;
	background: #F8F9FB;
	pointer-events: none;
}

@media (max-width: 767px) {
	.dataTables_wrapper .dataTables_length,
	.dataTables_wrapper .dataTables_filter {
		float: none;
		width: 100%;
		margin-bottom: 10px;
	}

	.dataTables_wrapper .dataTables_length label,
	.dataTables_wrapper .dataTables_filter label {
		width: 100%;
	}

	.dataTables_wrapper .dataTables_filter input[type="search"] {
		min-width: 0;
		flex: 1;
	}

	.dataTables_wrapper .dataTables_info,
	.dataTables_wrapper .dataTables_paginate {
		float: none;
		text-align: left;
	}
}

/* ─── HOME TEMPLATE ──────────────────────────────────────────────────────── */

.hero + .vmag-container {
	padding-top: 24px;
}

@media (min-width: 1024px) {
	.hero + .vmag-container {
		padding-top: 48px;
	}
}

/* ─── NEWS ARCHIVE ───────────────────────────────────────────────────────── */

.archive-header {
	padding: 40px 0 24px;
	border-bottom: 2px solid #E8EAF0;
	margin-bottom: 32px;
}

.archive-title {
	font-size: 24px;
	font-weight: 700;
	color: #2C3582;
	margin: 0;
}

.cat-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.cat-filter__item {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid #D0D5E8;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	color: #2C3582;
	text-decoration: none;
	background: #fff;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cat-filter__item:hover {
	background: #EEF1F8;
	border-color: #2C3582;
	text-decoration: none;
}

.cat-filter__item--active {
	background: #2C3582;
	color: #FEFEF4;
	border-color: #2C3582;
}

.cat-filter__item--active:hover {
	background: #2C3582;
	color: #FEFEF4;
}

.posts-list {
	display: flex;
	flex-direction: column;
	margin-bottom: 24px;
}

/* Mobile: stacked card */
.post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #E8EAF0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s;
}

.post-card:hover {
	box-shadow: 0 4px 16px rgba(44, 53, 130, 0.1);
}

.post-card:last-child,
.archive #primary .post-card:last-child {
	border: 1px solid #E8EAF0;
}

.post-card-thumb {
	flex-shrink: 0;
	width: 100%;
	height: 200px;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.post-card-body {
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.post-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.post-card-date {
	font-size: 13px;
	color: #767676;
}

.post-card-cat {
	font-size: 13px;
	color: #2C3582;
	text-decoration: none;
	background: #EEF1F8;
	padding: 2px 8px;
	border-radius: 4px;
}

.post-card-cat:hover {
	background: #2C3582;
	color: #FEFEF4;
}

.post-card-title {
	font-size: 20px;
	font-weight: 600;
	color: #2C3582;
	margin: 0;
	line-height: 1.3;
}

.post-card-title a {
	color: inherit;
	text-decoration: none;
}

.post-card-title a:hover {
	text-decoration: underline;
}

.post-card-excerpt {
	font-size: 15px;
	color: #444;
	line-height: 1.6;
}

.post-card-link {
	display: inline-block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #2C3582;
	text-decoration: none;
}

.post-card-link:hover {
	text-decoration: underline;
}

.posts-pagination {
	margin: 24px 0;
}

.posts-pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.posts-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #2C3582;
	border-radius: 4px;
	color: #2C3582;
	text-decoration: none;
	font-size: 14px;
}

.posts-pagination .page-numbers.current {
	background: #2C3582;
	color: #fff;
}

.posts-pagination .page-numbers:hover:not(.current) {
	background: #2C3582;
}

.no-posts {
	padding: 40px 0;
	color: #666;
}

@media (min-width: 768px) {
	.archive-title {
		font-size: 32px;
	}

	.post-card {
		flex-direction: row;
		gap: 24px;
	}

	.post-card-thumb {
		width: 220px;
		height: auto;
	}
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */

.site-footer {
	background-color: #0F1B35;
	color: #FEFEF4;
	padding: 48px 0 0;
	margin-top: 64px;
}

/* Mobile: single column */
.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.site-footer .footer-logo-link {
	display: flex;
	flex-shrink: 0;
}

.footer-logo-link img {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: contain;
}

.footer-org-name {
	font-size: 15px;
	line-height: 1.4;
	color: #FEFEF4;
	margin: 0;
	text-transform: uppercase;
}

.footer-section-title {
	font-size: 18px;
	font-weight: 500;
	color: #FBE822;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-address {
	font-style: normal;
}

.footer-address p {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(254, 254, 244, 0.85);
}

.site-footer .footer-link {
	color: #FEFEF4;
	font-size: 16px;
	text-decoration: underline;
	text-decoration-color: rgba(254, 254, 244, 0.4);
	text-underline-offset: 3px;
	transition: color 0.15s, text-decoration-color 0.15s;
}

.site-footer .footer-link:hover {
	color: #FEFEF4;
	text-decoration-color: #FEFEF4;
}

.site-footer .footer-link:focus-visible {
	outline: 2px solid #FBE822;
	outline-offset: 3px;
	border-radius: 2px;
}

.footer-useful-links {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-useful-links li::before {
	content: "→";
	margin-right: 8px;
	color: #FBE822;
}

.footer-social-icons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.site-footer .footer-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	color: #FEFEF4;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
}

.site-footer .footer-social-link--fb { background: #1877F2; }
.site-footer .footer-social-link--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.site-footer .footer-social-link--yt { background: #FF0000; }

.site-footer .footer-social-link:hover {
	transform: translateY(-3px);
	filter: brightness(1.15);
}

.site-footer .footer-social-link:focus-visible {
	outline: 3px solid #FBE822;
	outline-offset: 3px;
}

.footer-bottom {
	margin-top: 40px;
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
	margin: 0;
	font-size: 15px;
	color: rgba(254, 254, 244, 0.6);
	text-align: center;
}

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

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

/* ─── FORMS (content) ────────────────────────────────────────────────────── */

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="search"],
.site-main input[type="text"],
.site-main input[type="email"],
.site-main input[type="search"] {
	height: 44px;
	padding: 0 14px;
	border: 1px solid #D0D5E8;
	border-radius: 6px;
	font-size: 16px;
	color: #333;
	background: #fff;
	outline: none;
	width: 100%;
	max-width: 320px;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.entry-content input[type="text"]:focus,
.entry-content input[type="email"]:focus,
.entry-content input[type="search"]:focus,
.site-main input[type="text"]:focus,
.site-main input[type="email"]:focus,
.site-main input[type="search"]:focus {
	border-color: #2C3582;
	box-shadow: 0 0 0 3px rgba(44, 53, 130, 0.12);
}

.entry-content input[type="submit"],
.site-main input[type="submit"] {
	height: 44px;
	padding: 0 20px;
	background: #2C3582;
	color: #FEFEF4;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
	transition: background 0.2s;
}

.entry-content input[type="submit"]:hover,
.site-main input[type="submit"]:hover {
	background: #3e4dd2;
}

/* ─── COLLAPSE-O-MATIC ───────────────────────────────────────────────────── */

.entry-content .collapseomatic,
.site-main .collapseomatic {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: #EEF1F8;
	border: 1px solid #D0D5E8;
	border-radius: 6px;
	color: #2C3582;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 0;
	background-image: none;
	user-select: none;
}

.entry-content .collapseomatic::after,
.site-main .collapseomatic::after {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 6l5 5 5-5' stroke='%232C3582' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.2s;
}

.entry-content .collapseomatic.colomat-close::after,
.site-main .collapseomatic.colomat-close::after {
	transform: rotate(180deg);
}

.entry-content .collapseomatic:hover,
.site-main .collapseomatic:hover,
.entry-content .collapseomatic.colomat-hover,
.site-main .collapseomatic.colomat-hover {
	background: #2C3582;
	color: #FEFEF4;
	border-color: #2C3582;
	text-decoration: none;
}

.entry-content .collapseomatic:hover::after,
.site-main .collapseomatic:hover::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 6l5 5 5-5' stroke='%23FEFEF4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.entry-content .collapseomatic:focus-visible,
.site-main .collapseomatic:focus-visible {
	outline: 3px solid #FBE822;
	outline-offset: 2px;
}

.entry-content .collapseomatic_content,
.site-main .collapseomatic_content {
	margin: 0;
	padding: 16px 0 8px;
}

/* ─── 404 PAGE ───────────────────────────────────────────────────────────── */

.error-404 {
	text-align: center;
	padding: 64px 20px 80px;
	max-width: 600px;
	margin: 0 auto;
}

.error-404__code {
	font-size: clamp(96px, 20vw, 160px);
	font-weight: 700;
	line-height: 1;
	color: #EEF1F8;
	letter-spacing: -4px;
	margin-bottom: 16px;
}

.error-404__title {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 700;
	color: #2C3582;
	margin: 0 0 16px;
}

.error-404__text {
	font-size: 16px;
	color: #555555;
	line-height: 1.7;
	margin: 0 0 32px;
}

.error-404__actions {
	margin-bottom: 32px;
}

.error-404__btn {
	display: inline-block;
	padding: 12px 28px;
	background: #2C3582;
	color: #FEFEF4;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.2s;
}

.error-404__btn:hover {
	background: #3e4dd2;
	color: #FEFEF4;
	text-decoration: none;
}

/* ─── SCROLL TO TOP ──────────────────────────────────────────────────────── */

#scroll-up {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	background: #2C3582;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FEFEF4;
	text-decoration: none;
	z-index: 9997;
	box-shadow: 0 2px 10px rgba(44, 53, 130, 0.4);
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
	line-height: 1;
	font-size: 0;
	padding: 0;
}

#scroll-up:hover {
	background: #3e4dd2;
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(44, 53, 130, 0.5);
	transition: all 0.2s ease;
}

#scroll-up:focus-visible {
	outline: 3px solid #FBE822;
	outline-offset: 3px;
}