/* ============================================================
   Mevabi – Related Posts Inline  |  Front-end styles  v1.0.0
   Colors injected as CSS custom properties via PHP.
   ============================================================ */

/* ── Wrapper ── */
.mvrpi-block {
	margin: 2em 0;
	clear: both;
	font-family: inherit;
}

/* ── Section title (outside box – Design 1 & 3) ── */
.mvrpi-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: .7em;
}

.mvrpi-section-title span {
	font-size: var(--mvrpi-font-section, 1rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--mvrpi-section-color, #374151);
	white-space: nowrap;
	line-height: 1;
}

.mvrpi-section-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: currentColor;
	opacity: .15;
}

/* ── Post list ── */
.mvrpi-posts {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ============================================================
   DESIGN 1 – Solid color, full-click, big arrow right
   ============================================================ */
.mvrpi-design-1 .mvrpi-post-item {
	border-radius: var(--mvrpi-radius, 12px);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.mvrpi-design-1 .mvrpi-post-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
}

.mvrpi-design-1 .mvrpi-d1-link {
	display: flex;
	align-items: center;
	background: var(--mvrpi-bg, #2563eb);
	border-radius: var(--mvrpi-radius, 12px);
	padding: 16px 20px;
	text-decoration: none;
	gap: 14px;
	transition: background .18s ease;
	min-height: 68px;
}

.mvrpi-design-1 .mvrpi-d1-link:hover {
	background: var(--mvrpi-bg-hover, #1d4ed8);
}

.mvrpi-design-1 .mvrpi-d1-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.mvrpi-design-1 .mvrpi-post-title {
	font-size: var(--mvrpi-font-title, 2rem);
	font-weight: 700;
	color: var(--mvrpi-title-color, #ffffff);
	line-height: 1.3;
}

.mvrpi-design-1 .mvrpi-excerpt {
	font-size: var(--mvrpi-font-excerpt, 1rem);
	color: var(--mvrpi-excerpt-color, #bfdbfe);
	line-height: 1.5;
	margin: 0;
}

.mvrpi-design-1 .mvrpi-d1-arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .18);
	border-radius: 50%;
	color: var(--mvrpi-arrow-color, #ffffff);
	transition: background .18s ease, transform .18s ease;
}

.mvrpi-design-1 .mvrpi-d1-link:hover .mvrpi-d1-arrow {
	background: rgba(255, 255, 255, .28);
	transform: translateX(4px);
}

.mvrpi-design-1 .mvrpi-d1-arrow svg {
	width: 22px;
	height: 22px;
}

/* ============================================================
   DESIGN 2 – Light grey, title inside, no arrow, centered
   ============================================================ */
.mvrpi-design-2 .mvrpi-post-item {
	border-radius: var(--mvrpi-radius, 12px);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.mvrpi-design-2 .mvrpi-post-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .09);
}

.mvrpi-design-2 .mvrpi-d2-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--mvrpi-bg, #f1f5f9);
	border: 1.5px solid var(--mvrpi-border, #e2e8f0);
	border-radius: var(--mvrpi-radius, 12px);
	padding: 18px 24px;
	text-decoration: none;
	gap: 6px;
	transition: background .18s ease, border-color .18s ease;
	min-height: 64px;
	justify-content: center;
}

.mvrpi-design-2 .mvrpi-d2-link:hover {
	background: #e9eef5;
	border-color: #c7d2de;
}

.mvrpi-design-2 .mvrpi-d2-section-label {
	font-size: var(--mvrpi-font-section, 1rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--mvrpi-section-color, #94a3b8);
	margin-bottom: 2px;
	line-height: 1;
}

.mvrpi-design-2 .mvrpi-post-title {
	font-size: var(--mvrpi-font-title, 2rem);
	font-weight: 700;
	color: var(--mvrpi-title-color, #1e293b);
	line-height: 1.3;
}

.mvrpi-design-2 .mvrpi-excerpt {
	font-size: var(--mvrpi-font-excerpt, 1rem);
	color: var(--mvrpi-excerpt-color, #64748b);
	line-height: 1.5;
	margin: 0;
}

/* ============================================================
   DESIGN 3 – Solid color + small image left, big arrow right
   ============================================================ */
.mvrpi-design-3 .mvrpi-post-item {
	border-radius: var(--mvrpi-radius, 12px);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.mvrpi-design-3 .mvrpi-post-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
}

.mvrpi-design-3 .mvrpi-d3-link {
	display: flex;
	align-items: center;
	background: var(--mvrpi-bg, #7c3aed);
	border-radius: var(--mvrpi-radius, 12px);
	text-decoration: none;
	overflow: hidden;
	transition: background .18s ease;
	min-height: 76px;
}

.mvrpi-design-3 .mvrpi-d3-link:hover {
	background: var(--mvrpi-bg-hover, #6d28d9);
}

.mvrpi-design-3 .mvrpi-d3-img-wrap {
	width: var(--mvrpi-img-width, 100px);
	min-width: var(--mvrpi-img-width, 100px);
	align-self: stretch;
	overflow: hidden;
	flex-shrink: 0;
}

.mvrpi-design-3 .mvrpi-d3-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.mvrpi-design-3 .mvrpi-d3-link:hover .mvrpi-d3-img {
	transform: scale(1.06);
}

.mvrpi-design-3 .mvrpi-d3-content {
	flex: 1;
	padding: 13px 16px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.mvrpi-design-3 .mvrpi-post-title {
	font-size: var(--mvrpi-font-title, 2rem);
	font-weight: 700;
	color: var(--mvrpi-title-color, #ffffff);
	line-height: 1.3;
}

.mvrpi-design-3 .mvrpi-excerpt {
	font-size: var(--mvrpi-font-excerpt, 1rem);
	color: var(--mvrpi-excerpt-color, #ede9fe);
	line-height: 1.5;
	margin: 0;
}

.mvrpi-design-3 .mvrpi-d3-arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .18);
	border-radius: 50%;
	color: var(--mvrpi-arrow-color, #ffffff);
	margin-right: 18px;
	transition: background .18s ease, transform .18s ease;
}

.mvrpi-design-3 .mvrpi-d3-link:hover .mvrpi-d3-arrow {
	background: rgba(255, 255, 255, .28);
	transform: translateX(4px);
}

.mvrpi-design-3 .mvrpi-d3-arrow svg {
	width: 22px;
	height: 22px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
	.mvrpi-design-1 .mvrpi-d1-link,
	.mvrpi-design-3 .mvrpi-d3-link {
		padding: 12px 14px;
	}

	.mvrpi-design-3 .mvrpi-d3-img-wrap {
		width: 72px !important;
		min-width: 72px !important;
	}
}