/*
Theme Name: VDC Vet Astra Child
Description: Child theme for Astra on the VDC Vet staging site.
Author: VDC Vet
Template: astra
Version: 1.0.0
Text Domain: vdc-vet-astra-child
*/

:root {
	--vdc-navy: #132b55;
	--vdc-navy-dark: #0d2145;
	--vdc-sage: #9bb3ad;
	--vdc-sage-dark: #5c817a;
	--vdc-gold: #f2c300;
	--vdc-ink: #162031;
	--vdc-muted: #64717d;
	--vdc-line: #dfe7e5;
	--vdc-surface: #f6f8f7;
	--vdc-white: #ffffff;
}

#primary.vdc-blog-template,
#primary.vdc-single-template,
.ast-separate-container #primary.vdc-blog-template,
.ast-separate-container #primary.vdc-single-template {
	position: relative;
	width: 100vw !important;
	max-width: 100vw !important;
	flex: 0 0 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 0 !important;
	overflow-x: clip;
}

.ast-container > #primary.vdc-blog-template,
.ast-container > #primary.vdc-single-template {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.vdc-blog-template .site-main,
.vdc-single-template .site-main {
	background: var(--vdc-surface);
	color: var(--vdc-ink);
}

.vdc-blog-hero,
.vdc-single-hero {
	background: var(--vdc-navy);
	color: var(--vdc-white);
}

.vdc-blog-hero__inner,
.vdc-single-hero__inner {
	width: min(1120px, calc(100% - 48px));
	margin: 0 auto;
	padding: 64px 0 58px;
}

.vdc-blog-hero__eyebrow,
.vdc-single-aside__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: var(--vdc-gold);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0;
}

.vdc-blog-hero__eyebrow::before,
.vdc-single-aside__eyebrow::before {
	content: "";
	width: 32px;
	height: 2px;
	background: var(--vdc-gold);
}

.vdc-blog-hero__title,
.vdc-single-hero__title {
	max-width: 840px;
	margin: 0;
	color: var(--vdc-white);
	font-family: inherit;
	font-size: clamp(40px, 5.2rem, 68px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: 0;
}

.vdc-blog-hero__text,
.vdc-single-hero__excerpt {
	max-width: 720px;
	margin-top: 20px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 20px;
	line-height: 1.65;
}

.vdc-blog-hero__text p,
.vdc-single-hero__excerpt {
	margin-bottom: 0;
}

.vdc-post-listing {
	width: min(1120px, calc(100% - 48px));
	margin: 0 auto;
	padding: 62px 0 76px;
}

.vdc-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
}

.vdc-post-card,
.vdc-post-card.ast-article-post,
.ast-separate-container .ast-article-post.vdc-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--vdc-white);
	border: 1px solid var(--vdc-line);
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(19, 43, 85, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.vdc-post-card:hover {
	transform: translateY(-4px);
	border-color: rgba(92, 129, 122, 0.45);
	box-shadow: 0 24px 58px rgba(19, 43, 85, 0.13);
}

.vdc-post-card__media {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--vdc-navy-dark);
}

.vdc-post-card__image,
.vdc-post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.vdc-post-card:hover .vdc-post-card__image,
.vdc-post-card:hover .vdc-post-card__media img {
	transform: scale(1.035);
}

.vdc-post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--vdc-white);
	background: var(--vdc-navy-dark);
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
}

.vdc-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.vdc-post-card__meta,
.vdc-single-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	margin-bottom: 14px;
	color: var(--vdc-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0;
}

.vdc-post-card__meta a,
.vdc-single-hero__meta a {
	color: var(--vdc-sage-dark);
	text-decoration: none;
}

.vdc-post-card__meta > * + *,
.vdc-single-hero__meta > * + * {
	position: relative;
	padding-left: 12px;
}

.vdc-post-card__meta > * + *::before,
.vdc-single-hero__meta > * + *::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 4px;
	height: 4px;
	background: var(--vdc-gold);
	border-radius: 50%;
	transform: translateY(-50%);
}

.vdc-post-card__title {
	margin: 0 0 13px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: 0;
}

.vdc-post-card__title a {
	color: var(--vdc-ink);
	text-decoration: none;
}

.vdc-post-card__title a:hover,
.vdc-post-card__meta a:hover,
.vdc-single-hero__meta a:hover {
	color: var(--vdc-sage-dark);
}

.vdc-post-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	max-height: calc(1.6em * 3);
	margin: 0 0 24px;
	color: var(--vdc-muted);
	font-size: 16px;
	line-height: 1.6;
}

.vdc-post-card__link {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin-top: auto;
	color: var(--vdc-navy);
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
}

.vdc-post-card__link:hover {
	color: var(--vdc-sage-dark);
}

.vdc-post-listing .navigation.pagination {
	margin-top: 42px;
}

.vdc-post-listing .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.vdc-post-listing .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 14px;
	color: var(--vdc-navy);
	background: var(--vdc-white);
	border: 1px solid var(--vdc-line);
	border-radius: 6px;
	font-weight: 800;
	text-decoration: none;
}

.vdc-post-listing .page-numbers.current,
.vdc-post-listing .page-numbers:hover {
	color: var(--vdc-white);
	background: var(--vdc-navy);
	border-color: var(--vdc-navy);
}

.vdc-empty-state {
	max-width: 680px;
	margin: 0 auto;
	padding: 48px;
	text-align: center;
	background: var(--vdc-white);
	border: 1px solid var(--vdc-line);
	border-radius: 8px;
}

.vdc-single-hero__inner {
	padding-bottom: 76px;
}

.vdc-single-hero__meta {
	margin-bottom: 18px;
	color: rgba(255, 255, 255, 0.72);
}

.vdc-single-hero__meta a {
	color: var(--vdc-gold);
}

.vdc-single-featured-image {
	width: min(1120px, calc(100% - 48px));
	margin: -42px auto 0;
	overflow: hidden;
	background: var(--vdc-white);
	border: 8px solid var(--vdc-white);
	border-radius: 8px;
	box-shadow: 0 24px 64px rgba(19, 43, 85, 0.16);
}

.vdc-single-featured-image img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.vdc-single-content-wrap {
	display: grid;
	grid-template-columns: minmax(0, 720px) 300px;
	gap: 56px;
	align-items: start;
	width: min(1120px, calc(100% - 48px));
	margin: 0 auto;
	padding: 58px 0 78px;
}

.vdc-single-content {
	color: var(--vdc-ink);
	font-size: 18px;
	line-height: 1.78;
}

.ast-separate-container .ast-article-single.vdc-single-post,
.vdc-single-post.ast-article-single {
	margin: 0;
	padding: 0 !important;
	background: transparent;
}

.vdc-single-content > *:first-child {
	margin-top: 0;
}

.vdc-single-content h2,
.vdc-single-content h3,
.vdc-single-content h4 {
	margin-top: 1.7em;
	color: var(--vdc-navy);
	line-height: 1.2;
	letter-spacing: 0;
}

.vdc-single-content p,
.vdc-single-content ul,
.vdc-single-content ol {
	margin-bottom: 1.25em;
}

.vdc-single-content a {
	color: var(--vdc-sage-dark);
	font-weight: 700;
}

.vdc-single-content blockquote {
	margin: 32px 0;
	padding: 24px 28px;
	color: var(--vdc-navy);
	background: var(--vdc-white);
	border-left: 5px solid var(--vdc-gold);
}

.vdc-single-aside {
	position: sticky;
	top: 24px;
	padding: 28px;
	background: var(--vdc-white);
	border: 1px solid var(--vdc-line);
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(19, 43, 85, 0.08);
}

.vdc-single-aside h2 {
	margin: 0 0 12px;
	color: var(--vdc-navy);
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: 0;
}

.vdc-single-aside p,
.vdc-single-aside__text {
	color: var(--vdc-muted);
	line-height: 1.6;
}

.vdc-single-aside__text p:last-child {
	margin-bottom: 0;
}

.vdc-single-aside__button,
.vdc-single-aside__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	margin-top: 14px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0;
}

.vdc-single-aside__button {
	color: var(--vdc-white);
	background: var(--vdc-navy);
}

.vdc-single-aside__button:hover {
	color: var(--vdc-white);
	background: var(--vdc-sage-dark);
}

.vdc-single-aside__link {
	color: var(--vdc-navy);
	background: transparent;
	border: 1px solid var(--vdc-line);
}

.vdc-single-aside__link:hover {
	color: var(--vdc-white);
	background: var(--vdc-navy);
	border-color: var(--vdc-navy);
}

.vdc-single-footer {
	width: min(1120px, calc(100% - 48px));
	margin: 0 auto;
	padding: 0 0 76px;
}

.vdc-single-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.vdc-single-tags a {
	display: inline-flex;
	padding: 8px 12px;
	color: var(--vdc-navy);
	background: var(--vdc-white);
	border: 1px solid var(--vdc-line);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.vdc-related-posts {
	padding-top: 10px;
}

.vdc-related-posts__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--vdc-sage-dark);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0;
}

.vdc-related-posts__eyebrow::before {
	content: "";
	width: 32px;
	height: 2px;
	background: var(--vdc-gold);
}

.vdc-related-posts h2 {
	margin: 0 0 28px;
	color: var(--vdc-navy);
	font-size: 36px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0;
}

.vdc-related-posts .vdc-post-card__title {
	font-size: 20px;
	line-height: 1.25;
}

@media (max-width: 1024px) {
	.vdc-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vdc-single-content-wrap {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.vdc-single-aside {
		position: static;
	}
}

@media (max-width: 767px) {
	.vdc-blog-hero__inner,
	.vdc-single-hero__inner,
	.vdc-post-listing,
	.vdc-single-featured-image,
	.vdc-single-content-wrap,
	.vdc-single-footer {
		width: min(100% - 32px, 1120px);
	}

	.vdc-blog-hero__inner,
	.vdc-single-hero__inner {
		padding: 44px 0 42px;
	}

	.vdc-blog-hero__title,
	.vdc-single-hero__title {
		font-size: 38px;
	}

	.vdc-blog-hero__text {
		font-size: 17px;
	}

	.vdc-post-listing {
		padding: 40px 0 52px;
	}

	.vdc-post-grid {
		grid-template-columns: 1fr;
	}

	.vdc-post-card__body,
	.vdc-single-aside {
		padding: 22px;
	}

	.vdc-single-featured-image {
		margin-top: -24px;
		border-width: 6px;
	}

	.vdc-single-content-wrap {
		padding: 42px 0 58px;
	}
}
