/**
 * napokolenia - style glowne
 * Zasoby graficzne: assets/img/ (np. get_template_directory_uri() . '/assets/img/logo.webp')
 *
 * Fonty i kolory zweryfikowane na zywej stronie napokolenia.pl (getComputedStyle):
 *  - tekst: Rubik, naglowki i menu: Poppins, mocne grubosci (700/800) (Google Fonts)
 *  - kolor marki / linkow: #2F7F21 (zielony)
 *  - tekst podstawowy: #666666
 *  - stopka: tlo #2F7F21, tekst bialy
 */

/* ==========================================================================
   0. Fonty (Google Fonts - jak na oryginalnej stronie)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Poppins:wght@300;400;600;700;800&display=swap');

/* ==========================================================================
   1. Zmienne / reset
   ========================================================================== */
:root {
	--np-color-primary: #2f7f21;
	--np-color-primary-hover: #95bf35;
	--np-color-patronite: #F23E17;
	--np-color-patronite-hover: #CD3514;
	--np-color-muted-bg: #f2f2f2;
	--np-color-text: #666666;
	--np-color-heading: #222222;
	--np-color-text-light: #888888;
	--np-color-bg: #ffffff;
	--np-color-surface: #ffffff;
	--np-color-border: #e5e5e5;
	--np-color-divider: #f1f1f1;
	--np-color-success: #2f7f21;
	--np-color-success-bg: #eaf4e6;
	--np-color-warning: #a2720b;
	--np-color-warning-bg: #fbf1dd;
	--np-color-error: #c0392b;
	--np-color-error-bg: #fbeae8;
	--np-container-width: 1280px;
	--np-font-base: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--np-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	--np-font-menu: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Tryb ciemny - domyslnie wedlug ustawien systemowych (prefers-color-scheme),
   nadpisywalny recznie przez przelacznik w menu (ustawia [data-theme] na <html>
   i zapamietuje wybor w localStorage - patrz assets/js/navigation.js). */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--np-color-text: #cfcfcf;
		--np-color-heading: #f5f5f5;
		--np-color-text-light: #9a9a9a;
		--np-color-bg: #121212;
		--np-color-surface: #1e1e1e;
		--np-color-border: #333333;
		--np-color-divider: #242424;
		--np-color-success: #6fcf52;
		--np-color-success-bg: rgba(111, 207, 82, .12);
		--np-color-warning: #e3ab43;
		--np-color-warning-bg: rgba(227, 171, 67, .12);
		--np-color-error: #ff6b5b;
		--np-color-error-bg: rgba(255, 107, 91, .12);
		--np-color-muted-bg: #1c1c1c;
	}
}
:root[data-theme="dark"] {
	--np-color-text: #cfcfcf;
	--np-color-heading: #f5f5f5;
	--np-color-text-light: #9a9a9a;
	--np-color-bg: #121212;
	--np-color-surface: #1e1e1e;
	--np-color-border: #333333;
	--np-color-divider: #242424;
	--np-color-success: #6fcf52;
	--np-color-success-bg: rgba(111, 207, 82, .12);
	--np-color-warning: #e3ab43;
	--np-color-warning-bg: rgba(227, 171, 67, .12);
	--np-color-error: #ff6b5b;
	--np-color-error-bg: rgba(255, 107, 91, .12);
	--np-color-muted-bg: #1c1c1c;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { overflow-x: hidden; }

body {
	margin: 0;
	font-family: var(--np-font-base);
	font-size: 16px;
	color: var(--np-color-text);
	background: var(--np-color-bg);
	line-height: 1.6;
	transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--np-font-heading);
	color: var(--np-color-heading);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 .5em;
}

img { max-width: 100%; height: auto; }
a { color: var(--np-color-primary); text-decoration: none; }
a:hover { color: var(--np-color-primary-hover); }

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

/* ==========================================================================
   2. Layout / kontener
   ========================================================================== */
.np-container {
	max-width: var(--np-container-width);
	margin: 0 auto;
	padding: 0 20px;
}
/* Blok Gutenberga z wyrownaniem "do szerokosci ekranu" (align: full) - przydatne dla sekcji (np. hero), ktore maja rozciagac sie na cala szerokosc, mimo ze siedza w kontenerze np-container. */
.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
/* Gdy sekcja pelnej szerokosci (np. hero z gradientem) jest pierwszym elementem tresci strony, ma "dotykac" nagłówka strony - bez tego wchodzilaby dopiero po 50px odstepu z .np-content-layout. */
.np-entry-content > .alignfull:first-child {
	margin-top: -50px;
}
.np-site { display: flex; flex-direction: column; min-height: 100vh; }
.np-site-content { flex: 1 0 auto; }

.np-btn {
	display: inline-block;
	padding: 12px 28px;
	line-height: 1;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	color: #fff !important;
	background-color: var(--np-color-primary);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background-color .3s;
}
.np-btn:hover { background-color: var(--np-color-primary-hover); }
.np-btn-large { padding: 18px 48px; font-size: 16px; font-weight: 700; }
/* Przycisk z ikonka (np. "Pobierz PDF") - ikona + tekst w jednej, zaokraglonej "pigulce" .np-btn. */
.np-btn-icon {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.np-btn-icon svg { flex: 0 0 auto; }

/* ==========================================================================
   3. Naglowek: logo po lewej, menu + social + lupa po prawej
   ========================================================================== */
.np-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background-color: var(--np-color-surface);
	border-bottom: 1px solid var(--np-color-border);
	padding: 14px 0;
	transition: padding .25s ease, background-color .25s ease;
}
.np-header.is-scrolled { padding: 7px 0; }
.np-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}
.np-branding { display: flex; align-items: center; }
.np-logo-link { display: inline-flex; }
.np-logo-img,
.np-branding img { display: block; max-height: 64px; width: auto; transition: max-height .25s ease; }
.np-header.is-scrolled .np-logo-img,
.np-header.is-scrolled .np-branding img { max-height: 42px; }

.np-header-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.np-main-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.np-main-nav li { position: relative; }
.np-main-nav a {
	display: block;
	padding: 8px 0;
	color: var(--np-color-heading);
	font-family: var(--np-font-menu);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: .02em;
}
.np-main-nav a:hover,
.np-main-nav .current-menu-item > a { color: var(--np-color-primary); }

.np-main-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	min-width: 220px;
	background: var(--np-color-surface);
	border: 1px solid var(--np-color-border);
	box-shadow: 0 6px 16px rgba(0,0,0,.08);
	padding: 8px 0;
	z-index: 50;
	flex-direction: column;
	gap: 0;
}
.np-main-nav li:hover > .sub-menu { display: flex; }
.np-main-nav .sub-menu a { padding: 8px 16px; font-weight: 400; text-transform: none; color: var(--np-color-text-light); }

.np-social-links {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
}
.np-social-links a { color: var(--np-color-heading); font-size: 16px; }
.np-footer .np-social-links a { color: #fff; }
.np-social-links a:hover { color: var(--np-color-primary); }

.inner-header-social {
	display: flex;
	align-items: center;
	gap: 16px;
}
.inner-header-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--np-color-heading);
}
.inner-header-social a:hover { color: var(--np-color-primary); }

.np-theme-toggle,
.np-search-toggle,
.np-menu-toggle {
	background: none;
	border: none;
	padding: 0;
	color: var(--np-color-heading);
	cursor: pointer;
}
.np-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
}
.np-theme-toggle:hover { color: var(--np-color-primary); }
.np-theme-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .np-theme-icon-sun { display: none; }
	:root:not([data-theme="light"]) .np-theme-icon-moon { display: block; }
}
:root[data-theme="dark"] .np-theme-icon-sun { display: none; }
:root[data-theme="dark"] .np-theme-icon-moon { display: block; }
.np-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
}
.np-search-toggle svg { display: block; }
.np-search-toggle:hover { color: var(--np-color-primary); }
.np-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	padding: 0;
}
.np-menu-toggle-bars { position: relative; display: block; width: 20px; height: 14px; flex: 0 0 auto; }
.np-menu-toggle-bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background-color: currentColor;
	transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.np-menu-toggle-bars span:nth-child(1) { top: 0; }
.np-menu-toggle-bars span:nth-child(2) { top: 6px; }
.np-menu-toggle-bars span:nth-child(3) { top: 12px; }
.np-menu-toggle[aria-expanded="true"] .np-menu-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.np-menu-toggle[aria-expanded="true"] .np-menu-toggle-bars span:nth-child(2) { opacity: 0; }
.np-menu-toggle[aria-expanded="true"] .np-menu-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.np-mobile-nav-social { display: none; }

@media (max-width: 900px) {
	.np-main-nav ul { display: none; }
	.np-menu-toggle { display: inline-flex; }
	.inner-header-social { display: none; }

	.np-main-nav { display: none; }
	.np-main-nav.is-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - 100%);
		overflow-y: auto;
		background-color: var(--np-color-surface);
		border-bottom: 1px solid var(--np-color-border);
		box-shadow: 0 12px 24px rgba(0,0,0,.1);
		z-index: 150;
	}
	.np-main-nav.is-open ul {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 8px 20px 4px;
	}
	.np-main-nav.is-open li { width: 100%; }
	.np-main-nav.is-open a { padding: 13px 0; }
	.np-main-nav.is-open li:not(:last-child) > a { border-bottom: 1px solid var(--np-color-border); }
	.np-main-nav.is-open .sub-menu {
		display: flex !important;
		position: static;
		border: none;
		box-shadow: none;
		padding: 0 0 4px 16px;
	}
	.np-main-nav.is-open .sub-menu a { border-bottom: none; padding: 8px 0; }

	.np-mobile-nav-social {
		display: flex;
		align-items: center;
		gap: 18px;
		padding: 16px 20px 22px;
		border-top: 1px solid var(--np-color-border);
	}
	.np-mobile-nav-social a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: var(--np-color-heading);
	}
	.np-mobile-nav-social a:hover { color: var(--np-color-primary); }
}

/* ==========================================================================
   4. Pelnoszerokosciowa wyszukiwarka (klik na lupe)
   ========================================================================== */
.np-search-overlay {
	position: absolute;
	inset: 0;
	background: var(--np-color-surface);
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 100;
}
.np-header.is-search-open .np-header-inner { opacity: 0; visibility: hidden; }
.np-header.is-search-open .np-search-overlay {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.np-search-overlay-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
}
.np-search-form { flex: 1 1 auto; }
.np-search-field {
	width: 100%;
	border: none;
	outline: none;
	font-size: 22px;
	font-family: var(--np-font-base);
	color: var(--np-color-primary);
	padding: 14px 0;
}
.np-search-field::placeholder { color: var(--np-color-primary); opacity: .6; }
.np-search-close {
	flex: 0 0 auto;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: var(--np-color-primary);
	cursor: pointer;
}

/* ==========================================================================
   5. Hero / baner strony glownej
   ========================================================================== */
.np-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 860px;
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}
.np-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(47,127,33,.92) 0%, rgba(47,127,33,.55) 55%, rgba(47,127,33,.25) 100%);
	transition: background .25s ease;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .np-hero-overlay {
		background: linear-gradient(135deg, rgba(8,14,6,.94) 0%, rgba(8,14,6,.8) 55%, rgba(0,0,0,.55) 100%);
	}
}
:root[data-theme="dark"] .np-hero-overlay {
	background: linear-gradient(135deg, rgba(8,14,6,.94) 0%, rgba(8,14,6,.8) 55%, rgba(0,0,0,.55) 100%);
}
.np-hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
}
.np-hero-inner {
	max-width: 640px;
	text-align: left;
}
.np-hero-sygnet {
	display: block;
	height: 64px;
	width: auto;
	margin: 0 0 24px;
}
.np-hero-title {
	color: #fff;
	font-size: 54px;
	line-height: 1.15;
	font-weight: 800;
	margin-bottom: 56px;
}
.np-hero-btn {
	background-color: #fff;
	color: var(--np-color-primary) !important;
	padding: 18px 42px;
	font-size: 16px;
	font-weight: 700;
}
.np-hero-btn:hover { background-color: var(--np-color-primary-hover); color: #fff !important; }

/* Kafelki zachodza lekko na dol banera i maja miedzy soba odstepy. */
.np-hero-cards {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: -64px;
}
.np-hero-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: var(--np-color-surface);
	color: var(--np-color-text);
	padding: 32px 36px;
	border-radius: 5px;
	box-shadow: 0 16px 32px rgba(0,0,0,.12);
}
.np-hero-card.is-green { background: var(--np-color-primary); color: #fff; }
.np-hero-card.is-green .np-hero-card-title,
.np-hero-card.is-green .np-hero-card-link { color: #fff; }
.np-hero-card-desc { flex: 1 0 auto; }
.np-hero-card-icon {
	display: inline-block;
	width: 44px;
	height: 44px;
	margin-bottom: 18px;
	background-color: var(--np-color-primary-hover);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: left center;
	mask-position: left center;
}
.np-hero-card-icon.icon-n-analizy { background-color: #fff; -webkit-mask-image: url('../img/n-analizy.svg'); mask-image: url('../img/n-analizy.svg'); }
.np-hero-card-icon.icon-n-opinie { -webkit-mask-image: url('../img/n-opinie.svg'); mask-image: url('../img/n-opinie.svg'); }
.np-hero-card-icon.icon-n-edukacja { -webkit-mask-image: url('../img/n-edukacja.svg'); mask-image: url('../img/n-edukacja.svg'); }
.np-hero-card-title { font-family: var(--np-font-heading); font-weight: 700; font-size: 19px; margin: 0 0 10px; }
.np-hero-card-desc { font-size: 14px; margin: 0 0 14px; }
.np-hero-card-link {
	display: inline-block;
	margin-top: auto;
	padding: 10px 24px;
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	color: var(--np-color-heading);
	border: 2px solid var(--np-color-heading);
	border-radius: 50px;
	transition: background-color .25s, color .25s, border-color .25s;
}
.np-hero-card-link:hover { background-color: var(--np-color-primary); border-color: var(--np-color-primary); color: #fff; }
.np-hero-card.is-green .np-hero-card-link { border-color: #fff; color: #fff; }
.np-hero-card.is-green .np-hero-card-link:hover { background-color: #fff; border-color: #fff; color: var(--np-color-primary); }

@media (max-width: 760px) {
	.np-hero { min-height: 560px; }
	.np-hero-cards { grid-template-columns: 1fr; margin-top: 24px; gap: 16px; }
	.np-hero-title { font-size: 32px; }
	.np-hero-btn { padding: 14px 30px; font-size: 15px; }
}

/* ==========================================================================
   6. Sekcje ogolne / siatka artykulow
   ========================================================================== */
.np-section { padding: 110px 0 60px; }
.np-section:first-of-type { padding-top: 110px; }
.np-section-header { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.np-section-title-center { text-align: center; margin-bottom: 40px; }

.np-opinie-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px 40px;
}
.np-card { display: flex; flex-direction: column; background: var(--np-color-surface); }
.np-card-body { display: flex; flex-direction: column; flex: 1 0 auto; }
.np-card-thumb {
	display: block;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 16px;
	aspect-ratio: 4 / 2.5;
	background-color: var(--np-color-border);
}
.np-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.np-card-thumb:hover img { transform: scale(1.05); }
.np-card-thumb-empty { background-color: var(--np-color-border); }

.np-card .np-entry-title { font-size: 19px; margin-bottom: 10px; }
.np-card .np-entry-title a { color: var(--np-color-heading); }
.np-card .np-entry-title a:hover { color: var(--np-color-primary); }
.np-card .np-entry-content { font-size: 14px; margin-bottom: 18px; }

.np-entry-meta { margin-bottom: 18px; margin-top: auto; }
.np-entry-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 12px;
	font-weight: 300;
	color: var(--np-color-text-light);
}
.np-entry-meta-row + .np-entry-meta-row { margin-top: 10px; }
.np-card-author,
.np-card-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.np-meta-icon { flex: 0 0 auto; width: 11px; height: 11px; color: var(--np-color-primary-hover); }
.np-entry-meta-cats { gap: 8px; }
.np-card-cat {
	display: inline-block;
	padding: 0px 6px;
	font-size: 10px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--np-color-primary);
	border: 1px solid var(--np-color-primary);
	border-radius: 50px;
	transition: background-color .25s, color .25s;
}
.np-card-cat:hover { background-color: var(--np-color-primary); color: #fff; }

.np-card-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: flex-start;
	padding: 9px 20px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background-color: var(--np-color-primary);
	border-radius: 50px;
	transition: background-color .25s;
}
.np-card-more svg { transition: transform .25s; }
.np-card-more:hover { background-color: var(--np-color-primary-hover); color: #fff; }
.np-card-more:hover svg { transform: translateX(3px); }

.np-opinie-cta { text-align: center; margin-top: 50px; }

@media (max-width: 900px) {
	.np-opinie-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.np-opinie-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. Sekcja zespolu
   ========================================================================== */
.np-team-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.np-team-photos {
	--np-gap: 10px;
	position: relative;
	aspect-ratio: 1 / 1;
}
.np-team-photo {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: calc((100% - 2 * var(--np-gap)) / 3);
	height: calc((100% - 2 * var(--np-gap)) / 3);
	overflow: hidden;
	border: 1px solid #cccccc;
	border-radius: 4px;
	background: var(--np-color-border);
	transform: translate(
		calc(var(--np-col, 0) * 100% + var(--np-col, 0) * var(--np-gap)),
		calc(var(--np-row, 0) * 100% + var(--np-row, 0) * var(--np-gap))
	);
	transition: transform .9s cubic-bezier(.65, 0, .35, 1), box-shadow .3s ease;
	will-change: transform;
}
.np-team-photo.is-swapping { z-index: 5; box-shadow: 0 14px 34px rgba(0,0,0,.25); }
/* Pozycje poczatkowe (dzialaja tez bez JS) - nadpisywane plynnie przez navigation.js. */
.np-team-photo:nth-child(1) { --np-col: 0; --np-row: 0; }
.np-team-photo:nth-child(2) { --np-col: 1; --np-row: 0; }
.np-team-photo:nth-child(3) { --np-col: 2; --np-row: 0; }
.np-team-photo:nth-child(4) { --np-col: 0; --np-row: 1; }
.np-team-photo:nth-child(5) { --np-col: 1; --np-row: 1; }
.np-team-photo:nth-child(6) { --np-col: 2; --np-row: 1; }
.np-team-photo:nth-child(7) { --np-col: 0; --np-row: 2; }
.np-team-photo:nth-child(8) { --np-col: 1; --np-row: 2; }
.np-team-photo:nth-child(9) { --np-col: 2; --np-row: 2; }
.np-team-photo img,
.np-team-photo .avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-team-photo-empty { background: repeating-linear-gradient(45deg, var(--np-color-border), var(--np-color-border) 8px, #f3f3f3 8px, #f3f3f3 16px); }
.np-team-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 12px;
	text-align: center;
	padding: 8px;
	color: var(--np-color-text-light);
}
.np-team-text h2 { font-size: 28px; margin-bottom: 18px; }
.np-team-desc { margin-bottom: 24px; }

@media (max-width: 860px) {
	.np-team-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.np-team-photo { transition: none; }
}

/* ==========================================================================
   8. Uczelnie (pasek logotypow)
   ========================================================================== */
.np-section-subtitle-center { text-align: center; color: var(--np-color-text-light); margin: -24px 0 40px; }
.np-uczelnie-carousel { display: flex; align-items: center; gap: 20px; }
.np-uczelnie-strip {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 48px;
	flex: 1 1 auto;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.np-uczelnie-strip::-webkit-scrollbar { display: none; }
/* Kazdy kafelek jest punktem "zaczepienia" przy lewej krawedzi - dzieki
   temu po kazdym przewinieciu (krok automatyczny, strzalki) po lewej
   stronie zawsze stoi cale logo; uciete moze byc tylko to wjezdzajace
   z prawej. */
.np-uczelnia { flex: 0 0 auto; scroll-snap-align: start; }
.np-uczelnia img {
	display: block;
	height: 48px;
	width: auto;
	max-width: 160px;
	filter: grayscale(1);
	opacity: .9;
	transition: filter .3s, opacity .3s, transform .3s;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .np-uczelnia img { filter: grayscale(1) invert(1) brightness(1.5); opacity: .95; }
}
:root[data-theme="dark"] .np-uczelnia img { filter: grayscale(1) invert(1) brightness(1.5); opacity: .95; }

/* Logo "w kolorze" - atrybut grayscale="no" w shortcode [np_uczelnie]
   (patrz functions.php). Nadpisuje wyszarzenie powyzej, takze w trybie
   ciemnym (gdzie domyslnie logo sa dodatkowo odwrocone/rozjasnione). */
.np-uczelnia img.np-uczelnia-img-color { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .np-uczelnia img.np-uczelnia-img-color { filter: none; opacity: 1; }
}
:root[data-theme="dark"] .np-uczelnia img.np-uczelnia-img-color { filter: none; opacity: 1; }

/* Karty wpisow (.np-card) w trybie ciemnym - bez wlasnego tla "surface"
   (#1e1e1e), bo bez paddingu dookola wygladalo to jak oddzielny box na
   ciemnym tle strony; teraz maja to samo tlo co strona. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .np-card { background-color: var(--np-color-bg); }
}
:root[data-theme="dark"] .np-card { background-color: var(--np-color-bg); }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .np-patronite-icon { background-color: #3a3a3a; }
}
:root[data-theme="dark"] .np-patronite-icon { background-color: #3a3a3a; }
.np-uczelnia img:hover { filter: grayscale(0); opacity: 1; }
.np-uczelnia-nazwa { font-weight: 700; letter-spacing: .04em; color: var(--np-color-text-light); text-transform: uppercase; font-size: 13px; white-space: nowrap; }
.np-uczelnie-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	color: var(--np-color-primary);
	cursor: pointer;
}
.np-uczelnie-arrow:hover { color: var(--np-color-primary-hover); }

/* ==========================================================================
   10. Widgety ogolne (sidebar)
   ========================================================================== */
.widget { margin-bottom: 36px; }
.widget-title { font-size: 16px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 14px; font-family: var(--np-font-heading); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--np-color-border); }

/* 16. Sidebar - wyszukiwarka, naglowki widgetow, listy, chmura tagow */
.np-sidebar .widget-title {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 14px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .09em;
}
.np-sidebar .widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background-color: var(--np-color-primary);
}

.np-widget-search { position: relative; display: flex; align-items: center; }
.np-widget-search-field {
	width: 100%;
	padding: 12px 46px 12px 18px;
	font-size: 14px;
	font-family: var(--np-font-base);
	color: var(--np-color-heading);
	background-color: var(--np-color-surface);
	border: 1px solid var(--np-color-border);
	border-radius: 50px;
	outline: none;
	appearance: none;
	transition: border-color .2s;
}
.np-widget-search-field::placeholder { color: var(--np-color-text-light); }
.np-widget-search-field:focus { border-color: var(--np-color-primary); }
.np-widget-search-field::-webkit-search-decoration,
.np-widget-search-field::-webkit-search-cancel-button { display: none; }
.np-widget-search-submit {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: var(--np-color-primary);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}
.np-widget-search-submit:hover { background-color: var(--np-color-primary-hover); }

.np-sidebar .widget ul li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--np-color-divider);
}
.np-sidebar .widget ul li:last-child { border-bottom: none; }
.np-sidebar .widget ul li a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	transition: color .2s, transform .2s;
}
.np-sidebar .widget ul li a:hover { transform: translateX(3px); }
.np-widget-avatar {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}
.np-widget-count {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 400;
	color: var(--np-color-text-light);
}

.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_tag_cloud .tagcloud a {
	display: inline-flex;
	align-items: center;
	font-size: 12px !important;
	padding: 3px 12px;
	color: var(--np-color-primary);
	border: 1px solid var(--np-color-border);
	border-radius: 50px;
	transition: background-color .2s, color .2s, border-color .2s;
}
.widget_tag_cloud .tagcloud a:hover {
	background-color: var(--np-color-primary);
	border-color: var(--np-color-primary);
	color: #fff;
}
.np-tag-bars {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 10px;
	margin-left: 8px;
}
.np-tag-bar {
	width: 3px;
	border-radius: 1px;
	background-color: var(--np-color-border);
	transition: background-color .2s;
}
.np-tag-bar-1 { height: 4px; }
.np-tag-bar-2 { height: 7px; }
.np-tag-bar-3 { height: 10px; }
.np-tag-bar.is-filled { background-color: currentColor; }
.widget_tag_cloud .tagcloud a:hover .np-tag-bar:not(.is-filled) { background-color: rgba(255, 255, 255, .4); }

.np-content-layout { display: flex; gap: 40px; align-items: flex-start; padding-top: 50px; padding-bottom: 50px; }
.np-primary { flex: 1 1 auto; min-width: 0; }
.np-sidebar { flex: 0 0 260px; min-width: 0; max-width: 260px; }
.np-sidebar iframe,
.np-sidebar embed,
.np-sidebar video { max-width: 100%; }
.np-page-layout .np-primary,
.np-full-width { flex: 1 1 100%; width: 100%; }

.np-entry-header { margin-bottom: 16px; }
.np-entry-title { font-size: 34px; }
.np-entry-content :first-child { margin-top: 0; }

@media (max-width: 900px) {
	.np-content-layout { flex-direction: column; }
	.np-primary { width: 100%; }
	.np-sidebar { flex-basis: auto; width: 100%; max-width: none; }
}

/* ==========================================================================
   11. Stopka - zielone tlo z grafika drzewa
   ========================================================================== */
.np-footer {
	position: relative;
	z-index: 0;
	background-color: var(--np-color-primary);
	background-image: url('../img/footer-tlo.webp');
	background-size: cover;
	background-position: center;
	color: #fff;
	margin-top: 40px;
}
.np-footer:before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: transparent;
	pointer-events: none;
	transition: background-color .25s ease;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .np-footer:before { background-color: rgba(0,0,0,.45); }
}
:root[data-theme="dark"] .np-footer:before { background-color: rgba(0,0,0,.45); }
.np-footer-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr 2fr;
	gap: 40px;
	padding-top: 110px;
	padding-bottom: 30px;
	align-items: start;
}
.np-footer a { color: #fff; }
.np-footer a:hover { color: #d7f2c8; }
.np-footer .widget-title {
	color: #fff;
	font-family: var(--np-font-heading);
	font-weight: 800;
	font-size: 23px;
	text-transform: none;
	letter-spacing: normal;
	margin-bottom: 42px;
}
.np-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.np-footer .widget li { padding: 4px 0; border: none; }
.np-footer .widget_nav_menu ul { display: block; }
.np-footer .np-social-links { margin-top: 28px; }
.np-footer-tree { min-width: 60px; }

.np-footer-social { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.np-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,.55);
	color: #fff;
	transition: background-color .25s, border-color .25s;
}
.np-footer-social a:hover { background-color: rgba(255,255,255,.15); border-color: #fff; }

.np-footer-bottom {
	position: relative;
	z-index: 1;
	border-top: 1px solid rgba(255,255,255,.25);
	background: rgba(0,0,0,.08);
}
.np-footer-bottom-inner {
	padding-top: 16px;
	padding-bottom: 16px;
	font-size: 13px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	opacity: .9;
}

@media (max-width: 760px) {
	.np-footer-inner { grid-template-columns: 1fr; padding-top: 60px; }
}
@media (max-width: 480px) {
	.np-container { padding-left: 24px; padding-right: 24px; }
}

/* ==========================================================================
   12. Strona Autora (page-autor.php)
   ========================================================================== */
.np-autor-header {
	display: flex;
	gap: 36px;
	align-items: flex-start;
	flex-wrap: wrap;
	margin-bottom: 24px;
}
.np-autor-photo { flex: 0 0 260px; width: 260px; }
.np-autor-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 5px solid #eeeeee;
	border-radius: 24px;
}
.np-autor-heading { flex: 1 1 320px; }
.np-autor-heading .np-entry-title { margin-bottom: 18px; }
.np-autor-uczelnia {
	font-size: 19px;
	font-weight: 600;
	color: #aaaaaa;
	margin: 0;
	padding-top: 18px;
	border-top: 1px solid #f1f1f1;
}
.np-autor-specjalizacja {
	font-size: 14px;
	color: var(--np-color-primary);
	margin: 6px 0 0;
}
.np-autor-bio {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid #f1f1f1;
}
.np-autor-wpisy { margin-top: 48px; }
.np-autor-wpisy-title {
	font-size: 20px;
	margin-bottom: 20px;
}
@media (max-width: 560px) {
	.np-autor-photo { flex-basis: 180px; width: 180px; }
}

/* ==========================================================================
   12b. Stronicowanie (the_posts_pagination - archiwa, blog, wyszukiwanie)
   ========================================================================== */
.pagination.navigation {
	margin-top: 60px;
}
.pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--np-color-border);
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	color: var(--np-color-heading);
	background-color: var(--np-color-surface);
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.pagination .page-numbers.dots {
	min-width: auto;
	height: auto;
	border-color: transparent;
	background: none;
	color: var(--np-color-text-light);
}
.pagination .page-numbers:not(.dots):not(.current):hover {
	border-color: var(--np-color-primary);
	color: var(--np-color-primary);
}
.pagination .page-numbers.current {
	background-color: var(--np-color-primary);
	border-color: var(--np-color-primary);
	color: #fff;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
	padding: 0 18px;
}
.pagination .page-numbers.first-page,
.pagination .page-numbers.last-page {
	padding: 0 14px;
	color: var(--np-color-text-light);
}
.pagination .page-numbers.first-page { margin-right: 6px; }
.pagination .page-numbers.last-page { margin-left: 6px; }
.pagination .page-numbers svg { display: block; }

/* ==========================================================================
   12c. Bannerek wsparcia (Patronite) - pod tresca wpisu (single.php)
   ========================================================================== */
.np-patronite-banner {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 40px;
	padding: 24px 28px;
	border-radius: 5px;
	background-color: var(--np-color-surface);
	border: 1px solid var(--np-color-border);
	border-left: 4px solid var(--np-color-patronite);
}
.np-patronite-icon {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e9e9e9;
}
.np-patronite-icon img { display: block; width: 46px; height: 46px; }
.np-patronite-text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--np-color-text);
}
.np-patronite-btn {
	flex: 0 0 auto;
	white-space: nowrap;
	background-color: var(--np-color-patronite);
}
.np-patronite-btn:hover {
	background-color: var(--np-color-patronite-hover);
}

@media (max-width: 620px) {
	.np-patronite-banner { flex-wrap: wrap; padding: 20px; }
	.np-patronite-btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   12d. Blok "Separator" Gutenberga (<hr>) w tresci wpisu - domyslna, gruba
   kreska przegladarki zastapiona cienka, w kolorze linii motywu (dziala
   tez w trybie ciemnym, bo --np-color-border jest tam przyciemniane).
   ========================================================================== */
.wp-block-separator {
	border: none;
	border-top: 1px solid var(--np-color-border);
}

/* ==========================================================================
   12e. Pojedynczy wpis (single.php) - meta, zdjecie/lightbox, udostepnianie,
        author box, nawigacja poprzedni/nastepny wpis
   ========================================================================== */

/* Meta wpisu (autor/data/kategorie) - te same klasy co na liscie
   (.np-card-author/.np-card-date/.np-card-cat), tylko troche wiekszy tekst. */
.np-entry-meta-single .np-entry-meta-row { font-size: 14px; }
.np-entry-meta-single .np-meta-icon { width: 13px; height: 13px; }
.np-entry-meta-single .np-card-author a { color: var(--np-color-text-light); }
.np-entry-meta-single .np-card-author a:hover { color: var(--np-color-primary); }

/* Zdjecie wyrozniajace - mocna panorama + szklo powiekszajace w rogu. */
.np-entry-thumb {
	position: relative;
	aspect-ratio: 21 / 8;
	overflow: hidden;
	border-radius: 6px;
	margin-bottom: 24px;
}
.np-entry-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.np-entry-thumb-zoom {
	position: absolute;
	right: 16px;
	bottom: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background-color: rgba(0,0,0,.55);
	transition: background-color .25s;
}
.np-entry-thumb-zoom:hover { background-color: var(--np-color-primary); }

/* Lightbox pod przyciskiem lupy (otwierany przez navigation.js). */
.np-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background-color: rgba(0,0,0,.9);
}
.np-lightbox-img { display: block; max-width: 100%; max-height: 100%; border-radius: 4px; }
.np-lightbox-close {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background-color: rgba(255,255,255,.12);
	transition: background-color .25s;
}
.np-lightbox-close:hover { background-color: rgba(255,255,255,.22); }
body.np-lightbox-open { overflow: hidden; }

/* "Podziel sie" - pasek ikon miedzy zdjeciem a trescia. */
.np-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 28px;
}
.np-share-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--np-color-text-light);
}
.np-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--np-color-text-light);
	transition: color .2s ease, transform .2s ease;
}
.np-share-btn svg { width: 18px; height: 18px; }
.np-share-btn:hover { transform: translateY(-2px); }
.np-share-facebook:hover { color: #1877F2; }
.np-share-x:hover { color: var(--np-color-heading); }
.np-share-linkedin:hover { color: #0A66C2; }
.np-share-whatsapp:hover { color: #25D366; }
.np-share-telegram:hover { color: #229ED9; }
.np-share-email:hover { color: var(--np-color-primary); }

@media (max-width: 600px) {
	.np-entry-title { font-size: 26px; }
	.np-share { gap: 8px; }
}

/* Author box - pod bannerkiem Patronite. */
.np-author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 32px;
	padding: 24px;
	border-radius: 5px;
	background-color: var(--np-color-muted-bg);
}
.np-author-box-avatar { flex: 0 0 64px; display: block; }
.np-author-box-avatar img {
	display: block;
	box-sizing: border-box;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--np-color-bg);
}
.np-author-box-body { flex: 1 1 auto; }
.np-author-box-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--np-color-text-light);
	margin-bottom: 4px;
}
.np-author-box-name { font-size: 17px; font-weight: 700; color: var(--np-color-heading); }
.np-author-box-name:hover { color: var(--np-color-primary); }
.np-author-box-bio { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--np-color-text); }

@media (max-width: 500px) {
	.np-author-box { flex-direction: column; align-items: flex-start; }
}

/* Nawigacja poprzedni / nastepny wpis. */
.post-navigation { margin-top: 32px; }
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
	padding: 16px 20px;
	border: 1px solid var(--np-color-border);
	border-radius: 5px;
	transition: border-color .25s, background-color .25s;
}
.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
	border-color: var(--np-color-primary);
	background-color: var(--np-color-surface);
}
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
	display: flex;
	align-items: center;
	gap: 14px;
}
.np-post-nav-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background-color: var(--np-color-border);
}
.np-post-nav-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.np-post-nav-text { flex: 1 1 auto; min-width: 0; }
.np-post-nav-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--np-color-text-light);
	margin-bottom: 6px;
}
.np-post-nav-title { display: block; font-size: 15px; font-weight: 600; color: var(--np-color-heading); }
.post-navigation a:hover .np-post-nav-title { color: var(--np-color-primary); }
.post-navigation .nav-next .np-post-nav-text { text-align: right; }

@media (max-width: 600px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. Formularze / komentarze
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="number"], textarea, select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--np-color-border);
	border-radius: 50px;
	font-family: inherit;
}
textarea { border-radius: 20px; }

/* ==========================================================================
   14. Dymek podpowiedzi (tooltip) - uzywany przy linku "wykonanie" w stopce
   ========================================================================== */
[data-tooltip] {
	position: relative;
	z-index: 2;
	cursor: pointer;
}
[data-tooltip]:after,
[data-tooltip]:before {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}
[data-tooltip]:before {
	position: absolute;
	bottom: 150%;
	left: 50%;
	margin-bottom: 5px;
	margin-left: -60px;
	padding: 7px;
	width: 100px;
	border-radius: 3px;
	background-color: var(--np-color-primary);
	color: #fff;
	content: attr(data-tooltip);
	text-align: center;
	font-size: 10px;
	line-height: 1.2;
}
[data-tooltip]:after {
	position: absolute;
	bottom: 150%;
	left: 50%;
	margin-left: -5px;
	width: 0;
	border-top: 5px solid var(--np-color-primary);
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	content: " ";
	font-size: 0;
	line-height: 0;
}
[data-tooltip]:hover:after,
[data-tooltip]:hover:before {
	visibility: visible;
	opacity: 1;
}

/* 15. Strona 404 */
.np-404 {
	max-width: 560px;
	margin: 0 auto;
	padding: 70px 20px 90px;
	text-align: center;
}
.np-404-img {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto 36px;
}
.np-404-title {
	margin: 0 0 14px;
	font-size: 26px;
	font-weight: 800;
	color: var(--np-color-heading);
}
.np-404-text {
	margin: 0 0 32px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--np-color-text-light);
}
.np-404-btn { display: inline-block; }
@media (max-width: 480px) {
	.np-404-img { max-width: 240px; }
	.np-404-title { font-size: 22px; }
}

/* ==========================================================================
   17. Formularz kontaktowy (Contact Form 7) - pigulkowe pola z zielona
   obwodka, zaokraglone textarea, przycisk w stylu .np-btn.
   ========================================================================== */
.wpcf7-form { max-width: 720px; }
.wpcf7-form p { margin: 0 0 20px; }

/* Dwie pierwsze linie formularza (np. imie + e-mail) moga stac obok siebie,
   jesli w zakladce "Formularz" w CF7 opakujemy je w <div class="np-contact-row">
   ...</div> - patrz instrukcja w rozmowie. Bez tego kazde pole i tak dostaje
   pelen, ladny styl, tylko stoi pod spodem, nie obok. */
.wpcf7-form .np-contact-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.wpcf7-form .np-contact-row p { flex: 1 1 260px; margin: 0; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea {
	display: block;
	width: 100%;
	padding: 16px 26px;
	font-family: var(--np-font-base);
	font-size: 15px;
	color: var(--np-color-heading);
	background-color: transparent;
	border: 2px solid var(--np-color-primary);
	border-radius: 50px;
	outline: none;
	transition: border-color .2s;
}
.wpcf7-form textarea {
	min-height: 180px;
	border-radius: 24px;
	resize: vertical;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: var(--np-color-text-light); opacity: 1; }
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--np-color-primary-hover); }

.wpcf7-form input[type="submit"] {
	display: inline-block;
	padding: 16px 44px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff !important;
	background-color: var(--np-color-primary);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background-color .3s;
}
.wpcf7-form input[type="submit"]:hover { background-color: var(--np-color-primary-hover); }
.wpcf7-form input[type="submit"]:disabled { opacity: .6; cursor: default; }

/* Pole z bledem - czerwona obwodka zamiast domyslnej zielonej. */
.wpcf7-form .wpcf7-not-valid {
	border-color: var(--np-color-error) !important;
}

/* Dymek z komunikatem bledu przy polu - mala "etykietka" pod spodem, ze
   strzaleczka wskazujaca na pole, do ktorego sie odnosi. */
.wpcf7-not-valid-tip {
	position: relative;
	display: inline-block;
	margin-top: 8px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--np-color-error);
	background-color: var(--np-color-error-bg);
	border-radius: 8px;
}
.wpcf7-not-valid-tip::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 18px;
	width: 9px;
	height: 9px;
	background-color: var(--np-color-error-bg);
	transform: rotate(45deg);
}

/* Komunikat zbiorczy pod formularzem - kolor zalezny od tego, co sie
   wydarzylo (CF7 dokleja klase statusu do <form> po wyslaniu: sent / failed /
   invalid / spam / unaccepted / aborted / payment-required). */
.wpcf7-form .wpcf7-response-output {
	margin: 20px 0 0 !important;
	padding: 14px 22px !important;
	border: none !important;
	border-radius: 12px !important;
	font-size: 14px;
	font-weight: 600;
	color: var(--np-color-text);
	background-color: var(--np-color-muted-bg);
}
.wpcf7-form.sent .wpcf7-response-output {
	color: var(--np-color-success);
	background-color: var(--np-color-success-bg);
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
	color: var(--np-color-error);
	background-color: var(--np-color-error-bg);
}
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.payment-required .wpcf7-response-output {
	color: var(--np-color-warning);
	background-color: var(--np-color-warning-bg);
}

/* ==========================================================================
   18. Strona "O nas" (page-o-nas.php)
   ========================================================================== */

.np-onas-hero {
	padding: 90px 0 0;
	background: linear-gradient(180deg, rgba(47,127,33,.07), rgba(47,127,33,0) 70%);
	text-align: center;
}
.np-onas-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--np-color-primary);
	margin: 0 0 14px;
}
.np-onas-title {
	font-family: var(--np-font-heading);
	font-size: 42px;
	line-height: 1.2;
	max-width: 760px;
	margin: 0 auto 20px;
}
.np-onas-lead {
	max-width: 900px;
	margin: 0 auto;
	font-size: 17px;
	color: var(--np-color-text-light);
}

.np-onas-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin-top: 60px;
	border-top: 1px solid var(--np-color-divider);
}
.np-onas-stat {
	text-align: center;
	padding: 28px 16px;
	border-right: 1px solid var(--np-color-divider);
}
.np-onas-stat:last-child { border-right: none; }
.np-onas-stat-num {
	display: block;
	font-family: var(--np-font-heading);
	font-weight: 700;
	font-size: 34px;
	color: var(--np-color-primary);
	margin-bottom: 6px;
}
.np-onas-stat-label {
	display: block;
	font-size: 13px;
	color: var(--np-color-text-light);
}

.np-section-header-left { text-align: left; max-width: 680px; margin: 0 0 40px; }

.np-onas-intro-text {
	max-width: 760px;
	font-size: 16px;
	margin-bottom: 50px;
}

.np-onas-values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.np-value-card {
	padding: 28px 24px 24px;
	border-top: 3px solid var(--np-color-primary);
	background: var(--np-color-muted-bg);
	border-radius: 0 0 14px 14px;
}
.np-value-num {
	display: block;
	font-family: var(--np-font-heading);
	font-weight: 700;
	font-size: 15px;
	color: var(--np-color-text-light);
	margin-bottom: 10px;
}
.np-value-title { font-size: 19px; margin: 0 0 10px; }
.np-value-text { font-size: 14px; color: var(--np-color-text-light); margin: 0; }

.np-onas-media .np-section-header p { margin-top: 10px; }
.np-media-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}
.np-media-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border: 1px solid var(--np-color-border);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--np-color-text-light);
}

.np-onas-team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px 24px;
	width: 100%;
	max-width: none;
}
.np-onas-team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: var(--np-color-text);
	padding: 24px 16px;
	border: 1px solid #ccc;
	border-radius: 14px;
}
.np-onas-team-photo {
	display: block;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #eeeeee;
	margin-bottom: 14px;
}
.np-onas-team-img,
.np-onas-team-photo .avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-onas-team-placeholder { display: block; width: 100%; height: 100%; background: var(--np-color-muted-bg); }
.np-onas-team-name { font-weight: 700; font-size: 15px; }
.np-onas-team-uczelnia { font-size: 13px; color: var(--np-color-text-light); margin-top: 2px; }
.np-onas-team-card:hover .np-onas-team-photo { border-color: var(--np-color-primary); }

@media (max-width: 900px) {
	.np-onas-title { font-size: 32px; }
	.np-onas-stats { grid-template-columns: repeat(2, 1fr); }
	.np-onas-stat:nth-child(2) { border-right: none; }
	.np-onas-stat { border-bottom: 1px solid var(--np-color-divider); }
	.np-onas-values { grid-template-columns: 1fr; }
	.np-onas-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.np-onas-hero { padding-top: 60px; }
	.np-onas-team-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
	.np-onas-team-photo { width: 110px; height: 110px; }
	.np-onas-team-card { padding: 18px 10px; }
}


/* ==========================================================================
   16. Ukrycie plywajacej odznaki reCAPTCHA (walidacja formularzy dziala
   dalej w tle, tylko sam znaczek w rogu ekranu nie jest wyswietlany).
   ========================================================================== */
.grecaptcha-badge { display: none !important; }

/* ==========================================================================
   17. Przycisk "do gory" z pierscieniem, ktory wypelnia sie w miare
   przewijania strony (postep = aktualna pozycja scrolla / cala wysokosc
   strony). Pierscien rysowany jako SVG <circle> animowany przez
   stroke-dashoffset (patrz navigation.js).
   ========================================================================== */
.np-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 52px;
	height: 52px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: var(--np-color-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, box-shadow .25s ease;
	z-index: 300;
}
.np-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.np-back-to-top:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.np-back-to-top-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}
.np-back-to-top-ring-bg { fill: none; stroke: var(--np-color-border); stroke-width: 3; }
.np-back-to-top-ring-fill {
	fill: none;
	stroke: var(--np-color-primary);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 131.9;
	stroke-dashoffset: 131.9;
	transition: stroke-dashoffset .1s linear;
}
.np-back-to-top-arrow {
	position: relative;
	width: 18px;
	height: 18px;
	color: var(--np-color-primary);
	transition: color .2s ease, transform .2s ease;
}
.np-back-to-top:hover .np-back-to-top-arrow { color: var(--np-color-primary-hover); transform: translateY(-1px); }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .np-back-to-top { box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
	:root:not([data-theme="light"]) .np-back-to-top:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }
}
:root[data-theme="dark"] .np-back-to-top { box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .np-back-to-top:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }

@media (max-width: 600px) {
	.np-back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
	.np-back-to-top-arrow { width: 16px; height: 16px; }
}

/* ==========================================================================
   18. "Podobne opinie i ekspertyzy" - karuzela pod artykulem (single.php).
   Dobor wpisow: patrz np_get_related_posts() w functions.php.
   ========================================================================== */
.np-related { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--np-color-divider); }
.np-related-title { font-size: 22px; margin: 0 0 24px; }
.np-related-carousel { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np-related-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 24px;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.np-related-track::-webkit-scrollbar { display: none; }
.np-related-card {
	flex: 0 0 auto;
	width: 260px;
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
}
.np-related-card .np-card-thumb { margin-bottom: 14px; }
.np-related-card .np-entry-title { font-size: 16px; margin-bottom: 8px; }
.np-related-card .np-entry-title a { color: var(--np-color-heading); }
.np-related-card .np-entry-title a:hover { color: var(--np-color-primary); }
.np-related-card .np-card-date { font-size: 12px; color: var(--np-color-text-light); display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 760px) {
	.np-related { margin-top: 36px; padding-top: 28px; }
	.np-related-card { width: 220px; }
}
@media (max-width: 480px) {
	.np-related-card { width: 76vw; }
}
