/* SOS Post Grid */

.sos-pg {
	width: 100%;
}

/* ---------- filter tabs ---------- */
.sos-pg__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}
.sos-pg__tab {
	padding: 9px 20px;
	border-radius: 999px;
	border: 1px solid #e3dacb;
	background: #fff;
	color: #2B2926;
	font-weight: 600;
	font-size: .9em;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.sos-pg__tab:hover {
	transform: translateY(-1px);
}
.sos-pg__tab.is-active {
	background: #C9542C;
	border-color: #C9542C;
	color: #fff !important;
}

/* ---------- grid ---------- */
.sos-pg__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

/* ---------- card ---------- */
.sos-pg__card {
	position: relative;
	display: block;
	height: 280px;
	border-radius: 16px;
	overflow: hidden;
	background-color: #e7ded2;
	background-size: cover;
	background-position: center;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease, background-size .5s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}
.sos-pg__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 55%);
	opacity: .18;
	transition: opacity .25s ease;
}
.sos-pg__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
	background-size: 108%;
}
.sos-pg__card.is-hidden {
	display: none;
}

/* category badge */
.sos-pg__cat {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	padding: 5px 12px;
	border-radius: 999px;
	background: #C9542C;
	color: #fff;
	font-size: .7em;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* the chip title — one rounded pill per wrapped line */
.sos-pg__title {
	position: absolute;
	top: 14px;
	left: 14px;
	right: 46px;
	z-index: 3;
	margin: 0;
	font-size: 1.02em;
	line-height: 1.55;
	font-weight: 700;
}
.sos-pg__title span {
	background: #FBF7F0;
	color: #2B2926;
	padding: 4px 10px;
	border-radius: 7px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	-webkit-box-shadow: 0 2px 6px rgba(0,0,0,.10);
	box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

/* empty state */
.sos-pg__empty {
	padding: 28px 4px;
	color: #7a7266;
}

/* ---------- responsive fallbacks ---------- */
@media (max-width: 1024px) {
	.sos-pg__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.sos-pg__grid {
		grid-template-columns: 1fr;
	}
	.sos-pg__title {
		font-size: 1em;
	}
}
