@charset "UTF-8";

/* ---- Hero ---- */

.news-hero {
	position: relative;
	height: 460px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: #ffffff;
	background: var(--wp--preset--color--primary);
}

.news-hero__media {
	position: absolute;
	inset: 0;
}

.news-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 24, 15, 0.35) 0%, rgba(4, 24, 15, 0.8) 100%);
}

.news-hero--no-image .news-hero__overlay {
	background: linear-gradient(160deg, rgba(4, 24, 15, 0.92) 0%, rgba(4, 24, 15, 0.75) 100%);
}

.news-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
	box-sizing: border-box;
}

.news-hero__badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.news-hero__badge:hover {
	background: rgba(255, 255, 255, 0.24);
	color: #ffffff;
}

.news-hero__title {
	margin: 0 0 10px;
	max-width: 820px;
	color: #ffffff;
	font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
	line-height: 1.2;
}

.news-hero__date {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	opacity: 0.9;
}

.news-hero__date svg {
	width: 18px;
	height: 18px;
}

@media (max-width: 480px) {
	.news-hero {
		height: 420px;
	}

	.news-hero__title {
		font-size: 1.4rem;
	}
}

/* ---- Two-column layout ---- */

.news-detail__main {
	flex-basis: 62% !important;
	font-size: 1.125rem;
	line-height: 1.8;
}

.news-detail__main p {
	margin: 0 0 var(--wp--preset--spacing--30);
}

.news-detail__main h2,
.news-detail__main h3,
.news-detail__main h4 {
	margin: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--20);
	line-height: 1.3;
}

.news-detail__main ul,
.news-detail__main ol {
	margin: 0 0 var(--wp--preset--spacing--30);
	line-height: 1.8;
}

.news-detail__main img {
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.news-detail__main figcaption {
	margin-top: 8px;
	font-size: 0.9rem;
	text-align: center;
	color: var(--wp--preset--color--text);
	opacity: 0.7;
}

.news-detail__sidebar {
	flex-basis: 36% !important;
}

.news-detail__sidebar-inner {
	position: sticky;
	top: var(--wp--preset--spacing--40);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

/* ---- Sidebar widgets ---- */

.news-widget {
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--background-alt);
	border-radius: 18px;
}

.news-widget__title {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: 1.05rem;
}

.news-widget__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	padding: 6px;
	border-radius: 12px;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.2s ease;
}

.news-widget__item:hover {
	background: #ffffff;
	transform: translateX(2px);
}

.news-widget__item:last-child {
	margin-bottom: 0;
}

.news-widget__item-media {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--wp--preset--color--line);
}

.news-widget__item-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-widget__item-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.news-widget__item-title {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-widget__item-date {
	font-size: 0.78rem;
	color: var(--wp--preset--color--text);
	opacity: 0.65;
}


/* ---- Share (end of article) ---- */

.news-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
}

.news-share__label {
	font-weight: 600;
	color: var(--wp--preset--color--text);
}

.news-share__links {
	display: flex;
	gap: 10px;
}

.news-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--background-alt);
	color: var(--wp--preset--color--primary);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news-share__link svg {
	width: 18px;
	height: 18px;
}

.news-share__link:hover {
	background: var(--wp--preset--color--primary);
	color: #ffffff;
	transform: translateY(-2px);
}

@media (max-width: 900px) {
	.news-detail__sidebar-inner {
		position: static;
	}
}

/* ---- Previous / Next navigation ---- */

.news-prev-next {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--60);
}

.news-prev-next__card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--background-alt);
	border-radius: 18px;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-prev-next__card--empty {
	visibility: hidden;
}

.news-prev-next__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.news-prev-next__card--next {
	flex-direction: row-reverse;
	text-align: right;
}

.news-prev-next__media {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--wp--preset--color--line);
}

.news-prev-next__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-prev-next__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.news-prev-next__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--primary);
}

.news-prev-next__label svg {
	width: 14px;
	height: 14px;
}

.news-prev-next__title {
	font-weight: 600;
	color: var(--wp--preset--color--text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 700px) {
	.news-prev-next {
		grid-template-columns: 1fr;
	}

	.news-prev-next__card--empty {
		display: none;
	}
}

/* ---- "You may also like" ---- */

.news-related {
	margin-top: var(--wp--preset--spacing--70);
}

.news-related__heading {
	margin: 0 0 var(--wp--preset--spacing--40);
	text-align: center;
}

.news-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--30);
}

@media (max-width: 900px) {
	.news-related__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- CTA ---- */

.news-cta {
	max-width: 1216px;
	margin: var(--wp--preset--spacing--50) auto var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--background-alt);
	border-radius: 16px;
	text-align: center;
	box-sizing: border-box;
}

@media (max-width: 700px) {
	.news-cta {
		margin-left: var(--wp--preset--spacing--30);
		margin-right: var(--wp--preset--spacing--30);
	}
}

.news-cta__content {
	max-width: 560px;
	margin: 0 auto;
}

.news-cta__heading {
	margin: 0 0 10px;
	color: var(--wp--preset--color--primary);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.news-cta__text {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--text);
	opacity: 0.85;
}

.news-cta__button {
	background: var(--wp--preset--color--primary);
	color: #ffffff;
}

.news-cta__button:hover {
	background: #183d2d;
	color: #ffffff;
}
