*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--blue-dark: #1a6fad;
	--blue-mid: #2b89cc;
	--blue-light: #e8f4fd;
	--blue-sky: #d0ebf8;
	--nav-bg: #2d80b2;
	--nav-hover: #1a6fad;
	--nav-submenu-bg: #ebebeb;
	--yellow: #f5c400;
	--yellow-hover: #d9ac00;
	--text-dark: #1c3a5c;
	--white: #ffffff;
	--shadow: 0 4px 20px rgba(26, 111, 173, 0.15);
	--button: #5B8181;
	--donate-fon: #c2e4be;
	--body-fon: #f7f8f9;
}

body {
	font-family: Arial;
	background-color: var(--body-fon);
	min-height: 100vh;
}

/* ─────────────── HEADER ─────────────── */
.site-header {
	background: linear-gradient(180deg, #edf7fd 0%, #d8eef8 100%);
	border-bottom: 1px solid #b8ddf0;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}

/* Top bar */
.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 32px;
	max-width: 1400px;
	margin: 0 auto;
	gap: 24px;
	background-image: url("../img/header.jpg");
	background-repeat: no-repeat;
	background-size: cover;
}

.logo-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	flex-shrink: 0;
}

.logo-img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	/* border: 2.5px solid #b0d8f0;
	background: var(--white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10); */
}

.mobile-top .logo-img {
	width: 56px;
	height: 56px;
}

/* SVG logo placeholder replicating the circular seal */
.logo-img svg {
	width: 100%;
	height: 100%;
}

.logo-img img {
	width: 100%;
	height: 100%;
}

.logo-text {
	font-family: 'Raleway', sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--blue-dark);
	line-height: 1.3;
	max-width: 180px;
}

@media (max-width: 400px) {
	.logo-text {
		font-size: 1rem;
		max-width: 120px;
	}
}

/* Main nav links (desktop center) */
.header-nav {
	display: flex;
	align-items: center;
	gap: 2px;
}

.header-nav>a,
.header-nav .nav-item {
	position: relative;
}

.header-nav>a,
.header-nav .nav-item>a {
	font-family: Arial;
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--text-dark);
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 4px;
	transition: color 0.2s, background 0.2s;
	white-space: nowrap;
	position: relative;
	display: inline-block;
}

.header-nav>a::after,
.header-nav .nav-item::after {
	content: '|';
	position: absolute;
	right: -3px;
	top: 6px;
	color: #90bcd8;
	font-weight: 400;
}

.header-nav>a:last-child::after,
.header-nav .nav-item:last-child::after {
	display: none;
}

.header-nav>a:hover,
.header-nav .nav-item>a:hover {
	color: var(--blue-dark);
	background: rgba(26, 111, 173, 0.07);
}

/* Dropdown arrow for top nav */
.header-nav .nav-item.has-dropdown>a::after {
	content: ' ▾';
	font-size: 0.7rem;
	opacity: 0.7;
	margin-left: 2px;
}

/* Top nav dropdown panel */
.nav-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 280px;
	background: var(--white);
	border-top: 3px solid var(--blue-mid);
	box-shadow: 0 8px 28px rgba(26, 111, 173, 0.18);
	border-radius: 0 0 8px 8px;
	z-index: 150;
	margin-top: 0;
	animation: dropIn 0.18s ease;
}

.header-nav .nav-item:hover .nav-dropdown,
.header-nav .nav-item.open .nav-dropdown {
	display: block;
}

.nav-dropdown a {
	display: block;
	color: var(--text-dark);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	padding: 11px 18px;
	border-bottom: 1px solid #e8f0f6;
	transition: background 0.15s, color 0.15s, padding-left 0.15s;
	white-space: normal;
	line-height: 1.4;
}

.nav-dropdown a:last-child {
	border-bottom: none;
}

.nav-dropdown a:hover {
	background: var(--blue-light);
	color: var(--blue-dark);
	padding-left: 24px;
}

/* Actions: search + donate */
.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.btn-search {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--blue-dark);
	padding: 6px;
	border-radius: 50%;
	transition: background 0.2s, transform 0.2s;
	display: flex;
	align-items: center;
}

.btn-search:hover {
	background: rgba(26, 111, 173, 0.10);
	transform: scale(1.12);
}

.btn-search svg {
	width: 22px;
	height: 22px;
}

.btn,
.btn-donate,
#submit,
.wp-block-file__button {
	border: none;
	border-radius: 6px;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	padding: 10px 24px;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
	text-decoration: none;
	white-space: nowrap;
}

.wp-block-file__button {
	border-radius: 2em;
	padding: 5px 15px;
}

.btn-donate {
	background: var(--yellow);
	color: var(--text-dark);
	box-shadow: 0 2px 8px rgba(245, 196, 0, 0.35);
}

.btn-donate:hover {
	background: var(--yellow-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(245, 196, 0, 0.45);
}

.btn,
#submit,
.wp-block-file__button {
	background: var(--button);
	color: var(--white);
	/* box-shadow: 0 2px 8px rgba(245, 196, 0, 0.35); */
}

.btn:hover,
#submit:hover,
.wp-block-file__button:hover {
	background: #005a87;
	border-color: #005a87;
	transform: translateY(-1px);
	/* box-shadow: 0 4px 14px rgba(245, 196, 0, 0.45); */
}



/* ─────────────── CATEGORY NAV (blue bar) ─────────────── */
.category-nav {
	background: var(--nav-bg);
	border-top: 1px solid #065683;
	border-bottom: 1px solid #065683;
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	overflow: visible;
}

.category-nav ul {
	display: flex;
	align-items: stretch;
	list-style: none;
	margin: 0 auto;
	padding: 0 16px;
	flex-wrap: nowrap;
	white-space: nowrap;
}

.category-nav li {
	position: relative;
}

.category-nav li>a {
	display: block;
	color: var(--white);
	text-decoration: none;
	font: 700 0.93rem Arial;
	padding: 11px 16px;
	border-right: 1px solid rgba(255, 255, 255, 0.25);
	white-space: nowrap;
	transition: background 0.18s;
}

.category-nav li:first-child>a {
	border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.category-nav li>a:hover,
.category-nav li.active>a {
	background: var(--nav-hover);
}

/* Dropdown arrow indicator */
.category-nav li.has-dropdown>a::after {
	content: ' ▾';
	font-size: 0.7rem;
	opacity: 0.8;
}

/* Dropdown panel */
.category-nav .dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--white);
	border-top: 3px solid var(--yellow);
	box-shadow: 0 8px 28px rgba(26, 111, 173, 0.18);
	border-radius: 0 0 8px 8px;
	z-index: 200;
	animation: dropIn 0.18s ease;
	padding: 0;
}

@keyframes dropIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.category-nav .dropdown-menu li {
	width: 100%;
}

.category-nav li:hover .dropdown-menu,
.category-nav li.open .dropdown-menu {
	display: block;
}

.category-nav .dropdown-menu a {
	display: block;
	color: var(--text-dark);
	background: var(--nav-submenu-bg);
	text-decoration: none;
	padding: 10px 18px;
	border-bottom: 1px solid #e8f0f6;
	transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.category-nav .dropdown-menu a:last-child {
	border-bottom: none;
}

.category-nav .dropdown-menu a:hover {
	background: var(--blue-light);
	color: var(--blue-dark);
	padding-left: 24px;
}

/* Styles for the "More" dropdown */
.more-item {
	cursor: pointer;
	position: relative;
}

.more-item .dropdown-menu {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	background: var(--nav-bg);
	z-index: 1000;
	min-width: 200px;
	left: auto;
}

.more-item:hover>.dropdown-menu {
	display: block;
}

/* Nested sub-menus in "More" */
.more-item .dropdown-menu .dropdown-menu {
	display: none;
	top: 0;
	right: 100%;
	left: auto;
}

.more-item .dropdown-menu li:hover>.dropdown-menu {
	display: block;
}

/* Overflow list specific styles */
#overflow-list {
	min-width: 220px;
}

#overflow-list li {
	position: relative;
}

#overflow-list .dropdown-menu {
	display: none;
	position: absolute;
	top: 0;
	right: 100%;
	left: auto;
}

#overflow-list li.has-dropdown:hover>.dropdown-menu {
	display: block;
}

/* Add indicator for items with submenus */
.more-item .has-dropdown>a::after {
	content: ' ▾';
	font-size: 0.8em;
}



/* ─────────────── SEARCH POPUP ─────────────── */
.search-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(10, 35, 60, 0.55);
	z-index: 2000;
	backdrop-filter: blur(3px);
	animation: fadeOverlay 0.2s ease;
}

.search-overlay.open {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 90px;
}

@keyframes fadeOverlay {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.search-box {
	background: var(--white);
	border-radius: 12px;
	padding: 28px 28px 24px;
	width: 90%;
	max-width: 560px;
	box-shadow: 0 16px 48px rgba(26, 111, 173, 0.25);
	animation: slideDown 0.22s ease;
}

@media (max-width: 768px) {
	.search-box {
		padding: 10px;
	}
}


@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.search-box-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.search-box-header h2 {
	font-family: 'Raleway', sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text-dark);
}

.btn-close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.5rem;
	color: #8aacc4;
	line-height: 1;
	transition: color 0.2s, transform 0.2s;
}

.btn-close:hover {
	color: var(--blue-dark);
	transform: rotate(90deg);
}

.search-input-row {
	display: flex;
	gap: 10px;
}

.search-input {
	flex: 1;
	border: 2px solid #b8d8ee;
	border-radius: 8px;
	padding: 10px 16px;
	font-family: Arial;
	font-size: 1rem;
	color: var(--text-dark);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
	border-color: var(--blue-mid);
	box-shadow: 0 0 0 3px rgba(43, 137, 204, 0.15);
}

.btn-search-submit {
	background: var(--blue-mid);
	color: var(--white);
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.btn-search-submit:hover {
	background: var(--blue-dark);
	transform: translateY(-1px);
}

/* ─────────────── MOBILE HEADER ─────────────── */
.mobile-header {
	display: none;
}

.mobile-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: linear-gradient(180deg, #edf7fd 0%, #d8eef8 100%);
	border-bottom: 1px solid #b8ddf0;
}

.mobile-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.btn-hamburger {
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	color: var(--blue-dark);
	border-radius: 4px;
	transition: background 0.2s;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.btn-hamburger:hover {
	background: rgba(26, 111, 173, 0.08);
}

.btn-hamburger span {
	display: block;
	width: 24px;
	height: 2.5px;
	background: var(--blue-dark);
	border-radius: 2px;
	transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger → X animation */
.btn-hamburger.is-open span:nth-child(1) {
	transform: translateY(7.5px) rotate(45deg);
}

.btn-hamburger.is-open span:nth-child(2) {
	opacity: 0;
}

.btn-hamburger.is-open span:nth-child(3) {
	transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
	display: none;
	flex-direction: column;
	background: var(--white);
	border-bottom: 3px solid var(--nav-bg);
	box-shadow: 0 8px 24px rgba(26, 111, 173, 0.14);
}

.mobile-drawer.open {
	display: flex;
}

.mobile-drawer a {
	display: block;
	color: var(--text-dark);
	text-decoration: none;
	font-family: Arial;
	font-weight: 600;
	font-size: 0.97rem;
	padding: 13px 20px;
	border-bottom: 1px solid #e4eef6;
	transition: background 0.15s, color 0.15s;
}

.mobile-drawer a:hover {
	background: var(--blue-light);
	color: var(--blue-dark);
}

.mobile-drawer .mobile-parent-link {
	cursor: pointer;
	user-select: none;
}

.mobile-submenu {
	display: none;
	background: #f7fbfe;
}

.mobile-submenu.open {
	display: block;
}

.mobile-submenu a {
	padding-left: 36px;
	font-size: 0.88rem;
	font-weight: 500;
	background: #f7fbfe;
}

.mobile-submenu a:hover {
	background: #e8f3fa;
	padding-left: 42px;
}

.mobile-drawer .section-label {
	background: var(--nav-bg);
	color: var(--white);
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 6px 20px;
}

.mobile-drawer .donate-link {
	background: var(--yellow);
	color: var(--text-dark);
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	text-align: center;
	padding: 14px 20px;
}

.mobile-drawer .donate-link:hover {
	background: var(--yellow-hover);
}

.article-section {
	/* display: flex;
    gap: 32px;
    margin-bottom: 50px;
    align-items: center;
	flex-direction: column; */
	width: 100%;
}

.page .article-section,
.single-project .article-section,
.post-type-archive .articles-section {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.article-section h1 {
	font-family: 'Raleway', sans-serif;
	color: var(--text-dark);
	font-weight: 700;
	font-size: 2rem;
	margin-bottom: 20px;
}

.article-meta div {
	display: inline-block;
}

/* .article-image,
.article-image img {
	width: 100%;
} */

.article-image {
	width: 100%;
	max-height: 400px;
	/* Limited height */
	overflow-y: hidden;
	display: flex;
	align-items: center;
	/* Vertical alignment */
	justify-content: center;
	margin-bottom: 1em;
}

.article-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	/* Ensures image covers the area without distortion */
}

.article-text p,
.article-text ul,
.article-text ol {
	color: #4a6f8f;
	line-height: 1.7;
	margin-bottom: 14px;
	font-size: 1rem;
}

.article-text ul,
.article-text ol {
	margin-left: 1.5em;
}

.article-text h1,
.article-text h2,
.article-text h3,
.article-text h4,
.article-text h5,
.article-text h6 {
	color: #1e3a52;
	line-height: 1.3;
	font-weight: 700;
	margin-top: 1.6em;
	margin-bottom: 0.5em;
}

.article-text h1 {
	font-size: 2rem;
}

.article-text h2 {
	font-size: 1.6rem;
}

.article-text h3 {
	font-size: 1.3rem;
}

.article-text h4 {
	font-size: 1.1rem;
}

.article-text h5,
.article-text h6 {
	font-size: 1rem;
}

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.footer-nav ul li a {
	text-decoration: none;
	color: inherit;
}

.footer-nav ul li a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.footer-nav ul {
		flex-direction: column;
		gap: 24px;
	}
}


/* ─────────────── PAGE LAYOUT ─────────────── */
.page-container {
	display: flex;
	max-width: 1400px;
	margin: 0 auto;
	min-height: calc(100vh - 200px);
}

/* ─────────────── SIDEBAR ─────────────── */
.sidebar {
	width: 260px;
	background: #f8fbfd;
	border-right: 1px solid #d0e4f0;
	flex-shrink: 0;
	padding: 20px 0;
}


/* .sidebar-nav {
	position: sticky;
	top: 180px;
} */


/* Menu item structure */
/* Menu item structure */
.nav-level-1-item,
.nav-level-2-item,
.nav-level-3-item {
	position: relative;
	transition: margin-left 0.2s ease;
}

/* Level 1 - no indent needed */
.nav-level-1>.nav-level-1-item {
	margin-left: 0 !important;
}

/* Wrapper for items with children */
.menu-item-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

/* Level 1 styling */
.nav-level-1>.nav-level-1-item .menu-item-wrapper {
	background: #f0f6fa;
	border-bottom: 1px solid #e4eff7;
}

/* Level 2 styling */
.nav-level-2 .menu-item-wrapper {
	background: #fafcfe;
	border-bottom: 1px solid #e8f1f8;
}

/* Level 3 styling */
.nav-level-3 .menu-item-wrapper {
	background: #fff;
	border-bottom: 1px solid #f0f6fb;
}

/* Menu link styling */
.menu-link {
	display: block;
	flex: 1;
	text-decoration: none;
	transition: all 0.2s;
}

/* Level 1 link */
.nav-level-1 .menu-link {
	color: var(--text-dark);
	font-family: Arial;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 12px 20px;
}

.nav-level-1 .menu-link:hover {
	background: #e3f0f8;
	color: var(--blue-dark);
}

.nav-level-1 .menu-link.active {
	/* background: var(--blue-mid);
    color: var(--white); */
	font-weight: 700;
}

/* Level 2 link */
.nav-level-2 .menu-link {
	color: #3a5f7d;
	font-size: 0.88rem;
	font-weight: 500;
	padding: 10px 20px;
}

.nav-level-2 .menu-link:hover {
	background: #f0f7fc;
	color: var(--blue-dark);
}

.nav-level-2 .menu-link.active {
	/* background: var(--blue-mid);
    color: var(--white); */
	font-weight: 700;
}

/* Level 3 link */
.nav-level-3 .menu-link {
	color: #4a6f8f;
	font-size: 0.84rem;
	font-weight: 400;
	padding: 9px 20px;
}

.nav-level-3 .menu-link:hover {
	background: #f5faff;
	color: var(--blue-dark);
}

.nav-level-3 .menu-link.active {
	/* background: var(--blue-mid);
    color: var(--white); */
	font-weight: 700;
}

/* Toggle button styling */
.toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	cursor: pointer;
	font-size: 0.8rem;
	transition: transform 0.2s;
	user-select: none;
	margin-right: 12px;
	flex-shrink: 0;
}

.menu-item-wrapper.open .toggle {
	transform: rotate(90deg);
}

/* Level containers */
.nav-level-2,
.nav-level-3,
.nav-level-4 {
	display: none;
}

.nav-level-2.open,
.nav-level-3.open,
.nav-level-4.open {
	display: block;
}

/* Leaf nodes (no children) - the wrapper still exists but without toggle */
.menu-item-wrapper:not(:has(.toggle)) .menu-link {
	/* No extra padding for toggle space */
}


/* ─────────────── MAIN CONTENT ─────────────── */
.main-content {
	flex: 1;
	padding: 32px 40px;
	background: var(--white);
}

/* ─────────────── SLIDER ─────────────── */
.slider {
	position: relative;
	height: 360px;
	background: linear-gradient(135deg, #2b89cc 0%, #1a6fad 100%);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 40px;
	box-shadow: 0 8px 32px rgba(26, 111, 173, 0.25);
}

.slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(43, 137, 204, 0.9) 0%, rgba(26, 111, 173, 0.95) 100%),
		url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><circle cx="100" cy="100" r="80" fill="%23fff" opacity="0.05"/><circle cx="700" cy="300" r="120" fill="%23fff" opacity="0.05"/><circle cx="400" cy="200" r="60" fill="%23f5c400" opacity="0.08"/></svg>');
	background-size: cover;
}

.slide.active {
	opacity: 1;
}

.slide-content {
	text-align: center;
	color: var(--white);
	padding: 0 60px;
	max-width: 800px;
}

.slide-content h2 {
	font-family: 'Raleway', sans-serif;
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 16px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.slide-content p {
	font-size: 1.15rem;
	line-height: 1.6;
	opacity: 0.95;
}

.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.25);
	color: var(--white);
	border: none;
	font-size: 2.5rem;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
	backdrop-filter: blur(4px);
	line-height: 1;
	padding-bottom: 4px;
}

.slider-btn:hover {
	background: rgba(255, 255, 255, 0.4);
	transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
	left: 20px;
}

.slider-btn.next {
	right: 20px;
}

.slider-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
}

.slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
	background: var(--yellow);
	transform: scale(1.3);
}

/* ─────────────── ABOUT SECTION ─────────────── */
.about-section {
	display: flex;
	gap: 32px;
	margin-bottom: 50px;
	align-items: center;
}

.about-image {
	width: 400px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(26, 111, 173, 0.15);
}

.about-image img {
	width: 100%;
	height: auto;
}

.about-text h2 {
	font-family: 'Raleway', sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 16px;
}

.about-text p {
	color: #4a6f8f;
	line-height: 1.7;
	margin-bottom: 14px;
	font-size: 1rem;
}

.btn-more {
	display: inline-block;
	margin-top: 10px;
	color: var(--blue-mid);
	font-weight: 700;
	text-decoration: none;
	font-size: 1.05rem;
	transition: color 0.2s, transform 0.2s;
}

.btn-more:hover {
	color: var(--blue-dark);
	transform: translateX(4px);
}

/* ─────────────── SECTIONS ─────────────── */
.section-title {
	font-family: 'Raleway', sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 24px;
	border-bottom: 3px solid var(--yellow);
	padding-bottom: 10px;
}

/* ─────────────── PROJECTS GRID ─────────────── */
.projects-section {
	margin-bottom: 50px;
}

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

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

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

.project-card {
	background: linear-gradient(145deg, #f8fbfe 0%, #edf5fc 100%);
	border: 1px solid #d4e8f5;
	border-radius: 10px;
	padding: 28px 24px;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 4px 16px rgba(26, 111, 173, 0.08);
}

.project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(26, 111, 173, 0.18);
}

.project-icon {
	font-size: 3rem;
	margin-bottom: 16px;
}

.project-card h3 {
	font-family: 'Raleway', sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 12px;
}

.project-card p {
	color: #5a7a96;
	line-height: 1.6;
	margin-bottom: 16px;
	font-size: 0.92rem;
}

.card-link {
	color: var(--blue-mid);
	text-decoration: none;
	font-weight: 700;
	transition: color 0.2s;
}

.card-link:hover {
	color: var(--blue-dark);
}

h2 .card-link {
	font-size: 1.5rem;
}

/* ─────────────── ARTICLES GRID ─────────────── */
.articles-section {
	margin-bottom: 50px;
}

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

.home .articles-grid {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 800px) {

	.articles-grid,
	.home .articles-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {

	.articles-grid,
	.home .articles-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

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

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

@media (max-width: 480px) {
	.list .articles-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

.article-card {
	background: var(--white);
	border: 1px solid #e0edf7;
	border-radius: 8px;
	padding: 20px;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
	box-shadow: 0 2px 10px rgba(26, 111, 173, 0.05);
}

.article-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(26, 111, 173, 0.12);
	border-color: var(--blue-mid);
}

.article-date,
.article-author,
.article-author a {
	font-size: 0.8rem;
	color: #7a9bb5;
	font-weight: 600;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
}

.article-author a:hover {
	text-decoration: underline;
}

.article-img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 16px;
}

.article-card h3 {
	font-family: 'Raleway', sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 10px;
	line-height: 1.4;
}

.article-card p {
	color: #5a7a96;
	line-height: 1.6;
	margin-bottom: 12px;
	font-size: 1rem;
}

.view-all {
	text-align: center;
	margin-top: 20px;
}

.post-views {
	font-size: 0.8rem;
	color: #7a9bb5;
}

.not-logged-in .post-views {
	display: none;
}

/* ─────────────── DONATE BLOCK ─────────────── */
.donate-block {
	/* background: linear-gradient(135deg, #f5c400 0%, #d9ac00 100%); */
	background-color: var(--donate-fon);
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	box-shadow: 0 8px 32px #006af531;
	margin-bottom: 40px;
}

.donate-content h2 {
	font-family: 'Raleway', sans-serif;
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 16px;
}

.donate-content p {
	color: #2d2000;
	font-size: 1.05rem;
	line-height: 1.7;
	margin-bottom: 24px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.donate-content p:last-child {
	margin-bottom: 0;
}

.account-info {
	background: var(--body-fon);
	border: 2px dashed rgba(26, 111, 173, 0.3);
	border-radius: 8px;
	padding: 20px;
	margin: 24px auto;
	max-width: 600px;
	font-family: Arial;
	color: var(--text-dark);
	line-height: 1.8;
	font-size: 0.95rem;
	backdrop-filter: blur(2px);
}

.account-info strong {
	color: var(--blue-dark);
	font-weight: 700;
}

/* ─────────────── FOOTER ─────────────── */
.site-footer {
	background: linear-gradient(180deg, var(--nav-bg) 0%, #124470 100%);
	color: var(--white);
	/* margin-top: 60px; */
}

.site-footer a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	/* margin-bottom: 24px; */
	background-color: var(--nav-bg);
	padding: 22px 32px 20px;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 16px;
}

.footer-title {
	font-family: 'Raleway', sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
}

.footer-nav {
	display: flex;
	gap: 28px;
}

.footer-nav a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: color 0.2s;
}

.footer-nav a:hover {
	color: var(--yellow);
}

.footer-copyright {
	max-width: 1400px;
	margin: 0 auto;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.88rem;
	padding: 20px 32px;
}


/* ───────── Breadcrumbs ───────── */
.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	font-family: Arial;
	font-size: 0.82rem;
	color: #888;
}

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

/* separator arrow between crumbs */
.breadcrumbs li+li::before {
	content: '›';
	margin: 0 6px;
	color: #bbb;
	font-size: 1rem;
	line-height: 1;
}

.breadcrumbs a {
	color: #888;
	text-decoration: none;
	transition: color 0.18s;
}

.breadcrumbs a:hover {
	color: #1a6fbf;
	text-decoration: underline;
}

/* current (last) crumb — not a link */
/* .breadcrumbs li:last-child {
	color: #444;
	font-weight: 600;
	pointer-events: none;
} */

/* ───────── Article meta footer (categories + tags) ───────── */
.article-meta-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 32px;
	align-items: flex-start;
	margin: 32px 0;
	padding-top: 20px;
	border-top: 1px solid #e8e8e8;
	font-family: Arial;
}

.meta-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.meta-label {
	font-weight: 700;
	color: #555;
	margin-right: 2px;
	white-space: nowrap;
}

/* ── Category pills ── */
.category-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 13px;
	border-radius: 20px;
	background: #1a6fbf;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: background 0.18s, transform 0.12s;
}

.category-pill:hover {
	background: #155da0;
	transform: translateY(-1px);
}

/* ── Tag chips ── */
.tag-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 4px;
	border: 1px solid #c8d8ea;
	background: #f0f5fb;
	color: #1a6fbf;
	font-size: 0.78rem;
	text-decoration: none;
	transition: background 0.18s, border-color 0.18s;
}

.tag-chip::before {
	content: '#';
	margin-right: 2px;
	opacity: 0.6;
}

.tag-chip:hover {
	background: #dceaf8;
	border-color: #1a6fbf;
}

/* ── Responsive ── */
@media (max-width: 600px) {
	.article-meta-footer {
		flex-direction: column;
		gap: 12px;
	}
}


/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 900px) {
	.site-header {
		display: none;
	}

	.mobile-header {
		display: block;
	}

	.page-container {
		flex-direction: column;
	}

	.sidebar {
		display: none;
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #d0e4f0;
	}

	.main-content {
		padding: 20px 16px;
	}

	.about-section {
		flex-direction: column;
	}

	.about-image {
		width: 100%;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.articles-grid {
		grid-template-columns: 1fr;
	}

	.footer-content {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

}

.user-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--blue-dark);
	padding: 8px 12px;
	border-radius: 6px;
	transition: background 0.2s, transform 0.2s;
}

.user-link:hover {
	background-color: rgba(26, 111, 173, 0.10);
}

.user-link svg {
	width: 20px;
	height: 20px;
}

.user-link span {
	font-size: 14px;
	font-weight: 500;
}

@media (max-width: 600px) {

	.user-link .avatar,
	.user-link span {
		display: none;
	}
}


/* Optional: Avatar styling */
.user-link .avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.pdfp_header {
	display: none !important;
}




/* Ensure sub-dropdowns don't get cut off */
.dropdown-menu li {
	display: block;
	width: 100%;
}


/* 1. Hide all dropdowns by default */
.category-nav .dropdown-menu {
	display: none;
	position: absolute;
	background: var(--nav-bg);
	list-style: none;
	padding: 0;
	margin: 0;
	z-index: 100;
}

/* Vacancy Filters */
.vacancy-filters {
	background: #f5f9fc;
	padding: 20px;
	margin-bottom: 30px;
	border-radius: 8px;
	border: 1px solid #d0e4f0;
}

.vacancy-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-end;
}

.filter-group {
	flex: 1;
	min-width: 180px;
}

.filter-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--text-dark);
	font-size: 0.9rem;
}

.filter-dropdown {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid #b8d8ee;
	border-radius: 6px;
	background: white;
	color: var(--text-dark);
	cursor: pointer;
	transition: border-color 0.2s;
}

.filter-dropdown:focus {
	border-color: var(--blue-mid);
	outline: none;
}

.filter-submit,
.filter-reset {
	padding: 10px 24px;
	border: none;
	border-radius: 6px;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
}

.filter-submit {
	background: var(--blue-mid);
	color: white;
}

.filter-submit:hover {
	background: var(--blue-dark);
	transform: translateY(-1px);
}

.filter-reset {
	background: #e0e7ed;
	color: var(--text-dark);
	text-decoration: none;
}

.filter-reset:hover {
	background: #cbd8e4;
}



/* Add to your existing vacancy filters CSS */
.filter-group-full {
	flex: 1 1 100%;
}

.filter-keyword {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid #b8d8ee;
	border-radius: 6px;
	font-family: Arial;
	font-size: 1rem;
	color: var(--text-dark);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-keyword:focus {
	border-color: var(--blue-mid);
	outline: none;
	box-shadow: 0 0 0 3px rgba(43, 137, 204, 0.15);
}

.filter-keyword::placeholder {
	color: #9bb7cf;
	font-size: 0.9rem;
}

.filter-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

@media (max-width: 768px) {
	.vacancy-filter-form {
		flex-direction: column;
	}

	.filter-group {
		width: 100%;
	}

	.filter-actions {
		width: 100%;
	}

	.filter-submit,
	.filter-reset {
		width: 100%;
		text-align: center;
	}
}


.widgets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	margin-top: 25px 0 10px;
}

/* tablets */
@media (max-width: 1024px) {
	.widgets {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* mobile */
@media (max-width: 600px) {
	.widgets {
		grid-template-columns: 1fr;
	}
}



/* Comments Wrapper */
.custom-comments-wrapper {
	margin: 40px auto;
	padding: 30px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.custom-comments-wrapper:empty {
	display: none;
}

/* Comments Title */
.comments-title {
	font-size: 28px;

	font-weight: 600;
	margin: 0 0 30px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
	color: #333;
	/* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
}

/* Comment List Structure */
.comment {
	list-style: none;
	margin: 0 0 25px 0;
	padding: 0;
}

.comment-body {
	background: #f9f9f9;
	border-radius: 10px;
	padding: 25px 25px 15px;
	position: relative;
	transition: all 0.3s ease;
	border: 1px solid #eaeaea;
}

.comment-body:hover {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	border-color: #ddd;
}

/* Depth 1 - Top Level Comments */
.depth-1>.comment-body {
	background: #ffffff;
}

/* Depth 2 - First Nested Level */
.depth-2>.comment-body {
	background: #f8f9fa;
	margin-left: 40px;
}

/* Depth 3 - Second Nested Level */
.depth-3>.comment-body {
	background: #f1f3f4;
	margin-left: 70px;
}

/* Depth 4 - Third Nested Level */
.depth-4>.comment-body {
	background: #e9ecef;
	margin-left: 100px;
}

/* Depth 5+ - Fourth Nested Level and beyond */
.depth-5>.comment-body,
.depth-6>.comment-body,
.depth-7>.comment-body,
.depth-8>.comment-body,
.depth-9>.comment-body,
.depth-10>.comment-body {
	background: #e1e4e6;
	margin-left: 130px;
}

/* Comment Meta Section */
.comment-meta {
	margin-bottom: 15px;
}

/* Comment Author */
.comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.comment-author img {
	border-radius: 50%;
	width: 50px;
	height: 50px;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-author .fn {
	font-weight: 600;
	font-size: 16px;
	color: #333;
	font-style: normal;
}

.comment-author .fn a {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.2s;
}

.comment-author .fn a:hover {
	color: #004d73;
	text-decoration: underline;
}

.comment-author .says {
	color: #666;
	font-size: 14px;
	margin-left: 3px;
}

/* Comment Metadata (date, edit link) */
.comment-metadata {
	font-size: 13px;
	color: #888;
	margin-bottom: 15px;
}

.comment-metadata a {
	color: #888;
	text-decoration: none;
	transition: color 0.2s;
}

.comment-metadata a:hover {
	color: #0073aa;
}

.comment-metadata time {
	font-style: italic;
}

.edit-link {
	margin-left: 10px;
	padding-left: 10px;
	border-left: 1px solid #ddd;
}

.edit-link a {
	color: #f39c12;
}

.edit-link a:hover {
	color: #e67e22;
}

/* Comment Content */
.comment-content {
	font-size: 15px;
	line-height: 1.7;
	color: #444;
	margin-bottom: 20px;
}

.comment-content p {
	margin: 0 0 15px 0;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

/* Reply Button */
.reply {
	text-align: right;
	border-top: 1px solid #eaeaea;
	padding-top: 15px;
	margin-top: 15px;
}

.comment-reply-link,
.comment-reply-login {
	display: inline-block;
	padding: 8px 20px;
	background: #f0f0f0;
	color: #555;
	text-decoration: none;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid #ddd;
}

.comment-reply-link:hover,
.comment-reply-login:hover {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

/* Depth-specific reply button styling */
.depth-1 .comment-reply-link,
.depth-1 .comment-reply-login {
	background: #e3f2fd;
	color: #0073aa;
	border-color: #bbdefb;
}

.depth-2 .comment-reply-link,
.depth-2 .comment-reply-login {
	background: #e8f5e9;
	color: #4CAF50;
	border-color: #c8e6c9;
}

.depth-3 .comment-reply-link,
.depth-3 .comment-reply-login {
	background: #fff3e0;
	color: #FF9800;
	border-color: #ffe0b2;
}

/* Author Comment Styling */
.bypostauthor>.comment-body {
	position: relative;
	background: #f0f7ff;
}

/* User-specific styling */
.comment-author-mejexa-com>.comment-body {
	border-left-color: #9b59b6;
}

/* Comment Form Wrapper */
.comment-respond-wrapper {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid #f0f0f0;
}

/* Comment Respond Section */
#respond {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 10px;
}

.comment-reply-title {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: #333;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#cancel-comment-reply-link {
	font-size: 14px;
	font-weight: normal;
	color: #e74c3c;
	text-decoration: none;
	padding: 4px 12px;
	border: 1px solid #e74c3c;
	border-radius: 20px;
	transition: all 0.3s;
}

#cancel-comment-reply-link:hover {
	background: #e74c3c;
	color: #fff;
}

/* Comment Form */
.comment-form {
	margin-top: 20px;
}

.logged-in-as {
	background: #e8f5e9;
	padding: 12px 15px;
	border-radius: 6px;
	margin-bottom: 20px;
	color: #2e7d32;
	font-size: 14px;
}

.logged-in-as a {
	color: #0073aa;
	text-decoration: none;
	font-weight: 500;
}

.logged-in-as a:hover {
	text-decoration: underline;
}

.comment-form-comment label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.comment-form-comment textarea {
	width: 100%;
	padding: 15px;
	border: 2px solid #eaeaea;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.6;
	resize: vertical;
	transition: all 0.3s;
	font-family: inherit;
}

.comment-form-comment textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-submit {
	margin-top: 20px;
}


/* Required field indicator */
.required {
	color: #e74c3c;
}

.required-field-message {
	font-size: 13px;
	color: #666;
	margin-top: 10px;
	display: block;
}

/* Akismet anti-spam fields */
.akismet-fields-container {
	display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
	.custom-comments-wrapper {
		padding: 0;
		margin: 0;
	}

	.comments-title {
		font-size: 24px;
	}

	/* Reduce indentation on mobile */
	.depth-2>.comment-body {
		margin-left: 20px;
	}

	.depth-3>.comment-body {
		margin-left: 35px;
	}

	.depth-4>.comment-body,
	.depth-5>.comment-body,
	.depth-6>.comment-body,
	.depth-7>.comment-body,
	.depth-8>.comment-body,
	.depth-9>.comment-body,
	.depth-10>.comment-body {
		margin-left: 50px;
	}

	/* Adjust padding */
	.comment-body {
		padding: 20px;
	}

	/* Stack author info on very small screens */
	.comment-author {
		flex-wrap: wrap;
	}

	#respond {
		padding: 20px;
	}

	.comment-reply-title {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

@media (max-width: 480px) {
	.depth-2>.comment-body {
		margin-left: 10px;
	}

	.depth-3>.comment-body,
	.depth-4>.comment-body,
	.depth-5>.comment-body {
		margin-left: 15px;
	}

	.comment-author img {
		width: 40px;
		height: 40px;
	}

	.reply {
		text-align: center;
	}

	.comment-reply-link {
		display: block;
		text-align: center;
	}
}

/* Animation for new comments */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.comment {
	animation: fadeIn 0.5s ease;
}

/* Nested comments parent indicator */
.comment.depth-1.parent>.comment-body {
	border-bottom-right-radius: 0;
}





/* Pagination */
.navigation.pagination {
	margin: 48px 0;
	display: flex;
	justify-content: center;
}

.navigation.pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.navigation.pagination .page-numbers:hover {
	background-color: #f5f5f5;
	border-color: #bbb;
	color: #111;
}

.navigation.pagination .page-numbers.current {
	background-color: var(--nav-bg);
	/* swap for your theme's accent color */
	border-color: var(--nav-bg);
	color: #fff;
	cursor: default;
}

.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers {
	font-size: 16px;
	color: #555;
}

.navigation.pagination .prev.page-numbers:hover,
.navigation.pagination .next.page-numbers:hover {
	color: #111;
}


/* Table */
.w3-responsive {
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	background-color: #fff;
	padding: 1px;
	/* Prevents margin collapse issues */
}

.w3-table-all {
	border-collapse: collapse;
	width: 100%;
	font-size: 14px;
	border: 1px solid #e0e0e0;
}

/* Header Styling */
.w3-table-all th {
	background-color: #2c3e50;
	/* Dark blue-gray */
	color: white;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.5px;
	padding: 12px 8px;
	border: 1px solid #1a2632;
	white-space: nowrap;
	/* Prevents header text from wrapping */
}

/* Cell Styling */
.w3-table-all td {
	padding: 10px 8px;
	border: 1px solid #ddd;
	vertical-align: top;
	/* Align content to the top for multi-row materials */
}

/* Zebra striping for better readability */
.w3-table-all tbody tr:nth-child(even) {
	background-color: #f9f9f9;
}

/* Style for rows that are "children" (material rows without a work index) */
/* This adds a visual indent to material rows */
.w3-table-all tr:not(:has(th)) td:first-child {
	font-weight: normal;
	color: #7f8c8d;
}

/* Style for empty first column (material rows) - create indent effect */
.w3-table-all td:empty {
	background-color: transparent;
}

.w3-table-all td:empty+td {
	/* Target the "Вид робіт" cell after an empty № cell */
	padding-left: 25px;
	/* Indent the work description for materials */
	position: relative;
}

.w3-table-all td:empty+td::before {
	content: "↳";
	/* Add a nice arrow to indicate sub-item */
	color: #3498db;
	position: absolute;
	left: 8px;
	font-size: 14px;
}

/* Total row styling */
.w3-table-all tr:last-child {
	background-color: #e8f4f8 !important;
	/* Light blue background */
	font-weight: bold;
	border-top: 2px solid #2980b9;
}

.w3-table-all tr:last-child td {
	font-size: 15px;
	padding: 12px 8px;
}


/* Remove extra margins from paragraphs inside cells */
.w3-table-all p {
	margin: 0;
}

/* Hover effect for rows */
.w3-table-all tbody tr:hover {
	background-color: #eef7fc;
	transition: background-color 0.2s ease;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
	.w3-responsive {
		border-radius: 0;
		/* Remove border radius on mobile for edge-to-edge scrolling */
		box-shadow: none;
		border-left: none;
		border-right: none;
		margin: 0 -15px;
		/* Extend to edges if container has padding */
		width: calc(100% + 30px);
		/* Compensate for negative margin */
		overflow-x: auto;
		/* Ensure scrolling is enabled */
	}

	.w3-table-all {
		font-size: 13px;
		min-width: 900px;
		/* Ensures table stays wide enough to require scrolling */
	}

	.w3-table-all th {
		font-size: 12px;
		padding: 10px 6px;
		white-space: nowrap;
	}

	.w3-table-all td {
		padding: 8px 6px;
	}

	/* Add a subtle shadow hint that there's more content to scroll */
	.w3-responsive::after {
		content: '';
		position: absolute;
		top: 0;
		right: 0;
		height: 100%;
		width: 30px;
		background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05));
		pointer-events: none;
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.w3-responsive:active::after,
	.w3-responsive:hover::after {
		opacity: 1;
	}
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
	.w3-responsive {
		overflow-x: auto;
		/* CRITICAL: This must be auto, NOT hidden! */
		-webkit-overflow-scrolling: touch;
		margin: 0 -10px;
		width: calc(100% + 20px);
	}

	.w3-table-all {
		font-size: 12px;
		min-width: 850px;
		/* Slightly smaller but still scrollable */
	}

	.w3-table-all th {
		font-size: 11px;
		padding: 8px 4px;
	}

	.w3-table-all td {
		padding: 6px 4px;
	}

	/* Make the indent arrow smaller on very small screens */
	.w3-table-all td:empty+td::before {
		font-size: 12px;
		left: 4px;
	}

	.w3-table-all td:empty+td {
		padding-left: 20px;
	}

	/* Hint text for scrolling */
	.w3-responsive {
		position: relative;
	}

	.w3-responsive::before {
		content: '← проведіть, щоб прокрутити →';
		display: block;
		text-align: center;
		font-size: 11px;
		color: #7f8c8d;
		padding: 5px 0;
		background-color: #f8f9fa;
		border-bottom: 1px solid #e0e0e0;
		margin-bottom: 5px;
	}
}



.category-children {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

.category-bubble {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid var(--text-dark);
	border-radius: 999px;
	color: var(--text-dark);
	text-decoration: none;
	font-size: 0.875rem;
	transition: background-color 0.2s, color 0.2s;
}

.category-bubble:hover {
	background-color: var(--nav-bg);
	border: 1px solid var(--nav-bg);
	color: #fff;
}


.articles-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.sorting-form {
	margin: 0 0 16px auto;
}

.sorting-form select {
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	color: #5a7a96;
}

.widget-info {
	text-align: center;
	width: 100%;
	background: var(--body-fon);
	color: var(--text-dark);
	border: 2px dashed rgba(26, 111, 173, 0.3);
	border-radius: 8px;
	padding: 20px;
	margin: 0 auto 10px;
}

.sidebar .widget-info {
	width: calc(100% - 20px);
	margin: 0 10px 10px;
}

.category-section h2 {
	line-height: 1em;
	min-height: 2em;
}

#projects {
    scroll-margin-top: 120px; /* adjust to your header height */
}

figure {
    margin: 1em 0!important;
}