/* ===========================================
   VPS Category Display — v2.0
   =========================================== */

.vps-category-display {
	margin-bottom: 30px;
	border: 1px solid #e8e8e8;
	font-family: inherit;
	background: #fff;
}

/* --- Header --- */
.vps-cd-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 12px;
	background: #24a0ed;
}

.vps-cd-title {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.vps-cd-more {
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.08em;
	opacity: 0.85;
}

.vps-cd-more:hover {
	opacity: 1;
	text-decoration: underline;
}

/* --- Shared --- */
.vps-cd-body {
	padding: 10px;
}

.vps-cd-img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.2s ease;
}

.vps-cd-img:hover {
	opacity: 0.88;
}

.vps-cd-date {
	font-size: 11px;
	color: #999;
	display: block;
	margin-bottom: 5px;
}

/* ===========================================
   MAGAZINE layout
   large featured left + smaller stack right
   =========================================== */

.vps-layout-magazine .vps-cd-body {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.vps-layout-magazine .vps-cd-featured {
	flex: 0 0 100%;
}

.vps-layout-magazine .vps-cd-featured a {
	display: block;
	text-decoration: none;
}

.vps-layout-magazine .vps-cd-featured-meta {
	padding: 8px 0 4px;
}

.vps-layout-magazine .vps-cd-featured-meta h3 {
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 1.3;
}

.vps-layout-magazine .vps-cd-featured-meta h3 a {
	color: #222;
	text-decoration: none;
}

.vps-layout-magazine .vps-cd-featured-meta h3 a:hover {
	color: #24a0ed;
}

.vps-layout-magazine .vps-cd-excerpt {
	font-size: 13px;
	color: #555;
	line-height: 1.5;
	margin-top: 5px;
}

.vps-layout-magazine .vps-cd-excerpt p {
	margin: 0;
}

.vps-layout-magazine .vps-cd-secondary {
	flex: 0 0 100%;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.vps-layout-magazine .vps-cd-secondary-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid #eee;
}

.vps-layout-magazine .vps-cd-thumb-wrap {
	flex-shrink: 0;
	display: block;
	width: 110px;
	height: 82px;
	overflow: hidden;
}

.vps-layout-magazine .vps-cd-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s ease;
}

.vps-layout-magazine .vps-cd-thumb:hover {
	opacity: 0.88;
}

.vps-layout-magazine .vps-cd-secondary-meta h4 {
	margin: 0 0 3px;
	font-size: 14px;
	line-height: 1.3;
}

.vps-layout-magazine .vps-cd-secondary-meta h4 a {
	color: #222;
	text-decoration: none;
}

.vps-layout-magazine .vps-cd-secondary-meta h4 a:hover {
	color: #24a0ed;
}

@media ( min-width: 640px ) {
	.vps-layout-magazine .vps-cd-featured {
		flex: 0 0 58%;
	}
	.vps-layout-magazine .vps-cd-secondary {
		flex: 1;
	}
	.vps-layout-magazine .vps-cd-secondary-item:first-child {
		border-top: none;
		padding-top: 0;
	}
}

/* ===========================================
   LIST layout
   thumbnail left, title + date right, stacked
   =========================================== */

.vps-layout-list .vps-cd-list-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.vps-layout-list .vps-cd-list-item:last-child {
	border-bottom: none;
}

.vps-layout-list .vps-cd-thumb-wrap {
	flex-shrink: 0;
	display: block;
	width: 100px;
	height: 75px;
	overflow: hidden;
}

.vps-layout-list .vps-cd-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s ease;
}

.vps-layout-list .vps-cd-thumb:hover {
	opacity: 0.88;
}

.vps-layout-list .vps-cd-list-meta {
	flex-grow: 1;
}

.vps-layout-list .vps-cd-list-meta h4 {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.3;
}

.vps-layout-list .vps-cd-list-meta h4 a {
	color: #222;
	text-decoration: none;
}

.vps-layout-list .vps-cd-list-meta h4 a:hover {
	color: #24a0ed;
}

/* ===========================================
   HERO layout
   large image left, 2x2 grid right
   =========================================== */

.vps-layout-hero .vps-cd-body {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
}

.vps-layout-hero .vps-cd-hero-featured {
	flex: 0 0 100%;
	position: relative;
	overflow: hidden;
}

.vps-layout-hero .vps-cd-hero-featured a {
	display: block;
	position: relative;
}

.vps-layout-hero .vps-cd-hero-featured .vps-cd-img {
	width: 100%;
	height: 250px;
	object-fit: cover;
}

.vps-layout-hero .vps-cd-hero-title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 40px 12px 12px;
	background: linear-gradient(transparent, rgba(0,0,0,0.82));
}

.vps-layout-hero .vps-cd-hero-title h3 {
	margin: 0;
	color: #fff;
	font-size: 17px;
	line-height: 1.3;
	text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.vps-layout-hero .vps-cd-hero-grid {
	flex: 0 0 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
}

.vps-layout-hero .vps-cd-hero-cell {
	position: relative;
	display: block;
	overflow: hidden;
}

.vps-layout-hero .vps-cd-hero-cell .vps-cd-img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s ease;
}

.vps-layout-hero .vps-cd-hero-cell:hover .vps-cd-img {
	opacity: 0.88;
}

.vps-layout-hero .vps-cd-hero-cell-title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 8px 7px;
	background: linear-gradient(transparent, rgba(0,0,0,0.78));
}

.vps-layout-hero .vps-cd-hero-cell-title span {
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	display: block;
}

@media ( min-width: 640px ) {
	.vps-layout-hero .vps-cd-hero-featured {
		flex: 0 0 calc(50% - 2px);
	}
	.vps-layout-hero .vps-cd-hero-featured .vps-cd-img {
		height: 100%;
		min-height: 300px;
	}
	.vps-layout-hero .vps-cd-hero-grid {
		flex: 1;
	}
	.vps-layout-hero .vps-cd-hero-cell .vps-cd-img {
		height: 148px;
	}
}

/* ===========================================
   Mobile adjustments
   =========================================== */

@media ( max-width: 480px ) {
	.vps-layout-list .vps-cd-thumb-wrap {
		width: 75px;
		height: 56px;
	}
	.vps-layout-magazine .vps-cd-thumb-wrap {
		width: 65px;
		height: 50px;
	}
}
