/* ============================================================
   OUR FUNDERS & PARTNERS PAGE
   ============================================================ */

.fpage-hero {
	position: relative;
	min-height: 300px;
	background: url('../images/hero-bg.png') center center / cover no-repeat;
	overflow: visible;
}

.fpage-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 32, 57, 0.72);
}

.fpage-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 92px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.fpage-hero-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 56px;
	line-height: 61.6px;
	color: #ffffff;
	margin: 0 0 10px;
    letter-spacing: -0.56px;
    text-align: center;

}

.fpage-hero-title em {
	font-style: italic;
	color: #F16522;
}

.fpage-hero-desc {
	max-width: 677px;
	font-family: Inter, 'DM Sans', sans-serif;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    text-align: center;

}

.fpage-breadcrumb-shell {
	margin-top: -50px;
	position: relative;
	z-index: 3;
}

.fpage-breadcrumb-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.fpage-breadcrumb {position: relative;
	margin: 0 auto;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: Inter, 'DM Sans', sans-serif;
    font-weight: 500;
	font-size: 12px;
	line-height: 18px;
	color: #9CA3AF;


    width: min(1086px, calc(100% - 32px));
    height: 50px;
    border-radius: 16px 16px 0 0;
}
.fpage-breadcrumb::before,
.fpage-breadcrumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.fpage-breadcrumb::before {
    left: -16px;
    background: radial-gradient(circle at 0 0, transparent 16px, #ffffff 16.5px);
}

.fpage-breadcrumb::after {
    right: -16px;
    background: radial-gradient(circle at 100% 0, transparent 16px, #ffffff 16.5px);
}


.fpage-breadcrumb a {
	color: rgba(55, 65, 81, 1);
	text-decoration: none;
    font-size: 12px;
}

.fpage-breadcrumb-current {
	color: #F16522;
}

.funders-section {
	padding: 42px 0 76px;
	background: #ffffff;
}

.funders-inner,
.collab-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.funders-heading-wrap {
	max-width: 576px;
	margin-bottom: 34px;
}

.funders-heading,
.collab-heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 44px;
	line-height: 50.4px;
	color: #1E2A44;
	margin: 0 0 12px;
}

.funders-heading em,
.collab-heading em {
	color: #F16522;
	font-style: italic;
}

.funders-intro,
.collab-desc {
	font-family: Inter, 'DM Sans', sans-serif;
	font-size: 15px;
	line-height: 25.5px;
	color: #6B7280;
	margin: 0;
    font-weight: 400;
}

.funders-carousel {
	position: relative;
	padding: 0 44px;
}

.funders-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
	padding: 4px 2px 8px;
}

.funders-track::-webkit-scrollbar {
	display: none;
}

.funder-card {
	flex: 0 0 calc((100% - 48px) / 4);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	height: auto;
}

.funder-card-inner,
.funder-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.funder-card-img-wrap {
	width: 100%;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f8f7f4;
}

.funder-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.funder-card-info {
	padding: 8px;
}

.funder-card-name {
	font-family: 'DM Sans', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	color: #231f20;
	margin: 0;
}

.funders-nav {
	position: absolute;
	top: calc(50% - 18px);
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 2px;
	background: #ffffff;
	color: #6b7280;
	font-size: 12px;
	cursor: pointer;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.funders-nav:hover:not(:disabled) {
	background: #f16522;
	color: #ffffff;
	border-color: #f16522;
}

.funders-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.funders-nav--prev {
	left: 0;
}

.funders-nav--next {
	right: 0;
}

.funders-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.funders-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #D1D5DB;
	cursor: pointer;
	transition: width 0.2s ease, background 0.2s ease;
}

.funders-dot.is-active {
	width: 22px;
	background: #F16522;
}

.collab-section {
	padding: 44px 0 120px;
    background: #F8F7F4;
}

.collab-layout {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 36px;
	align-items: start;
}

.collab-left {
	max-width: 310px;
}

.collab-desc {
	margin-bottom: 24px;
}

.collab-feature-card {
	background: #ffffff;
}

.collab-feature-image {
	width: 100%;
	aspect-ratio: 1.28 / 1;
	overflow: hidden;
}

.collab-feature-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.collab-feature-footer {
	background: #1E2A44;
	color: #ffffff;
	padding: 16px 14px 18px;
	min-height: 84px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
}

.collab-feature-stat {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 30px;
	line-height: 1;
	color: #F16522;
}

.collab-feature-label {
	font-family: Inter, 'DM Sans', sans-serif;
	font-size: 10px;
	line-height: 16px;
	color: rgba(255, 255, 255, 0.88);
}

.collab-right {
	padding-top: 8px;
}

.collab-list-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid #E5E7EB;
	background: #ffffff;
	list-style: none;
	margin: 0;
	padding: 0;
}

.collab-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.collab-list-grid > li,
.collab-list li {
	position: relative;
	min-height: 50px;
	padding: 14px 18px 14px 34px;
	border-bottom: 1px solid #E5E7EB;
	font-family: Inter, 'DM Sans', sans-serif;
	font-size: 13px;
	line-height: 19px;
	color: #4B5563;
	box-sizing: border-box;
	display: flex;
	align-items: center;
}

.collab-list-grid > li:nth-child(odd) {
	border-right: 1px solid #E5E7EB;
}

.collab-list-grid > li::before,
.collab-list li::before {
	content: '';
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #F16522;
}

.collab-list-grid > li a,
.collab-list li a {
	color: inherit;
	text-decoration: none;
}

.collab-list-grid > li a:hover,
.collab-list li a:hover {
	color: #F16522;
	text-decoration: underline;
}

.collab-view-more {
	margin-top: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: Inter, 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: color 0.15s ease-in-out;
}

.collab-view-more:hover {
	color: #F16522;
}

.collab-view-icon {
	font-size: 12px;
	line-height: 1;
	transition: transform 0.2s ease;
}

/* ============================================================
   INTERNATIONAL RESEARCH PARTNERS
   ============================================================ */

.irp-section {
	padding: 56px 0 72px;
	background: #ffffff;
}

.irp-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.irp-header {
	text-align: center;
	margin-bottom: 36px;
}

.irp-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 44px;
	line-height: 50.4px;
	color: #1E2A44;
	margin: 0 0 12px;
}

.irp-title em {
	font-style: italic;
	color: #F16522;
}

.irp-desc {
	font-family: Inter, 'DM Sans', sans-serif;
	font-size: 15px;
	line-height: 25.5px;
	color: #6B7280;
	margin: 0 auto;
	max-width: 560px;
}

.irp-body {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 0;
	border: 1px solid #E5E7EB;
	background: #ffffff;
}

/* Region tab list (left sidebar) */
.irp-tabs {
	display: flex;
	flex-direction: column;
	border-right: 1px solid #E5E7EB;
	background: #ffffff;
	padding: 0;
}

.irp-tab {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px;
	font-family: Inter, 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #6B7280;
	background: none;
	border: none;
	border-bottom: 1px solid #E5E7EB;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s, color 0.15s;
}

.irp-tab:last-child {
	border-bottom: none;
}

.irp-tab:hover {
	background: #FFF7F3;
	color: #F16522;
}

.irp-tab.is-active {
	background: #1E2A44;
	color: #ffffff;
	font-weight: 600;
}

.irp-tab.is-active .irp-tab-icon {
	color: #F16522;
}

.irp-tab-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	color: #9CA3AF;
}

.irp-tab-count {
	margin-left: auto;
	font-size: 10px;
	font-weight: 600;
	background: rgba(241, 101, 34, 0.12);
	color: #F16522;
	border-radius: 10px;
	padding: 1px 7px;
	line-height: 18px;
}

.irp-tab.is-active .irp-tab-count {
	background: rgba(255,255,255,0.18);
	color: #ffffff;
}

/* Panel (right content) */
.irp-panel {
	display: none;
	padding: 20px 24px 24px;
	min-width: 0;
}

.irp-panel.is-active {
	display: block;
}

.irp-panel-header {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #F3F4F6;
}

.irp-panel-icon {
	display: inline-flex;
	align-items: center;
	color: #F16522;
	margin-top: 2px;
}

.irp-panel-heading {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.irp-panel-region {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 16px;
	font-weight: 700;
	color: #1E2A44;
	line-height: 1.3;
}

.irp-panel-count {
	margin-left: 0;
	font-family: Inter, 'DM Sans', sans-serif;
	font-size: 11px;
	color: #9CA3AF;
	line-height: 1.4;
}

.irp-partner-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
}

.irp-partner-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.irp-partner-list li {
	position: relative;
	padding: 8px 8px 8px 18px;
	border-bottom: 1px solid #F9FAFB;
	font-family: Inter, 'DM Sans', sans-serif;
	font-size: 12px;
	line-height: 18px;
	color: #374151;
}

.irp-partner-list li a {
	color: inherit;
	text-decoration: none;
}

.irp-partner-list li a:hover {
	color: #F16522;
	text-decoration: underline;
}

.irp-partner-list li:last-child {
	border-bottom: none;
}

.irp-partner-list li.irp-partner-empty {
	color: #9CA3AF;
	font-style: italic;
}

.irp-partner-list li.irp-partner-empty::before {
	display: none;
}

.irp-partner-list li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 14px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #F16522;
}

/* ============================================================
   NATIONAL RESEARCH PARTNERS
   ============================================================ */

.nrp-section {
	padding: 56px 0 80px;
	background: #EEF2EE;
}

.nrp-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	overflow: visible;
}

.nrp-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.nrp-header-left {
	max-width: 576px;
}

.nrp-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 44px;
	line-height: 50.4px;
	color: #1E2A44;
	margin: 0 0 12px;
}

.nrp-title em {
	font-style: italic;
	color: #F16522;
}

.nrp-desc {
	font-family: Inter, 'DM Sans', sans-serif;
	font-size: 15px;
	line-height: 25.5px;
	color: #6B7280;
	margin: 0;
	font-weight: 400;
}

.nrp-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	flex-shrink: 0;
}

.nrp-stat-num {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 36px;
	line-height: 1;
	color: #F16522;
	font-weight: 700;
}

.nrp-stat-label {
	font-family: Inter, 'DM Sans', sans-serif;
	font-size: 11px;
	line-height: 17px;
	color: #6B7280;
	margin-top: 4px;
}

.nrp-carousel {
	position: relative;
	padding: 4px 0 0;
	overflow: visible;
}

.nrp-viewport {
	overflow: hidden;
	padding: 16px 4px 96px;
}

.nrp-track {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: 140px 140px;
	grid-auto-columns: 118px;
	column-gap: 16px;
	row-gap: 20px;
	width: max-content;
	animation: nrp-marquee 42s linear infinite;
}

.nrp-carousel:hover .nrp-track {
	animation-play-state: paused;
}

.nrp-card {
	flex: none;
	width: 118px;
	min-width: 118px;
	height: 140px;
	position: relative;
	z-index: 1;
}

.nrp-card-inner,
.nrp-card-link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 140px;
	min-height: 140px;
	text-decoration: none;
	color: inherit;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: 16px 10px;
	overflow: visible;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nrp-card:hover {
	z-index: 4;
}

.nrp-card:hover .nrp-card-inner,
.nrp-card:hover .nrp-card-link {
	transform: scale(1.06);
	border-color: #F16522;
	box-shadow: 0 14px 28px rgba(30, 42, 68, 0.12);
}

.nrp-card-logo {
	width: 88px;
	height: 88px;
	border-radius: 18px;
	background: #F8FAF8;
	border: 1px solid #EEF2EE;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	overflow: hidden;
	flex-shrink: 0;
}

.nrp-card-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.nrp-card-logo-fallback {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 28px;
	font-weight: 700;
	color: #F16522;
	line-height: 1;
}

.nrp-card-name {
	position: absolute;
	left: 50%;
	top: calc(100% + 8px);
	width: max-content;
	max-width: 220px;
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: #1E2A44;
	color: #ffffff;
	font-family: Inter, 'DM Sans', sans-serif;
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
	white-space: normal;
	word-break: break-word;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%) translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	box-shadow: 0 8px 20px rgba(30, 42, 68, 0.18);
	z-index: 6;
}

.nrp-card-name::before {
	content: '';
	position: absolute;
	left: 50%;
	top: -5px;
	width: 10px;
	height: 10px;
	background: #1E2A44;
	transform: translateX(-50%) rotate(45deg);
}

.nrp-card:hover .nrp-card-name {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

@keyframes nrp-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(calc(-50% - 8px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.nrp-track {
		animation: none;
	}
}

@media (max-width: 991px) {
	.fpage-hero-inner {
		padding-bottom: 74px;
	}

	.funder-card {
		flex-basis: calc((100% - 16px) / 2);
	}

	.collab-layout {
		grid-template-columns: 1fr;
	}

	.collab-left {
		max-width: 100%;
	}

	.irp-body {
		grid-template-columns: 1fr;
	}

	.irp-tabs {
		flex-direction: row;
		overflow-x: auto;
		border-right: none;
		border-bottom: 1px solid #E5E7EB;
	}

	.irp-tab {
		white-space: nowrap;
		border-bottom: none;
		border-right: 1px solid #E5E7EB;
	}
}

@media (max-width: 767px) {
	.fpage-hero {
		min-height: 260px;
	}

	.fpage-hero-inner,
	.funders-inner,
	.collab-inner,
	.fpage-breadcrumb-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.fpage-hero-title,
	.funders-heading,
	.collab-heading,
	.nrp-title {
		font-size: 24px;
	}

	.fpage-breadcrumb {
		flex-wrap: wrap;
		padding: 8px 12px;

    width: min(1086px, calc(100% - 32px));
    height: 50px;
    border-radius: 16px 16px 0 0;
}
.fpage-breadcrumb::before,
.fpage-breadcrumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.fpage-breadcrumb::before {
    left: -16px;
    background: radial-gradient(circle at 0 0, transparent 16px, #ffffff 16.5px);
}

.fpage-breadcrumb::after {
    right: -16px;
    background: radial-gradient(circle at 100% 0, transparent 16px, #ffffff 16.5px);
}


	.funders-carousel {
		padding: 0 36px;
	}

	.funder-card {
		flex-basis: min(260px, 82%);
	}

	.collab-list-grid {
		grid-template-columns: 1fr;
	}

	.collab-list-grid > li:nth-child(odd) {
		border-right: none;
	}

	.collab-list:first-child {
		border-right: none;
		border-bottom: 1px solid #E5E7EB;
	}

	.irp-partner-grid {
		grid-template-columns: 1fr;
	}

	.nrp-carousel {
		padding: 8px 0 0;
	}

	.nrp-track {
		grid-auto-columns: 108px;
	}

	.nrp-card {
		width: 108px;
		min-width: 108px;
	}

	.nrp-header {
		flex-direction: column;
	}

	.nrp-stat {
		align-items: flex-start;
		text-align: left;
	}
}

@media (max-width: 767px) {
    .fpage-breadcrumb-shell {
        margin-top: 0;
    }
    .fpage-breadcrumb {
        width: 100%;
        height: auto;
        min-height: 50px;
        border-radius: 0;
    }
    .fpage-breadcrumb::before,
    .fpage-breadcrumb::after {
        display: none;
    }
}
