/*
Theme Name: NEPAIP — Classic NEPAIP Teal
Theme URI: https://nepaip.org.uk
Author: NEPAIP Web Team
Description: Classic (non-block) WordPress theme for North East Primary Area Inclusion Partnership — Classic NEPAIP Teal design: solid teal header, deep teal banner and footer. All homepage, contact and Our Process text is edited in Appearance → Customise with a live preview; staff are managed under Team Members; pages and posts use the classic editor. Creates the Home, Our Process, Meet the Team and News pages, menus and the NEPAIP site icon automatically.
Version: 3.6.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nepaip
*/

/* ==========================================================================
   1. Variables & base
   ========================================================================== */

:root {
	--nepaip-teal: #008080;
	--nepaip-accent: #0098A0;
	--nepaip-deep-teal: #005C5C;
	--nepaip-footer: color-mix(in srgb, var(--nepaip-deep-teal) 74%, #000);
	--nepaip-teal-dark: color-mix(in srgb, var(--nepaip-teal) 72%, #000);
	--nepaip-bg: #F4F9F9;
	--nepaip-tint: #E6F4F3;
	--nepaip-teal-tint: #E6F4F3;
	--nepaip-charcoal: #202122;
	--nepaip-slate: #475569;
	--nepaip-border: #D4E4E3;
	--nepaip-navy: #1E293B;
	--radius-card: 12px;
	--radius-small: 8px;
	--container: 1240px;
	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--nepaip-charcoal);
	background: var(--nepaip-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--nepaip-teal);
}

a:hover {
	color: var(--nepaip-deep-teal);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	font-weight: 800;
	line-height: 1.18;
	color: var(--nepaip-charcoal);
}

p {
	margin: 0 0 1em;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid #0098A0;
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: #fff;
	font-weight: 700;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ==========================================================================
   2. Layout helpers
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.container--narrow {
	max-width: 868px;
}

.section {
	padding: 4.5rem 0;
}

.section--banner {
	padding: 3.5rem 0;
}

.bg-tint { background: var(--nepaip-tint); }
.bg-dark { background: var(--nepaip-deep-teal); color: #fff; }
.bg-tint .card { background: #fff; }

.text-teal { color: var(--nepaip-teal); }
.text-dark { color: var(--nepaip-deep-teal); }

.grid {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.grid--1 { grid-template-columns: 1fr; }

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.section-title {
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	margin-bottom: 0;
}

.page-title {
	font-size: clamp(2.25rem, 4.2vw, 3.25rem);
	margin-bottom: 0.4em;
}

.lead {
	font-size: 1.1rem;
	color: var(--nepaip-slate);
}

.bg-dark .section-title,
.bg-dark h2,
.bg-dark h3:not(.white-panel__title) {
	color: #fff;
}

.bg-dark .lead {
	color: #E6FFFA;
	margin-top: 1rem;
}

/* ==========================================================================
   3. Components
   ========================================================================== */

/* Badges */
.badge {
	display: inline-block;
	margin: 0 0 0.9rem;
	padding: 0.3rem 0.9rem;
	border-radius: var(--radius-small);
	background: var(--nepaip-tint);
	color: var(--nepaip-deep-teal);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.badge--light {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.badge--solid {
	background: var(--nepaip-teal);
	color: #fff;
}

.eyebrow {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Buttons */
.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.btn {
	display: inline-block;
	padding: 0.85rem 1.6rem;
	border: 1px solid transparent;
	border-radius: var(--radius-small);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
	background: var(--nepaip-teal);
	color: #fff;
}

.btn--primary:hover {
	background: var(--nepaip-teal-dark);
	color: #fff;
}

.btn--soft {
	background: var(--nepaip-teal-tint);
	color: var(--nepaip-teal);
}

.btn--soft:hover {
	background: var(--nepaip-teal);
	color: #fff;
}

.btn--outline {
	background: #fff;
	border-color: var(--nepaip-teal);
	color: var(--nepaip-charcoal);
}

.btn--outline:hover {
	border-color: var(--nepaip-teal);
	color: var(--nepaip-deep-teal);
}

/* Cards */
.card {
	padding: 1.75rem;
	background: #fff;
	border: 1px solid var(--nepaip-border);
	border-radius: var(--radius-card);
	box-shadow: 0 8px 24px -12px rgba(0, 92, 92, 0.14);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -12px rgba(0, 92, 92, 0.22);
}

.card--small { padding: 1.5rem 1.35rem; }
.card--large { padding: 2rem; }

.card__title {
	font-size: 1.15rem;
	margin: 0.75rem 0 0.4rem;
}

.card__title--lg {
	font-size: 1.3rem;
	margin-top: 0;
}

.card__title a {
	color: inherit;
	text-decoration: none;
}

.card__title a:hover {
	color: var(--nepaip-teal);
}

.card__text {
	margin: 0;
	font-size: 0.92rem;
	color: var(--nepaip-slate);
}

.card--small .card__title { font-size: 1.1rem; }
.card--small .card__text { font-size: 0.9rem; }

.card--tick {
	padding: 1.25rem;
	font-size: 0.95rem;
	font-weight: 700;
}

.card--tick::before {
	content: "✓";
	margin-right: 0.6rem;
	color: var(--nepaip-teal);
}

/* Number badges */
.num-badge {
	display: inline-block;
	margin: 0;
	padding: 0.3rem 0.7rem;
	border-radius: 10px;
	font-size: 0.8rem;
	font-weight: 800;
}

.num-badge--teal { background: var(--nepaip-teal-tint); color: var(--nepaip-teal); }
.num-badge--solid { background: var(--nepaip-teal); color: #fff; border-radius: var(--radius-small); font-size: 0.75rem; }

/* ==========================================================================
   4. Header
   ========================================================================== */

.topbar {
	background: var(--nepaip-deep-teal);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}

.topbar p {
	margin: 0;
}

.topbar__contact {
	font-weight: 700;
}

.topbar a {
	color: #fff;
	text-decoration: none;
}

.topbar__sep {
	margin: 0 0.4rem;
	opacity: 0.6;
}

.mainbar {
	position: relative;
	background: var(--nepaip-teal);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mainbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
}

.site-logo img {
	display: block;
	height: 56px;
	width: auto;
	border-radius: 10px;
}

.main-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav li {
	position: relative;
}

.main-nav a {
	display: block;
	padding: 0.4rem 0;
	color: var(--nepaip-charcoal);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	color: var(--nepaip-teal);
	border-bottom-color: var(--nepaip-teal);
}

/* Drop-downs */
.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	z-index: 50;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 0.5rem 1rem;
	list-style: none;
	background: #fff;
	border: 1px solid var(--nepaip-border);
	border-radius: 10px;
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.18);
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
	display: block;
}

.nav-toggle {
	display: none;
	padding: 0.6rem;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 12px;
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px 0;
	background: var(--nepaip-charcoal);
}

/* ==========================================================================
   5. Homepage sections
   ========================================================================== */

.hero__grid {
	display: grid;
	grid-template-columns: 58fr 42fr;
	gap: 3rem;
	align-items: center;
}

.hero__title {
	font-size: clamp(2.25rem, 4.2vw, 3.25rem);
}

.hero__card {
	padding: 2rem;
}


/* Inclusion base */
.glass-box {
	margin-top: 1.5rem;
	padding: 1.1rem 1.25rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--radius-card);
}

.glass-box__title {
	margin: 0 0 0.3rem;
	font-size: 0.95rem;
	font-weight: 800;
}

.glass-box__text {
	margin: 0;
	font-size: 0.85rem;
	color: #CCFBF1;
}

.white-panel {
	padding: 2rem;
	background: #fff;
	color: var(--nepaip-charcoal);
	border-radius: var(--radius-card);
}

.white-panel__title {
	font-size: 1.2rem;
}

.checklist {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.checklist li {
	position: relative;
	padding: 0.35rem 0 0.35rem 1.8rem;
}

.checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 800;
	color: var(--nepaip-teal);
}

/* Contact */
.phone-link {
	font-size: 1.15rem;
	font-weight: 800;
	text-decoration: none;
}

.hours-row {
	margin: 0 0 0.75rem;
	padding: 0.9rem 1.1rem;
	border-radius: 10px;
	font-size: 0.92rem;
}

.hours-row--teal { background: var(--nepaip-teal-tint); }
.hours-row--teal strong { color: var(--nepaip-deep-teal); }
.hours-row--grey { background: #F8FAFC; }

/* ==========================================================================
   6. Our Process flowchart
   ========================================================================== */

.flow {
	display: grid;
	grid-template-columns: 25fr 42fr 33fr;
	gap: 2rem;
	align-items: center;
	padding: 2.5rem 2rem;
}

.flow:hover {
	transform: none;
}

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

.flow-node {
	padding: 1.15rem 1.35rem;
	border-radius: var(--radius-card);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.flow-node:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -8px rgba(0, 92, 92, 0.25);
}

.flow-node p { margin: 0; }

.flow__stages .flow-node + .flow-node {
	position: relative;
	margin-top: 2.4rem;
}

.flow__stages .flow-node + .flow-node::before {
	content: "↓";
	position: absolute;
	top: -2.05rem;
	left: 50%;
	transform: translateX(-50%);
	font-weight: 800;
	color: var(--nepaip-charcoal);
}

.flow-node--dark { background: var(--nepaip-navy); color: #fff; }
.flow-node--hub { background: var(--nepaip-teal); color: #fff; }

.flow-node--loop {
	padding: 1.25rem;
	background: var(--nepaip-tint);
	border: 2px solid var(--nepaip-teal);
}

.flow-node__label {
	margin-bottom: 0.25rem !important;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.flow-node__text {
	font-size: 0.92rem;
	font-weight: 600;
}

.flow-node--hub .flow-node__text { font-weight: 700; font-size: 0.95rem; }
.flow-node--loop .flow-node__text { font-weight: 700; font-size: 0.9rem; }

.flow-node__note {
	margin-top: 0.5rem !important;
	font-size: 0.75rem;
	color: #64748B;
}

.traded-box {
	padding: 1.5rem 1.35rem;
	background: rgba(0, 128, 128, 0.03);
	border: 2px dashed rgba(0, 128, 128, 0.55);
	border-radius: var(--radius-card);
}

.traded-item {
	margin-top: 0.85rem;
	padding: 1rem;
	background: var(--nepaip-tint);
	border: 1.5px solid var(--nepaip-teal);
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 700;
}

/* ==========================================================================
   7. Meet the Team
   ========================================================================== */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.filter-btn {
	padding: 0.55rem 1.15rem;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	color: #334155;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: var(--radius-small);
	cursor: pointer;
	transition: all 0.18s ease;
}

.filter-btn:hover {
	border-color: var(--nepaip-teal);
	color: var(--nepaip-teal);
}

.filter-btn.is-active {
	background: var(--nepaip-teal);
	border-color: var(--nepaip-teal);
	color: #fff;
}

.staff-card {
	position: relative;
	padding: 1.15rem 1.15rem 1.25rem;
}

.staff-card[hidden] {
	display: none;
}

.staff-card__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 5 / 4;
	margin-bottom: 0.9rem;
	overflow: hidden;
	background: linear-gradient(135deg, var(--nepaip-teal-tint), var(--nepaip-tint));
	border-radius: 10px;
}

.staff-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.staff-card__initials {
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--nepaip-teal);
	letter-spacing: 0.04em;
}

.team-badge {
	display: inline-block;
	margin: 0 0.3rem 0.3rem 0;
	padding: 0.2rem 0.65rem;
	border-radius: var(--radius-small);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
}

.staff-card__name {
	margin: 0.4rem 0 0.25rem;
	font-size: 1.1rem;
}

.staff-card__role {
	margin-bottom: 0.5rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--nepaip-teal);
}

.staff-card__bio {
	font-size: 0.84rem;
	color: var(--nepaip-slate);
}

.staff-card__email {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	word-break: break-word;
}

.staff-card__email a {
	text-decoration: none;
}

.staff-card__email span {
	display: block;
	font-weight: 500;
	color: #64748B;
}

.staff-card__edit {
	position: absolute;
	top: 1.6rem;
	right: 1.6rem;
	padding: 0.2rem 0.6rem;
	font-size: 0.75rem;
	font-weight: 700;
	background: #fff;
	border-radius: var(--radius-small);
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   8. Pages, posts & editor content
   ========================================================================== */

.entry-content {
	font-size: 1.05rem;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h2 { font-size: 1.75rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.4em; }

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 1rem 1.5rem;
	background: var(--nepaip-tint);
	border-left: 4px solid var(--nepaip-teal);
	border-radius: 0 16px 16px 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 0.6rem;
	border: 1px solid var(--nepaip-border);
	text-align: left;
}

.entry-content img {
	border-radius: 10px;
}

.entry-content th {
	color: #fff;
	background: var(--nepaip-deep-teal);
	border-color: var(--nepaip-deep-teal);
}

.entry-content td {
	vertical-align: top;
}

.entry-content .lead {
	font-size: 1.2rem;
	color: var(--nepaip-deep-teal);
}

/* Our Offer: the three layers of support (classes added in the page editor). */
.entry-content .offer-tier {
	margin: 1rem 0;
	padding: 1.1rem 1.4rem 0.6rem;
	background: #fff;
	border: 1px solid var(--nepaip-border);
	border-left: 6px solid var(--nepaip-teal);
	border-radius: var(--radius-card);
}

.entry-content .offer-tier h3 {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	color: var(--nepaip-deep-teal);
}

.entry-content .offer-tier--1 { border-left-color: #7FC8C8; }
.entry-content .offer-tier--2 { border-left-color: var(--nepaip-accent); }
.entry-content .offer-tier--3 { border-left-color: var(--nepaip-deep-teal); }
.entry-content .offer-tier--2 { margin-left: 1.25rem; }
.entry-content .offer-tier--3 { margin-left: 2.5rem; }

@media (max-width: 640px) {
	.entry-content .offer-tier--2,
	.entry-content .offer-tier--3 { margin-left: 0; }
	.entry-content table,
	.entry-content tbody,
	.entry-content tr,
	.entry-content td { display: block; width: 100%; }
	.entry-content thead { display: none; }
	.entry-content td { border-width: 0 1px; }
	.entry-content tr { border-bottom: 1px solid var(--nepaip-border); }
	.entry-content tr td:first-child { padding-bottom: 0; border-top: 1px solid var(--nepaip-border); }
}

.lead.entry-content p {
	margin-bottom: 0.6em;
}

.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--nepaip-slate); }

.featured-image {
	margin-bottom: 2rem;
}

.featured-image img {
	border-radius: var(--radius-card);
}

.post-date {
	margin-bottom: 0.3rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--nepaip-teal);
}

.post-card__image img {
	display: block;
	margin-bottom: 1rem;
	border-radius: 10px;
}

.read-more {
	display: inline-block;
	margin-top: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nepaip-border);
	font-weight: 700;
}

.post-nav a { text-decoration: none; }

.pagination {
	margin-top: 2.5rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.pagination .page-numbers {
	padding: 0.45rem 0.9rem;
	background: #fff;
	border: 1px solid var(--nepaip-border);
	border-radius: var(--radius-small);
	font-weight: 700;
	text-decoration: none;
}

.pagination .current {
	background: var(--nepaip-teal);
	border-color: var(--nepaip-teal);
	color: #fff;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.site-footer {
	padding: 3.5rem 0 1.5rem;
	background: var(--nepaip-charcoal);
	color: #CBD5E1;
	font-size: 0.9rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem;
}

.footer-grid.has-widgets {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-title {
	font-size: 1.35rem;
	color: #fff;
}

.footer-heading {
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
}

.site-footer a {
	color: #CBD5E1;
}

.site-footer a:hover {
	color: #fff;
}

.footer-strong,
.footer-strong a {
	color: #fff;
	text-decoration: none;
}

.footer-small {
	font-size: 0.85rem;
	opacity: 0.85;
}

.footer-menu,
.site-footer .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li,
.site-footer .menu li {
	margin-bottom: 0.35rem;
}

.footer-bottom {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.8rem;
	opacity: 0.75;
}

.footer-bottom p {
	margin: 0;
}

/* ==========================================================================
   9b. Classic NEPAIP Teal design
   ========================================================================== */

/* Badges */
.badge {
	background: var(--nepaip-tint);
	color: var(--nepaip-deep-teal);
}

.badge--white {
	background: #fff;
	color: var(--nepaip-deep-teal);
}

.badge--light {
	background: rgba(255, 255, 255, 0.15);
	color: #E6FFFA;
}

.badge--solid {
	background: var(--nepaip-accent);
	color: #fff;
}

/* Header: deep teal top bar, solid teal main bar with white menu */
.topbar {
	color: #E6FFFA;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mainbar {
	border-bottom: 0;
}

.mainbar__inner {
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}

.site-logo img {
	border-radius: 0;
}

.main-nav .menu {
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.main-nav a {
	padding: 0.55rem 1rem;
	color: #fff;
	border: 0;
	border-radius: var(--radius-small);
}

.main-nav a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	background: #fff;
	color: var(--nepaip-deep-teal);
}

.main-nav .menu-button > a,
.main-nav .menu > li > a[href$="#contact-section"] {
	background: var(--nepaip-deep-teal);
	color: #fff;
}

.main-nav .menu-button > a:hover,
.main-nav .menu > li > a[href$="#contact-section"]:hover {
	background: var(--nepaip-footer);
}

.main-nav .sub-menu a {
	color: var(--nepaip-charcoal);
}

.main-nav .sub-menu a:hover {
	background: var(--nepaip-tint);
	color: var(--nepaip-deep-teal);
}

.nav-toggle__bar {
	background: #fff;
}

/* Hero */
.hero .hero__title {
	color: #fff;
}

.hero__highlight {
	color: #99F6E4;
}

.hero .lead {
	color: #CCFBF1;
	margin-top: 0;
}

.btn {
	border-radius: var(--radius-small);
}

.btn--white {
	background: #fff;
	color: var(--nepaip-deep-teal);
}

.btn--white:hover {
	background: var(--nepaip-tint);
	color: var(--nepaip-deep-teal);
}

.btn--darker {
	background: var(--nepaip-footer);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.btn--darker:hover {
	background: #fff;
	color: var(--nepaip-deep-teal);
}

.btn--outline {
	border-color: var(--nepaip-teal);
}

.btn--outline:hover {
	background: var(--nepaip-teal);
	color: #fff;
}

.glance {
	padding: 1.75rem;
	background: #fff;
	color: var(--nepaip-charcoal);
	border-top: 5px solid var(--nepaip-accent);
	border-radius: var(--radius-card);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.35);
}

.hero .glance__title {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nepaip-deep-teal);
}

.glance__list {
	margin: 0;
	padding-left: 1.2em;
}

.glance__list li {
	margin-bottom: 0.75rem;
}

.glance__list li:last-child {
	margin-bottom: 0;
}

.glance__list a {
	font-weight: 700;
	text-decoration: none;
}

/* Cards & numbers */
.num-badge {
	border-radius: 10px;
}

.num-badge--solid {
	background: var(--nepaip-teal);
	border-radius: var(--radius-small);
}

.card--tick::before {
	color: var(--nepaip-teal);
}

/* Contact hours */
.hours-row--teal strong {
	color: var(--nepaip-deep-teal);
}

/* Process flowchart */
.flow-node--dark {
	background: var(--nepaip-deep-teal);
}

.flow-node--hub {
	background: var(--nepaip-teal);
	box-shadow: 0 0 0 3px var(--nepaip-accent);
}

.flow-node--loop {
	background: var(--nepaip-tint);
	border-color: var(--nepaip-teal);
}

.traded-item {
	background: var(--nepaip-tint);
	border-color: var(--nepaip-teal);
	border-radius: var(--radius-card);
}

/* Team */
.filter-btn {
	border-color: #CBD5E1;
}

.filter-btn.is-active {
	background: var(--nepaip-teal);
	border-color: var(--nepaip-teal);
}

.staff-card__photo {
	border-radius: 10px;
}

/* Footer */
.site-footer {
	background: var(--nepaip-footer);
	color: #E6FFFA;
}

.site-footer a {
	color: #E6FFFA;
}

.footer-bottom {
	border-top-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Policies (document library)
   ========================================================================== */

.policy-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.policy-search input {
	width: min(360px, 100%);
	padding: 0.75rem 1rem 0.75rem 2.6rem;
	font: inherit;
	font-size: 0.95rem;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2364748B' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 0.9rem center;
	border: 1px solid #CBD5E1;
	border-radius: var(--radius-small);
}

.policy-search input:focus {
	outline: 3px solid var(--nepaip-teal);
	outline-offset: 1px;
	border-color: var(--nepaip-teal);
}

.policy-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.policy-jump a {
	padding: 0.45rem 0.95rem;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--nepaip-deep-teal);
	background: var(--nepaip-tint);
	border-radius: var(--radius-small);
}

.policy-jump a:hover {
	background: var(--nepaip-teal);
	color: #fff;
}

.policy-group {
	margin-top: 2.5rem;
	scroll-margin-top: 1.5rem;
}

.policy-group[hidden],
.policy[hidden] {
	display: none;
}

.policy-group__title {
	margin-bottom: 0.35rem;
	font-size: 1.45rem;
}

.policy-group__desc {
	color: var(--nepaip-slate);
}

.policy-list {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--nepaip-border);
	border-radius: var(--radius-card);
	overflow: hidden;
}

.policy {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 1.1rem;
	align-items: center;
	padding: 1.1rem 1.35rem;
}

.policy + .policy {
	border-top: 1px solid var(--nepaip-border);
}

.policy:hover {
	background: #F7FBFB;
}

.policy__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 56px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #fff;
	background: var(--nepaip-teal);
	border-radius: 6px 14px 6px 6px;
}

.policy__title {
	margin: 0 0 0.2rem;
	font-size: 1.02rem;
}

.policy__title a {
	color: var(--nepaip-charcoal);
	text-decoration: none;
}

.policy__title a:hover {
	color: var(--nepaip-deep-teal);
	text-decoration: underline;
}

.policy__desc {
	margin: 0 0 0.25rem;
	font-size: 0.88rem;
	color: var(--nepaip-slate);
}

.policy__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: #64748B;
}

.policy__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.btn--small {
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
}

.policy__edit {
	font-size: 0.75rem;
	font-weight: 700;
}

.policy-note {
	margin-top: 2.5rem;
	padding: 1.1rem 1.35rem;
	background: var(--nepaip-tint);
	border-left: 4px solid var(--nepaip-teal);
	border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.policy-note > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 700px) {
	.policy {
		grid-template-columns: auto 1fr;
	}

	.policy__actions {
		grid-column: 1 / -1;
	}
}

/* Website credit */
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.site-credit a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-left: 0.3rem;
	font-weight: 700;
	text-decoration: none;
	vertical-align: middle;
}

.site-credit a:hover span {
	text-decoration: underline;
}

.site-credit__logo {
	width: auto;
	height: 40px;
}

/* ==========================================================================
   Forms & page visibility preview
   ========================================================================== */

.admin-preview-bar {
	padding: 0.65rem 0;
	font-size: 0.88rem;
	color: #fff;
	background: #646970;
}

.admin-preview-bar--unlisted {
	background: #B26200;
}

.admin-preview-bar a {
	margin-left: 0.75rem;
	color: #fff;
	font-weight: 700;
}

.form-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.form-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1rem;
	color: var(--nepaip-teal);
	background: var(--nepaip-tint);
	border-radius: var(--radius-card);
}

.form-card__title {
	margin: 0 0 0.4rem;
	font-size: 1.2rem;
}

.form-card .card__text {
	margin-bottom: 1.25rem;
}

.form-card__action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: auto 0 0;
}

.form-card__edit {
	font-size: 0.8rem;
	font-weight: 700;
}

.form-embed {
	margin-top: 3rem;
}

.form-embed:first-child {
	margin-top: 0;
}

.form-embed__frame {
	margin-top: 1.25rem;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--nepaip-border);
	border-radius: var(--radius-card);
}

.form-embed__frame iframe {
	display: block;
	width: 100%;
	border: 0;
}

.form-embed__fallback {
	margin-top: 0.6rem;
	font-size: 0.85rem;
	color: var(--nepaip-slate);
}

/* ==========================================================================
   Our Process: contacts table
   ========================================================================== */

.section--tight-top {
	padding-top: 0;
}

.section--tight-top .section-title {
	margin-bottom: 1.25rem;
}

.contacts-table-wrap {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--nepaip-border);
	border-radius: var(--radius-card);
}

.contacts-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.contacts-table th,
.contacts-table td {
	padding: 0.8rem 1.1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--nepaip-border);
}

.contacts-table thead th {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: var(--nepaip-deep-teal);
}

.contacts-table tbody tr:last-child td {
	border-bottom: 0;
}

.contacts-table tbody tr:nth-child(even) td {
	background: #F7FBFB;
}

.contacts-table a {
	font-weight: 600;
	color: var(--nepaip-teal-dark);
	overflow-wrap: anywhere;
}

.contacts-note {
	margin: 1rem 0 0;
	font-weight: 600;
	color: var(--nepaip-deep-teal);
}

/* ==========================================================================
   Partner Schools (list + map)
   ========================================================================== */

.schools {
	display: grid;
	grid-template-columns: minmax(300px, 400px) 1fr;
	gap: 1.5rem;
	align-items: stretch;
}

.schools__panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: #fff;
	border: 1px solid var(--nepaip-border);
	border-radius: var(--radius-card);
	overflow: hidden;
}

.schools__search {
	display: block;
	padding: 1rem 1rem 0;
}

.schools__search input {
	width: 100%;
}

.schools__count {
	margin: 0;
	padding: 0.7rem 1.1rem;
	font-size: 0.88rem;
	color: var(--nepaip-slate);
	border-bottom: 1px solid var(--nepaip-border);
}

.schools__count strong {
	color: var(--nepaip-deep-teal);
}

.schools__list {
	position: relative; /* keeps screen-reader text inside the scrolling list */
	flex: 1 1 auto;
	max-height: 620px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	scroll-behavior: smooth;
}

.school + .school {
	border-top: 1px solid var(--nepaip-border);
}

.school[hidden],
.schools__empty[hidden],
.schools__of[hidden],
.schools__hint[hidden],
.schools__gmap[hidden],
.schools__frame[hidden] {
	display: none;
}

.school__btn {
	display: block;
	width: 100%;
	padding: 0.85rem 1.1rem 0.25rem;
	font: inherit;
	text-align: left;
	color: inherit;
	background: none;
	border: 0;
	border-left: 4px solid transparent;
	cursor: pointer;
}

.school__btn:hover,
.school__btn:focus-visible {
	background: #F7FBFB;
}

.school__btn:focus-visible {
	outline: 3px solid var(--nepaip-teal);
	outline-offset: -3px;
}

.school__btn.is-active {
	background: var(--nepaip-tint);
	border-left-color: var(--nepaip-teal);
}

.school__name {
	display: block;
	font-weight: 700;
	line-height: 1.3;
	color: var(--nepaip-charcoal);
}

.school__address {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.85rem;
	color: var(--nepaip-slate);
}

.school__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	padding: 0.2rem 1.1rem 0.85rem calc(1.1rem + 4px);
	font-size: 0.8rem;
	font-weight: 700;
}

.school.is-active .school__links,
.school__btn.is-active + .school__links {
	background: var(--nepaip-tint);
}

.school__links a {
	color: var(--nepaip-teal-dark);
}

.school__edit {
	color: var(--nepaip-slate) !important;
}

.schools__empty {
	margin: 0;
	padding: 1.25rem 1.1rem;
	color: var(--nepaip-slate);
}

.schools__map {
	position: relative;
	min-height: 480px;
	overflow: hidden;
	background: var(--nepaip-tint);
	border: 1px solid var(--nepaip-border);
	border-radius: var(--radius-card);
}

.schools__frame,
.schools__gmap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.schools__hint {
	position: absolute;
	left: 50%;
	bottom: 1.6rem;
	margin: 0;
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	background: var(--nepaip-deep-teal);
	border-radius: 999px;
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
	transform: translateX(-50%);
	pointer-events: none;
}

.school-info {
	max-width: 240px;
	font-family: var(--font);
	font-size: 0.85rem;
	line-height: 1.4;
}

.school-info__name {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 0.95rem;
	color: var(--nepaip-charcoal);
}

.school-info__address {
	display: block;
	color: var(--nepaip-slate);
}

.school-info__links {
	display: flex;
	gap: 1rem;
	margin-top: 0.5rem;
	font-weight: 700;
}

.school-info__links a {
	color: var(--nepaip-teal-dark);
}

.schools__note {
	margin-top: 2rem;
}

.schools-heat-toggle {
	margin: 10px;
	padding: 0.5rem 0.9rem;
	font: 700 0.82rem/1.2 var(--font);
	color: var(--nepaip-deep-teal);
	background: #fff;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.schools-heat-toggle:hover,
.schools-heat-toggle:focus-visible {
	background: var(--nepaip-tint);
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.flow { grid-template-columns: 1fr 1.4fr; }
	.flow__side--left { grid-column: 1 / -1; }
	.flow__stages { order: 2; }
	.flow__side--right { order: 3; }
}

@media (max-width: 860px) {
	.section { padding: 3.25rem 0; }
	.hero__grid,
	.split,
	.flow,
	.grid--2 { grid-template-columns: 1fr; }
	.grid--3,
	.grid--4,
	.grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid,
	.footer-grid.has-widgets { grid-template-columns: 1fr; gap: 1.75rem; }
	.contacts-table thead { display: none; }
	.contacts-table tr { display: block; padding: 0.75rem 1rem; border-bottom: 1px solid var(--nepaip-border); }
	.contacts-table tbody tr:last-child { border-bottom: 0; }
	.contacts-table td,
	.contacts-table tbody tr:nth-child(even) td { display: block; padding: 0.15rem 0; border: 0; background: none; }
	.contacts-table tbody tr:nth-child(even) { background: #F7FBFB; }
	.contacts-table td::before { content: attr(data-label) ": "; font-size: 0.78rem; font-weight: 700; color: var(--nepaip-slate); }
	.schools { grid-template-columns: 1fr; }
	.schools__map { order: -1; min-height: 0; aspect-ratio: 4 / 3.4; scroll-margin-top: 1rem; }
	.schools__list { max-height: 460px; }
	.schools__hint { white-space: normal; text-align: center; width: max-content; max-width: 85%; }

	.nav-toggle { display: block; }

	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 100;
		display: none;
		padding: 1rem 1.5rem 1.5rem;
		background: var(--nepaip-teal);
		border-top: 1px solid rgba(255, 255, 255, 0.15);
		box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.2);
	}

	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav .menu { align-items: stretch; gap: 0.35rem; }
	.main-nav a { padding: 0.7rem 1rem; }

	.main-nav .sub-menu a { color: #fff; }
	.main-nav .sub-menu {
		position: static;
		display: block;
		padding: 0 0 0 1rem;
		border: 0;
		box-shadow: none;
		background: none;
	}
}

@media (max-width: 560px) {
	.grid--3,
	.grid--4,
	.grid--5 { grid-template-columns: 1fr; }
	.site-logo img { height: 46px; }
	.topbar__inner { justify-content: center; text-align: center; }
	.card--large,
	.hero__card,
	.white-panel { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.card,
	.flow-node { transition: none; }
}
