/* =========================================================
   SPACES PAGE
   ========================================================= */

.spaces-page {
	background: #fff;
}

/* Title bar */
.spaces-title-bar {
	padding: 40px 60px 30px;
	text-align: right;
}

.spaces-title-bar h1 {
	font-size: 36px;
	font-weight: 400;
	color: #222;
	margin: 0;
}

/* Hero banner */
.spaces-hero-banner {
	width: 100%;
	overflow: hidden;
	max-height: 340px;
}

.spaces-hero-banner img {
	width: 100%;
	height: 340px;
	object-fit: cover;
	object-position: center top;
	display: block;
}

/* Main content: two columns */
.spaces-main {
	display: flex;
	gap: 50px;
	padding: 60px 60px 80px;
	align-items: flex-start;
	max-width: 1300px;
	margin: 0 auto;
}

.spaces-text-col {
	flex: 0 0 260px;
	max-width: 260px;
}

.spaces-tagline {
	font-size: 17px;
	font-weight: 700;
	color: #4caf50;
	line-height: 1.4;
	margin-bottom: 18px;
}

.spaces-text-col p {
	font-size: 13px;
	color: #555;
	line-height: 1.7;
	margin-bottom: 14px;
}

/* Grid col */
.spaces-grid-col {
	flex: 1;
}

/* Main grid: 4 columns */
.spaces-grid {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.sg-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

/* Base card */
.sg-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 14px 14px 12px;
	border-radius: 12px;
	text-decoration: none;
	color: white;
	min-height: 120px;
	position: relative;
	overflow: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sg-card:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	color: white;
	text-decoration: none;
}

.sg-label {
	font-size: 10px;
	font-weight: 400;
	opacity: 0.8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sg-name {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 2px;
}

.sg-icon {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

.sg-icon svg {
	width: 48px;
	height: 48px;
	opacity: 0.85;
}

/* Tall variants */
.sg-tall {
	min-height: 155px;
}

.sg-tall2 {
	min-height: 155px;
}

/* Colors */
.sg-green       { background: #4caf50; }
.sg-green-dark  { background: #43a047; }
.sg-orange      { background: #ff9800; }
.sg-dark-gray   { background: #37474f; }
.sg-purple      { background: #9c27b0; }
.sg-purple-dark { background: #4a148c; }
.sg-blue        { background: #29b6f6; }
.sg-red         { background: #e53935; }

/* Responsive */
@media (max-width: 1100px) {
	.spaces-main {
		flex-direction: column;
		padding: 40px 30px 60px;
	}

	.spaces-text-col {
		flex: 1;
		max-width: 100%;
	}

	.spaces-grid {
		flex-wrap: wrap;
	}

	.sg-col {
		flex: 0 0 calc(50% - 5px);
	}
}

@media (max-width: 640px) {
	.spaces-title-bar {
		padding: 30px 20px 20px;
		text-align: left;
	}

	.spaces-title-bar h1 {
		font-size: 26px;
	}

	.spaces-hero-banner img {
		height: 200px;
	}

	.spaces-main {
		padding: 30px 20px 50px;
	}

	.sg-col {
		flex: 0 0 calc(50% - 5px);
	}
}
