/*
Theme Name: AIKRN Scholar
Theme URI: https://africaindigenousresearch.com/
Author: King of CMS Consulting
Description: Lightweight university-style theme for the Africa Indigenous Knowledge Research Network. No page builder needed for the shell; Elementor content still renders inside pages.
Version: 1.2.0
Requires PHP: 7.4
Text Domain: aikrn-scholar
*/

/* ---------- Design tokens ---------- */
:root {
	--navy: #13213f;
	--navy-deep: #0b1530;
	--navy-soft: #24365e;
	--red: #b3242b;
	--red-dark: #8f1b21;
	--green: #2e6b34;
	--gold: #c9962b;
	--cream: #f7f3ea;
	--paper: #fffdf8;
	--ink: #1b2233;
	--muted: #5a6275;
	--line: #e3dccd;
	--white: #fff;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(11, 21, 48, .08);
	--shadow-lg: 0 20px 50px rgba(11, 21, 48, .16);
	--serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
	--sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--wrap: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, body.elementor-default, body[class*="elementor-kit-"] {
	margin: 0;
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
/* Keep the serif even where Elementor's global kit styles load (font only, never colour). */
body :is(h1, h2, h3, h4):not(.elementor-heading-title) { font-family: var(--serif); }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--white); color: var(--navy); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 820px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--cream); color: var(--navy); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--red); }
.link-arrow::after { content: " \2192"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-deep); color: #cfd6e6; font-size: .85rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.utility a { color: #e9edf6; text-decoration: none; }
.utility a:hover { color: var(--white); text-decoration: underline; }
.utility-left { display: flex; gap: 18px; align-items: center; }
.utility-right { display: flex; gap: 18px; align-items: center; }
.utility .partner { opacity: .85; }
@media (max-width: 720px) { .utility .partner, .utility .hide-sm { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(11,21,48,.04); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { display: block; height: 58px; width: auto; }
.brand-text { font-family: var(--serif); color: var(--navy); font-weight: 700; font-size: 1.1rem; }
.header-cta { display: flex; gap: 10px; margin-left: auto; flex: 0 0 auto; }

/* Primary navigation */
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav a, .primary-nav .nav-toggle-sub {
	display: flex; align-items: center; gap: 6px;
	padding: 10px 12px; color: var(--navy); text-decoration: none;
	font-weight: 600; font-size: .95rem; border-radius: 6px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.primary-nav > ul > li > a:hover, .primary-nav > ul > li:hover > a, .primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-menu-ancestor > a { color: var(--red); }
.primary-nav .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px); margin-left: 4px; opacity: .7;
}
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 270px; padding: 10px;
	background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red);
	border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { font-weight: 500; font-size: .93rem; padding: 9px 12px; color: var(--ink); }
.primary-nav .sub-menu a:hover { background: var(--cream); color: var(--red); }
.primary-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-left: auto; }
.primary-nav .sub-menu .sub-menu { top: -11px; left: 100%; border-radius: var(--radius); border-top-width: 1px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 8px; padding: 8px 12px; font-weight: 700; font-family: inherit; cursor: pointer; }
.menu-toggle .bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 8px; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-toggle .bars::before { top: -6px; } .menu-toggle .bars::after { top: 6px; }

@media (max-width: 1180px) {
	.site-header .wrap { min-height: 72px; }
	.brand img { height: 48px; }
	.menu-toggle { display: inline-flex; align-items: center; }
	.header-cta { display: none; }
	.primary-nav {
		position: fixed; inset: 72px 0 0 0; background: var(--white); overflow-y: auto;
		padding: 12px 20px 40px; transform: translateX(100%); transition: transform .25s; margin: 0;
		border-top: 1px solid var(--line);
	}
	body.nav-open { overflow: hidden; }
	body.nav-open .primary-nav { transform: none; }
	.primary-nav > ul { flex-direction: column; gap: 0; }
	.primary-nav > ul > li { border-bottom: 1px solid var(--line); }
	.primary-nav a { padding: 14px 4px; font-size: 1.05rem; }
	.primary-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		padding: 0 0 10px 14px; min-width: 0; display: none;
	}
	.primary-nav li.open > .sub-menu { display: block; }
	.primary-nav .sub-menu .sub-menu { padding-left: 14px; }
	.primary-nav .menu-item-has-children > a::after { margin-left: auto; }
	.primary-nav .mobile-cta { display: flex; gap: 10px; padding: 18px 0; flex-wrap: wrap; }
}
@media (min-width: 1181px) { .primary-nav .mobile-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,21,48,.95) 0%, rgba(11,21,48,.82) 45%, rgba(11,21,48,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: clamp(70px, 10vw, 130px) 0 clamp(80px, 10vw, 140px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; color: #f1d9a0; font-weight: 700; margin-bottom: 18px; }
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: 20px; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; color: #dfe5f2; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 28px; font-size: .9rem; color: #b9c3da; }
.hero-note strong { color: var(--white); }

/* ---------- Stats strip ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); font-weight: 700; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat { border-top: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #dfe5f2; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.section-navy .section-head p { color: #c3cbe0; }
.eyebrow { display: block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.section-navy .eyebrow { color: #f1d9a0; }

/* Intro split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media .badge { position: absolute; left: -18px; bottom: -18px; background: var(--red); color: var(--white); padding: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 700; max-width: 240px; font-size: .95rem; line-height: 1.35; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 30px; padding: 0; list-style: none; }
.pillars li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; color: var(--navy); display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.pillars li::before { content: ""; flex: 0 0 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-media .badge { left: 12px; bottom: 12px; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* Cards */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-media { display: block; aspect-ratio: 16/10; background: var(--cream); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); color: rgba(255,255,255,.85); font-family: var(--serif); font-size: 1.4rem; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.card-meta .cat { color: var(--red); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 16px; }
.card .link-arrow { margin-top: auto; font-size: .92rem; }

/* Working group tiles */
.wg-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 22px; border-radius: var(--radius); color: var(--white); text-decoration: none; overflow: hidden; background: var(--navy); isolation: isolate; }
.wg-tile::before { content: ""; position: absolute; inset: 0; background: var(--wg-bg, linear-gradient(135deg, #13213f, #24365e)); z-index: -2; transition: transform .4s; }
.wg-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,21,48,0) 20%, rgba(11,21,48,.85) 100%); z-index: -1; }
.wg-tile:hover::before { transform: scale(1.05); }
.wg-tile .wg-region { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #f1d9a0; font-weight: 700; }
.wg-tile h3 { color: var(--white); font-size: 1.15rem; margin: 4px 0 0; }
.wg-tile .wg-go { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; transition: background .2s; }
.wg-tile:hover .wg-go { background: var(--red); }

/* Feature (conference) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.feature-body { padding: clamp(28px, 4vw, 50px); }
.feature-body h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.feature-body p { color: var(--muted); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Opportunities */
.opps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.opp { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.opp .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--red); display: grid; place-items: center; margin-bottom: 16px; }
.opp h3 { font-size: 1.15rem; }
.opp p { color: #c3cbe0; font-size: .97rem; }
.opp .link-arrow { color: #f1d9a0; margin-top: auto; }
@media (max-width: 860px) { .opps { grid-template-columns: 1fr; } }

/* Membership band */
.member-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.member-card {
	position: relative; max-width: 440px; margin-inline: auto; aspect-ratio: 1.6/1; border-radius: 18px; padding: 26px 28px;
	background: radial-gradient(120% 120% at 100% 0%, #2a3f6d 0%, var(--navy) 45%, var(--navy-deep) 100%);
	color: var(--white); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
}
.member-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(201,150,43,.18); }
.member-card .mc-top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #f1d9a0; font-weight: 700; }
.member-card .mc-row { display: flex; gap: 16px; align-items: center; }
.member-card .mc-photo { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.15); border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; overflow: hidden; }
.member-card .mc-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-card .mc-name { font-family: var(--serif); font-size: 1.2rem; }
.member-card .mc-sub { font-size: .85rem; color: #c3cbe0; }
.member-card .mc-num { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .08em; }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: "\2713"; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 2px; }
@media (max-width: 900px) { .member-band { grid-template-columns: 1fr; } }

/* Faces */
.faces { display: flex; flex-wrap: wrap; gap: 0; margin: 10px 0 24px; }
.faces img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); margin-left: -10px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.faces img:first-child { margin-left: 0; }

/* Partners */
.partners { display: flex; align-items: center; justify-content: center; gap: clamp(30px, 6vw, 70px); flex-wrap: wrap; }
.partners img { height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners img:hover { filter: none; opacity: 1; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); color: var(--white); border-radius: 16px; padding: clamp(30px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 6px; }
.cta-band p { margin: 0; color: #f6dcdc; }

/* ---------- Page / article ---------- */
.page-hero { background: var(--navy); color: #dfe5f2; padding: clamp(46px, 7vw, 84px) 0 clamp(40px, 6vw, 70px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(201,150,43,.12); }
.page-hero h1 { color: var(--white); margin-bottom: 10px; max-width: 24ch; }
.page-hero .crumbs { font-size: .85rem; color: #aab4cc; margin-bottom: 14px; }
.page-hero .crumbs a { color: #dfe5f2; text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }
.page-hero .meta { color: #c3cbe0; font-size: .95rem; }
.content-area { padding: clamp(40px, 6vw, 70px) 0; }
.entry-content { font-size: 1.08rem; }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: 8px; }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--gold); background: var(--cream); font-family: var(--serif); font-style: italic; color: var(--navy); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--cream); }
.featured-img { margin: -40px 0 34px; position: relative; z-index: 2; }
.featured-img img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); display: block; max-height: 520px; object-fit: cover; }
.article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tags a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--cream); color: var(--navy); text-decoration: none; font-size: .85rem; margin: 0 6px 6px 0; }
/* Elementor-built pages: let them use the full width */
.is-builder .content-area { padding: 0; }
.is-builder .entry-content { font-size: inherit; }

/* Archive */
.archive-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.archive-filters a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; font-size: .9rem; background: var(--white); }
.archive-filters a.active, .archive-filters a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; background: var(--white); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input[type="search"] { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 1rem; }
.search-form button { padding: 12px 20px; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 700; cursor: pointer; font-family: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c3da; font-size: .95rem; padding-top: 70px; }
.site-footer a { color: #dfe5f2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { height: 54px; width: auto; background: var(--white); padding: 6px 10px; border-radius: 8px; }
.footer-brand p { margin-top: 18px; max-width: 36ch; }
.site-footer h4 { font-family: var(--sans); color: var(--white); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--red); text-decoration: none; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
	.js-reveal .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Print ---------- */
@media print { .utility, .site-header, .site-footer, .cta-band { display: none !important; } body { background: #fff; } }

/* ---------- Complete-your-application form (AIKRN AMS) ---------- */
.aikrn-apply { max-width: 820px; margin: 0 auto; }
.aikrn-apply-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.aikrn-apply-kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.aikrn-apply-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.aikrn-apply-error { background: #fdecec; border: 1px solid #f3b5b5; color: #8f1b21; padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-weight: 600; }
.aikrn-apply-done { border-top: 4px solid var(--green); }
.aikrn-apply-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 26px 0 0; padding: 22px 0 0; }
.aikrn-apply-form legend { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.15rem; padding: 0 10px 0 0; }
.aikrn-apply-form label { display: block; font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: 16px; }
.aikrn-apply-form label small { font-weight: 400; color: var(--muted); }
.aikrn-apply-form input[type=text], .aikrn-apply-form input[type=email], .aikrn-apply-form input[type=tel], .aikrn-apply-form input[type=password], .aikrn-apply-form select, .aikrn-apply-form textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #cfc6b4; border-radius: 8px; font: inherit; font-weight: 400; color: var(--ink); background: #fffefb;
}
.aikrn-apply-form input:focus, .aikrn-apply-form select:focus, .aikrn-apply-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19,33,63,.12); }
.aikrn-apply-form input[disabled] { background: var(--cream); color: var(--muted); }
.aikrn-apply-form input[type=file] { display: block; margin-top: 8px; font-weight: 400; }
.aikrn-apply-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.aikrn-apply-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); margin-bottom: 10px; }
.aikrn-apply-form .check input { margin-top: 5px; }
.aikrn-apply-form .checks-group { margin-bottom: 16px; }
.aikrn-apply-form .checks-group .lbl { display: block; font-weight: 600; color: var(--navy); margin-bottom: 10px; font-size: .95rem; }
.aikrn-apply-form .have-photo { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: .95rem; }
.aikrn-apply-form .have-photo img { border-radius: 50%; object-fit: cover; border: 3px solid var(--cream); }
.aikrn-apply-form button { margin-top: 18px; font-size: 1.02rem; padding: 14px 26px; border: 0; cursor: pointer; }
.aikrn-apply-form .small { color: var(--muted); font-size: .88rem; margin-top: 14px; }
@media (max-width: 640px) { .aikrn-apply-form .row2 { grid-template-columns: 1fr; } }

/* =====================================================================
   v1.1  Menu redesign, motion and background effects
   ===================================================================== */

/* Header that slims down on scroll */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header .wrap { transition: min-height .3s ease; }
.site-header .brand img { transition: height .3s ease; }
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 8px 30px rgba(11,21,48,.10); backdrop-filter: saturate(1.4) blur(8px); }
@media (min-width: 1181px) {
	.site-header.scrolled .wrap { min-height: 68px; }
	.site-header.scrolled .brand img { height: 46px; }
}

/* Top-level links: animated underline and caret */
@media (min-width: 1181px) {
	.primary-nav > ul > li > a { position: relative; padding: 10px 13px; letter-spacing: .01em; }
	.primary-nav > ul > li > a::before {
		content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px;
		background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
	}
	.primary-nav > ul > li:hover > a::before, .primary-nav > ul > li:focus-within > a::before,
	.primary-nav > ul > li.current-menu-item > a::before, .primary-nav > ul > li.current-menu-ancestor > a::before { transform: scaleX(1); }
	.primary-nav > ul > li.menu-item-has-children > a::after { transition: transform .25s ease; }
	.primary-nav > ul > li.menu-item-has-children:hover > a::after { transform: rotate(225deg) translateY(-1px); }

	/* Dropdown cards */
	.primary-nav .sub-menu { min-width: 320px; padding: 12px; border-top: 0; border-radius: 14px; box-shadow: 0 24px 60px rgba(11,21,48,.18); top: calc(100% + 6px); }
	.primary-nav .sub-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
	.primary-nav .sub-menu::after { content: ""; position: absolute; top: -7px; left: 28px; width: 14px; height: 14px; background: var(--white); transform: rotate(45deg); border-radius: 3px; box-shadow: -3px -3px 6px rgba(11,21,48,.04); }
	.primary-nav .sub-menu a { display: block; padding: 10px 14px 10px 16px; border-radius: 10px; position: relative; transition: background .2s, padding-left .2s; }
	.primary-nav .sub-menu a::before { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 0; background: var(--red); border-radius: 4px; transform: translateY(-50%); transition: height .2s; }
	.primary-nav .sub-menu a:hover { background: var(--cream); padding-left: 20px; }
	.primary-nav .sub-menu a:hover::before { height: 60%; }
	.primary-nav .sub-menu .mi-title { display: block; font-weight: 600; color: var(--navy); font-size: .95rem; }
	.primary-nav .sub-menu .mi-desc { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; line-height: 1.35; margin-top: 2px; }
	.primary-nav .sub-menu a:hover .mi-title { color: var(--red); }
	.primary-nav li:hover > .sub-menu li { animation: aikrnItemIn .35s ease both; }
	.primary-nav li:hover > .sub-menu li:nth-child(2) { animation-delay: .03s; }
	.primary-nav li:hover > .sub-menu li:nth-child(3) { animation-delay: .06s; }
	.primary-nav li:hover > .sub-menu li:nth-child(4) { animation-delay: .09s; }
	.primary-nav li:hover > .sub-menu li:nth-child(5) { animation-delay: .12s; }
	.primary-nav li:hover > .sub-menu li:nth-child(n+6) { animation-delay: .15s; }

	/* Working Groups: two-column panel */
	.primary-nav li.wg-mega > .sub-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; width: 560px; }
	.primary-nav li.wg-mega > .sub-menu::after { left: 40px; }
}
@keyframes aikrnItemIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Search button and overlay */
.search-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.search-toggle:hover { background: var(--navy); color: var(--white); transform: rotate(-8deg); }
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11,21,48,.92); backdrop-filter: blur(6px); display: grid; place-items: start center; padding-top: 18vh; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay .search-form { width: min(92vw, 680px); max-width: none; transform: translateY(-10px); transition: transform .3s; }
.search-overlay.open .search-form { transform: none; }
.search-overlay input[type="search"] { font-size: 1.25rem; padding: 18px 24px; border: 0; }
.search-overlay .close-search { position: absolute; top: 24px; right: 28px; background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.search-overlay p { color: #c3cbe0; text-align: center; margin-top: 14px; font-size: .9rem; }
@media (max-width: 1180px) { .header-cta { display: flex; margin-left: 0; } .header-cta .btn { display: none; } .menu-toggle { margin-left: auto; } }

/* Join button sheen */
.header-cta .btn-primary { position: relative; overflow: hidden; }
.header-cta .btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); }
.header-cta .btn-primary:hover::after { animation: aikrnSheen .8s ease; }
@keyframes aikrnSheen { to { left: 130%; } }

/* Hero: slow zoom, woven pattern, glow */
.hero-media img { transform-origin: 60% 40%; }
.hero-pattern { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .18;
	background-image:
		radial-gradient(circle at 1px 1px, rgba(241,217,160,.9) 1.2px, transparent 1.6px),
		linear-gradient(45deg, transparent 47%, rgba(241,217,160,.35) 48%, rgba(241,217,160,.35) 52%, transparent 53%),
		linear-gradient(-45deg, transparent 47%, rgba(179,36,43,.35) 48%, rgba(179,36,43,.35) 52%, transparent 53%);
	background-size: 26px 26px, 52px 52px, 52px 52px;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 45%, transparent 75%);
	mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 45%, transparent 75%);
}
.hero-glow { position: absolute; z-index: 1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero-glow.g1 { width: 420px; height: 420px; left: -120px; top: -140px; background: rgba(179,36,43,.55); }
.hero-glow.g2 { width: 360px; height: 360px; left: 30%; bottom: -200px; background: rgba(201,150,43,.45); }
.hero .wrap { z-index: 2; }
.hero::after { z-index: 0; }
.hero-media { z-index: 0; }

/* Stats: count-up and accent bar */
.stat .num { font-variant-numeric: tabular-nums; }
.stat { position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 20px; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width 1.2s ease .2s; }
.stats.in .stat::after { width: 44px; }

/* Floating shapes in cream sections */
.section-cream { position: relative; overflow: hidden; }
.section-cream > .wrap { position: relative; z-index: 1; }
.section-cream::before, .section-cream::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.section-cream::before { width: 280px; height: 280px; right: -90px; top: 40px; border: 38px solid rgba(201,150,43,.10); }
.section-cream::after { width: 180px; height: 180px; left: -60px; bottom: 30px; background: radial-gradient(circle, rgba(179,36,43,.08), transparent 70%); }

/* Page heroes: dotted pattern */
.page-hero { isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
	background-image: radial-gradient(circle at 1px 1px, rgba(241,217,160,.9) 1.2px, transparent 1.6px); background-size: 24px 24px;
	-webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%); mask-image: linear-gradient(90deg, transparent 20%, #000 100%); }

/* Section headings: accent rule draws in */
.section-head h2::after { content: ""; display: block; width: 0; height: 3px; margin-top: 14px; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 3px; transition: width .9s ease .15s; }
.section-head.in h2::after { width: 64px; }
.section-navy .section-head h2::after { background: linear-gradient(90deg, var(--gold), #f1d9a0); }

@media (prefers-reduced-motion: no-preference) {
	.hero-media img { animation: aikrnKenBurns 22s ease-in-out infinite alternate; }
	.hero-pattern { animation: aikrnDrift 40s linear infinite; }
	.hero-glow.g1 { animation: aikrnFloat 14s ease-in-out infinite alternate; }
	.hero-glow.g2 { animation: aikrnFloat 18s ease-in-out infinite alternate-reverse; }
	.hero .hero-kicker, .hero h1, .hero p.lead, .hero .hero-actions, .hero .hero-note { animation: aikrnRise .9s cubic-bezier(.2,.7,.2,1) both; }
	.hero h1 { animation-delay: .12s; }
	.hero p.lead { animation-delay: .26s; }
	.hero .hero-actions { animation-delay: .4s; }
	.hero .hero-note { animation-delay: .55s; }
	.section-cream::before { animation: aikrnSpin 60s linear infinite; }
	.section-cream::after { animation: aikrnFloat 16s ease-in-out infinite alternate; }
	.page-hero::before { animation: aikrnDots 60s linear infinite; }
	.wg-tile { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
	.wg-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(11,21,48,.25); }
	.opp { transition: transform .3s, background .3s, border-color .3s; }
	.opp:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); border-color: rgba(241,217,160,.4); }
	.opp .ico { transition: transform .4s; }
	.opp:hover .ico { transform: rotate(-8deg) scale(1.08); }
}
@keyframes aikrnKenBurns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
@keyframes aikrnDrift { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 260px 130px, 520px 0, -520px 0; } }
@keyframes aikrnDots { from { background-position: 0 0; } to { background-position: 240px 120px; } }
@keyframes aikrnFloat { from { transform: translate(0, 0); } to { transform: translate(40px, 30px); } }
@keyframes aikrnSpin { to { transform: rotate(360deg); } }
@keyframes aikrnRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Text links: underline on hover, no arrows */
.link-arrow::after { content: none; }
.link-arrow { text-decoration: none; border-bottom: 2px solid rgba(179,36,43,.25); padding-bottom: 1px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--red); }

/* Keep top-level menu labels on one line */
@media (min-width: 1181px) {
	.primary-nav > ul > li > a { white-space: nowrap; }
}
@media (min-width: 1181px) and (max-width: 1440px) {
	.site-header .wrap { gap: 14px; }
	.primary-nav > ul > li > a { padding: 10px 8px; font-size: .9rem; }
	.primary-nav > ul > li > a::before { left: 8px; right: 8px; }
	.brand img { height: 50px; }
}

/* ---------- v1.2 Converted pages (former Elementor layouts) ---------- */
.entry-content .lead { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); line-height: 1.5; }
.aikrn-cols { display: grid; gap: 34px; margin: 1.8em 0; align-items: start; }
.aikrn-cols-2 { grid-template-columns: repeat(2, 1fr); }
.aikrn-cols-3 { grid-template-columns: repeat(3, 1fr); }
.aikrn-cols-4 { grid-template-columns: repeat(4, 1fr); }
.aikrn-cols > div > :first-child { margin-top: 0; }
.aikrn-cols h3 { font-size: 1.25rem; }
@media (max-width: 900px) { .aikrn-cols-3, .aikrn-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .aikrn-cols-2, .aikrn-cols-3, .aikrn-cols-4 { grid-template-columns: 1fr; gap: 24px; } }
.aikrn-cards { gap: 20px; align-items: stretch; }
.aikrn-cards > div { display: flex; }
.aikrn-icard { flex: 1; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; transition: box-shadow .25s, transform .25s, border-color .25s; overflow: hidden; }
.aikrn-icard::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(.18); transform-origin: left; transition: transform .35s; }
.aikrn-icard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.aikrn-icard:hover::before { transform: scaleX(1); }
.aikrn-icard h3 { font-size: 1.05rem; margin: 0 0 .5em; }
.aikrn-icard p { margin: 0; color: var(--muted); font-size: .98rem; }
.aikrn-figure { margin: 1.4em 0; }
.aikrn-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.aikrn-promo .aikrn-figure { margin-top: 0; }
.aikrn-btnrow { margin: 1em 0 0; }
.aikrn-ilist { list-style: none; padding: 0 !important; margin: 0 0 1.6em; display: grid; gap: 12px; }
.aikrn-ilist li { margin: 0; padding: 14px 18px; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 6px; }
.aikrn-ilist a { font-weight: 600; text-decoration: none; }
.aikrn-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 1.4em 0; }
.aikrn-gallery a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; background: var(--cream); }
.aikrn-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform .4s; }
.aikrn-gallery a:hover img { transform: scale(1.06); }
.aikrn-video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow); margin-bottom: 14px; }
.aikrn-video video, .aikrn-video iframe, .aikrn-video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; border-radius: 0; }
.aikrn-yt { cursor: pointer; }
.aikrn-yt button { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%; background: rgba(179,36,43,.92); cursor: pointer; transition: transform .2s, background .2s; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.aikrn-yt button::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.aikrn-yt:hover button { transform: scale(1.08); background: var(--red); }
.aikrn-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,14,32,.92); display: none; align-items: center; justify-content: center; padding: 40px 70px; }
.aikrn-lightbox.open { display: flex; }
.aikrn-lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.aikrn-lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.aikrn-lightbox button:hover { background: rgba(255,255,255,.25); }
.aikrn-lightbox .lb-close { top: 18px; right: 18px; }
.aikrn-lightbox .lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.aikrn-lightbox .lb-next { right: 14px; top: 50%; margin-top: -24px; }
.aikrn-posts { margin: 1.4em 0; }
.aikrn-empty { padding: 30px; background: var(--cream); border-radius: var(--radius); text-align: center; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .aikrn-icard, .aikrn-icard::before, .aikrn-gallery img, .aikrn-yt button { transition: none; } }
.aikrn-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; margin: 1.4em 0; }
.aikrn-person { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: box-shadow .25s, transform .25s; }
.aikrn-person:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.aikrn-person img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; display: block; border-radius: 0; background: var(--cream); }
.aikrn-person figcaption { padding: 14px 12px 16px; }
.aikrn-person strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1rem; }
.aikrn-person span { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
