/* ==========================================================================
   About NOR CAN GEO — page-about.php
   ========================================================================== */

/* ── Hero ── */

.about-hero {
	position: relative;
	min-height: 420px;
	background-color: var(--navy);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
}

/* Parallax-ready: overlay sits over the bg image */
.about-hero__overlay {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: var(--space-xl) 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.55) 0%,
		rgba(0, 32, 91, 0.65) 100%
	);
}

.about-hero__title {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 var(--space-sm);
	line-height: 1.15;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.about-hero__subtitle {
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.65;
	max-width: 680px;
	margin: 0;
}

/* ── Intro section (two columns) ── */

.about-intro {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: var(--space-xl);
	align-items: center;
	padding: var(--space-xl) 0;
	border-bottom: 1px solid #e4e8ef;
}

.about-intro__text {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--text);
}

.about-intro__text p {
	margin: 0 0 1em;
}

.about-intro__text p:last-child {
	margin-bottom: 0;
}

.about-intro__image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ── WYSIWYG body ── */

.about-body {
	padding: var(--space-xl) 0;
	max-width: 820px;
}

.about-content {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--text);
}

.about-content h2,
.about-content h3,
.about-content h4 {
	color: var(--navy);
	margin-top: 1.75em;
	margin-bottom: 0.5em;
}

.about-content h2 { font-size: 1.5rem; }
.about-content h3 { font-size: 1.25rem; }

.about-content p  { margin: 0 0 1em; }

.about-content ul,
.about-content ol {
	padding-left: 1.5em;
	margin: 0 0 1em;
}

.about-content li { margin-bottom: 0.4em; }

.about-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
	margin: var(--space-md) auto;
}

.about-content a {
	color: var(--green);
	text-decoration: underline;
}

.about-content a:hover { opacity: 0.75; }

.about-content blockquote {
	border-left: 3px solid var(--navy);
	margin: 1.5em 0;
	padding: 0.75em 1.25em;
	font-style: italic;
	color: #4a5a6a;
	background: #f4f6fa;
}

/* Responsive YouTube embeds */
.about-content .embed-youtube,
.about-content .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.about-content .embed-youtube iframe,
.about-content .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ── Two-column page layout (main + sidebar) ── */

.about-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 1.5rem;
	align-items: start;
	padding-block: var(--space-xl);
}

.about-main {
	min-width: 0;
}

/* Remove top padding from intro since layout handles it */
.about-main .about-intro {
	padding-top: 0;
}

.about-sidebar {
	position: sticky;
	top: calc(var(--header-height) + var(--space-lg));
}

/* ── Partner Institutions box ── */

.partner-institutions-box {
	background: var(--card-bg);
	border: var(--card-border);
	border-radius: var(--card-radius);
	box-shadow: var(--card-shadow);
	overflow: hidden;
}

.partner-box__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--space-md) var(--space-lg);
	border-bottom: 2px solid var(--navy);
	background: var(--navy);
}

.partner-box__title {
	margin: 0;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #fff;
	font-weight: 700;
}

.partner-box__toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.8);
	padding: 0;
	display: flex;
	align-items: center;
	transition: color 0.2s ease, transform 0.25s ease;
}

.partner-box__toggle:hover {
	color: #fff;
}

.partner-box__toggle.is-collapsed {
	transform: rotate(-90deg);
}

/* Partner list */
.partner-list {
	list-style: none;
	margin: 0;
	padding: var(--space-sm) 0;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.25s ease;
	max-height: 1000px;
	opacity: 1;
}

.partner-list.is-collapsed {
	max-height: 0;
	opacity: 0;
}

.partner-list__item {
	border-bottom: 1px solid rgba(0, 32, 91, 0.07);
}

.partner-list__item:last-child {
	border-bottom: none;
}

.partner-list__item a,
.partner-list__item span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem var(--space-lg);
	font-size: 0.88rem;
	color: var(--text);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
}

.partner-list__item a::after {
	content: '↗';
	font-size: 0.75rem;
	color: var(--green);
	opacity: 0;
	transition: opacity 0.2s ease;
	flex-shrink: 0;
}

.partner-list__item a:hover {
	color: var(--navy);
	background: rgba(0, 32, 91, 0.04);
	text-decoration: none;
}

.partner-list__item a:hover::after {
	opacity: 1;
}

.partner-list__empty {
	padding: var(--space-md) var(--space-lg);
	font-size: 0.88rem;
	color: var(--text);
	opacity: 0.6;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
	.about-layout {
		grid-template-columns: 1fr 260px;
	}
}

@media (max-width: 860px) {
	.about-layout {
		grid-template-columns: 1fr;
	}

	.about-sidebar {
		position: static;
	}

	.about-intro {
		grid-template-columns: 1fr;
	}

	.about-intro__image {
		order: -1;
	}

	.about-intro__image img {
		max-height: 300px;
		object-fit: cover;
	}
}

@media (max-width: 640px) {
	.about-hero {
		min-height: 300px;
	}

	.about-body {
		max-width: 100%;
	}

	.about-layout {
		padding-block: var(--space-lg);
	}
}
