.hvv-single-post {
	width: 100%;
	overflow-x: hidden;
}

.hvv-single-post__page-header {
	display: flex;
	align-items: center;
	gap: 70px;
	padding: 100px 80px 0 0;
	margin-bottom: 64px;
}

.hvv-single-post__bar {
	width: 111px;
	height: 10px;
	background: #BD0707;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	display: block;
	flex-shrink: 0;
}

.hvv-single-post__archive-title {
	margin: 0;
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 40px;
	font-weight: 700;
	letter-spacing: 1.6px;
	line-height: normal;
	text-transform: uppercase;
}

.hvv-single-post__wrap {
	display: grid;
	grid-template-columns: minmax(0, 1150px) 337px;
	gap: 71px;
	max-width: 1740px;
	margin: 0 auto;
	padding: 0 181px 0 181px;
	box-sizing: border-box;
}

/* MAIN CONTENT */

.hvv-single-post__content {
	min-width: 0;
}

.hvv-single-post__title {
	margin: 0 0 32px 0;
	color: #393737;
	font-family: Montserrat, sans-serif;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.hvv-single-post__image {
	margin: 0 0 40px 0;
	width: 100%;
	max-width: 1150px;
	aspect-ratio: 1150 / 652;
	border-radius: 26px;
	overflow: hidden;
	background: #f0f0f0;
}

.hvv-single-post__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hvv-single-post__date {
	display: block;
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 27px;
	font-weight: 500;
	line-height: normal;
	text-transform: uppercase;
	margin-bottom: 32px;
}

.hvv-single-post__body {
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: normal;
}

.hvv-single-post__body p {
	margin: 0 0 24px 0;
}

.hvv-single-post__body p:last-child {
	margin-bottom: 0;
}

.hvv-single-post__body a {
	color: #1A8DA1;
	text-decoration: underline;
}

.hvv-single-post__body a:hover {
	color: #15707f;
}

.hvv-single-post__body strong { font-weight: 700; }
.hvv-single-post__body em { font-style: italic; }

.hvv-single-post__body h2,
.hvv-single-post__body h3,
.hvv-single-post__body h4 {
	margin: 32px 0 16px;
	font-weight: 700;
	color: #393737;
}

.hvv-single-post__body img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	margin: 24px 0;
}

.hvv-single-post__body ul,
.hvv-single-post__body ol {
	padding-left: 28px;
	margin: 0 0 24px;
}

.hvv-single-post__body li {
	margin-bottom: 8px;
}

/* SIDEBAR */

.hvv-single-post__sidebar {
	width: 337px;
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.hvv-single-post__share-title {
	margin: 0 0 20px;
	color: #ADAAAA;
	font-family: Montserrat, sans-serif;
	font-size: 27px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
}

.hvv-single-post__share-icons {
	display: flex;
	align-items: center;
	gap: 30px;
}

.hvv-single-post__share-icon,
.hvv-single-post__share-icon:link,
.hvv-single-post__share-icon:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	text-decoration: none;
	transition: transform 0.3s ease, color 0.3s ease;
}

.hvv-single-post__share-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.hvv-single-post__share-icon:hover {
	transform: translateY(-2px);
}

.hvv-single-post__share-icon--fb,
.hvv-single-post__share-icon--fb:link,
.hvv-single-post__share-icon--fb:visited { color: #1877F2; }

.hvv-single-post__share-icon--ig,
.hvv-single-post__share-icon--ig:link,
.hvv-single-post__share-icon--ig:visited { color: #E4405F; }

.hvv-single-post__other-title {
	margin: 0 0 24px;
	color: #1A8DA1;
	font-family: Montserrat, sans-serif;
	font-size: 27px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
}

.hvv-single-post__other-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.hvv-single-post__other-item {
	border-bottom: 1px solid #EBE9E9;
	padding: 16px 0;
}

.hvv-single-post__other-item:first-child {
	padding-top: 0;
}

.hvv-single-post__other-item:last-child {
	border-bottom: none;
}

.hvv-single-post__other-item a,
.hvv-single-post__other-item a:link,
.hvv-single-post__other-item a:visited {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

.hvv-single-post__other-item a:hover .hvv-single-post__other-name {
	color: #1A8DA1;
}

.hvv-single-post__other-date {
	color: #393737;
	font-family: Montserrat, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: normal;
	text-transform: uppercase;
}

.hvv-single-post__other-name {
	color: #393737;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	transition: color 0.3s ease;
}

.hvv-single-post__other-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	padding: 11px 18px;
	border-radius: 26px;
	color: #FFFFFF;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: normal;
}

.hvv-single-post__other-badge--new {
	background: #1A8DA1;
}

.hvv-single-post__other-badge--finished {
	background: #ADAAAA;
}

/* ===== STORY-specific styles ===== */

.hvv-single-story__date {
	margin: 0 0 24px;
	color: #1A8DA1;
	font-family: Montserrat, sans-serif;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.96px;
	line-height: normal;
}

.hvv-single-story__related-title {
	margin: 0 0 24px;
	color: #1A8DA1;
	font-family: Montserrat, sans-serif;
	font-size: 27px;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
}

.hvv-single-story__related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.hvv-single-story__related-item a,
.hvv-single-story__related-item a:link,
.hvv-single-story__related-item a:visited {
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

.hvv-single-story__related-image {
	width: 100%;
	aspect-ratio: 337 / 220;
	border-radius: 20px;
	overflow: hidden;
	background: #f0f0f0;
	display: block;
}

.hvv-single-story__related-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hvv-single-story__related-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hvv-single-story__related-date {
	color: #1A8DA1;
	font-family: Montserrat, sans-serif;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: normal;
}

.hvv-single-story__related-name {
	color: #393737;
	font-family: Montserrat, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	transition: color 0.3s ease;
}

.hvv-single-story__related-item a:hover .hvv-single-story__related-name {
	color: #1A8DA1;
}

@media screen and (max-width: 768px) {
	.hvv-single-story__date {
		font-size: 18px;
	}
	.hvv-single-story__related-title {
		font-size: 22px;
	}
	.hvv-single-story__related-date,
	.hvv-single-story__related-name {
		font-size: 14px;
	}
}

/* PREV/NEXT NAV */

.hvv-single-post__nav {
	display: flex;
	gap: 10px;
	margin: 80px auto 120px;
	max-width: 1740px;
	padding: 0 181px;
	box-sizing: border-box;
}

.hvv-single-post__nav-link,
.hvv-single-post__nav-link:link,
.hvv-single-post__nav-link:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	color: #1A8DA1;
	transition: color 0.3s ease, transform 0.3s ease;
	text-decoration: none;
}

.hvv-single-post__nav-link svg {
	width: 50px;
	height: 50px;
	display: block;
}

.hvv-single-post__nav-link--prev svg {
	transform: rotate(180deg);
}

.hvv-single-post__nav-link:hover {
	color: #BD0707;
}

.hvv-single-post__nav-link--disabled {
	color: #ADAAAA;
	cursor: not-allowed;
	pointer-events: none;
}

/* RESPONSIVE */

@media screen and (max-width: 1399px) {
	.hvv-single-post__wrap,
	.hvv-single-post__nav {
		padding-left: 80px;
		padding-right: 80px;
	}
	.hvv-single-post__wrap {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 48px;
	}
	.hvv-single-post__sidebar {
		width: 300px;
	}
}

@media screen and (max-width: 1199px) {
	.hvv-single-post__page-header {
		padding: 60px 40px 0 0;
		gap: 40px;
	}
	.hvv-single-post__wrap,
	.hvv-single-post__nav {
		padding-left: 40px;
		padding-right: 40px;
	}
}

@media screen and (max-width: 991px) {
	.hvv-single-post__wrap {
		grid-template-columns: 1fr;
		gap: 60px;
	}
	.hvv-single-post__sidebar {
		width: 100%;
	}
}

@media screen and (max-width: 768px) {
	.hvv-single-post__page-header {
		padding: 40px 20px 0 0;
		gap: 16px;
		margin-bottom: 32px;
	}
	.hvv-single-post__bar {
		width: 48px;
		height: 8px;
	}
	.hvv-single-post__archive-title {
		font-size: 28px;
		letter-spacing: 1.12px;
	}
	.hvv-single-post__wrap,
	.hvv-single-post__nav {
		padding-left: 20px;
		padding-right: 20px;
	}
	.hvv-single-post__title {
		font-size: 22px;
	}
	.hvv-single-post__date {
		font-size: 20px;
	}
	.hvv-single-post__body {
		font-size: 18px;
	}
	.hvv-single-post__share-title,
	.hvv-single-post__other-title {
		font-size: 22px;
	}
	.hvv-single-post__other-name {
		font-size: 16px;
	}
	.hvv-single-post__nav {
		margin: 48px auto 60px;
	}
}

/* ----- Figma "Адвокація моб" (390px wide) — single CPT post page ----- */
@media screen and (max-width: 767px) {
	/* Page header: bar 34×3 teal + tiny 12px Bold gray title */
	.hvv-single-post__page-header {
		padding: 24px 20px 0 0 !important;
		gap: 16px !important;
		margin-bottom: 16px !important;
		align-items: center !important;
	}
	.hvv-single-post__bar {
		width: 34px !important;
		height: 3px !important;
		border-top-right-radius: 10px !important;
		border-bottom-right-radius: 10px !important;
		border-top-left-radius: 0 !important;
		border-bottom-left-radius: 0 !important;
		background: #1A8DA1 !important;
		flex-shrink: 0 !important;
	}
	.hvv-single-post__archive-title {
		font-size: 12px !important;
		font-weight: 700 !important;
		letter-spacing: 0.48px !important;
		color: #393737 !important;
		text-transform: uppercase !important;
		line-height: 1.2 !important;
	}

	/* Wrap: single column, no sidebar — content first then share + other posts */
	.hvv-single-post__wrap {
		display: flex !important;
		flex-direction: column !important;
		gap: 0 !important;
		padding: 0 20px 40px !important;
		max-width: 100% !important;
		margin: 0 !important;
	}
	.hvv-single-post__content {
		max-width: 100% !important;
		padding: 0 !important;
	}

	/* Title — hide (page header already shows section name; Figma omits long H2) */
	.hvv-single-post__title { display: none !important; }

	/* Hero image — full width 350/186, rounded 6 */
	.hvv-single-post__image {
		margin: 0 0 16px !important;
		padding: 0 !important;
	}
	.hvv-single-post__image,
	.hvv-single-post__image img {
		width: 100% !important;
		max-width: 100% !important;
		aspect-ratio: 350 / 186 !important;
		border-radius: 6px !important;
		height: auto !important;
		object-fit: cover !important;
		display: block !important;
	}

	.hvv-single-post__date { display: none !important; }

	/* Body text */
	.hvv-single-post__body {
		font-size: 11px !important;
		line-height: 1.4 !important;
		color: #000 !important;
		margin: 0 0 24px !important;
	}
	.hvv-single-post__body p { margin: 0 0 14px !important; }
	.hvv-single-post__body p:last-child { margin: 0 !important; }

	/* Sidebar: stacked below body */
	.hvv-single-post__sidebar {
		display: flex !important;
		flex-direction: column !important;
		gap: 24px !important;
		padding: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	/* "поділитися" — centered gray 13px Bold uppercase + 3 icons (24px) */
	.hvv-single-post__share {
		padding: 0 !important;
		margin: 0 !important;
		text-align: center !important;
	}
	.hvv-single-post__share-title {
		font-size: 13px !important;
		font-weight: 700 !important;
		text-transform: uppercase !important;
		color: #ADAAAA !important;
		letter-spacing: 0.52px !important;
		margin: 0 0 12px !important;
		text-align: center !important;
	}
	.hvv-single-post__share-icons {
		display: flex !important;
		justify-content: center !important;
		gap: 12px !important;
	}
	.hvv-single-post__share-icon,
	.hvv-single-post__share-icon svg {
		width: 24px !important;
		height: 24px !important;
	}
	.hvv-single-post__share-icon { background: transparent !important; }

	/* "Інші публікації" — 11px SemiBold teal */
	.hvv-single-post__other {
		padding: 0 !important;
		margin: 0 !important;
	}
	.hvv-single-post__other-title {
		font-size: 11px !important;
		font-weight: 600 !important;
		color: #1A8DA1 !important;
		margin: 0 0 12px !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
	}

	/* Mini cards: horizontal 92×85 image + text right */
	.hvv-single-post__other-list {
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 7px !important;
	}
	.hvv-single-post__other-item {
		background: #FFFFFF !important;
		box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25) !important;
		border-radius: 6px !important;
		padding: 6px 8px !important;
		border-bottom: 0 !important;
		margin: 0 !important;
	}
	.hvv-single-post__other-item a,
	.hvv-single-post__other-item a:link,
	.hvv-single-post__other-item a:visited {
		display: flex !important;
		flex-direction: row !important;
		gap: 7px !important;
		align-items: center !important;
		padding: 0 !important;
		text-decoration: none !important;
		text-align: left !important;
	}
	/* If item has an image, render compact 92×85 thumbnail */
	.hvv-single-post__other-item img {
		width: 92px !important;
		height: 85px !important;
		object-fit: cover !important;
		border-radius: 6px !important;
		flex-shrink: 0;
		display: block !important;
	}
	.hvv-single-post__other-item a > time,
	.hvv-single-post__other-item a > span,
	.hvv-single-post__other-text {
		flex: 1 1 auto;
		min-width: 0;
		display: flex !important;
		flex-direction: column !important;
		gap: 4px !important;
	}
	.hvv-single-post__other-date {
		font-size: 11px !important;
		font-weight: 500 !important;
		color: #2F2E2E !important;
		margin: 0 0 4px !important;
		letter-spacing: 0 !important;
	}
	.hvv-single-post__other-name {
		font-size: 11px !important;
		font-weight: 600 !important;
		color: #1A8DA1 !important;
		text-transform: none !important;
		line-height: 1.25 !important;
		display: block !important;
	}
	.hvv-single-post__other-excerpt {
		font-size: 10px !important;
		font-weight: 500 !important;
		color: #2F2E2E !important;
		line-height: 1.35 !important;
		margin: 4px 0 0 !important;
		text-transform: lowercase !important;
		display: block !important;
	}

	/* Project status badge (Поточний / Завершений) — small pill at the bottom of card */
	.hvv-single-post__other-badge {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 4px 12px !important;
		min-height: 0 !important;
		height: auto !important;
		width: auto !important;
		max-width: max-content !important;
		border-radius: 26px !important;
		font-size: 10px !important;
		font-weight: 600 !important;
		color: #FFFFFF !important;
		letter-spacing: 0 !important;
		line-height: 1.2 !important;
		margin: 6px 0 0 !important;
		align-self: flex-start;
	}
	.hvv-single-post__other-badge--new {
		background: #1A8DA1 !important;
	}
	.hvv-single-post__other-badge--finished {
		background: #ADAAAA !important;
	}

	/* Project list item: no image, just stacked text + badge */
	.hvv-single-post__other-item--project a,
	.hvv-single-post__other-item--project a:link,
	.hvv-single-post__other-item--project a:visited {
		display: block !important;
		padding: 0 !important;
	}
	.hvv-single-post__other-item--project .hvv-single-post__other-text {
		display: flex !important;
		flex-direction: column !important;
		gap: 4px !important;
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}

	/* Nav prev/next arrows — hide on mobile, Figma doesn't show */
	.hvv-single-post__nav { display: none !important; }
}

/* ----- Story single (історії) mobile — same pattern as advocacy ----- */
@media screen and (max-width: 767px) {
	.hvv-single-story__date {
		display: none !important;
	}
	.hvv-single-story__related {
		padding: 0 !important;
		margin: 0 !important;
	}
	.hvv-single-story__related-title {
		font-size: 11px !important;
		font-weight: 600 !important;
		color: #1A8DA1 !important;
		margin: 0 0 12px !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
	}
	.hvv-single-story__related-list {
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 7px !important;
	}
	.hvv-single-story__related-item {
		background: #FFFFFF !important;
		box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25) !important;
		border-radius: 6px !important;
		padding: 6px 8px !important;
		border-bottom: 0 !important;
		margin: 0 !important;
	}
	.hvv-single-story__related-item a,
	.hvv-single-story__related-item a:link,
	.hvv-single-story__related-item a:visited {
		display: flex !important;
		flex-direction: row !important;
		gap: 7px !important;
		align-items: center !important;
		padding: 0 !important;
		text-decoration: none !important;
		text-align: left !important;
	}
	.hvv-single-story__related-image {
		width: 92px !important;
		height: 85px !important;
		border-radius: 6px !important;
		overflow: hidden !important;
		flex-shrink: 0 !important;
		display: block !important;
	}
	.hvv-single-story__related-image img {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		display: block !important;
	}
	.hvv-single-story__related-meta {
		display: flex !important;
		flex-direction: column !important;
		gap: 4px !important;
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}
	.hvv-single-story__related-date {
		font-size: 11px !important;
		font-weight: 500 !important;
		color: #2F2E2E !important;
		margin: 0 !important;
		letter-spacing: 0 !important;
	}
	.hvv-single-story__related-name {
		font-size: 11px !important;
		font-weight: 600 !important;
		color: #1A8DA1 !important;
		text-transform: none !important;
		line-height: 1.25 !important;
		display: block !important;
	}
	.hvv-single-story__related-excerpt {
		font-size: 10px !important;
		font-weight: 500 !important;
		color: #2F2E2E !important;
		line-height: 1.35 !important;
		margin: 4px 0 0 !important;
		text-transform: lowercase !important;
		display: block !important;
	}
}
