/**
 * News single — page background, planning resources + related interiors footer.
 * Depends on related-casestudy-interiors.css for case-study grid tiles.
 *
 * @package Innova_2026
 */

/* News article area — brand base grey (distinct from resources band #f7f7f7). */
.single-news {
	--innova-news-base: var(--base, #f0f0f0);
	--innova-resource-card-bg: #d1d5df;
	background-color: var(--innova-news-base);
}

.single-news #page,
.single-news .site.grid-container,
.single-news #content,
.single-news .site-content,
.single-news #primary,
.single-news #primary .inside-article,
.single-news.separate-containers .inside-article {
	background-color: var(--innova-news-base);
}

.single-news .innova-news-sections {
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

/* Planning & Design Resources — match live interiors (spaces-single-new.css). */
.single-news .gb-container-resources {
	margin-left: calc(-100vw / 2 + 100% / 2);
	margin-right: calc(-100vw / 2 + 100% / 2);
	max-width: 100vw;
	width: auto;
	background-color: #f7f7f7;
	padding: 60px 0 45px;
}

.single-news .gb-container-resources > .gb-inside-container {
	max-width: 1260px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px;
}

.single-news .gb-container-resources h2.gb-headline-resources-header {
	text-align: left;
	color: var(--accent);
	font-weight: 600;
	font-size: 34px;
	margin-top: 0;
	margin-bottom: 20px;
}

.single-news .gb-container-resources .gb-headline-resources-description {
	text-align: left;
	color: var(--contrast-2);
	font-size: 21px;
	margin-bottom: 40px;
}

.single-news .gb-container-resources .gb-grid-wrapper-resources {
	display: flex;
	flex-wrap: wrap;
	margin-left: -20px;
	margin-bottom: 0;
}

.single-news .gb-container-resources .gb-grid-column-resource {
	width: calc(25% - 20px);
	margin-left: 20px;
	margin-bottom: 40px;
}

.single-news .gb-container-resources .resource-card-link {
	text-decoration: none;
	display: block;
	height: 100%;
}

.single-news .gb-container-resources .resource-card-wrapper {
	position: relative;
	border-radius: 12px;
	border-top: 4px solid transparent;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	backface-visibility: hidden;
}

.single-news .gb-container-resources .resource-card-guides {
	border-top-color: #4ea5d7;
}

.single-news .gb-container-resources .resource-card-planning {
	border-top-color: #00a79e;
}

.single-news .gb-container-resources .resource-card-safety {
	border-top-color: #d7a338;
}

.single-news .gb-container-resources .resource-card-design {
	border-top-color: #9974bd;
}

.single-news .gb-container-resources .resource-card-link:hover .resource-card-wrapper {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: scale(1.02);
}

.single-news .gb-container-resources .resource-card-image {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #e5e7eb;
}

.single-news .gb-container-resources .resource-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.single-news .gb-container-resources .resource-card-image-gradient {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50%;
	background: linear-gradient(to top, var(--innova-resource-card-bg) 0%, rgba(209, 213, 223, 0.6) 20%, transparent 100%);
	pointer-events: none;
}

.single-news .gb-container-resources .resource-type-tag {
	position: absolute;
	bottom: 4px;
	left: 25px;
	z-index: 1;
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background-color: #fff;
}

.single-news .gb-container-resources .resource-card-content {
	padding: 10px 25px 25px;
	background-color: var(--innova-resource-card-bg);
	display: flex;
	flex-direction: column;
	flex-grow: 0;
	margin-top: -1px;
	min-height: 156px;
}

.single-news .gb-container-resources .resource-type-tag.resource-type-guides {
	background-color: #4ea5d7;
	color: #fff;
}

.single-news .gb-container-resources .resource-type-tag.resource-type-planning {
	background-color: #00a79e;
	color: #fff;
}

.single-news .gb-container-resources .resource-type-tag.resource-type-safety {
	background-color: #d7a338;
	color: #fff;
}

.single-news .gb-container-resources .resource-type-tag.resource-type-design {
	background-color: #9974bd;
	color: #fff;
}

.single-news .gb-container-resources .resource-title {
	margin: 0 0 15px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--accent) !important;
	flex-grow: 0;
}

.single-news .gb-container-resources .resource-link {
	margin-top: 0;
	display: flex;
	align-items: center;
	padding-top: 0;
	border-top: none;
	border-bottom: 2px solid var(--accent) !important;
	align-self: flex-start;
	padding-bottom: 4px;
}

.single-news .gb-container-resources .resource-link span {
	color: var(--accent) !important;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.single-news .gb-container-resources .resource-link .arrow {
	transition: transform 0.3s ease;
}

.single-news .gb-container-resources .resource-card-link:hover .resource-link .arrow {
	transform: translateX(4px);
}

.single-news .gb-container-resources .resource-card-link:hover .resource-title {
	color: var(--accent) !important;
}

.single-news .gb-container-resources .gb-button-wrapper-AllCSbtn {
	margin-top: 20px;
	padding-bottom: 20px;
}

@media (max-width: 1024px) and (min-width: 768px) {
	.single-news .gb-container-resources .gb-grid-column-resource {
		width: calc(50% - 20px);
	}
}

@media (max-width: 767px) {
	.single-news .gb-container-resources {
		padding: 60px 0;
	}

	.single-news .gb-container-resources > .gb-inside-container {
		padding: 0 20px;
	}

	.single-news .gb-container-resources h2.gb-headline-resources-header {
		font-size: 28px;
	}

	.single-news .gb-container-resources .gb-headline-resources-description {
		font-size: 18px;
		margin-bottom: 30px;
	}

	.single-news .gb-container-resources .gb-grid-wrapper-resources {
		margin-left: 0;
		margin-bottom: 40px;
	}

	.single-news .gb-container-resources .gb-grid-column-resource {
		width: 46%;
		margin-left: 2%;
		margin-bottom: 30px;
		margin-right: 2%;
	}

	.single-news .gb-container-resources .resource-card-content {
		padding: 20px;
	}

	.single-news .gb-container-resources .resource-title {
		font-size: 16px;
	}

	.single-news .gb-container-resources .resource-link span {
		font-size: 13px;
	}
}
