.stivo-main-wrapper {
	--stivo-primary: #1e293b;
	--stivo-primary-light: #334155;
	--stivo-primary-fg: #f1f5f9;
	--stivo-bg: #ffffff;
	--stivo-bg-alt: #f8fafc;
	--stivo-text: #0f172a;
	--stivo-text-muted: #64748b;
	--stivo-border: #e2e8f0;
	--stivo-card-bg: #ffffff;
	--stivo-radius: 1rem;
	--stivo-shadow: 0 1px 3px rgba(0,0,0,0.08);
	--stivo-shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
	--stivo-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--stivo-transition: 0.3s ease;
	
	font-family: var(--stivo-font);
	background: var(--stivo-bg);
	color: var(--stivo-text);
	line-height: 1.6;
}

.stivo-main-wrapper a {
	color: inherit;
	text-decoration: none;
}

/* Header */
.stivo-header {
	border-bottom: 1px solid var(--stivo-border);
	background: rgba(255,255,255,0.85); /* Hardcoded for blur effect, relying on Elementor bg usually overrides */
}

/* If user changes bg color, this tries to blend the header nicely without breaking backdrop filter */
[data-stivo-custom-bg="true"] .stivo-header {
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(12px);
}

.stivo-header-container {
	max-width: 1152px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
}

.stivo-back-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--stivo-text-muted);
	text-decoration: none;
	font-weight: 500;
	transition: color var(--stivo-transition);
}

.stivo-back-link:hover {
	color: var(--stivo-text);
}

.stivo-header-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--stivo-text);
	margin: 0;
	padding: 0;
}

.stivo-header-spacer {
	width: 5rem;
}

/* Main */
.stivo-main-content {
	max-width: 1152px;
	margin: 0 auto;
	padding: 4rem 1.5rem;
}

.stivo-section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.stivo-section-header h2 {
	font-size: 2.25rem;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 1rem;
	color: var(--stivo-text);
}

.stivo-highlight {
	color: var(--stivo-primary);
}

.stivo-section-header p {
	max-width: 640px;
	margin: 0 auto;
	color: var(--stivo-text-muted);
}

/* Grid */
.stivo-projects-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
	.stivo-projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.stivo-projects-grid {
		grid-template-columns: 1fr;
	}
	.stivo-main-content {
		padding: 2rem 1.5rem;
	}
}

/* Card */
.stivo-project-card {
	border: 1px solid var(--stivo-border);
	background: var(--stivo-card-bg);
	border-radius: var(--stivo-radius);
	padding: 1.5rem;
	box-shadow: var(--stivo-shadow);
	transition: transform var(--stivo-transition), box-shadow var(--stivo-transition);
	display: flex;
	flex-direction: column;
}

.stivo-project-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--stivo-shadow-lg);
}

.stivo-card-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 0.75rem;
	background: rgba(30,41,59,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	color: var(--stivo-primary);
	flex-shrink: 0;
}

.stivo-card-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
	margin-bottom: 0.5rem;
	color: var(--stivo-text);
}

.stivo-card-description {
	font-size: 0.875rem;
	color: var(--stivo-text-muted);
	margin: 0;
	margin-bottom: 1rem;
	line-height: 1.5;
	flex-grow: 1;
}

.stivo-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.stivo-tag {
	background: var(--stivo-bg-alt);
	color: var(--stivo-text-muted);
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 500;
	border: 1px solid var(--stivo-border);
}

.stivo-card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--stivo-primary);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	transition: color var(--stivo-transition);
	margin-top: auto;
}

.stivo-card-link:hover {
	color: var(--stivo-primary-light);
}
