/*
 * Natječaj podaci – modern card layout ([natjecaj-data layout="card"] and the Elementor widget).
 *
 * Defaults only; the Elementor widget overrides them through its style controls.
 */

.natjecaj-data--card .natjecaj-intro {
	margin: 0 0 12px;
	color: #555;
	font-size: 15px;
	line-height: 1.5;
}

.natjecaj-card {
	padding: 24px 28px;
	border-radius: 0;
	background: #f4f4f5;
}

.natjecaj-card .natjecaj-card__naziv {
	margin: 0;
	color: #111;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.natjecaj-card__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 24px;
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid #dedee0;
}

.natjecaj-card__item {
	min-width: 0;
}

.natjecaj-card .natjecaj-card__label {
	margin: 0 0 4px;
	color: #8a8a8f;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.natjecaj-card .natjecaj-card__value {
	margin: 0;
	color: #1d1d1f;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.natjecaj-card .natjecaj-card__item--datum .natjecaj-card__value {
	color: #c4161c;
	font-weight: 700;
}

/* Expired natječaj: notice attached to the top of the card, struck-through date with a badge. */
.natjecaj-data--card .natjecaj-notice {
	margin: 0;
	padding: 14px 18px;
	border: 1px solid #efb8b3;
	border-radius: 0;
	background: #fbe3e1;
	color: #3a3a3c;
	font-size: 15px;
	line-height: 1.55;
}

.natjecaj-data--card .natjecaj-notice strong {
	color: #111;
	font-weight: 700;
}

.natjecaj-card .natjecaj-card__item--datum.is-expired .natjecaj-card__value {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.natjecaj-card .natjecaj-card__item--datum.is-expired s {
	color: #8a8a8f;
	font-weight: 600;
	text-decoration: line-through;
}

.natjecaj-card .natjecaj-card__badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	background: #8a8a8f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.5;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.natjecaj-card {
		padding: 20px;
	}

	.natjecaj-card .natjecaj-card__naziv {
		font-size: 18px;
	}

	.natjecaj-card__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
