/* ==========================================================
   Your Health Vibes - Blog archive + single post
   Design tokens taken from the Figma PDF (1440px board).
   ========================================================== */

.yhv-blog {
	--yhv-green: #2f7d6d;
	--yhv-green-dark: #256456;
	--yhv-dark: #111111;
	--yhv-text: #4b5563;
	--yhv-bg: #f6f7f5;
	--yhv-placeholder: #e5e7eb;
	--yhv-radius: 20px;
	color: var(--yhv-text);
	background: #fff;
	font-family: "Poiret One", Sans-serif;
}

.yhv-blog *,
.yhv-blog *::before,
.yhv-blog *::after { box-sizing: border-box; }

.yhv-container {
	width: min(1200px, 100% - 40px);
	margin-inline: auto;
}

/* ---------- Hero ---------- */
.yhv-hero {
	background: var(--yhv-bg);
	padding: 88px 0 64px;
	border-top: 1px solid #ececec;
}
.yhv-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--yhv-green);
}
.yhv-breadcrumb a { color: var(--yhv-green); text-decoration: none; }
.yhv-breadcrumb a:hover { text-decoration: underline; }

.yhv-hero__title {
	margin: 0;
	font-size: 56px;
	line-height: 1.1;
	font-weight: 700;
	color: var(--yhv-dark);
}
.yhv-hero__title--post {
	max-width: 900px;
	font-size: 44px;
	line-height: 1.2;
}

/* ---------- Layout ---------- */
.yhv-blog__body { padding: 120px 0; }
.yhv-blog__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	align-items: start;
}

/* ---------- Posts grid: 3 per row ---------- */
.yhv-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 28px;
}

.yhv-card { display: flex; flex-direction: column; min-width: 0; }

.yhv-card__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--yhv-radius);
	background: var(--yhv-placeholder);
}
.yhv-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.yhv-card:hover .yhv-card__thumb img { transform: scale(1.04); }
.yhv-card__placeholder { width: 25%; height: auto; }

.yhv-card__meta,
.yhv-single__meta {
	margin: 24px 0 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--yhv-green);
}
.yhv-card__title {
	margin: 12px 0 0;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 600;
	color: var(--yhv-dark);
}
.yhv-card__title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: color .2s;
}
.yhv-card__title a:hover { color: var(--yhv-green); }

.yhv-card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--yhv-text);
}
.yhv-card__more {
	align-self: flex-start;
	margin-top: 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--yhv-green);
	text-decoration: none;
	transition: color .2s;
}
.yhv-card__more:hover { color: var(--yhv-dark); }

.yhv-blog__empty { margin: 0; font-size: 18px; }

/* ---------- Pagination ---------- */
.yhv-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 56px;
}
.yhv-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--yhv-bg);
	border: 1px solid #ececec;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--yhv-dark);
	text-decoration: none;
	transition: background .2s, color .2s;
}
.yhv-pagination a.page-numbers:hover { background: var(--yhv-green); border-color: var(--yhv-green); color: #fff; }
.yhv-pagination .page-numbers.current { background: var(--yhv-dark); border-color: var(--yhv-dark); color: #fff; }
.yhv-pagination .page-numbers.dots { background: var(--yhv-bg); }

/* ---------- Archives sidebar ---------- */
.yhv-sidebar__card {
	padding: 32px;
	border-radius: var(--yhv-radius);
	background: var(--yhv-bg);
}
.yhv-sidebar__title {
	margin: 0 0 14px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--yhv-dark);
}
.yhv-sidebar__list { list-style: none; margin: 0; padding: 0; }
.yhv-sidebar__list li { margin: 0; padding: 0; }
.yhv-sidebar__list a {
	display: block;
	padding: 9px 0;
	font-size: 15px;
	color: var(--yhv-text);
	text-decoration: none;
	transition: color .2s;
}
.yhv-sidebar__list a:hover { color: var(--yhv-green); }

/* ---------- Single post ---------- */
.yhv-single__meta { margin: 0 0 12px; }

.yhv-single__article { min-width: 0; }
.yhv-single__image { margin: 0 0 40px; }
.yhv-single__image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--yhv-radius);
}

.yhv-single__content { font-size: 17px; line-height: 1.8; color: var(--yhv-text); }
.yhv-single__content > *:first-child { margin-top: 0; }
.yhv-single__content p { margin: 0 0 1.4em; }
.yhv-single__content h2,
.yhv-single__content h3,
.yhv-single__content h4 {
	margin: 1.8em 0 .6em;
	line-height: 1.3;
	font-weight: 600;
	color: var(--yhv-dark);
}
.yhv-single__content h2 { font-size: 30px; }
.yhv-single__content h3 { font-size: 24px; }
.yhv-single__content h4 { font-size: 20px; }
.yhv-single__content a { color: var(--yhv-green); text-decoration: underline; }
.yhv-single__content a:hover { color: var(--yhv-dark); }
.yhv-single__content ul,
.yhv-single__content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.yhv-single__content li { margin-bottom: .4em; }
.yhv-single__content img { max-width: 100%; height: auto; border-radius: 12px; }
.yhv-single__content blockquote {
	margin: 1.8em 0;
	padding: 24px 28px;
	border-left: 4px solid var(--yhv-green);
	border-radius: 0 12px 12px 0;
	background: var(--yhv-bg);
	color: var(--yhv-dark);
}
.yhv-single__content blockquote p:last-child { margin-bottom: 0; }

.yhv-pagination--inline { margin-top: 24px; }

.yhv-postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 56px;
}
.yhv-postnav__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 24px;
	border-radius: var(--yhv-radius);
	background: var(--yhv-bg);
	text-decoration: none;
	transition: background .2s;
}
.yhv-postnav__item--next { grid-column: 2; text-align: right; }
.yhv-postnav__item:hover { background: #ecefea; }
.yhv-postnav__label { font-size: 13px; font-weight: 600; color: var(--yhv-green); }
.yhv-postnav__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--yhv-dark);
}
.yhv-single__back { margin-top: 32px; }

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

/* Laptop / small desktop: sidebar drops below the posts */
@media (max-width: 1099px) {
	.yhv-blog__layout { grid-template-columns: minmax(0, 1fr); gap: 56px; }
	.yhv-sidebar__card { max-width: 420px; }
	.yhv-blog__body { padding: 80px 0; }
}

/* Tablet: 2 per row */
@media (max-width: 899px) {
	.yhv-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
	.yhv-hero { padding: 64px 0 48px; }
	.yhv-hero__title { font-size: 44px; }
	.yhv-hero__title--post { font-size: 34px; }
}

/* Mobile: 1 per row */
@media (max-width: 599px) {
	.yhv-blog__grid { grid-template-columns: minmax(0, 1fr); }
	.yhv-blog__body { padding: 56px 0; }
	.yhv-hero { padding: 48px 0 36px; }
	.yhv-hero__title { font-size: 36px; }
	.yhv-hero__title--post { font-size: 28px; }
	.yhv-sidebar__card { max-width: none; padding: 24px; }
	.yhv-pagination { margin-top: 40px; }
	.yhv-single__content { font-size: 16px; }
	.yhv-single__content h2 { font-size: 24px; }
	.yhv-single__content h3 { font-size: 20px; }
	.yhv-postnav { grid-template-columns: minmax(0, 1fr); }
	.yhv-postnav__item--next { grid-column: 1; text-align: left; }
}
