/* Kafelki — paleta: #4D4D4D, #F5F5F5, akcent #800000 */
/* Hierarchia typograficzna (lista): data 11pt, tytuł 14pt, pracodawca 13pt, lokalizacja 12pt, typ/ forma 12pt */

#main .offers-section__head {
	margin-bottom: 2rem;
	text-align: center;
}

#main .offers-section__title {
	font-size: 2rem;
	font-weight: 800;
	color: #4D4D4D;
	letter-spacing: -0.02em;
	margin: 0 0 0.35rem 0;
}

#main .offers-section__lead {
	margin: 0;
	color: #4D4D4D;
	opacity: 0.88;
	font-size: 1.05rem;
}

.offers-grid {
	margin: 0 -0.5rem 2rem;
}

.offers-grid__col {
	padding: 0 0.5rem;
	margin-bottom: 1.25rem;
}

.offer-card {
	position: relative;
	display: block;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(77, 77, 77, 0.08), 0 1px 3px rgba(77, 77, 77, 0.06);
	border: 1px solid rgba(77, 77, 77, 0.1);
	color: #4D4D4D;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	height: 100%;
}

.offer-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(77, 77, 77, 0.1), 0 4px 12px rgba(128, 0, 0, 0.12);
	text-decoration: none;
	color: #4D4D4D;
}

.offer-card__media {
	position: relative;
	height: 140px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Gradienty: szarości + bordowy */
.offer-card__media--0 { background-image: linear-gradient(135deg, #4D4D4D 0%, #6a6a6a 45%, #800000 100%); }
.offer-card__media--1 { background-image: linear-gradient(135deg, #5c5c5c 0%, #4D4D4D 50%, #5c0000 100%); }
.offer-card__media--2 { background-image: linear-gradient(135deg, #800000 0%, #6a1a1a 40%, #4D4D4D 100%); }
.offer-card__media--3 { background-image: linear-gradient(135deg, #3d3d3d 0%, #5a5a5a 55%, #800000 100%); }
.offer-card__media--4 { background-image: linear-gradient(135deg, #6a6a6a 0%, #4D4D4D 45%, #722f2f 100%); }

.offer-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 55%);
	pointer-events: none;
}

/* Logo / monogram na kolorowym tle (nie mały znaczek pod belką) */
.offer-card__media-logo {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0.85rem 1rem;
	box-sizing: border-box;
	pointer-events: none;
}

.offer-card__media-logo--image .offer-card__media-logo-img {
	display: block;
	max-width: min(220px, 88%);
	max-height: 104px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
	background: rgba(255, 255, 255, 0.94);
	border-radius: 12px;
	padding: 6px 8px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.offer-card__media-logo--fallback .offer-card__media-letter {
	font-size: clamp(2.25rem, 8vw, 3.1rem);
	font-weight: 800;
	color: #fff;
	text-transform: uppercase;
	line-height: 1;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.85),
		0 4px 18px rgba(0, 0, 0, 0.45);
}

.offer-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.35rem 0.6rem;
	border-radius: 6px;
	background: #F5F5F5;
	color: #800000;
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.offer-card__badge--muted {
	background: rgba(255,255,255,0.92);
	color: #4D4D4D;
}

.offer-card__body {
	position: relative;
	padding: 1rem 1rem 1.25rem;
}

.offer-card__fav {
	position: absolute;
	top: 0.35rem;
	right: 0.75rem;
	font-size: 1.25rem;
	line-height: 1;
	color: #9a9a9a;
	pointer-events: none;
}

.offer-card__date {
	font-size: 11pt;
	line-height: 1.35;
	font-weight: 400;
	color: #6a6a6a;
	margin: 0 2rem 0.3rem 0;
}

.offer-card__title {
	font-size: 14pt;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 2rem 0.4rem 0;
	color: #4D4D4D;
}

.offer-card:hover .offer-card__title {
	color: #800000;
}

.offer-card__company {
	font-size: 13pt;
	font-weight: 600;
	color: #4D4D4D;
	margin: 0 0 0.35rem 0;
	line-height: 1.35;
}

.offer-card__loc {
	font-size: 12pt;
	color: #4D4D4D;
	opacity: 0.92;
	margin: 0 0 0.35rem 0;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	line-height: 1.35;
}

.offer-card__employment-type {
	font-size: 12pt;
	line-height: 1.35;
	font-weight: 400;
	color: #4D4D4D;
	margin: 0;
}

.offer-card__pin {
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	border-radius: 50% 50% 50% 0;
	background: #b0b0b0;
	transform: rotate(-45deg);
	flex-shrink: 0;
	margin-top: 1px;
}

#main .offers-section__more {
	display: block;
	width: fit-content;
	margin: 0.5rem auto 0;
	padding: 0.55rem 1.75rem;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	border-radius: 8px;
}

#main .offers-grid-pagination {
	margin-top: 0.5rem;
}

#main .offers-grid-pagination .pagination {
	justify-content: center;
	width: 100%;
}

@media (max-width: 575px) {
	.offers-grid {
		margin: 0 0 1.5rem;
	}
	#main .offers-section__title {
		font-size: 1.6rem;
	}
}
