/* GetConvertor Latest Posts Card
   - Scoped to .gclp-wrapper to avoid affecting theme styles.
   - Row layout supported (3 posts side-by-side when space allows).
   - Typography: intentionally DOES NOT force font-family so your theme controls fonts:
     - body text uses theme body font
     - headings (h3) use theme heading font (if your theme defines one)
*/

.gclp-wrapper, .gclp-wrapper * {
	box-sizing: border-box;
}

.gclp-wrapper {
	width: 100%;
	margin: 0;
	/* Let the theme control fonts */
	font-family: inherit;
}

/* Default width for sidebar placement */
.gclp-wrapper.gclp-layout-stack {
	max-width: 360px;
}

/* Row / grid layout */
.gclp-wrapper.gclp-layout-row {
	max-width: 100%;
}

.gclp-wrapper.gclp-layout-row .gclp-body {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

/* Responsive breakpoints */
@media (max-width: 980px) {
	.gclp-wrapper.gclp-layout-row .gclp-body {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.gclp-wrapper.gclp-layout-row .gclp-body {
		grid-template-columns: 1fr;
	}
}

.gclp-wrapper.gclp-layout-row .gclp-post-card--stacked {
	margin-top: 0;
}

.gclp-wrapper.gclp-layout-row .gclp-post-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.gclp-wrapper.gclp-layout-row .gclp-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.gclp-wrapper.gclp-layout-row .gclp-button {
	margin-top: auto;
}

/* Outer shell */
.gclp-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Header */
.gclp-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #fff6cc;
	border-bottom: 1px solid #e5e7eb;
}

.gclp-header-title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.gclp-badge {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #facc15;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.gclp-icon {
	display: block;
	fill: #111827;
}

/* Body */
.gclp-body {
	padding: 14px;
}

/* Inner post card */
.gclp-post-card {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	overflow: hidden;
	background: #ffffff;
}

.gclp-post-card--stacked {
	margin-top: 12px;
}

.gclp-image-link {
	display: block;
	text-decoration: none;
	line-height: 0;
}

.gclp-image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border: 0;
}

.gclp-image--placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

/* Content */
.gclp-content {
	padding: 14px 14px 16px 14px;
}

.gclp-post-title {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	color: #111827;
}

.gclp-post-title-link {
	color: inherit;
	text-decoration: none;
}

.gclp-post-title-link:hover,
.gclp-post-title-link:focus {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gclp-meta {
	margin: 0 0 8px 0;
	font-size: 12px;
	color: #6b7280;
}

.gclp-excerpt {
	margin: 0 0 12px 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
}

/* Button */
.gclp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	background: #0b1220;
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	border: 1px solid rgba(255,255,255,0.08);
	transition: transform .08s ease, box-shadow .12s ease, background-color .12s ease;
	box-shadow: 0 6px 18px rgba(11,18,32,0.12);
}

.gclp-button:hover,
.gclp-button:focus {
	background: #111827;
	transform: translateY(-1px);
}

.gclp-button:active {
	transform: translateY(0);
	box-shadow: 0 4px 14px rgba(11,18,32,0.10);
}

.gclp-button-text {
	white-space: nowrap;
}

.gclp-arrow-icon {
	display: block;
}

/* Empty state */
.gclp-empty {
	font-size: 14px;
	color: #6b7280;
	padding: 10px 2px;
}
