.mediach-page-shell,
.site-main-wrapper {
	margin-top: 36px;
	margin-bottom: 64px;
}

.mediach-layout {
	display: grid;
	gap: 30px;
	align-items: start;
}

.mediach-layout--sidebar {
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
}

.mediach-content-stack {
	min-width: 0;
}

.mediach-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.mediach-section-header h1,
.mediach-section-header h2,
.mediach-section-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 900;
	color: #0f172a;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mediach-section-header__bar {
	width: 5px;
	height: 22px;
	border-radius: 999px;
	background: #ef4444;
}

.mediach-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.mediach-news-grid--home,
.mediach-news-grid--related {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mediach-news-card {
	height: 100%;
}

.mediach-news-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: clip;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mediach-news-card__link:hover {
	transform: translateY(-4px);
	border-color: #fecaca;
	box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.mediach-news-card__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #e2e8f0, #f8fafc);
	overflow: clip;
}

.mediach-news-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.mediach-news-card__link:hover .mediach-news-card__thumb img {
	transform: scale(1.04);
}

.mediach-news-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 12px;
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.mediach-news-card__badge {
	position: absolute;
	left: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(239, 68, 68, 0.96);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.mediach-news-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
}

.mediach-news-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
}

.mediach-news-card__author {
	margin-bottom: 8px;
	color: #b91c1c;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.mediach-news-card__title {
	display: -webkit-box;
	margin: 0 0 10px;
	color: #0f172a;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.42;
	letter-spacing: -0.012em;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: clip;
}

.mediach-news-card__excerpt {
	display: -webkit-box;
	margin: 0;
	color: #475569;
	font-size: 13px;
	line-height: 1.6;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: clip;
}

.mediach-center {
	text-align: center;
}

.all-news-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 34px;
	padding: 14px 28px;
	border: 1px solid #111827;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.all-news-button:hover {
	background: #ef4444;
	border-color: #ef4444;
	box-shadow: 0 18px 30px rgba(239, 68, 68, 0.18);
}

.mech-pagination-wrapper {
	margin-top: 34px;
}

.mech-pagination-wrapper ul.page-numbers {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mech-pagination-wrapper ul.page-numbers li {
	display: flex;
	align-items: center;
}

.mech-pagination-wrapper a.page-numbers,
.mech-pagination-wrapper span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 16px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	color: #475569;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

.mech-pagination-wrapper span.page-numbers.current {
	border-color: #ef4444;
	background: #ef4444;
	color: #fff;
}

.mech-pagination-wrapper a.page-numbers:hover {
	border-color: #111827;
	background: #111827;
	color: #fff;
}

.mech-pagination-wrapper span.page-numbers.dots {
	border-color: transparent;
	background: transparent;
	padding: 0 6px;
}

.error-404-shell {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 62vh;
}

.error-404-card {
	max-width: 720px;
	padding: 46px 40px;
	border: 1px solid #fecaca;
	border-radius: 28px;
	background: radial-gradient(circle at top, #fff1f2, #fff 58%);
	box-shadow: 0 22px 36px rgba(185, 28, 28, 0.1);
	text-align: center;
}

.error-404-kicker {
	display: inline-flex;
	margin-bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fee2e2;
	color: #b91c1c;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.error-404-code {
	margin: 0;
	color: #b91c1c;
	font-size: clamp(84px, 16vw, 150px);
	font-weight: 900;
	line-height: 0.95;
}

.error-404-text {
	margin: 16px 0 0;
	color: #475569;
	font-size: 18px;
	line-height: 1.8;
}

.error-404-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
	padding: 14px 24px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.error-404-btn:hover {
	background: #b91c1c;
}

.mediach-empty-state {
	padding: 24px 26px;
	border: 1px solid #dbe4ef;
	border-radius: 22px;
	background: linear-gradient(180deg, #ffffff, #fbfdff);
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
	text-align: center;
	color: #475569;
}

.mediach-empty-state p {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
}

@media (max-width: 992px) {
	.mediach-layout--sidebar {
		grid-template-columns: 1fr;
	}

	.mediach-news-grid,
	.mediach-news-grid--home,
	.mediach-news-grid--related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mediach-news-grid,
	.mediach-news-grid--home,
	.mediach-news-grid--related {
		grid-template-columns: 1fr;
	}

	.error-404-card {
		padding: 28px 22px;
	}
}

@media (max-width: 480px) {
	.mech-pagination-wrapper ul.page-numbers {
		gap: 5px;
	}

	.mech-pagination-wrapper ul.page-numbers li a,
	.mech-pagination-wrapper ul.page-numbers li span {
		min-width: 35px;
		height: 35px;
		padding: 0 10px;
		font-size: 11px;
	}
}
