/* NEWA light expert card - visual twin of Elementor template 339062.
   Design for Online, 2026-09-19. Measurements taken from the live template
   at 1366px (desktop layout 99e0df4) and 390px (mobile layout 73e2e51). */

.newa-card,
.newa-card * {
	box-sizing: border-box;
}

.newa-card {
	position: relative;
	display: grid;
	grid-template-columns: 172px minmax(0, 1fr);
	grid-template-rows: auto 1fr auto;
	grid-template-areas:
		"photo head"
		"photo excerpt"
		"photo footer";
	min-height: 200px;
	width: 100%;
	background: #ffffff;
	border: 1px solid #b9b9b9;
	border-radius: 10px;
	text-align: left;
	font-family: inherit;
	color: #333333;
	transition: border-color 0.3s;
}

.newa-card:hover {
	border-color: #6d071a;
}

/* ── photo ─────────────────────────────────────────────────────────────── */
.newa-card__photo {
	grid-area: photo;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 11px;
	line-height: 0;
}

.newa-card__img {
	display: block;
	width: 150px;
	height: 180px;
	max-width: 100%;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 0 26px -4px rgba(0, 0, 0, 0.06);
}

.newa-card--company .newa-card__img {
	object-fit: contain;
	padding: 6px;
	background: #ffffff;
}

/* ── head: badge, name, profession, town ───────────────────────────────── */
.newa-card__head {
	grid-area: head;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 14px 5px 0 20px;
	min-width: 0;
}

.newa-card__head > * {
	margin: 0;
}

.newa-card__badge {
	position: absolute;
	top: 10px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 30px;
	padding: 0 24px;
	border-radius: 5px;
	background: rgba(21, 25, 44, 0.91);
	color: #ffffff;
	font-size: 12.16px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}

.newa-card__badge .newa-card__ico {
	width: 10px;
	height: 10px;
	flex: 0 0 10px;
}

.newa-card__title {
	max-width: 90%;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.1;
	color: rgba(21, 25, 44, 0.91);
}

.newa-card__title a {
	color: inherit;
	text-decoration: none;
}

.newa-card__title a:hover {
	color: #6d071a;
}

.newa-card__profession,
.newa-card__town,
.newa-card__excerpt {
	font-size: 15.2px;
	line-height: 1.2;
}

.newa-card__profession {
	max-width: 94%;
	font-weight: 400;
	color: #5a5a5a;
}

.newa-card__town {
	max-width: 94%;
	font-weight: 500;
	color: #97011b;
}

/* ── excerpt ───────────────────────────────────────────────────────────── */
.newa-card__excerpt {
	grid-area: excerpt;
	max-width: 98%;
	margin: 5px 5px 0 20px;
	font-weight: 400;
	color: #5a5a5a;
}

/* ── footer: categories left, buttons right ────────────────────────────── */
.newa-card__footer {
	grid-area: footer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin-top: auto;
	padding: 8px 15px 12px 20px;
	min-width: 0;
}

.newa-card__terms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15.2px;
	font-weight: 500;
	line-height: 1.5;
}

.newa-card__terms li {
	margin: 0;
	padding: 0;
}

.newa-card__terms a {
	color: #97011b;
	text-decoration: none;
}

.newa-card__terms a:hover {
	text-decoration: underline;
}

.newa-card__sep {
	color: #999999;
}

.newa-card__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	flex: 0 0 auto;
}

.newa-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 12px 24px;
	border: 1px solid #6d071a;
	border-radius: 3px;
	background: #6d071a;
	color: #ffffff;
	font-size: 13.68px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.3s, border-color 0.3s;
}

.newa-card__btn:hover,
.newa-card__btn:focus {
	background: #4d0714;
	border-color: #4d0714;
	color: #ffffff;
}

.newa-card__btn .newa-card__ico {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

/* ── tablet (Elementor: max-width 1024px) ──────────────────────────────── */
@media (max-width: 1024px) {
	.newa-card__title {
		font-size: 18px;
	}

	.newa-card__town,
	.newa-card__excerpt {
		font-size: 14px;
	}

	.newa-card__btn {
		padding: 10px 15px;
		font-size: 12px;
	}
}

/* ── mobile (Elementor: max-width 767px) ───────────────────────────────── */
@media (max-width: 767px) {
	.newa-card {
		grid-template-columns: 28% minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		grid-template-areas:
			"photo head"
			"excerpt excerpt"
			"footer footer";
		min-height: 0;
	}

	.newa-card__photo {
		align-items: flex-start;
		padding: 10px;
	}

	.newa-card__img {
		width: 100%;
		height: auto;
		aspect-ratio: 5 / 6;
	}

	.newa-card__head {
		gap: 7px;
		padding: 10px 10px 0 0;
	}

	.newa-card__badge {
		position: static;
		order: 10; /* below the town on phones, as in the original mobile layout */
		align-self: flex-start;
		min-height: 20px;
		margin-top: 4px;
		padding: 0 14px;
		font-size: 12px;
		line-height: 1.4;
	}

	.newa-card__title {
		max-width: 100%;
		font-size: 18px;
	}

	.newa-card__profession,
	.newa-card__town {
		max-width: 100%;
		font-size: 14px;
	}

	.newa-card__excerpt {
		max-width: 100%;
		margin: 12px 10px 0;
		font-size: 14px;
	}

	.newa-card__footer {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-top: 0;
		padding: 6px 10px 10px;
	}

	.newa-card__terms {
		font-size: 14px;
	}

	.newa-card__actions {
		justify-content: flex-end;
		margin-top: 4px;
	}
}
