/**
 * Donum Corde - Zespół: style frontendu.
 * Kolor akcentu marki: #cbaa5b
 */

.dc-zespol {
	--dc-accent: #cbaa5b;
	--dc-text: #333;
	--dc-muted: #555;
	--dc-bg-alt: #f4f6f8;
	--dc-cols: 5;
	margin: 0 auto;
}

.dc-zespol__section {
	margin: 0 0 50px;
}

.dc-zespol__heading {
	text-align: center;
	font-size: 28px;
	color: var(--dc-text);
	font-weight: 700;
	margin: 0 0 8px;
}

.dc-zespol__heading::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background: var(--dc-accent);
	margin: 12px auto 30px;
	border-radius: 2px;
}

.dc-zespol__grid {
	display: grid;
	grid-template-columns: repeat(var(--dc-cols), 1fr);
	gap: 24px;
}

.dc-zespol--cols-4 { --dc-cols: 4; }
.dc-zespol--cols-3 { --dc-cols: 3; }
.dc-zespol--cols-6 { --dc-cols: 6; }

/* Wyróżnieni — kierownicy działu: wyśrodkowani, nad siatką */
.dc-zespol__featured {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
	margin: 0 auto 36px;
}

.dc-zespol__card--kierownik {
	width: 280px;
	max-width: 100%;
}

.dc-zespol__card--kierownik .dc-zespol__name {
	font-size: 19px;
}

.dc-zespol__card--kierownik .dc-zespol__spec {
	font-size: 15px;
}

.dc-zespol__card {
	text-align: center;
}

.dc-zespol__card-link {
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform 0.15s ease;
}

.dc-zespol__card-link:hover {
	transform: translateY(-4px);
}

.dc-zespol__photo {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	border-radius: 8px;
	background-color: var(--dc-bg-alt);
	overflow: hidden;
}

/* Odznaka „czytaj więcej" — tylko na kafelkach z podstroną */
.dc-zespol__more {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--dc-accent);
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	opacity: 0.92;
	transform: scale(0.92);
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.dc-zespol__card--linked .dc-zespol__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(203, 170, 91, 0.18), transparent 45%);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.dc-zespol__card-link:hover .dc-zespol__more,
.dc-zespol__card-link:focus-visible .dc-zespol__more {
	transform: scale(1.08);
	opacity: 1;
}

.dc-zespol__card-link:hover .dc-zespol__photo::after,
.dc-zespol__card-link:focus-visible .dc-zespol__photo::after {
	opacity: 1;
}

/* Pasek filtrów — kotwice przewijające do działów */
.dc-zespol__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 40px;
}

.dc-zespol__filter {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid var(--dc-accent);
	border-radius: 999px;
	color: var(--dc-accent);
	background: transparent;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.dc-zespol__filter:hover,
.dc-zespol__filter:focus-visible {
	background: var(--dc-accent);
	color: #fff;
}

.dc-zespol__section {
	scroll-margin-top: 90px; /* offset pod sticky-header motywu */
}

html {
	scroll-behavior: smooth;
}

.dc-zespol__meta {
	display: block;
	margin-top: 12px;
}

.dc-zespol__name {
	display: block;
	font-weight: 700;
	color: var(--dc-accent);
	font-size: 16px;
	line-height: 1.3;
}

.dc-zespol__card-link:hover .dc-zespol__name {
	text-decoration: underline;
}

.dc-zespol__spec {
	display: block;
	color: var(--dc-muted);
	font-size: 14px;
	font-style: italic;
	margin-top: 2px;
}

/* Responsywność */
@media (max-width: 1024px) {
	.dc-zespol__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
	.dc-zespol__grid { grid-template-columns: repeat(2, 1fr); }
	.dc-zespol__heading { font-size: 24px; }
	.dc-zespol__featured { gap: 24px; }
	.dc-zespol__card--kierownik { width: 220px; }
}

/* ---------- Podstrona indywidualna ---------- */

.dc-zespol-single__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 20px;
}

.dc-profil__breadcrumbs {
	font-size: 13px;
	color: #888;
	margin-bottom: 24px;
}

.dc-profil__breadcrumbs a {
	color: #888;
	text-decoration: none;
}

.dc-profil__breadcrumbs a:hover {
	color: #cbaa5b;
}

.dc-profil__breadcrumbs .dc-sep {
	margin: 0 6px;
	color: #ccc;
}

.dc-profil__header {
	display: flex;
	gap: 30px;
	align-items: center;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.dc-profil__photo img {
	width: 220px;
	height: 220px;
	object-fit: cover;
	object-position: center top;
	border-radius: 10px;
	display: block;
}

.dc-profil__name {
	font-size: 30px;
	color: #333;
	font-weight: 700;
	margin: 0 0 6px;
}

.dc-profil__spec {
	font-size: 18px;
	color: #cbaa5b;
	font-weight: 600;
	margin: 0;
}

.dc-profil__bio {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
	margin-bottom: 30px;
}

.dc-profil__pole {
	margin-bottom: 28px;
}

.dc-profil__pole-tytul {
	font-size: 20px;
	color: #333;
	font-weight: 700;
	border-left: 4px solid #cbaa5b;
	padding-left: 12px;
	margin-bottom: 14px;
}

.dc-profil__lista {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dc-profil__lista li {
	padding-left: 22px;
	position: relative;
	line-height: 1.7;
	color: #555;
}

.dc-profil__lista li::before {
	content: "\2713";
	color: #cbaa5b;
	position: absolute;
	left: 0;
	font-weight: 700;
}

.dc-profil__powrot {
	margin-top: 40px;
}

.dc-profil__powrot a {
	color: #cbaa5b;
	text-decoration: none;
	font-weight: 600;
}

.dc-profil__powrot a:hover {
	text-decoration: underline;
}

@media (max-width: 680px) {
	.dc-profil__header { flex-direction: column; text-align: center; }
	.dc-profil__photo img { width: 180px; height: 180px; }
}
