/* Desktop: Grid */
.parenting-posts {
	width: 100%;
}

.swiper-wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.parenting-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #f2f2f2;
}

.card-image img {
  display: block;     
  width: 100%;
  height: 100% !important;
  object-fit: cover;  
  object-position: top center;
}

.card-content {
	padding: 16px;
}

.card-tags {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.tag {
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 600;
}

/* Parent category (green) */
.tag-category {
	background: #e6f4d7;
	color: #2f7d32;
}

/* Subcategory (purple) */
.tag-subcategory {
	background: #ede1ff;
	color: #6b3fd6;
}

.card-title {
	font-size: 18px;
	line-height: 1.3;
	margin: 6px 0;
	font-weight: 700;
	color: #000;
}

.card-excerpt {
	font-size: 14px;
	color: #444;
	margin-bottom: 12px;
}

.card-meta {
	font-size: 13px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Mobile: Let Swiper take over */
@media (max-width: 767px) {
	.parenting-posts .swiper-wrapper {
		display: flex;
		gap: 0px;
	}
	.parenting-card {
		flex-shrink: 0;
	}
}