/* ==========================================================================
   VideoCrew — Blog & single post (v2). Loaded together with home.css.
   ========================================================================== */

/* Light header (blog & posts) ------------------------------------------- */

.hv-header--light {
	color: var(--hv-ink);
}
.hv-header--light .hv-nav__menu a,
.hv-header--light .hv-header__login {
	color: var(--hv-ink);
}
.hv-header--light .hv-nav__menu a:hover,
.hv-header--light .hv-header__login:hover {
	color: var(--hv-red);
}
.hv-header--light .hv-burger span {
	background: var(--hv-ink);
}
.hv-header--light .hv-btn--header {
	box-shadow: 0 12px 30px rgba(255, 0, 0, 0.2);
}
.hv-header--light.is-scrolled {
	background-color: rgba(249, 240, 241, 0.92);
	box-shadow: 0 1px 0 var(--hv-line);
}

/* Ghost button (red outline) */
.hv-btn--ghost {
	color: var(--hv-red);
	background-color: transparent;
	border-color: var(--hv-red);
}
.hv-btn--ghost .hv-btn__arrow {
	color: var(--hv-red);
	background-color: #fbd3d5;
}
.hv-btn--ghost:hover,
.hv-btn--ghost:focus-visible {
	color: #fff;
	background-color: var(--hv-red);
}
.hv-btn--ghost:hover .hv-btn__arrow {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.2);
}

.hv-btn--back {
	padding: 0 44px 0 6px;
}
.hv-btn--back:hover .hv-btn__arrow {
	transform: translateX(-4px);
}

/* CTA with Inter headings (blog pages) */
.hv-cta--inter .hv-h2 {
	max-width: 540px;
	font-family: var(--hv-font);
	font-weight: 600;
	letter-spacing: -0.015em;
}

/* Blog ------------------------------------------------------------------- */

.hv-blog,
.hv-single {
	padding: 160px 0 45px;
}

.hv-blog__head {
	text-align: center;
}
.hv-blog__title {
	margin: 0;
	font-family: var(--hv-font);
	font-size: clamp(30px, 3.5vw, 50px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--hv-ink);
}
.hv-blog__descr {
	margin: 20px 0 0;
	font-size: 18px;
	color: var(--hv-text);
}
.hv-blog__descr p {
	margin: 0;
}

.hv-post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 60px 28px;
	margin-top: 50px;
}

.hv-post-card {
	position: relative;
}
.hv-post-card__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 746 / 445;
	border-radius: 16px;
	background-color: #ebe2e3;
}
.hv-post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--hv-ease);
}
.hv-post-card:hover .hv-post-card__image img {
	transform: scale(1.04);
}

.hv-post-card__meta {
	margin: 20px 0 0;
	font-weight: 400;
	font-size: 14px;
	color: #797979;
}
.hv-post-card__title {
	margin: 6px 0 0;
	font-family: var(--hv-font);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.hv-post-card__title a {
	color: var(--hv-ink);
	text-decoration: none;
	transition: color 0.2s;
}
.hv-post-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
}
.hv-post-card:hover .hv-post-card__title a {
	color: var(--hv-red);
}
.hv-post-card__excerpt {
	margin-top: 12px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hv-blog__more {
	margin-top: 60px;
}

.hv-pagination {
	margin-top: 60px;
}
.hv-pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}
.hv .hv-pagination .page-numbers {
	display: grid;
	border: 0;
	box-shadow: none;
	background-color: transparent;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 16px;
	color: var(--hv-ink);
	text-decoration: none;
	transition:
		background-color 0.2s,
		color 0.2s;
}
.hv-pagination .page-numbers svg {
	width: 16px;
	height: 16px;
}
.hv .hv-pagination a.page-numbers:hover {
	background-color: #fbd3d5;
	color: var(--hv-red);
}
.hv .hv-pagination .page-numbers.current {
	background-color: var(--hv-red);
	color: #fff;
}

.hv-blog .hv-cta {
	margin-top: 155px;
}

/* Single post ------------------------------------------------------------ */

.hv-article {
	max-width: 746px;
	margin: 0 auto;
}

.hv-article__head {
	text-align: center;
}
.hv-article__date {
	display: block;
	font-size: 18px;
	color: var(--hv-text);
}
.hv-article__title {
	margin: 12px 0 0;
	font-family: var(--hv-font);
	font-size: clamp(34px, 3.15vw, 50px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--hv-ink);
}
.hv-article__meta {
	margin: 8px 0 0;
	font-size: 14px;
	color: #797979;
}

.hv .hv-share {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 24px;
}
.hv .hv-share a,
.hv .hv-share button {
	position: relative;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 15px;
	color: var(--hv-ink);
	background-color: #e9e2e3;
	text-decoration: none;
	transition:
		background-color 0.2s,
		color 0.2s;
}
.hv .hv-share a:hover,
.hv .hv-share button:hover {
	color: #fff;
	background-color: var(--hv-red);
}
.hv-share svg {
	width: 15px;
	height: 15px;
}
.hv-share__tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	color: #fff;
	background: var(--hv-ink);
	white-space: nowrap;
	transform: translateX(-50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}
.hv-share button.is-copied .hv-share__tip {
	opacity: 1;
}

.hv-article__image {
	overflow: hidden;
	margin-top: 50px;
	border-radius: 16px;
}
.hv-article__image img {
	width: 100%;
	max-height: 445px;
	height: auto;
	object-fit: cover;
}

.hv-article__content {
	margin-top: 32px;
	font-size: 16px;
	line-height: 1.5;
	color: #1a1a1a;
}
.hv-article__content > * + * {
	margin-top: 16px;
}
.hv-article__content h2,
.hv-article__content h3,
.hv-article__content h4 {
	margin-top: 32px;
	font-family: var(--hv-font);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--hv-ink);
}
.hv-article__content h2 {
	font-size: 24px;
}
.hv-article__content h3 {
	font-size: 20px;
}
.hv-article__content h4 {
	font-size: 18px;
}
.hv-article__content h2 + *,
.hv-article__content h3 + * {
	margin-top: 12px;
}
.hv-article__content a {
	color: var(--hv-red);
	text-decoration: underline;
}
.hv-article__content img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}
.hv-article__content figure,
.hv-article__content .wp-block-image,
.hv-article__content p:has(> img:only-child) {
	margin: 32px 0;
}
.hv-article__content figcaption {
	margin-top: 10px;
	font-size: 14px;
	color: var(--hv-muted);
	text-align: center;
}
.hv-article__content ul,
.hv-article__content ol {
	padding-left: 22px;
}
.hv-article__content ul {
	list-style: disc;
}
.hv-article__content ol {
	list-style: decimal;
}
.hv-article__content li + li {
	margin-top: 6px;
}
.hv-article__content blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--hv-red);
	font-size: 18px;
}
.hv-article__content iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 16px;
}

.hv-article__foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 50px;
}
.hv .hv-article__foot .hv-share {
	margin-top: 0;
}
.hv-article__foot .hv-btn {
	margin-top: 60px;
}

.hv-related {
	margin-top: 160px;
}
.hv-related__title {
	text-align: center;
}
.hv-related .hv-post-grid {
	margin-top: 60px;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1099px) {
	.hv-header--light.has-nav,
	.hv-header--light .hv-nav {
		background-color: var(--hv-light);
	}
	.hv-header--light .hv-nav__menu a {
		border-bottom-color: var(--hv-line);
	}
}

@media (max-width: 991px) {
	.hv-post-grid {
		gap: 44px 20px;
	}
	.hv-related {
		margin-top: 110px;
	}
}

@media (max-width: 767px) {
	.hv-blog,
	.hv-single {
		padding-top: 120px;
	}
	.hv-blog__descr {
		margin-top: 16px;
		font-size: 16px;
	}
	.hv-post-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		margin-top: 36px;
	}
	.hv-post-card__meta {
		margin-top: 16px;
	}
	.hv-post-card__title {
		font-size: 20px;
	}
	.hv-post-card__excerpt {
		font-size: 15px;
	}
	.hv-blog .hv-cta {
		margin-top: 100px;
	}
	.hv-article__date {
		font-size: 16px;
	}
	.hv-article__image {
		margin-top: 32px;
	}
	.hv-article__content {
		margin-top: 28px;
	}
	.hv-article__content h2 {
		font-size: 21px;
	}
	.hv-related {
		margin-top: 80px;
	}
	.hv-related .hv-post-grid {
		margin-top: 36px;
	}
}
