/* Header Cards Styles - Compact Version */
.ub-header-cards-container {
	margin: 10px 0;
	padding: 0 10px;
}

.ub-header-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	max-width: 1200px;
	margin: 0 auto;
}

.ub-header-card {
	background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	overflow: hidden;
	transition: all 0.3s ease;
	width: 200px;
	height: 150px;
	position: relative;
	backdrop-filter: blur(10px);
}

.ub-header-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
	border-color: rgba(102, 126, 234, 0.3);
}

.ub-header-card-image {
	position: relative;
	overflow: hidden;
	height: 100px;
}

.ub-header-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ub-header-card:hover .ub-header-card-image img {
	transform: scale(1.05);
}

.ub-header-card-content {
	padding: 8px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ub-header-card-title {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.2;
	text-align: center;
}

.ub-header-card-title a {
	color: #333;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ub-header-card-title a:hover {
	color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
	.ub-header-cards {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
	}
	
	.ub-header-card {
		width: 180px;
		height: 135px;
	}
	
	.ub-header-card-image {
		height: 90px;
	}
	
	.ub-header-card-content {
		height: 45px;
		padding: 6px;
	}
	
	.ub-header-cards-container {
		padding: 0 5px;
	}
}

@media (max-width: 480px) {
	.ub-header-cards {
		flex-direction: column;
		align-items: center;
	}
	
	.ub-header-card {
		width: 160px;
		height: 120px;
	}
	
	.ub-header-card-image {
		height: 80px;
	}
	
	.ub-header-card-content {
		height: 40px;
		padding: 5px;
	}
	
	.ub-header-card-title {
		font-size: 0.85em;
	}
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
	.ub-header-card {
		background: linear-gradient(135deg, rgba(45,45,45,0.95) 0%, rgba(35,35,35,0.9) 100%);
		border-color: rgba(255,255,255,0.1);
	}
	
	.ub-header-card-title a {
		color: #fff;
	}
	
	.ub-header-card-description {
		color: #ccc;
	}
	
	.ub-header-card-meta {
		color: #aaa;
	}
}
