.wmc-post-cards-wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.wmc-post-card {
	position: relative;
	border-radius: 20px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	height: 400px;
	overflow: hidden;
}

.wmc-post-card--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	color: #999;
	min-height: 200px;
}

.wmc-post-card__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 1;
	border-radius: inherit;
}

.wmc-post-card:hover .wmc-post-card__image {
	opacity: 1;
}

.wmc-post-card__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: transparent;
	transition: background-color 0.4s ease;
	z-index: 2;
	border-radius: inherit;
}

.wmc-post-card__gradient {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	border-radius: inherit;
}

.wmc-post-card__content {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	height: 100%;
	padding: 25px 30px;
	box-sizing: border-box;
	z-index: 4;
}

.wmc-post-card__meta {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
}

.wmc-post-card__category {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background-color: #e31837;
	padding: 8px 18px;
	border-radius: 30px;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.wmc-post-card__date {
	font-size: 14px;
	color: #666666;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.wmc-post-card__title {
	font-size: 24px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 0;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.wmc-post-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 2px solid #e31837;
	border-radius: 50%;
	background: transparent;
	transition: border-color 0.3s ease, background-color 0.3s ease;
	text-decoration: none;
	margin-left: auto;
	margin-top: auto;
}

.wmc-post-card__button i,
.wmc-post-card__button svg {
	font-size: 18px;
	color: #e31837;
	transition: color 0.3s ease;
}

.wmc-post-card__button svg {
	width: 18px;
	height: 18px;
	fill: #e31837;
}

@media (max-width: 992px) {
	.wmc-post-cards-wrapper {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile Swiper - Hidden by default */
.wmc-post-cards-mobile {
	display: none;
}

/* Progress bar styles - Hidden on desktop */
.wmc-post-card__progress-wrapper {
	width: 100%;
	display: none;
	justify-content: center;
	align-items: center;
}

.wmc-post-card__progress {
	height: 4px;
	border-radius: 2px;
	overflow: hidden;
	position: relative;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	background-color: #e0e0e0;
}

.wmc-post-card__progress-segment {
	flex: 1;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.wmc-post-card__progress-segment-fill {
	width: 0%;
	height: 100%;
	background-color: #e31837;
	transition: width 0.05s linear;
	position: absolute;
	left: 0;
	top: 0;
}

@media (max-width: 768px) {
	.wmc-post-cards-desktop {
		display: none;
	}

	.wmc-post-cards-mobile {
		display: block;
	}

	.wmc-post-card__progress-wrapper {
		display: flex;
	}

	/* Center meta on mobile */
	.wmc-post-card__meta {
		justify-content: center;
	}

	.wmc-post-cards-swiper {
		width: 100%;
		overflow: hidden;
	}

	.wmc-post-cards-swiper .swiper-slide {
		height: auto;
	}

	/* Remove all hover effects on mobile */
	.wmc-post-card:hover .wmc-post-card__image {
		opacity: 0;
	}

	.wmc-post-card:hover .wmc-post-card__overlay {
		background-color: transparent;
	}

	.wmc-post-card:hover .wmc-post-card__title {
		color: inherit;
	}

	.wmc-post-card:hover .wmc-post-card__date {
		background-color: inherit;
	}

	.wmc-post-card:hover .wmc-post-card__button {
		border-color: inherit;
		background-color: transparent;
	}

	.wmc-post-card:hover .wmc-post-card__button i,
	.wmc-post-card:hover .wmc-post-card__button svg {
		color: inherit;
		fill: inherit;
	}
}
