/**
 * Pattern: Working packages
 * Sekcja z tłem int-dark na pełną szerokość strony. Treść w kontenerze sectionWidth.
 * Cztery karty z ikonami w stylu jak icon-card, ale odwrócone kolory (tło int-green, ikona int-dark).
 *
 * @package nbs-theme
 */

/* Sekcja – tło na pełną szerokość strony (100vw), treść w sectionWidth */
section.nbs-working-packages {
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	background-color: var(--wp--preset--color--int-dark);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 4rem 0;
	display: flex;
	justify-content: center;
}

/* Kontener treści – sectionWidth z theme.json */
.nbs-working-packages__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: var(--wp--custom--section-width, 1140px);
	margin-left: var(--wp--custom--horizontal-section-margin, 24px);
	margin-right: var(--wp--custom--horizontal-section-margin, 24px);
}

/* Tytuł h2 – wyśrodkowany, biały */
.nbs-working-packages__title {
	color: var(--wp--preset--color--white) !important;
	text-align: center;
	margin-top: 0;
	margin-bottom: 2rem;
}

/* Intro – pełna szerokość kontenera (jak karty i tekst w Resources) */
.nbs-working-packages__intro {
	box-sizing: border-box;
	align-self: stretch;
	width: 100%;
	max-width: none;
	margin-bottom: 3rem;
}

.nbs-working-packages__intro-text {
	color: var(--wp--preset--color--white) !important;
	font-size: var(--wp--preset--font-size--medium);
	margin-top: 0;
	margin-bottom: 1.25rem;
}

.nbs-working-packages__intro-text:last-of-type {
	margin-bottom: 0;
}

/* CTA na dole sekcji */
.nbs-working-packages__bottom-cta {
	width: 100%;
}

.nbs-working-packages__cta {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 2.5rem;
}

/* Karty – flex 2x2, ta sama wysokość w wierszu (stretch) */
.nbs-working-packages__cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 1.5rem;
	width: 100%;
}

/* Pojedyncza karta – biała, zaokrąglona, cień, min. wysokość 20rem */
.nbs-working-packages__card {
	background-color: var(--wp--preset--color--white);
	border-radius: 14px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	padding: 2rem;
	flex: 1 1 calc(50% - 1rem);
	min-width: 260px;
	max-width: calc(50% - 0.75rem);
	min-height: 18rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Ikona – jak w icon-card, odwrócone kolory: tło int-green, ikona int-dark */
.nbs-working-packages__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--wp--preset--color--int-green);
	border-radius: 50%;
}

.nbs-working-packages__icon img {
	width: 24px !important;
	height: 24px !important;
	max-width: 24px;
	max-height: 24px;
	object-fit: contain;
	flex-shrink: 0;
}

/* Tytuł karty h3 */
.nbs-working-packages__card-title {
	margin-top: 0;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--text-primary);
}

/* Opis karty */
.nbs-working-packages__card-desc {
	margin: 0;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--body-small);
	line-height: 1.5;
}

/* Mobile: jedna karta w wierszu – pełna szerokość jak tekst powyżej (bez 50% / gap) */
@media (max-width: 600px) {
	.nbs-working-packages__cards {
		gap: 1rem;
	}
	.nbs-working-packages__card {
		flex: 1 1 100%;
		max-width: 100%;
		min-width: 0;
	}
}
