.vqt-modern-posts-grid {
	--vqt-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--vqt-columns), minmax(0, 1fr));
	column-gap: 26px;
	row-gap: 26px;
	align-items: stretch;
}

.vqt-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #102a45;
	border: 1px solid #1b3b5a;
	border-radius: 18px;
	transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
	isolation: isolate;
}

.vqt-post-card:hover {
	border-color: #168bff;
	transform: translateY(-7px);
	box-shadow: 0 24px 65px rgba(4, 13, 25, .32);
}

.vqt-post-media {
	position: relative;
	display: block;
	width: 100%;
	height: 230px;
	overflow: hidden;
	background: linear-gradient(135deg, #12385d 0%, #0b2037 48%, #168bff 140%);
}

.vqt-post-media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: rgba(7, 20, 38, .12);
	transition: background-color .35s ease;
}

.vqt-post-card:hover .vqt-post-media::after {
	background: rgba(7, 20, 38, 0);
}

.vqt-post-image {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.vqt-post-card:hover .vqt-post-image {
	transform: scale(1.055);
}

.vqt-post-media--placeholder {
	display: grid;
	place-items: center;
}

.vqt-placeholder-art {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
	background:
		linear-gradient(115deg, rgba(53, 184, 255, .1), transparent 45%),
		linear-gradient(145deg, #102f4d, #071426);
}

.vqt-placeholder-grid {
	position: absolute;
	inset: 0;
	opacity: .35;
	background-image:
		linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
	background-size: 32px 32px;
	transform: perspective(500px) rotateX(56deg) scale(1.4) translateY(22%);
	transform-origin: center bottom;
}

.vqt-placeholder-orb {
	position: absolute;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	filter: blur(4px);
	opacity: .48;
	background: radial-gradient(circle at 35% 35%, #35b8ff, rgba(22, 139, 255, .08) 67%, transparent 70%);
}

.vqt-placeholder-orb--one {
	top: -82px;
	right: -40px;
}

.vqt-placeholder-orb--two {
	bottom: -105px;
	left: -50px;
	width: 220px;
	height: 220px;
	opacity: .26;
}

.vqt-placeholder-icon {
	position: relative;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 20px;
	color: #eaf2fa;
	font-size: 28px;
	background: rgba(7,20,38,.54);
	box-shadow: 0 20px 60px rgba(0,0,0,.22);
	backdrop-filter: blur(10px);
}

.vqt-post-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}

.vqt-post-category {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	margin: 0 0 15px;
	padding: 7px 11px;
	border-radius: 999px;
	color: #fff;
	background: #168bff;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .055em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .25s ease, transform .25s ease;
}

.vqt-post-category:hover {
	color: #071426;
	background: #35b8ff;
	transform: translateY(-1px);
}

.vqt-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 13px;
	color: #91a6bb;
	font-family: "Instrument Sans", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.vqt-post-meta a {
	color: inherit;
	text-decoration: none;
}

.vqt-post-meta a:hover {
	color: #35b8ff;
}

.vqt-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vqt-meta-dot {
	display: inline-block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #35b8ff;
	flex: 0 0 auto;
}

.vqt-post-author-icon {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #35b8ff;
	box-shadow: 0 0 0 3px rgba(53,184,255,.13);
}

.vqt-post-title {
	margin: 0;
	color: #fff;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.32;
	letter-spacing: -.025em;
}

.vqt-post-title a {
	color: inherit;
	text-decoration: none;
	transition: color .22s ease;
}

.vqt-post-title a:hover {
	color: #35b8ff;
}

.vqt-post-excerpt {
	margin: 14px 0 0;
	color: #a9b9c8;
	font-family: "Instrument Sans", sans-serif;
	font-size: 15px;
	line-height: 1.65;
}

.vqt-post-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-top: auto;
	padding-top: 22px;
}

.vqt-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 11px 16px;
	border-radius: 9px;
	color: #fff;
	background: #168bff;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: color .24s ease, background-color .24s ease, gap .24s ease, transform .24s ease;
}

.vqt-read-more:hover {
	gap: 13px;
	color: #071426;
	background: #35b8ff;
	transform: translateY(-1px);
}

.vqt-read-more-icon {
	display: inline-flex;
	line-height: 1;
}

.vqt-feature-first .vqt-post-card:first-child {
	grid-column: span 2;
}

/* Compact is the recommended magazine layout. It keeps the lead story at its
 * natural height so the text area does not stretch into a large empty block. */
.vqt-feature-first.vqt-feature-compact .vqt-post-card:first-child {
	grid-row: auto;
	align-self: start;
}

/* Optional legacy/tall layout for users who want the lead story to match two
 * stacked cards in the neighbouring column. */
.vqt-feature-first.vqt-feature-tall .vqt-post-card:first-child {
	grid-row: span 2;
}

.vqt-feature-first .vqt-post-card:first-child .vqt-post-media {
	height: 420px;
}

.vqt-feature-first.vqt-feature-compact .vqt-post-card:first-child .vqt-post-content {
	flex: 0 0 auto;
}

.vqt-feature-first .vqt-post-card:first-child .vqt-post-title {
	font-size: 34px;
	line-height: 1.18;
}

.vqt-feature-first .vqt-post-card:first-child .vqt-post-excerpt {
	max-width: 760px;
	font-size: 16px;
}

/* Overlay design */
.vqt-layout-overlay .vqt-post-card {
	min-height: 430px;
	background: #071426;
}

.vqt-layout-overlay .vqt-post-media {
	position: absolute;
	inset: 0;
	height: 100%;
}

.vqt-layout-overlay .vqt-post-media::after {
	z-index: 2;
	background: linear-gradient(180deg, rgba(7,20,38,.08) 12%, rgba(7,20,38,.45) 48%, rgba(7,20,38,.98) 100%) !important;
}

.vqt-layout-overlay .vqt-post-content {
	position: relative;
	z-index: 4;
	justify-content: flex-end;
	min-height: 430px;
	padding-top: 150px;
}

.vqt-layout-overlay.vqt-feature-first .vqt-post-card:first-child,
.vqt-layout-overlay.vqt-feature-first .vqt-post-card:first-child .vqt-post-content {
	min-height: 620px;
}

.vqt-layout-overlay .vqt-post-category {
	margin-bottom: 13px;
}

.vqt-layout-overlay .vqt-post-excerpt {
	color: #d2deea;
}

/* Clean design */
.vqt-layout-clean .vqt-post-card {
	border-color: transparent;
	background: transparent;
	box-shadow: none;
}

.vqt-layout-clean .vqt-post-card:hover {
	border-color: transparent;
	box-shadow: none;
}

.vqt-layout-clean .vqt-post-content {
	padding-right: 0;
	padding-left: 0;
}

.vqt-layout-clean .vqt-post-media {
	border-radius: 16px;
}


/* Equal grid: all cards have the same visual hierarchy. */
.vqt-layout-grid .vqt-post-card {
	min-height: 100%;
}

/* Horizontal archive/list layouts. */
.vqt-layout-horizontal,
.vqt-layout-alternating {
	--vqt-columns: 1 !important;
}

.vqt-layout-horizontal .vqt-post-card,
.vqt-layout-alternating .vqt-post-card {
	flex-direction: row;
	min-height: 260px;
}

.vqt-layout-horizontal .vqt-post-media,
.vqt-layout-alternating .vqt-post-media {
	width: 38%;
	height: auto !important;
	min-height: 260px;
	flex: 0 0 38%;
}

.vqt-layout-horizontal .vqt-post-content,
.vqt-layout-alternating .vqt-post-content {
	min-width: 0;
	flex: 1 1 auto;
	justify-content: center;
}

.vqt-layout-alternating .vqt-post-card:nth-child(even) {
	flex-direction: row-reverse;
}

.vqt-layout-horizontal .vqt-post-title,
.vqt-layout-alternating .vqt-post-title {
	font-size: 25px;
}

.vqt-layout-horizontal .vqt-post-excerpt,
.vqt-layout-alternating .vqt-post-excerpt {
	max-width: 900px;
}

.vqt-pagination {
	margin-top: 38px;
}

.vqt-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vqt-pagination li {
	margin: 0;
	padding: 0;
}

.vqt-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 13px;
	border: 1px solid #1b3b5a;
	border-radius: 9px;
	color: #eaf2fa;
	background: #102a45;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.vqt-pagination .page-numbers:hover,
.vqt-pagination .page-numbers.current {
	border-color: #168bff;
	background: #168bff;
	transform: translateY(-2px);
}

.vqt-posts-empty {
	padding: 28px;
	border: 1px dashed #1b3b5a;
	border-radius: 14px;
	color: #91a6bb;
	background: #0d2038;
	font-family: "Instrument Sans", sans-serif;
	text-align: center;
}

@media (max-width: 1024px) {
	.vqt-modern-posts-grid {
		--vqt-columns: 2;
	}

	.vqt-feature-first .vqt-post-card:first-child .vqt-post-title {
		font-size: 29px;
	}
}

@media (max-width: 767px) {
	.vqt-modern-posts-grid {
		--vqt-columns: 1;
	}

	.vqt-feature-first .vqt-post-card:first-child {
		grid-column: auto;
		grid-row: auto;
	}

	.vqt-feature-first .vqt-post-card:first-child .vqt-post-media {
		height: 260px;
	}

	.vqt-feature-first .vqt-post-card:first-child .vqt-post-title {
		font-size: 24px;
		line-height: 1.3;
	}

	.vqt-layout-overlay.vqt-feature-first .vqt-post-card:first-child,
	.vqt-layout-overlay.vqt-feature-first .vqt-post-card:first-child .vqt-post-content {
		min-height: 470px;
	}

	.vqt-post-content {
		padding: 21px;
	}


	.vqt-layout-horizontal .vqt-post-card,
	.vqt-layout-alternating .vqt-post-card,
	.vqt-layout-alternating .vqt-post-card:nth-child(even) {
		flex-direction: column;
	}

	.vqt-layout-horizontal .vqt-post-media,
	.vqt-layout-alternating .vqt-post-media {
		width: 100% !important;
		height: 230px !important;
		min-height: 230px;
		flex-basis: auto !important;
	}

	.vqt-layout-horizontal .vqt-post-title,
	.vqt-layout-alternating .vqt-post-title {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vqt-post-card,
	.vqt-post-image,
	.vqt-read-more,
	.vqt-post-category {
		transition: none !important;
	}

	.vqt-post-card:hover,
	.vqt-read-more:hover,
	.vqt-post-category:hover {
		transform: none !important;
	}
}
