/* Power From Below — brand colors & nav fixes */

:root {
	--primary-color: #2F3874;
	--accent-color: #FFD200;
	--accent-pink: #E91E8C;
	--accent-cyan: #00BCD4;
	--accent-green: #4CAF50;
	--divider-color: #2F38741A;
}

/* Dropdown arrows — CSS chevrons (no Font Awesome webfonts required) */
.main-menu ul li.submenu > a:after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 8px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	vertical-align: middle;
	font-family: inherit;
	font-weight: normal;
	font-size: 0;
}

.main-menu ul li.submenu ul li.submenu > a:after {
	content: '';
	float: right;
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 6px solid currentColor;
	border-right: 0;
}

.slicknav_arrow:after {
	content: '';
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--white-color);
	font-family: inherit;
	font-weight: normal;
	font-size: 0;
}

.slicknav_open > a .slicknav_arrow:after {
	border-top-color: var(--white-color);
}

/* Hero overlay — logo purple instead of theme green */
.hero-ultra {
	background-image: none;
}

.hero-slides {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.hero-slide {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	transform: translate3d(0, 100%, 0);
	transition: transform 1.4s cubic-bezier(0.45, 0, 0.2, 1);
	will-change: transform;
}

.hero-slide.is-active {
	transform: translate3d(0, 0, 0);
	z-index: 1;
}

.hero-slide.is-exiting {
	transform: translate3d(0, -100%, 0);
	z-index: 2;
}

.hero-ultra::before {
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(47, 56, 116, 0.88) 0%, rgba(47, 56, 116, 0.55) 40%),
		linear-gradient(180deg, rgba(47, 56, 116, 0.45) 50%, rgba(47, 56, 116, 0.92) 100%);
}

.hero-ultra > .container {
	position: relative;
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.hero-slide {
		transition: none;
	}
}

/* Hero typography — larger, higher contrast */
.hero-content-ultra .section-title h1 {
	font-size: 72px;
	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-content-ultra .section-title .section-sub-title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero-content-ultra .section-title p {
	font-size: 20px;
	line-height: 1.7;
	font-weight: 400;
	color: #ffffff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
	margin-top: 24px;
	max-width: 42em;
}

.video-play-button-ultra p {
	font-size: 17px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Info card — clearer text */
.hero-info-item-title-ultra h2 {
	font-size: 22px;
}

.hero-info-item-content-ultra p {
	font-size: 17px;
	line-height: 1.6;
}

.hero-counter-item h2 {
	font-size: 34px;
}

.hero-counter-item p {
	font-size: 15px;
	line-height: 1.45;
}

/* Tablet — same overlay as desktop so hero photo stays visible */
@media only screen and (max-width: 1024px) {
	.hero-ultra::before {
		opacity: 1;
		background:
			linear-gradient(180deg, rgba(47, 56, 116, 0.88) 0%, rgba(47, 56, 116, 0.55) 40%),
			linear-gradient(180deg, rgba(47, 56, 116, 0.45) 50%, rgba(47, 56, 116, 0.92) 100%);
	}

	.hero-content-ultra .section-title h1 {
		font-size: 52px;
	}

	.hero-content-ultra .section-title p {
		font-size: 19px;
	}
}

/* Mobile — readable text without hiding the hero photo */
@media only screen and (max-width: 767px) {
	.hero-ultra {
		padding: 130px 0 48px;
		min-height: auto;
	}

	.hero-ultra::before {
		opacity: 1;
		background:
			linear-gradient(180deg, rgba(47, 56, 116, 0.72) 0%, rgba(47, 56, 116, 0.28) 38%),
			linear-gradient(180deg, rgba(47, 56, 116, 0.2) 48%, rgba(47, 56, 116, 0.82) 100%);
	}

	.hero-content-ultra {
		margin-bottom: 24px;
		padding: 0;
		background: transparent;
		border: none;
		border-radius: 0;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.hero-content-ultra .section-title h1 {
		font-size: 38px;
		line-height: 1.15;
		text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
	}

	.hero-content-ultra .section-title .section-sub-title {
		font-size: 14px;
		padding: 8px 14px 8px 28px;
	}

	.hero-content-ultra .section-title p {
		font-size: 18px;
		line-height: 1.65;
		margin-top: 18px;
		text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
	}

	.hero-content-footer-ultra {
		padding: 0 4px;
	}

	.video-play-button-ultra p {
		font-size: 16px;
	}

	.hero-info-box-ultra {
		background: rgba(47, 56, 116, 0.85);
		border-color: rgba(255, 255, 255, 0.15);
	}

	.hero-info-item-title-ultra h2 {
		font-size: 20px;
	}

	.hero-info-item-content-ultra p {
		font-size: 16px;
		line-height: 1.55;
	}

	.hero-counter-item h2 {
		font-size: 26px;
	}

	.hero-counter-item p {
		font-size: 14px;
		line-height: 1.4;
	}
}

/* Accent highlights using logo palette */
.main-menu ul li a:hover,
.main-menu ul li a:focus {
	color: var(--accent-color);
}

.section-sub-title::before,
.hero-content-ultra .section-sub-title::before {
	background: var(--accent-color);
}

.dark-section .section-title .section-sub-title {
	color: var(--accent-color);
}

.btn-default.btn-highlighted {
	background: var(--accent-color);
	color: var(--primary-color);
}

.btn-default.btn-highlighted:hover {
	color: var(--primary-color);
}

.btn-default:hover::before {
	filter: none;
}

/* Submenu dropdown — yellow with purple text (logo contrast) */
.main-menu ul ul {
	background: var(--accent-color);
}

.main-menu ul ul li a {
	color: var(--primary-color);
}

.main-menu ul ul li a:hover,
.main-menu ul ul li a:focus {
	color: var(--accent-pink);
}

.readmore-btn:hover {
	color: var(--accent-pink);
}

/* Footer & dark sections */
.dark-section {
	background-color: var(--primary-color);
}

/* Scrollbar */
::-webkit-scrollbar-track {
	background-color: var(--primary-color);
	border-left-color: var(--primary-color);
}

::selection {
	color: var(--primary-color);
	background-color: var(--accent-color);
}

/* Preloader — favicon instead of theme loader */
#loading-icon img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

/* Site-wide — logo purple overlays (replace theme green) */
.page-header::before,
.hero::before {
	background: linear-gradient(270deg, transparent 17.97%, rgba(47, 56, 116, 0.90) 68.07%);
}

.page-header.parallaxie::before {
	background:
		linear-gradient(270deg, rgba(47, 56, 116, 0.35) 0%, rgba(47, 56, 116, 0.88) 55%),
		linear-gradient(180deg, rgba(47, 56, 116, 0.55) 0%, rgba(47, 56, 116, 0.92) 100%);
}

/* Sticky header — brand purple on all pages */
header.main-header .header-sticky,
header.main-header .header-sticky.active {
	background: var(--primary-color);
}

/* Nav logo — white version, larger for visibility */
.navbar-brand .pfb-nav-logo {
	max-height: 68px;
	width: auto;
	height: auto;
}

@media only screen and (max-width: 991px) {
	.navbar-brand .pfb-nav-logo {
		max-height: 58px;
	}
}

@media only screen and (max-width: 767px) {
	.navbar-brand .pfb-nav-logo {
		max-height: 50px;
	}
}

/* Buttons site-wide */
.btn-default {
	background: var(--accent-color);
	color: var(--primary-color);
}

.btn-default:hover {
	color: var(--primary-color);
}

/* Ticker bar */
.our-scrolling-ticker {
	background: var(--accent-color);
}

.our-scrolling-ticker .scrolling-content span {
	color: var(--primary-color);
}

/* Contact form — full width without side image */
.page-contact-us .contact-image-form-box .contact-form {
	width: 100%;
	padding: 40px;
}

.page-contact-us .contact-image-form-box {
	padding: 20px;
}

.page-contact-us .contact-info-list {
	margin-bottom: 0;
}

.page-contact-us .contact-info-item {
	width: 100%;
}

.contact-form form .form-control {
	width: 100%;
	min-height: 54px;
}

.contact-form form textarea.form-control {
	min-height: 160px;
	resize: vertical;
}

.post-item-image a figure::before,
.team-item-image figure::before {
	background: linear-gradient(180deg, transparent 30%, rgba(47, 56, 116, 0.92) 100%);
}

.how-work-item-number h2 {
	background: linear-gradient(180deg, rgba(47, 56, 116, 0.10) 50.25%, transparent 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

/* Section titles */
.section-title h2,
.section-title h3 {
	color: var(--primary-color);
}

.page-header-box ol li.breadcrumb-item a:hover {
	color: var(--accent-color);
}

/* Compact inner page header & ticker (~50% height) */
.page-header {
	padding: 130px 0 75px;
}

.page-header-box h1 {
	font-size: 40px;
	margin-bottom: 6px;
}

.page-header-box ol li.breadcrumb-item {
	font-size: 14px;
}

.page-header-box ol .breadcrumb-item + .breadcrumb-item::before {
	content: "/" !important;
	color: var(--white-color);
}

.our-scrolling-ticker {
	padding: 10px 0;
}

.scrolling-ticker-box {
	--gap: 20px;
}

.scrolling-content span {
	font-size: 14px;
}

.scrolling-content span img {
	max-width: 14px;
}

@media only screen and (max-width: 991px) {
	.page-header {
		padding: 110px 0 50px;
	}

	.page-header-box h1 {
		font-size: 32px;
	}

	.our-scrolling-ticker {
		padding: 8px 0;
	}

	.scrolling-content span {
		font-size: 13px;
	}
}

@media only screen and (max-width: 767px) {
	.page-header {
		padding: 100px 0 40px;
	}

	.page-header-box h1 {
		font-size: 26px;
	}

	.page-header-box ol li.breadcrumb-item {
		font-size: 13px;
	}

	.scrolling-content span {
		font-size: 12px;
	}

	.scrolling-content span img {
		max-width: 12px;
	}
}

/* Team member bios — readable write-ups from legacy content */
.team-member-bio {
	font-size: 17px;
	line-height: 1.75;
	color: var(--text-color);
}

.team-member-bio p {
	margin-bottom: 1.15em;
	text-align: justify;
}

.team-member-bio p:last-child {
	margin-bottom: 0;
}

.team-member-bio a {
	color: var(--primary-color);
	text-decoration: underline;
	word-break: break-word;
}

.team-member-bio a:hover {
	color: var(--accent-pink);
}

.team-item-excerpt {
	font-size: 15px;
	line-height: 1.6;
	margin-top: 12px;
	color: var(--text-color);
}

.team-item-content .readmore-btn {
	margin-top: 10px;
	display: inline-block;
}

.team-member-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid var(--divider-color);
	padding-top: 32px;
	margin-top: 20px;
}

.team-member-nav-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 48%;
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.team-member-nav-link:hover {
	color: var(--accent-pink);
}

.team-member-nav-next {
	text-align: right;
	margin-left: auto;
}

.team-member-nav-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-color);
	opacity: 0.7;
}

.team-member-nav-name {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.page-team-single .sidebar-cta-box {
	margin-top: 0;
}

.page-team-single .sidebar-cta-content h2 {
	font-size: 24px;
	line-height: 1.25;
}

/* Nav — tighter, cleaner menu */
.main-menu ul li {
	margin: 0 4px;
}

.main-menu ul li a {
	font-size: 15px;
	padding: 12px 8px !important;
}

.main-menu .nav-menu-wrapper {
	margin: 0 0.5vw;
}

/* Hero secondary CTA */
.btn-default.btn-hero-secondary {
	background: transparent;
	color: var(--white-color);
	border: 2px solid rgba(255, 255, 255, 0.85);
	box-shadow: none;
}

.btn-default.btn-hero-secondary::before,
.btn-default.btn-hero-secondary::after {
	display: none;
}

.btn-default.btn-hero-secondary:hover {
	background: var(--white-color);
	color: var(--primary-color);
	border-color: var(--white-color);
}

.hero-content-footer-ultra {
	gap: 16px 20px;
}

.hero-info-box-ultra {
	padding-bottom: 28px;
}

/* Hero — knowledge hub positioning */
.hero-content-ultra .hero-mission-line {
	font-size: 18px;
	line-height: 1.6;
	color: var(--accent-color);
	margin-top: 16px;
	margin-bottom: 8px;
}

.hero-content-ultra .hero-mission-line strong {
	font-weight: 600;
}

.hero-content-ultra .section-sub-title {
	margin-top: 12px;
}

/* African Knowledge Network page */
.page-network {
	padding: 80px 0 100px;
}

.network-list-box,
.network-card {
	background: var(--secondary-color);
	border-radius: 12px;
	padding: 28px;
	height: 100%;
	margin-bottom: 24px;
	border: 1px solid var(--divider-color);
}

.network-list-box h3,
.network-card h3 {
	font-size: 20px;
	margin-bottom: 16px;
	color: var(--primary-color);
}

.network-tag-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.network-tag-list li {
	background: rgba(47, 56, 116, 0.08);
	color: var(--primary-color);
	padding: 8px 16px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 500;
}

.founder-focus-areas {
	text-align: center;
}

/* Admin preview banner (Bird Eye) */
.pfb-preview-banner {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: #b42318;
	color: #fff;
	text-align: center;
	padding: 12px 20px;
	font-size: 16px;
	font-weight: 500;
}

.pfb-preview-banner a {
	color: #ffd200;
	margin-left: 12px;
	text-decoration: underline;
}
