.ebs-posts {
	--ebs-accent: #6c5ce7;
	--ebs-accent-2: #00cec9;
	--ebs-ink: #171727;
	--ebs-muted: #737386;
	--ebs-surface: #fff;
	width: 100%;
}

.ebs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ebs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--ebs-surface);
	border: 1px solid rgba(22, 22, 39, .07);
	border-radius: 20px;
	box-shadow: 0 14px 40px rgba(28, 24, 64, .08);
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.ebs-media {
	position: relative;
	display: block;
	height: 230px;
	overflow: hidden;
	background: linear-gradient(135deg, #f1efff, #e4fbfa);
}

.ebs-media::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, transparent 55%, rgba(12, 10, 35, .24));
	content: "";
	pointer-events: none;
}

.ebs-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.2, .65, .3, 1);
}

.ebs-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
}

.ebs-placeholder svg {
	width: 62px;
	fill: rgba(108, 92, 231, .3);
}

.ebs-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px;
}

.ebs-category {
	display: inline-flex;
	margin: 0 0 13px;
	padding: 5px 11px;
	background: rgba(108, 92, 231, .1);
	border-radius: 999px;
	color: var(--ebs-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.ebs-category:hover { color: var(--ebs-accent); }

.ebs-title {
	margin: 0 0 12px;
	color: var(--ebs-ink);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.55;
}

.ebs-title a { color: inherit; }

.ebs-title a:hover { color: var(--ebs-accent); }

.ebs-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 15px;
	margin-bottom: 14px;
	color: var(--ebs-muted);
	font-size: 12px;
}

.ebs-meta > * { display: inline-flex; align-items: center; gap: 7px; }

.ebs-meta > * + *::before {
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-inline-end: 2px;
	background: currentColor;
	border-radius: 50%;
	content: "";
	opacity: .45;
}

.ebs-avatar { border-radius: 50%; }

.ebs-excerpt {
	margin: 0 0 20px;
	color: var(--ebs-muted);
	font-size: 14px;
	line-height: 1.9;
}

.ebs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: auto;
	padding: 9px 15px;
	background: var(--ebs-accent);
	border-radius: 10px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	transition: background .25s ease, color .25s ease, gap .25s ease, transform .25s ease;
}

.ebs-button:hover {
	gap: 13px;
	background: #5747dc;
	color: #fff;
	transform: translateX(-2px);
}

.ebs-button svg { width: 1em; height: 1em; fill: currentColor; }

/* Preset: glass */
.ebs-layout-glass .ebs-posts { position: relative; }

.ebs-layout-glass .ebs-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(246, 244, 255, .64));
	border: 1px solid rgba(255, 255, 255, .8);
	box-shadow: 0 18px 50px rgba(77, 60, 145, .13), inset 0 1px rgba(255, 255, 255, .8);
	backdrop-filter: blur(15px);
}

.ebs-layout-glass .ebs-card::after {
	position: absolute;
	top: -90px;
	inset-inline-end: -80px;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(0, 206, 201, .2), transparent 68%);
	content: "";
	pointer-events: none;
}

/* Preset: image overlay */
.ebs-layout-overlay .ebs-card { min-height: 430px; justify-content: flex-end; border: 0; background: #171727; }

.ebs-layout-overlay .ebs-media { position: absolute; inset: 0; height: 100% !important; }

.ebs-layout-overlay .ebs-media::after { background: linear-gradient(180deg, rgba(14, 12, 35, .04) 15%, rgba(14, 12, 35, .95) 100%); }

.ebs-layout-overlay .ebs-content { position: relative; z-index: 2; flex: 0 0 auto; color: #fff; }

.ebs-layout-overlay .ebs-title,
.ebs-layout-overlay .ebs-title a { color: #fff; }

.ebs-layout-overlay .ebs-meta,
.ebs-layout-overlay .ebs-excerpt { color: rgba(255, 255, 255, .76); }

.ebs-layout-overlay .ebs-category { color: #fff; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }

/* Preset: list */
.ebs-layout-list .ebs-grid { grid-template-columns: 1fr !important; }

.ebs-layout-list .ebs-card { flex-direction: row; }

.ebs-layout-list .ebs-media { flex: 0 0 34%; height: auto; min-height: 230px; }

.ebs-layout-list .ebs-content { justify-content: center; }

/* Hover presets */
.ebs-hover-lift .ebs-card:hover { transform: translateY(-8px); box-shadow: 0 24px 55px rgba(28, 24, 64, .15); }

.ebs-hover-zoom .ebs-card:hover .ebs-media img { transform: scale(1.08); }

.ebs-hover-glow .ebs-card:hover { border-color: rgba(108, 92, 231, .34); box-shadow: 0 15px 55px rgba(108, 92, 231, .22); }

/* Reveal */
.ebs-posts[data-reveal="yes"] .ebs-card { opacity: 0; transform: translateY(22px); }

.ebs-posts[data-reveal="yes"] .ebs-card.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition-delay: calc(var(--ebs-order, 0) * 60ms);
}

.ebs-hover-lift .ebs-posts[data-reveal="yes"] .ebs-card.is-visible:hover { transform: translateY(-8px); }

.ebs-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 35px;
}

.ebs-pagination .page-numbers {
	display: inline-grid;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	place-items: center;
	border: 1px solid rgba(23, 23, 39, .12);
	border-radius: 12px;
	color: var(--ebs-ink);
	transition: .2s ease;
}

.ebs-pagination .current,
.ebs-pagination a:hover { background: var(--ebs-accent); border-color: var(--ebs-accent); color: #fff; }

.ebs-empty { padding: 35px; border: 1px dashed rgba(23, 23, 39, .2); border-radius: 16px; color: var(--ebs-muted); text-align: center; }

@media (max-width: 767px) {
	.ebs-grid { grid-template-columns: 1fr; }
	.ebs-layout-list .ebs-card { flex-direction: column; }
	.ebs-layout-list .ebs-media { flex-basis: auto; min-height: 0; height: 210px; }
	.ebs-title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	.ebs-card, .ebs-media img, .ebs-button { transition: none !important; }
	.ebs-posts[data-reveal="yes"] .ebs-card { opacity: 1; transform: none; }
}

