/*
 * Virtuodent Blog & Single styles
 * Loaded only on is_home() / is_archive() / is_singular('post')
 */

:root {
	--vd-primary: #0A1C2C;
	--vd-secondary: #000000;
	--vd-text: #423F40;
	--vd-accent: #BBA16A;
	--vd-dark-green: #0F312B;
	--vd-bg-light: #F9F9F9;
	--vd-grey: #A5A5A5;
	--vd-border: #ECECEC;

	--vd-font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--vd-font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

	--vd-container: 1140px;
	--vd-radius-sm: 6px;
	--vd-radius-md: 12px;
	--vd-radius-lg: 16px;

	--vd-shadow-card: 0 4px 12px rgba(10, 28, 44, 0.06);
	--vd-shadow-card-hover: 0 12px 24px rgba(10, 28, 44, 0.10);
}

.vd-blog,
.vd-single {
	color: var(--vd-text);
	font-family: var(--vd-font-body);
	font-size: 16px;
	line-height: 1.6;
}

.vd-blog *,
.vd-single * {
	box-sizing: border-box;
}

.vd-container {
	max-width: var(--vd-container);
	margin: 0 auto;
	padding: 0 24px;
}

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

.vd-blog-hero {
	background-color: var(--vd-primary);
	color: #fff;
	padding: 80px 0;
	text-align: center;
}

.vd-blog-hero__eyebrow {
	display: block;
	font-family: var(--vd-font-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--vd-accent);
	margin-bottom: 12px;
}

.vd-blog-hero__title {
	font-family: var(--vd-font-display);
	font-weight: 700;
	font-size: 48px;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 12px;
}

.vd-blog-hero__subtitle {
	font-family: var(--vd-font-body);
	font-size: 18px;
	color: #cfd6dc;
	max-width: 640px;
	margin: 0 auto;
}

/* Breadcrumb ------------------------------------------------- */

.vd-breadcrumb {
	font-family: var(--vd-font-body);
	font-size: 14px;
	color: var(--vd-grey);
	padding: 28px 0 8px;
}

.vd-breadcrumb a {
	color: var(--vd-primary);
	text-decoration: none;
}

.vd-breadcrumb a:hover {
	color: var(--vd-accent);
}

.vd-breadcrumb__sep {
	margin: 0 8px;
	color: var(--vd-grey);
}

.vd-breadcrumb__current {
	color: var(--vd-grey);
}

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

.vd-blog-body {
	padding: 80px 24px 96px;
}

.vd-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

/* Card ----------------------------------------------------- */

.vd-card {
	background: #fff;
	border-radius: var(--vd-radius-md);
	overflow: hidden;
	box-shadow: var(--vd-shadow-card);
	transition: transform .2s ease, box-shadow .2s ease;
}

.vd-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--vd-shadow-card-hover);
}

.vd-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.vd-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--vd-bg-light);
	overflow: hidden;
}

.vd-card__image,
.vd-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vd-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--vd-primary);
	color: var(--vd-accent);
	font-family: var(--vd-font-display);
	font-weight: 700;
	letter-spacing: 2px;
	font-size: 18px;
	text-transform: uppercase;
}

.vd-card__body {
	padding: 24px 24px 20px;
}

.vd-card__badge {
	display: inline-block;
	background: var(--vd-accent);
	color: #fff;
	font-family: var(--vd-font-display);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 3px;
	margin-bottom: 12px;
}

.vd-card__title {
	font-family: var(--vd-font-display);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.3;
	color: var(--vd-primary);
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vd-card:hover .vd-card__title {
	color: var(--vd-dark-green);
}

.vd-card__excerpt {
	font-family: var(--vd-font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--vd-text);
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vd-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--vd-border);
	padding-top: 16px;
}

.vd-card__meta {
	font-family: var(--vd-font-body);
	font-size: 14px;
	color: var(--vd-grey);
}

.vd-card__cta {
	font-family: var(--vd-font-display);
	font-weight: 600;
	font-size: 14px;
	color: var(--vd-accent);
}

/* Pagination ---------------------------------------------- */

.vd-pagination {
	margin-top: 64px;
	text-align: center;
}

.vd-pagination .page-numbers {
	display: inline-block;
	min-width: 44px;
	padding: 10px 14px;
	margin: 0 4px;
	font-family: var(--vd-font-display);
	font-weight: 600;
	font-size: 14px;
	color: var(--vd-primary);
	background: #fff;
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.vd-pagination .page-numbers.current,
.vd-pagination .page-numbers:hover {
	background: var(--vd-primary);
	border-color: var(--vd-primary);
	color: #fff;
}

/* Empty state -------------------------------------------- */

.vd-empty {
	text-align: center;
	padding: 80px 20px;
}

.vd-empty h2 {
	font-family: var(--vd-font-display);
	font-weight: 700;
	color: var(--vd-primary);
	margin-bottom: 12px;
}

.vd-empty p {
	color: var(--vd-text);
	margin-bottom: 24px;
}

/* Shared buttons ---------------------------------------- */

.vd-btn {
	display: inline-block;
	font-family: var(--vd-font-display);
	font-weight: 600;
	font-size: 15px;
	padding: 14px 28px;
	border-radius: 8px;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}

.vd-btn--primary {
	background: var(--vd-accent);
	color: #fff;
}

.vd-btn--primary:hover {
	background: #a8905c;
	color: #fff;
	transform: translateY(-2px);
}

.vd-btn--outline {
	border: 2px solid #fff;
	color: #fff;
	background: transparent;
}

.vd-btn--outline:hover {
	background: #fff;
	color: var(--vd-primary);
}

/* ============================================================
 * SINGLE POST
 * ============================================================ */

.vd-single .vd-breadcrumb {
	padding-top: 28px;
}

/* Post hero ---------------------------------------------- */

.vd-post-hero {
	padding: 16px 0 32px;
	text-align: center;
}

.vd-post-hero__media {
	margin-bottom: 40px;
	border-radius: var(--vd-radius-md);
	overflow: hidden;
	aspect-ratio: 21 / 9;
	background: var(--vd-bg-light);
}

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

.vd-post-hero__inner {
	max-width: 880px;
}

.vd-post-hero__meta-top {
	font-family: var(--vd-font-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--vd-accent);
	margin-bottom: 16px;
}

.vd-post-hero__dot {
	margin: 0 8px;
}

.vd-post-hero__title {
	font-family: var(--vd-font-display);
	font-weight: 700;
	font-size: 44px;
	line-height: 1.15;
	color: var(--vd-primary);
	margin: 0 0 24px;
}

.vd-post-hero__meta-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	font-family: var(--vd-font-body);
	font-size: 14px;
	color: var(--vd-grey);
	flex-wrap: wrap;
}

.vd-post-hero--bare {
	background: var(--vd-primary);
	padding: 72px 0;
	margin-bottom: 32px;
}

.vd-post-hero--bare .vd-post-hero__title {
	color: #fff;
}

.vd-post-hero--bare .vd-post-hero__meta-bottom {
	color: #cfd6dc;
}

/* Post content typography ------------------------------ */

.vd-post {
	padding: 16px 24px 64px;
}

.vd-post__content {
	max-width: 720px;
	margin: 0 auto;
	font-family: var(--vd-font-body);
	font-size: 18px;
	line-height: 1.75;
	color: var(--vd-text);
}

.vd-post__content > p:first-of-type {
	font-size: 20px;
	line-height: 1.7;
}

.vd-post__content h2 {
	font-family: var(--vd-font-display);
	font-weight: 700;
	font-size: 32px;
	line-height: 1.25;
	color: var(--vd-primary);
	margin: 48px 0 16px;
}

.vd-post__content h3 {
	font-family: var(--vd-font-display);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	color: var(--vd-primary);
	margin: 36px 0 12px;
}

.vd-post__content p {
	margin: 0 0 24px;
}

.vd-post__content a {
	color: var(--vd-primary);
	text-decoration: underline;
	text-decoration-color: var(--vd-accent);
	text-underline-offset: 3px;
}

.vd-post__content a:hover {
	color: var(--vd-accent);
}

.vd-post__content strong {
	color: var(--vd-primary);
}

.vd-post__content blockquote {
	border-left: 4px solid var(--vd-accent);
	padding: 8px 0 8px 24px;
	margin: 32px 0;
	font-style: italic;
	font-size: 20px;
	color: var(--vd-primary);
}

.vd-post__content ul,
.vd-post__content ol {
	margin: 0 0 24px 1.5em;
}

.vd-post__content li {
	margin-bottom: 8px;
}

.vd-post__content ul li::marker {
	color: var(--vd-accent);
}

.vd-post__content img {
	border-radius: var(--vd-radius-sm);
	margin: 24px 0;
}

.vd-post__content figure {
	margin: 24px 0;
}

.vd-post__content figcaption {
	font-size: 14px;
	color: var(--vd-grey);
	text-align: center;
	margin-top: 8px;
}

.vd-post__pages {
	margin: 32px 0;
	font-family: var(--vd-font-display);
}

/* Share -------------------------------------------------- */

.vd-share {
	display: flex;
	align-items: center;
	gap: 16px;
}

.vd-share--inline {
	display: inline-flex;
}

.vd-share--block {
	margin: 48px 0 16px;
	padding: 24px 0;
	border-top: 1px solid var(--vd-border);
	border-bottom: 1px solid var(--vd-border);
	justify-content: space-between;
}

.vd-share__label {
	font-family: var(--vd-font-display);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--vd-primary);
}

.vd-share__buttons {
	display: flex;
	gap: 10px;
}

.vd-share__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--vd-bg-light);
	color: var(--vd-primary);
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
	font-size: 15px;
}

.vd-share__btn:hover {
	background: var(--vd-accent);
	color: #fff;
}

.vd-share__copy-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--vd-primary);
	color: #fff;
	font-family: var(--vd-font-body);
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
}

.vd-share__btn--copy.is-copied .vd-share__copy-tooltip {
	opacity: 1;
}

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

.vd-post-cta {
	padding: 0 24px 64px;
}

.vd-post-cta__inner {
	background: var(--vd-dark-green);
	color: #fff;
	border-radius: var(--vd-radius-lg);
	padding: 56px 40px;
	text-align: center;
}

.vd-post-cta__title {
	font-family: var(--vd-font-display);
	font-weight: 700;
	font-size: 32px;
	color: #fff;
	margin: 0 0 12px;
}

.vd-post-cta__copy {
	font-family: var(--vd-font-body);
	font-size: 18px;
	color: #cfd6dc;
	margin: 0 0 28px;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.vd-post-cta__buttons {
	display: inline-flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
}

/* Related posts ----------------------------------------- */

.vd-related {
	padding: 0 24px 96px;
}

.vd-related__title {
	font-family: var(--vd-font-display);
	font-weight: 600;
	font-size: 28px;
	color: var(--vd-primary);
	margin: 0 0 8px;
}

.vd-related__rule {
	display: block;
	width: 60px;
	height: 3px;
	background: var(--vd-accent);
	margin: 0 0 40px;
	border-radius: 2px;
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

@media (max-width: 991px) {
	.vd-blog-hero {
		padding: 64px 0;
	}

	.vd-blog-hero__title {
		font-size: 38px;
	}

	.vd-blog-body {
		padding: 56px 24px 80px;
	}

	.vd-blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.vd-post-hero__title {
		font-size: 38px;
	}

	.vd-post__content {
		font-size: 17px;
	}

	.vd-post__content h2 {
		font-size: 28px;
	}

	.vd-post__content h3 {
		font-size: 22px;
	}

	.vd-post-cta__inner {
		padding: 48px 28px;
	}
}

@media (max-width: 767px) {
	.vd-container {
		padding: 0 20px;
	}

	.vd-blog-hero {
		padding: 56px 0;
	}

	.vd-blog-hero__title {
		font-size: 32px;
	}

	.vd-blog-hero__subtitle {
		font-size: 16px;
	}

	.vd-blog-body {
		padding: 48px 20px 64px;
	}

	.vd-blog-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.vd-card__body {
		padding: 20px 20px 16px;
	}

	.vd-card__title {
		font-size: 20px;
	}

	.vd-post-hero {
		padding: 8px 0 24px;
	}

	.vd-post-hero__media {
		margin-bottom: 28px;
		aspect-ratio: 16 / 10;
	}

	.vd-post-hero__title {
		font-size: 28px;
	}

	.vd-post-hero__meta-bottom {
		gap: 12px;
		flex-direction: column;
	}

	.vd-post {
		padding: 8px 20px 48px;
	}

	.vd-post__content {
		font-size: 16px;
	}

	.vd-post__content > p:first-of-type {
		font-size: 18px;
	}

	.vd-post__content h2 {
		font-size: 24px;
		margin: 36px 0 12px;
	}

	.vd-post__content h3 {
		font-size: 20px;
		margin: 28px 0 10px;
	}

	.vd-share--block {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.vd-post-cta {
		padding: 0 20px 48px;
	}

	.vd-post-cta__inner {
		padding: 40px 20px;
	}

	.vd-post-cta__title {
		font-size: 24px;
	}

	.vd-post-cta__copy {
		font-size: 16px;
	}

	.vd-post-cta__buttons {
		flex-direction: column;
		width: 100%;
	}

	.vd-post-cta__buttons .vd-btn {
		width: 100%;
	}

	.vd-related {
		padding: 0 20px 64px;
	}
}
