/*
 * SDGs page — visual styles not covered by Bootstrap utilities
 */

/* ---- Site navigation ---- */

:root {
	--brand-gold: #FFD700;
	--brand-orange: #FFA500;
	--sdgs-header-height: 3.25rem;
}

.sdgs-site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--sdgs-header-height);
	background: rgba(31, 35, 40, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 1050;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.sdgs-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	height: 100%;
	margin: 0 auto;
	padding: 0 1rem;
	gap: 0.75rem;
}

.sdgs-site-header__brand {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none;
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
}

.sdgs-site-header__brand:hover {
	color: var(--brand-gold);
}

.sdgs-site-header__mark {
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	border: 2.5px double var(--brand-gold);
	position: relative;
}

.sdgs-site-header__mark::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	border: 1.5px solid var(--brand-orange);
}

.sdgs-site-header__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
}

.sdgs-site-header__nav a {
	padding: 0.3rem 0.6rem;
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	border-radius: 4px;
	white-space: nowrap;
}

.sdgs-site-header__nav a:hover {
	color: var(--brand-gold);
	background: rgba(255, 255, 255, 0.08);
}

.sdgs-site-header__nav a.is-current {
	color: var(--brand-gold);
	background: rgba(255, 255, 255, 0.08);
}

body.sdgs-page {
	padding-top: var(--sdgs-header-height);
}

.sdgs-ecosystem-footer {
	position: relative;
	z-index: 1;
	padding: 2rem 1rem;
	background: #1f2328;
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
}

.sdgs-ecosystem-footer__title {
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--brand-gold);
}

.sdgs-ecosystem-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	max-width: 720px;
	margin: 0 auto 1.5rem;
}

.sdgs-ecosystem-grid a {
	display: block;
	padding: 0.65rem 0.5rem;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-size: 0.8rem;
	transition: background 0.2s;
}

.sdgs-ecosystem-grid a:hover {
	background: rgba(255, 215, 0, 0.15);
	color: var(--brand-gold);
}

.sdgs-ecosystem-footer__copy {
	font-size: 0.8rem;
	opacity: 0.7;
}

@media screen and (max-width: 640px) {
	.sdgs-site-header {
		height: auto;
		min-height: var(--sdgs-header-height);
	}

	.sdgs-site-header__inner {
		height: auto;
		min-height: var(--sdgs-header-height);
		flex-wrap: wrap;
		padding-top: 0.4rem;
		padding-bottom: 0.4rem;
		row-gap: 0.35rem;
	}

	.sdgs-site-header__nav {
		display: flex;
		width: 100%;
		justify-content: flex-start;
		gap: 0.15rem 0.25rem;
	}

	.sdgs-site-header__nav a {
		font-size: 0.72rem;
		padding: 0.25rem 0.45rem;
	}

	body.sdgs-page {
		padding-top: 4.75rem;
	}

	.sdgs-ecosystem-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---- Page visuals ---- */

body {
	background-color: #FFD700;
}

/* Hero / section backgrounds */
.top-block {
	background: url('../images/top_block.jpeg') no-repeat center center;
	background-size: cover;
}

.all-block {
	height: 100vh;
	min-height: 300px;
	background: url('../images/all_block.jpeg') no-repeat center center;
	background-size: cover;
}

.contents-start {
	background-color: #FFD700;
}

/* Shared glassmorphism panel */
.glassmorphism-panel {
	background: rgba(248, 248, 248, 0.7);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Intro (poster) block — widths match former w-100 / w-75 / w-50 breakpoints */
.sdgs-intro {
	width: 100%;
}

@media (min-width: 768px) {
	.sdgs-intro {
		width: 75%;
	}
}

@media (min-width: 1200px) {
	.sdgs-intro {
		width: 50%;
	}
}

.sdgs-intro__poster {
	width: 100%;
}

@media (min-width: 576px) {
	.sdgs-intro__poster {
		width: 75%;
	}
}

/* Goal panels — phone overlay + width; desktop fills column */
.glassmorphism-panel--goal {
	width: 75%;
	margin-top: -5rem;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem;
	/* Mobile: grow with text so content never spills out of the panel */
	height: auto;
	min-height: 0;
	overflow: visible;
}

.glassmorphism-panel--goal > p {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (min-width: 992px) {
	.glassmorphism-panel--goal {
		width: 100%;
		margin-top: 0;
		padding: 0;
	}

	.glassmorphism-panel--goal > p {
		overflow-wrap: normal;
		word-break: normal;
	}
}

.sdgs-goal-icon {
	width: 120px;
	height: 120px;
	padding: 0.75rem;
	object-fit: contain;
	flex-shrink: 0;
}

@media (min-width: 992px) {
	.sdgs-goal-icon {
		width: 25%;
		height: auto;
		padding: 1.5rem 0 0;
	}
}

/* Intro fade-out overlay — never intercept clicks (blocks header/footer otherwise) */
.fade-in {
	font-size: 40px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
	pointer-events: none;
	animation-name: start-sdgs;
	animation-duration: 10s;
	animation-fill-mode: forwards;
}

@keyframes start-sdgs {
	0% {
		background-color: #FFD700;
	}
	60% {
		background-color: #FFEF99;
	}
	80% {
		background-color: #FFFFFF;
	}
	100% {
		z-index: -1;
		opacity: 0;
		visibility: hidden;
	}
}
