/* ============================================================
   NEIF — Nigeria Energy Investment Forum
   Design system & component styles
   ============================================================ */

:root {
    --green-deep:   #006341;
    --green:        #008f4c;
    --green-bright: #16a34a;
    --green-glow:   #a3e635;
    --green-tint:   #e8f5ee;
    --green-tint-2: #d4ead9;
    --ink:          #0a1f17;
    --ink-2:        #1f2d27;
    --muted:        #5a6b65;
    --muted-2:      #8a948f;
    --line:         #d8e0db;
    --line-2:       #ebf0ec;
    --white:        #ffffff;
    --bg:           #fbfcfb;
    --red:          #dc2626;
    --gold:         #c9a23a;

    --radius:       16px;
    --radius-sm:    10px;
    --radius-lg:    24px;
    --shadow-sm:    0 1px 2px rgba(10,31,23,0.05), 0 2px 8px rgba(10,31,23,0.04);
    --shadow:       0 8px 24px rgba(10,31,23,0.08);
    --shadow-lg:    0 24px 64px rgba(10,31,23,0.16);

    --font-body:    'General Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'General Sans', system-ui, sans-serif;

    --container:    1240px;
    --transition:   200ms cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--green-deep); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-bright); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }

p { margin: 0 0 16px; color: var(--ink-2); }

.neif-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ── */
.neif-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-body);
    text-decoration: none;
    line-height: 1;
}
.neif-btn--primary { background: var(--green-deep); color: white; }
.neif-btn--primary:hover { background: var(--green); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 99, 65, 0.3); color: white; }
.neif-btn--accent { background: var(--green-glow); color: var(--ink); }
.neif-btn--accent:hover { background: #b9f23d; box-shadow: 0 8px 20px rgba(163, 230, 53, 0.4); color: var(--ink); }
.neif-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.neif-btn--ghost:hover { border-color: var(--green-deep); color: var(--green-deep); }
.neif-btn--lg { padding: 16px 28px; font-size: 15px; }
.neif-btn--block { width: 100%; justify-content: center; }

/* ── Broadcast bar ── */
.neif-broadcast {
    background: linear-gradient(90deg, var(--green-deep), var(--green));
    color: white;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 50;
}
.neif-broadcast--warning { background: linear-gradient(90deg, #b45309, #d97706); }
.neif-broadcast--alert { background: linear-gradient(90deg, #991b1b, #dc2626); }
.neif-broadcast--success { background: linear-gradient(90deg, #166534, #16a34a); }
.neif-broadcast__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.neif-broadcast__pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green-glow);
    box-shadow: 0 0 0 0 var(--green-glow);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(163, 230, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}
.neif-broadcast__sep { opacity: 0.5; }
.neif-broadcast__cta { color: white; font-weight: 700; margin-left: auto; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; font-size: 12px; }
.neif-broadcast__cta:hover { background: white; color: var(--green-deep); }
.neif-broadcast__close { background: transparent; border: none; color: white; font-size: 22px; cursor: pointer; padding: 0 6px; opacity: 0.7; }
.neif-broadcast__close:hover { opacity: 1; }

/* ── Navigation ── */
.neif-nav {
    background: white;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
    transition: var(--transition);
}
.neif-nav.is-scrolled {
    box-shadow: var(--shadow);
}
.neif-nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.neif-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.neif-brand__seal { width: 54px; height: 54px; }
.neif-brand__seal--lg { width: 62px; height: 62px; }
.neif-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.neif-brand__text strong {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--green-deep);
    letter-spacing: -0.01em;
    font-weight: 800;
}
.neif-brand__text span { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }

.neif-nav__main {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.neif-nav__link {
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--ink-2);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}
.neif-nav__link:hover { background: var(--green-tint); color: var(--green-deep); }

.neif-nav__actions { display: flex; gap: 8px; align-items: center; }

.neif-mobile-toggle {
    display: none;
    background: transparent; border: 1px solid var(--line); border-radius: 10px;
    width: 44px; height: 44px; cursor: pointer; color: var(--ink); font-size: 18px;
    align-items: center; justify-content: center;
}
.neif-mobile-toggle:hover { background: var(--green-tint); border-color: var(--green-deep); color: var(--green-deep); }

@media (max-width: 1080px) {
    .neif-nav__main { display: none; }
    .neif-mobile-toggle { display: inline-flex; }
}

/* ── Programs dropdown ── */
.neif-nav__item { position: relative; }
.neif-nav__link--button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.neif-nav__link--button .chev { transition: transform var(--transition); }
.neif-nav__item:hover .neif-nav__link--button .chev { transform: rotate(180deg); }
.neif-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 360px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 60;
}
.neif-nav__item:hover .neif-dropdown,
.neif-nav__item:focus-within .neif-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.neif-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--ink);
    transition: var(--transition);
}
.neif-dropdown a:hover { background: var(--green-tint); }
.neif-dropdown .dd-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--green-tint);
    color: var(--green-deep);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.neif-dropdown .dd-text { display: flex; flex-direction: column; line-height: 1.3; }
.neif-dropdown .dd-text strong { font-size: 14px; }
.neif-dropdown .dd-text small { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Wide two-column dropdown — used for the consolidated Programs menu */
.neif-dropdown.neif-dropdown--wide {
    min-width: 620px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 12px;
}
.neif-dropdown__col { display: flex; flex-direction: column; }
.neif-dropdown__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
    padding: 8px 14px 6px;
}
.neif-dropdown--wide a { padding: 10px 12px; }
.neif-dropdown--wide .dd-icon { width: 34px; height: 34px; font-size: 14px; }
.neif-dropdown--wide .dd-text strong { font-size: 13px; }
.neif-dropdown--wide .dd-text small { font-size: 11px; }
@media (max-width: 1100px) {
    .neif-dropdown.neif-dropdown--wide { min-width: 520px; }
}
.neif-nav__link.is-active { background: var(--green-tint); color: var(--green-deep); }

/* ── Bolder hero CTA — pulsing ring ── */
.neif-cta-pulse { position: relative; font-weight: 800; padding: 14px 26px; box-shadow: 0 8px 22px rgba(163,230,53,0.35); }
.neif-cta-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid var(--green-glow);
    animation: ringPulse 2.4s infinite;
    pointer-events: none;
}
@keyframes ringPulse {
    0%   { transform: scale(1);    opacity: 0.7; }
    70%  { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

/* ── Mobile slide-in drawer (from the right) ── */
.neif-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 31, 23, 0.5);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.neif-drawer-overlay.is-open { opacity: 1; visibility: visible; }
.neif-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(88vw, 380px);
    background: white;
    z-index: 100;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.2,.7,.3,1);
    box-shadow: -24px 0 64px rgba(10,31,23,0.2);
    display: flex;
    flex-direction: column;
}
.neif-drawer.is-open { transform: translateX(0); }
.neif-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.neif-drawer__close {
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    color: var(--ink);
    font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center;
}
.neif-drawer__close:hover { background: var(--green-tint); border-color: var(--green-deep); color: var(--green-deep); }
.neif-drawer__nav {
    flex: 1;
    padding: 16px 16px 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.neif-drawer__nav > a {
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
}
.neif-drawer__nav > a:hover, .neif-drawer__nav > a.is-active { background: var(--green-tint); color: var(--green-deep); }
.neif-drawer__group {
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.neif-drawer__group-label {
    padding: 6px 16px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 700;
}
.neif-drawer__group a {
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
}
.neif-drawer__group a:hover { background: var(--green-tint); color: var(--green-deep); }
.neif-drawer__cta { padding: 16px 24px 24px; border-top: 1px solid var(--line); }

/* ── Section dividers (clear separation between adjacent sections) ── */
.neif-section + .neif-section { border-top: 1px solid var(--line-2); }
.neif-section--alt + .neif-section,
.neif-section + .neif-section--alt,
.neif-section--dark + .neif-section,
.neif-section + .neif-section--dark { border-top: none; }
.neif-section { padding: 96px 0; }
@media (max-width: 768px) { .neif-section { padding: 64px 0; } }

/* ── Flash messages ── */
.flash {
    max-width: var(--container);
    margin: 16px auto;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border-left: 4px solid;
}
.flash-success { background: #ecfdf5; color: #065f46; border-color: #10b981; }
.flash-error { background: #fef2f2; color: #991b1b; border-color: #ef4444; }
.flash-info { background: #eff6ff; color: #1e40af; border-color: #3b82f6; }

/* ── Hero ── */
.neif-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0,99,65,0.92) 0%, rgba(0,143,76,0.85) 100%);
    color: white;
    padding: 64px 0 80px;
    overflow: hidden;
    isolation: isolate;
}
/* Background image layers — one per slide; crossfade with the slider */
.neif-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}
.neif-hero__bg-layer {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.4s ease, transform 12s ease-out;
}
.neif-hero__bg-layer.is-active {
    opacity: 1;
    transform: scale(1.0);
}
/* Lightened tint — lets the event images breathe through, with extra dimming where text sits */
.neif-hero::before {
    content: '';
    position: absolute; inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0,30,20,0.72) 0%, rgba(0,30,20,0.42) 55%, rgba(0,30,20,0.18) 100%),
        linear-gradient(135deg, rgba(0,99,65,0.30) 0%, rgba(0,40,26,0.20) 100%);
    pointer-events: none;
}
.neif-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.neif-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
.neif-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}
.neif-hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-glow); animation: pulse 2s infinite; }
.neif-hero h1 {
    color: white;
    font-size: clamp(28px, 4.2vw, 54px);
    font-weight: 800;
    margin: 0 0 24px;
    letter-spacing: -0.03em;
}
.neif-hero h1 .accent {
    background: linear-gradient(120deg, var(--green-glow), #d9f99d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.neif-hero__lead {
    font-size: clamp(16px, 1.6vw, 19px);
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 540px;
}
.neif-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.neif-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 32px;
    max-width: 560px;
}
.neif-hero__stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--green-glow);
}
.neif-hero__stat span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; }

/* Hero event slider — multiple slides cycle through */
.neif-hero__slider {
    position: relative;
    aspect-ratio: 4/5;
    z-index: 1;
}
.neif-hero__slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.neif-hero__visual {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px) scale(0.98);
    transition: opacity .55s ease, transform .55s ease, visibility .55s;
}
.neif-hero__visual.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}
.neif-hero__visual-meta {
    margin-top: 12px;
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.78);
}
.neif-hero__visual-meta i { color: var(--green-glow); margin-right: 6px; }
.neif-hero__visual-foot { position: relative; z-index: 2; }

/* Arrows */
.neif-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    font-size: 14px;
}
.neif-hero__arrow:hover { background: var(--green-glow); color: var(--ink); border-color: var(--green-glow); }
.neif-hero__arrow--prev { left: -12px; }
.neif-hero__arrow--next { right: -12px; }

/* Dots */
.neif-hero__slider-dots {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4;
}
.neif-hero__slider-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    padding: 0;
    cursor: pointer;
    transition: width var(--transition), background var(--transition);
}
.neif-hero__slider-dots button.is-active {
    background: var(--green-glow);
    width: 24px;
    border-radius: 999px;
}

@media (max-width: 880px) {
    .neif-hero__slider { aspect-ratio: 1.2/1; }
    .neif-hero__arrow { width: 38px; height: 38px; font-size: 13px; }
    .neif-hero__arrow--prev { left: 8px; }
    .neif-hero__arrow--next { right: 8px; }
}
.neif-hero__visual::before {
    content: 'NEIF';
    position: absolute;
    top: -40px; right: -20px;
    font-family: var(--font-display);
    font-size: 280px;
    font-weight: 800;
    color: rgba(255,255,255,0.04);
    line-height: 0.9;
    pointer-events: none;
}
.neif-hero__visual-tag {
    align-self: flex-start;
    padding: 6px 12px;
    background: var(--green-glow);
    color: var(--ink);
    font-weight: 800;
    font-size: 11px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.neif-hero__visual h2 {
    color: white;
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}
.neif-hero__visual p { color: rgba(255,255,255,0.78); margin-bottom: 24px; position: relative; z-index: 2; }

.neif-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
    z-index: 2;
}
.neif-countdown__cell {
    text-align: center;
    padding: 14px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.12);
}
.neif-countdown__cell strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: white;
}
.neif-countdown__cell span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; }

@media (max-width: 880px) {
    .neif-hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .neif-hero { padding: 44px 0 56px; }
    .neif-hero__visual { aspect-ratio: 1.4/1; }
}

@media (max-width: 640px) {
    .neif-hero__inner { padding: 0 16px; gap: 36px; }
    .neif-hero__cta { gap: 8px; }
    .neif-hero__cta .neif-btn { width: 100%; }
    .neif-hero__stats { gap: 16px; padding-top: 24px; }

    /* Uniform dim across the whole hero on mobile so white text reads on any photo */
    .neif-hero::before {
        background:
            linear-gradient(180deg, rgba(0,30,20,0.55) 0%, rgba(0,30,20,0.75) 100%),
            linear-gradient(135deg, rgba(0,99,65,0.30) 0%, rgba(0,40,26,0.20) 100%);
    }

    /* Switch the whole slider to natural block flow on mobile.
       The desktop absolute-positioned cross-fade fights short viewports — text gets clipped or hides. */
    .neif-hero__slider { aspect-ratio: auto; min-height: 0; }
    .neif-hero__slider-track { height: auto; }
    .neif-hero__visual {
        position: relative;
        inset: auto;
        aspect-ratio: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        padding: 22px 20px 24px;
        background: linear-gradient(180deg, rgba(0,30,20,0.85) 0%, rgba(0,20,14,0.92) 100%);
        border: 1px solid rgba(255,255,255,0.12);
        backdrop-filter: none;
    }
    .neif-hero__visual:not(.is-active) { display: none; }
    .neif-hero__visual::before { display: none; } /* drop the giant "NEIF" watermark */
    .neif-hero__visual h2 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
    .neif-hero__visual p { font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
    .neif-hero__visual-meta { font-size: 12px; gap: 12px; margin-bottom: 18px; }

    /* Hide the countdown grid — it's clutter on small screens, the date is in the meta line */
    .neif-countdown { display: none; }

    /* Arrows: smaller, tucked inside */
    .neif-hero__arrow { width: 32px; height: 32px; font-size: 12px; top: 30%; }
    .neif-hero__arrow--prev { left: 6px; }
    .neif-hero__arrow--next { right: 6px; }
    .neif-hero__slider-dots { position: static; transform: none; margin-top: 16px; justify-content: center; }
}

/* ── Sections ── */
.neif-section { padding: 96px 0; }
.neif-section--tight { padding: 64px 0; }
.neif-section--alt { background: var(--green-tint); }
.neif-section--dark { background: var(--ink); color: white; }
.neif-section--dark h1, .neif-section--dark h2, .neif-section--dark h3 { color: white; }
.neif-section--dark p { color: rgba(255,255,255,0.7); }

.neif-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.neif-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}
.neif-eyebrow::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--green-deep);
}
.neif-section-head h2 { margin: 0; max-width: 600px; }
.neif-section-head__cta { color: var(--green-deep); font-weight: 600; }

/* ── Card grid (events / news) ── */
.neif-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.neif-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .neif-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .neif-card-grid, .neif-card-grid--2 { grid-template-columns: 1fr; } }

.neif-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.neif-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--green-tint-2);
}
.neif-card__media {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    position: relative;
    overflow: hidden;
}
.neif-card__media img { width: 100%; height: 100%; object-fit: cover; }
.neif-card__media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}
.neif-card__media--placeholder {
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 56px;
    letter-spacing: -0.04em;
}
.neif-card__media--placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}
.neif-card__tag {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
    padding: 5px 12px;
    background: white;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--green-deep);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.neif-card__date {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 2;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    text-align: center;
    line-height: 1.1;
}
.neif-card__date strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--green-deep); }
.neif-card__date span { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.neif-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.neif-card__meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.neif-card__meta i { color: var(--green); margin-right: 4px; }
.neif-card__title { font-size: 19px; line-height: 1.3; margin: 0 0 12px; font-weight: 700; }
.neif-card__title a { color: var(--ink); }
.neif-card__title a:hover { color: var(--green-deep); }
.neif-card__excerpt { font-size: 14px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.neif-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-2); }
.neif-card__foot a { font-weight: 700; font-size: 13px; }

/* ── Featured event hero card (homepage) ── */
.neif-feature-event {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.neif-feature-event__media {
    background: linear-gradient(135deg, var(--green-deep), #003d28);
    min-height: 460px;
    position: relative;
    overflow: hidden;
}
.neif-feature-event__media img { width: 100%; height: 100%; object-fit: cover; }
.neif-feature-event__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,99,65,0.85) 0%, rgba(0,40,26,0.4) 60%),
        linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.neif-feature-event__overlay h3 { color: white; font-size: clamp(28px, 3vw, 42px); margin-bottom: 12px; }
.neif-feature-event__overlay p { color: rgba(255,255,255,0.92); font-size: 15px; margin: 0; max-width: 540px; line-height: 1.55; }
.neif-feature-event__overlay .neif-pill { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); color: white; }
.neif-feature-event__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.neif-feature-event__body h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 16px; }
.neif-feature-event__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
    margin: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.neif-feature-event__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.neif-feature-event__detail i {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--green-tint);
    color: var(--green-deep);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.neif-feature-event__detail strong { display: block; }
.neif-feature-event__detail span { color: var(--muted); font-size: 13px; }

@media (max-width: 880px) {
    .neif-feature-event { grid-template-columns: 1fr; }
    .neif-feature-event__media { min-height: 280px; }
    .neif-feature-event__body { padding: 32px; }
    .neif-feature-event__overlay { padding: 28px; }
}

.neif-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--green-tint);
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--green-tint-2);
}

/* ── Partners strip ── */
.neif-partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    align-items: center;
    padding: 40px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.neif-partner {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.neif-partner:hover { background: var(--green-tint); }
.neif-partner img { height: 56px; width: auto; margin: 0 auto 8px; object-fit: contain; opacity: 0.85; transition: var(--transition); filter: brightness(1.05); }
.neif-partner:hover img { opacity: 1; transform: scale(1.05); }
/* Dark-section partner strip — give logos a soft chip behind them so coloured marks read */
.neif-section--dark .neif-partner { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; }
.neif-section--dark .neif-partner:hover { background: rgba(255,255,255,0.08); }
/* White-knock-out for partner logos on dark surface — keeps shape, drops bg */
.neif-section--dark .neif-partner img { filter: brightness(0) invert(1); opacity: 0.85; }
.neif-section--dark .neif-partner:hover img { opacity: 1; }
.neif-section--dark .neif-partner span { color: rgba(255,255,255,0.75); }
.neif-partner span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--muted);
}

/* ── Stats band ── */
.neif-stats-band {
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    color: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.neif-stats-band::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(163, 230, 53, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08), transparent 50%);
    pointer-events: none;
}
.neif-stat-cell { position: relative; z-index: 2; }
.neif-stat-cell strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: white;
}
.neif-stat-cell span { font-size: 13px; opacity: 0.85; }
@media (max-width: 760px) {
    .neif-stats-band { grid-template-columns: repeat(2, 1fr); padding: 32px; }
}

/* ── Article body ── */
.neif-article {
    max-width: 820px;
    margin: 0 auto;
}
.neif-article__hero {
    aspect-ratio: 21/9;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--green-deep), var(--green));
}
.neif-article__hero img { width: 100%; height: 100%; object-fit: cover; }
.neif-article__meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 16px;
}
.neif-article__meta i { color: var(--green); margin-right: 4px; }
.neif-article h1 { margin-bottom: 16px; }
.neif-article__lead {
    font-size: 19px;
    color: var(--ink-2);
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--green-tint);
    border-radius: var(--radius-sm);
}
.neif-article__body { font-size: 16.5px; line-height: 1.8; }
.neif-article__body p { color: var(--ink-2); margin-bottom: 20px; }
.neif-article__body strong { color: var(--ink); }
.neif-article__body h2, .neif-article__body h3 { margin-top: 40px; }
.neif-article__body img { border-radius: var(--radius-sm); margin: 24px 0; }

/* ── Forms ── */
.neif-form { display: flex; flex-direction: column; gap: 16px; }
.neif-form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .neif-form__row { grid-template-columns: 1fr; } }
.neif-form__group { display: flex; flex-direction: column; gap: 6px; }
.neif-form__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.neif-form__label .req { color: var(--red); }
.neif-form__input,
.neif-form__select,
.neif-form__textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--ink);
    background: white;
    transition: var(--transition);
}
.neif-form__input:focus,
.neif-form__select:focus,
.neif-form__textarea:focus {
    outline: none;
    border-color: var(--green-deep);
    box-shadow: 0 0 0 4px rgba(0, 99, 65, 0.08);
}
.neif-form__textarea { min-height: 120px; resize: vertical; }
.neif-form__hint { font-size: 12px; color: var(--muted); }

/* ── Registration modal-like card ── */
.neif-register-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
@media (max-width: 640px) { .neif-register-card { padding: 28px 20px; }}

/* ── Event detail two-column layout (collapses on mobile) ── */
.neif-event-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}
.neif-event-grid__aside { position: sticky; top: 96px; }
@media (max-width: 880px) {
    .neif-event-grid { grid-template-columns: 1fr; gap: 32px; }
    .neif-event-grid__aside { position: static; top: auto; }
}

/* ── Confirmation ── */
.neif-confirm {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    box-shadow: var(--shadow-lg);
}
.neif-confirm__icon {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green-deep);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 48px;
    margin-bottom: 24px;
}
.neif-confirm__ref {
    display: inline-block;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--green-deep);
    background: var(--green-tint);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    letter-spacing: 0.05em;
}

/* ── Login ── */
.neif-login {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, var(--green-tint) 0%, white 60%);
}
.neif-login__card {
    width: 100%;
    max-width: 440px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}
.neif-login__head { text-align: center; margin-bottom: 32px; }
.neif-login__head h1 { font-size: 28px; margin-bottom: 6px; }
.neif-login__head p { color: var(--muted); margin: 0; }

/* ── Footer ── */
.neif-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    margin-top: 96px;
}
.neif-footer__top {
    max-width: var(--container);
    margin: 0 auto;
    padding: 56px 24px 36px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}
.neif-footer__col--brand { display: flex; flex-direction: column; }
.neif-footer .neif-brand__text strong { color: white; }
.neif-footer .neif-brand__text span { color: rgba(255,255,255,0.5); }
.neif-footer p, .neif-footer__about { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.7; margin: 16px 0 20px; }
.neif-footer__partners { display: flex; flex-wrap: wrap; gap: 6px; }
.neif-footer__partners .neif-pill {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.12);
    font-size: 11px;
}
.neif-footer__col h6 {
    color: white;
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
    font-weight: 700;
}
.neif-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.neif-footer__col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.neif-footer__col a:hover { color: var(--green-glow); }
.neif-footer__col i { color: var(--green-glow); width: 16px; }
.neif-footer__socials { display: flex; gap: 8px; margin-top: 20px; }
.neif-footer__socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
}
.neif-footer__socials a:hover { background: var(--green-glow); color: var(--ink); }
.neif-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}
.neif-footer__legal { display: flex; gap: 16px; }
.neif-footer__legal a { color: rgba(255,255,255,0.5); }
.neif-footer__legal a:hover { color: var(--green-glow); }
.neif-footer__credit {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}
.neif-footer__credit a { color: var(--green-glow); }
.neif-footer__credit a:hover { color: white; }
@media (max-width: 880px) {
    .neif-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding: 40px 24px 28px;
    }
    .neif-footer__col--brand { grid-column: 1 / -1; }
    .neif-footer__about { margin: 12px 0 14px; }
}
@media (max-width: 480px) {
    .neif-footer__top { gap: 24px 16px; padding: 32px 20px 24px; }
    .neif-footer__col h6 { margin-bottom: 12px; font-size: 12px; }
    .neif-footer__col ul { gap: 8px; }
    .neif-footer__col a, .neif-footer__col li { font-size: 13px; }
    .neif-footer__about { font-size: 13px; line-height: 1.6; }
}
.neif-footer__bottom { padding: 16px 24px; font-size: 12.5px; }
@media (max-width: 600px) {
    .neif-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 20px; }
}

/* ── Page header (sub pages) — slim, compact banner ── */
.neif-page-head {
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    color: white;
    padding: 36px 0 32px;
    position: relative;
    overflow: hidden;
}
.neif-page-head::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.neif-page-head__inner { position: relative; z-index: 2; }
.neif-page-head h1 {
    color: white;
    margin: 0 0 6px;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 700;
    line-height: 1.15;
}
.neif-page-head p {
    color: rgba(255,255,255,0.82);
    max-width: 720px;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 720px) {
    .neif-page-head { padding: 24px 0 22px; }
}

.neif-breadcrumb {
    display: flex; gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.neif-breadcrumb a { color: rgba(255,255,255,0.85); }
.neif-breadcrumb a:hover { color: var(--green-glow); }
.neif-breadcrumb__sep { opacity: 0.5; }

/* ── Filters / chips ── */
.neif-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.neif-chip {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}
.neif-chip:hover { border-color: var(--green-deep); }
.neif-chip.is-active { background: var(--green-deep); color: white; border-color: var(--green-deep); }

/* ── Empty state ── */
.neif-empty {
    text-align: center;
    padding: 64px 32px;
    background: white;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.neif-empty i { font-size: 48px; color: var(--muted-2); margin-bottom: 16px; }
.neif-empty h3 { color: var(--muted); }

/* ── Leader card (About — President) ── */
/* Two-column row that stretches both columns to the same height */
.neif-leader-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: stretch; /* both children share the same row height */
}
@media (max-width: 880px) {
    .neif-leader-row { grid-template-columns: 1fr; }
}
.neif-leader-card {
    position: relative;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;          /* fill the row — row height set by the text column */
    margin: 0;
    display: flex;
    flex-direction: column;
}
/* Wrapper that shrinks/grows to fill remaining card space — img is absolutely positioned inside so its intrinsic height does NOT push the row taller. */
.neif-leader-card__photo {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-deep), var(--green));
}
.neif-leader-card__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}
.neif-leader-card__photo-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4); font-size: 96px;
}
.neif-leader-card__caption {
    flex-shrink: 0;
    padding: 24px;
    background: white;
    color: var(--ink);
    display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.neif-leader-card__caption .neif-pill {
    background: var(--green-tint);
    color: var(--green-deep);
    border-color: var(--green-tint-2);
    font-size: 11px;
}
.neif-leader-card__caption strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
@media (max-width: 880px) {
    .neif-leader-card { min-height: 460px; }
}

/* ── Marquee (homepage partners ticker) ── */
.neif-marquee {
    background: white;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: hidden;
    position: relative;
}
.neif-marquee__label {
    flex-shrink: 0;
    padding-left: 32px;
    padding-right: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-deep);
    border-right: 1px solid var(--line);
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.neif-marquee__label i { color: var(--green); }
.neif-marquee__viewport {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 5%, black 95%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, black 5%, black 95%, transparent 100%);
}
.neif-marquee__track {
    display: flex;
    gap: 64px;
    align-items: center;
    width: max-content;
    animation: neifMarqueeScroll 80s linear infinite;
}
.neif-marquee:hover .neif-marquee__track { animation-play-state: paused; }
/* Uniform tile — visual on top, caption beneath. Identical width for every item. */
.neif-marquee__item {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 200px;
    height: 140px;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.85;
}
.neif-marquee__item:hover { opacity: 1; }

/* Visual area — fixed slot for the logo or badge */
.neif-marquee__visual {
    flex: 0 0 90px;
    height: 90px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.neif-marquee__item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(60%);
    transition: var(--transition);
}
.neif-marquee__item:hover img { filter: grayscale(0); }

/* Caption — same style on logo and text tiles */
.neif-marquee__caption {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Initials badge for tiles missing a logo */
.neif-marquee__item--text .neif-marquee__visual {
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,99,65,0.2);
    width: 90px;
    flex-basis: 90px;
}
.neif-marquee__badge {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--green-glow);
    line-height: 1;
}

@keyframes neifMarqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .neif-marquee { padding: 24px 0; }
    .neif-marquee__label { padding-left: 16px; padding-right: 12px; font-size: 10px; min-height: 100px; }
    .neif-marquee__track { gap: 28px; animation-duration: 50s; }
    .neif-marquee__item { width: 140px; height: 110px; gap: 8px; }
    .neif-marquee__visual { flex: 0 0 64px; height: 64px; }
    .neif-marquee__item--text .neif-marquee__visual { width: 64px; flex-basis: 64px; border-radius: 12px; }
    .neif-marquee__badge { font-size: 22px; }
    .neif-marquee__caption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .neif-marquee__track { animation: none; }
}

/* ── Programme of Events (table) ── */
.neif-program-wrap {
    max-width: 1080px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.neif-program-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14.5px;
}
.neif-program-table thead th {
    background: var(--ink);
    color: white;
    padding: 16px 24px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.neif-program-table tbody td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line-2);
    vertical-align: top;
    color: var(--ink-2);
}
.neif-program-table tbody tr:last-child td { border-bottom: none; }
.neif-program-table tbody tr:nth-child(even) td { background: #fafbfa; }
.neif-program-table tbody tr:hover td { background: var(--green-tint); }

.neif-program-table__time {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.neif-program-table__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.neif-program-table__details {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}
.neif-program-table__speaker {
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 500;
}

@media (max-width: 720px) {
    .neif-program-table thead { display: none; }
    .neif-program-table tbody td { display: block; padding: 8px 18px; border-bottom: none; }
    .neif-program-table tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
    .neif-program-table tbody tr:nth-child(even) td { background: transparent; }
    .neif-program-table__time { padding-top: 14px; }
    .neif-program-table__speaker:before { content: 'Speaker: '; font-weight: 700; color: var(--ink); }
    .neif-program-table__speaker { padding-bottom: 14px; font-size: 12px; }
}

/* ── Why Attend value-prop grid ── */
.neif-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 980px) { .neif-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .neif-why-grid { grid-template-columns: 1fr; } }

.neif-why-card {
    position: relative;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px 28px;
    transition: var(--transition);
    overflow: hidden;
}
.neif-why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-tint-2); }

.neif-why-card__num {
    position: absolute;
    top: 24px; right: 28px;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--green-tint);
    line-height: 1;
    letter-spacing: -0.04em;
    transition: var(--transition);
}
.neif-why-card:hover .neif-why-card__num { color: var(--green-tint-2); }

.neif-why-card__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--green-deep);
    color: white;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.neif-why-card:hover .neif-why-card__icon {
    background: var(--green-bright);
    transform: scale(1.05);
}

.neif-why-card__title {
    font-size: 20px;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.neif-why-card__desc {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Special Guests of Honour (3 × 2 portrait grid) ── */
.neif-guests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 980px) { .neif-guests-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 560px) { .neif-guests-grid { grid-template-columns: 1fr; } }

.neif-guest-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}
.neif-guest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--green-tint-2);
}

.neif-guest-card__photo {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    overflow: hidden;
    position: relative;
}
.neif-guest-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    transition: transform .6s ease;
}
.neif-guest-card:hover .neif-guest-card__photo img { transform: scale(1.04); }

.neif-guest-card__placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.35);
    font-size: 84px;
}

/* "Guest of Honour" corner badge — red box on the President's photo */
.neif-guest-card__honour-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 8px 14px;
    background: var(--red);
    color: white;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.neif-guest-card__body {
    padding: 22px 24px 28px;
}
.neif-guest-card__role {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--red);                     /* matches the deck's red 'HIS EXCELLENCY' tag */
    margin-bottom: 8px;
}
.neif-guest-card__name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--ink);
}
.neif-guest-card__title {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
}

/* ── Keynote Speakers (4-up grid) ── */
.neif-keynote-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1080px) { .neif-keynote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .neif-keynote-grid { grid-template-columns: 1fr; } }

.neif-keynote-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}
.neif-keynote-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--green-tint-2);
}
.neif-keynote-card__photo {
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    overflow: hidden;
    position: relative;
}
.neif-keynote-card__photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform .6s ease;
}
.neif-keynote-card:hover .neif-keynote-card__photo img { transform: scale(1.04); }
.neif-keynote-card__placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.35);
    font-size: 64px;
}
.neif-keynote-card__tag {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    padding: 5px 12px;
    background: var(--green-glow);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.45);
}
.neif-keynote-card__body { padding: 22px 20px 26px; }
.neif-keynote-card__name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.neif-keynote-card__title {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

/* ── Secure-your-place CTA band ── */
.neif-cta-band {
    position: relative;
    background: linear-gradient(135deg, var(--green-deep) 0%, #003d28 100%);
    color: white;
    padding: 96px 24px;
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}
.neif-cta-band::before {
    content: '';
    position: absolute; inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(163, 230, 53, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}
.neif-cta-band::after {
    content: '';
    position: absolute; inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.neif-cta-band__inner {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}
.neif-cta-band__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green-glow);
    margin-bottom: 18px;
}
.neif-cta-band__eyebrow::before { content: ''; display: none; }
.neif-cta-band__eyebrow .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green-glow);
    animation: pulse 2s infinite;
}
.neif-cta-band__title {
    color: white;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
    line-height: 1.05;
}
.neif-cta-band__sub {
    color: rgba(255,255,255,0.82);
    font-size: clamp(16px, 1.6vw, 19px);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.55;
}
.neif-cta-band__actions {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.neif-cta-band__ghost {
    color: white;
    border-color: rgba(255,255,255,0.3);
}
.neif-cta-band__ghost:hover {
    color: white;
    border-color: white;
    background: rgba(255,255,255,0.08);
}
@media (max-width: 768px) {
    .neif-cta-band { padding: 72px 24px; }
}

/* ── Contact page ── */
.neif-contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 880px) {
    .neif-contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
.neif-contact-aside__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}
.neif-contact-aside h3 { margin-bottom: 0; }

@media (max-width: 880px) {
    /* Form padding tightens further */
    .neif-contact-form { padding: 24px 18px; }
    .neif-contact-form h3 { font-size: 22px; margin-bottom: 6px; }

    /* Aside reads like a clean info card on mobile */
    .neif-contact-aside {
        background: white;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 24px 18px;
    }
    .neif-contact-aside__list { gap: 16px; }

    /* Submit button goes full-width on mobile only */
    .neif-btn--block-mobile { width: 100%; justify-content: center; }
}

/* ── Mission 30 pillars (desktop grid → mobile carousel) ── */
.neif-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1080px) { .neif-pillars { grid-template-columns: repeat(2, 1fr); } }

.neif-pillar {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px 28px;
    transition: var(--transition);
}
.neif-pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-tint-2); }
.neif-pillar__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--green-tint);
    color: var(--green-deep);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.neif-pillar h3 {
    font-size: 22px;
    margin: 0 0 8px;
    line-height: 1.25;
}
.neif-pillar p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

/* Generic carousel-dots — hidden by default, shown on mobile in carousel sections */
.neif-carousel-dots { display: none; }
.neif-carousel-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--line);
    padding: 0;
    cursor: pointer;
    transition: width var(--transition), background var(--transition);
}
.neif-carousel-dots button.is-active {
    background: var(--green-deep);
    width: 24px;
    border-radius: 999px;
}

@media (max-width: 720px) {
    .neif-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    /* Mission 30 pillars carousel */
    .neif-pillars {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 24px;
        margin: 0 -24px;
        padding: 6px 24px 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .neif-pillars::-webkit-scrollbar { display: none; }
    .neif-pillar {
        flex: 0 0 calc(100% - 32px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* Why Attend carousel */
    .neif-why-grid {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 24px;
        margin: 0 -24px;
        padding: 6px 24px 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .neif-why-grid::-webkit-scrollbar { display: none; }
    .neif-why-card {
        flex: 0 0 calc(100% - 32px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* Keynote Speakers carousel */
    .neif-keynote-grid {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 24px;
        margin: 0 -24px;
        padding: 6px 24px 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .neif-keynote-grid::-webkit-scrollbar { display: none; }
    .neif-keynote-card {
        flex: 0 0 calc(80% - 16px);   /* 80% width — neighbour peeks more so users see there's another card */
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* Special Guests carousel */
    .neif-guests-grid {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 24px;
        margin: 0 -24px;
        padding: 6px 24px 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .neif-guests-grid::-webkit-scrollbar { display: none; }
    .neif-guest-card {
        flex: 0 0 calc(82% - 16px);   /* portrait cards — show ~18% peek of next card */
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* Upcoming Events carousel — opt-in via [data-carousel] so other card-grids stay grids */
    .neif-card-grid[data-carousel] {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 24px;
        margin: 0 -24px;
        padding: 6px 24px 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .neif-card-grid[data-carousel]::-webkit-scrollbar { display: none; }
    .neif-card-grid[data-carousel] > .neif-card {
        flex: 0 0 calc(86% - 16px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* ── Sponsorship tiers ── */
.neif-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}
@media (max-width: 1080px) { .neif-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .neif-tiers { grid-template-columns: 1fr; } }

.neif-tier {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.neif-tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-tint-2); }

@media (max-width: 580px) {
    .neif-tier { padding: 24px 22px 22px; }
    .neif-tier h3 { font-size: 22px; }
    .neif-tier__icon { width: 48px; height: 48px; font-size: 19px; margin-bottom: 12px; }
    .neif-tier__list { padding: 16px 0; gap: 8px; }
}

.neif-tier__head { margin-bottom: 20px; }
.neif-tier__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--green-tint);
    color: var(--green-deep);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.neif-tier h3 {
    font-size: 26px;
    margin: 0 0 6px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.neif-tier__tag {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.4;
}

.neif-tier__list {
    list-style: none;
    padding: 20px 0;
    margin: 0 0 20px;
    border-top: 1px solid var(--line-2);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.neif-tier__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.5;
}
.neif-tier__list i {
    color: var(--green);
    font-size: 11px;
    margin-top: 5px;
    flex-shrink: 0;
}

/* Tier icons — realistic metallic gradients, no edge stripes */
.neif-tier__icon {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 4px rgba(0,0,0,0.12);
}
.neif-tier--platinum .neif-tier__icon {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 50%, #94a3b8 100%);
    color: #475569;
}
.neif-tier--gold .neif-tier__icon {
    background: linear-gradient(135deg, #fef3c7 0%, #f5b800 50%, #b88600 100%);
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
.neif-tier--silver .neif-tier__icon {
    background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 50%, #64748b 100%);
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
.neif-tier--bronze .neif-tier__icon {
    background: linear-gradient(135deg, #f4a460 0%, #cd7f32 50%, #8b5a2b 100%);
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}

/* ── Additional Partners (sponsorship page) — minimal stacked rows ── */
.neif-partner-cats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 880px;
    margin: 0 auto;
}
.neif-partner-cat {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: var(--transition);
}
.neif-partner-cat:hover { box-shadow: var(--shadow-sm); border-color: var(--green-tint-2); }
.neif-partner-cat__text { flex: 1; min-width: 0; }
.neif-partner-cat__text h3 {
    font-size: 18px;
    margin: 0 0 2px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.neif-partner-cat__text p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-style: italic;
}

.neif-partner-cat__viewall {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--green-tint);
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.neif-partner-cat__viewall:hover { background: var(--green-deep); color: white; }
.neif-partner-cat__viewall.is-empty {
    background: transparent;
    color: var(--muted);
    font-style: italic;
    font-weight: 500;
    cursor: default;
}
.neif-partner-cat__viewall.is-empty:hover { background: transparent; color: var(--muted); }

@media (max-width: 600px) {
    .neif-partner-cat {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 22px;
        gap: 14px;
    }
}

/* ── Partners list page (/partners.php) ── */
.neif-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.neif-partners-grid__item {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.neif-partners-grid__item:hover { box-shadow: var(--shadow); border-color: var(--green-tint-2); transform: translateY(-2px); }
.neif-partners-grid__logo {
    width: 100%;
    aspect-ratio: 16/10;
    background: #fafbfa;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    padding: 14px;
    overflow: hidden;
}
.neif-partners-grid__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.neif-partners-grid__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--ink-2);
}
.neif-partners-grid__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

/* ── NEAP Ministers grid ── */
.neif-ministers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 720px) { .neif-ministers { grid-template-columns: 1fr; } }

.neif-minister {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 20px;
    transition: var(--transition);
}
.neif-minister:hover { box-shadow: var(--shadow); border-color: var(--green-tint-2); }
.neif-minister__photo {
    width: 132px;
    aspect-ratio: 4/5;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    position: relative;
    flex-shrink: 0;
}
.neif-minister__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.neif-minister__placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 36px;
}
.neif-minister__body { min-width: 0; }
.neif-minister__name { font-size: 17px; margin: 0 0 4px; line-height: 1.25; letter-spacing: -0.01em; }
.neif-minister__title { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.neif-minister__ministry {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-deep);
    background: var(--green-tint);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.neif-minister__role { margin: 0 0 12px; font-style: italic; font-size: 13px; color: var(--muted); }
.neif-minister__points summary {
    cursor: pointer;
    list-style: none;
    color: var(--green-deep);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.neif-minister__points summary::-webkit-details-marker { display: none; }
.neif-minister__points[open] summary i { transform: rotate(180deg); }
.neif-minister__points summary i { transition: transform var(--transition); font-size: 10px; }
.neif-minister__points ul {
    margin: 12px 0 0;
    padding: 0 0 0 18px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-2);
}
.neif-minister__points li { margin-bottom: 6px; }
@media (max-width: 540px) {
    .neif-minister { grid-template-columns: 1fr; }
    .neif-minister__photo { width: 100%; max-width: 200px; aspect-ratio: 4/5; }
}

/* ── Gallery grid ── */
.neif-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.neif-gallery__item {
    margin: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.neif-gallery__item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.neif-gallery__media {
    aspect-ratio: 16/10;
    background: var(--green-tint);
    overflow: hidden;
}
.neif-gallery__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.neif-gallery__item:hover .neif-gallery__media img { transform: scale(1.04); }
.neif-gallery__cap { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.neif-gallery__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green-deep);
    background: var(--green-tint);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    align-self: flex-start;
}
.neif-gallery__cap h3 { font-size: 17px; margin: 0 0 6px; line-height: 1.3; }
.neif-gallery__cap p { margin: 0 0 10px; font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.neif-gallery__cap small { font-size: 12px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 6px; }
.neif-gallery__cap small i { color: var(--green); }

/* ── Reading progress bar (top of article pages) ── */
.neif-read-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    z-index: 100;
    pointer-events: none;
}
.neif-read-progress__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--green-bright), var(--green-glow));
    transition: width .15s linear;
}

/* ── Article byline (author + read time) ── */
.neif-article__byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-2);
    flex-wrap: wrap;
}
.neif-article__author {
    display: flex; align-items: center; gap: 12px;
}
.neif-article__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--green-deep);
    color: white;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}
.neif-article__author > div { display: flex; flex-direction: column; line-height: 1.3; }
.neif-article__author strong { font-size: 14.5px; color: var(--ink); }
.neif-article__author span { font-size: 12.5px; color: var(--muted); }
.neif-article__byline-meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.neif-article__byline-meta i { color: var(--green); }

/* ── End-of-article CTA ── */
.neif-article__cta {
    margin-top: 40px;
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.neif-article__cta .neif-eyebrow { color: var(--green-glow); }
.neif-article__cta .neif-eyebrow::before { background: var(--green-glow); }
.neif-article__cta h3 { color: white; margin: 0 0 4px; font-size: 22px; }
.neif-article__cta p { color: rgba(255,255,255,0.85); margin: 0; max-width: 540px; }
@media (max-width: 600px) {
    .neif-article__cta { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
}

/* Body typography refinements */
.neif-article__body { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.neif-article__body > p:first-of-type::first-letter {
    font-family: var(--font-display);
    float: left;
    font-size: 56px;
    line-height: 0.9;
    font-weight: 800;
    color: var(--green-deep);
    margin: 4px 10px 0 0;
}
.neif-article__body h3 {
    margin-top: 36px;
    margin-bottom: 12px;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.neif-article__body ul, .neif-article__body ol { padding-left: 24px; margin: 16px 0 20px; }
.neif-article__body li { margin-bottom: 8px; }

/* ── Article share row ── */
.neif-share {
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.neif-share__label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}
.neif-share__icons { display: flex; gap: 8px; }
.neif-share__btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}
.neif-share__btn:hover { background: var(--green-deep); color: white; transform: translateY(-2px); }
.neif-share__btn.is-copied { background: var(--green-bright); color: white; }
@media (max-width: 540px) {
    .neif-share { justify-content: center; flex-direction: column; gap: 12px; }
    .neif-share__icons { gap: 6px; }
}

/* ── FAQ accordion ── */
.neif-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 880px;
    margin: 0 auto;
}
.neif-faq__item {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.neif-faq__item[open] { box-shadow: var(--shadow); border-color: var(--green-tint-2); }
.neif-faq__q {
    padding: 22px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    font-size: 16px;
    list-style: none;
}
.neif-faq__q::-webkit-details-marker { display: none; }
.neif-faq__q::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    color: var(--green-deep);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.neif-faq__item[open] .neif-faq__q::after { content: '–'; }
.neif-faq__a {
    padding: 0 24px 24px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.7;
}

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 32px 0; }


/* ── Closing pass, Sept 2026 ── */
.neif-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* The wide Programs menu ran 39px past a 1440px viewport and put a horizontal scrollbar on every page. */
.neif-dropdown.neif-dropdown--wide { max-width: calc(100vw - 32px); }
@media (min-width: 1101px) and (max-width: 1500px) {
    .neif-nav__item .neif-dropdown--wide { left: 50%; transform: translate(-50%, -8px); }
    .neif-nav__item:hover .neif-dropdown--wide,
    .neif-nav__item:focus-within .neif-dropdown--wide { transform: translate(-50%, 0); }
}
/* Phone hero: the previous arrow sat on top of the first letters of the event title. */
@media (max-width: 640px) {
    .neif-hero__visual.is-active { padding-left: 44px; padding-right: 44px; }
    .neif-hero__arrow { top: 50%; transform: translateY(-50%); }
}

/* ── Public phone fixes, Sept 2026 ── */
@media (max-width: 640px) {
    /* Broadcast bar: one compact line so the header and hero keep the fold */
    .neif-broadcast { font-size: 12.5px; }
    .neif-broadcast__inner { padding: 8px 14px; gap: 6px 10px; flex-wrap: nowrap; overflow: hidden; }
    .neif-broadcast__inner > span:not(.neif-broadcast__pulse):not(.neif-broadcast__sep) { display: none; }
    .neif-broadcast__inner strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
    .neif-broadcast__sep { display: none; }
    .neif-broadcast__cta { padding: 4px 10px; font-size: 11px; margin-left: 0; white-space: nowrap; }
    /* NEAP ministers: compact two-up cards instead of fifteen full-width stacks */
    .neif-ministers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .neif-minister { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
    .neif-minister__photo { width: 100%; aspect-ratio: 4/5; }
    .neif-minister__name { font-size: 14px; }
    .neif-minister__body > *:not(.neif-minister__name):not(.neif-minister__title):not(.neif-minister__points) { display: none; }
    .neif-minister__title { font-size: 12px; }
    .neif-minister__points summary { font-size: 12px; }
}

/* ── Policy pages ── */
.neif-legal { max-width: 860px; }
.neif-legal__nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.neif-legal__nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.neif-legal__nav a:hover { border-color: var(--green-deep); color: var(--green-deep); }
.neif-legal__nav a.is-active { background: var(--green-deep); border-color: var(--green-deep); color: white; }
.neif-legal__updated { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.neif-legal__body h2 { font-size: 22px; margin: 36px 0 12px; }
.neif-legal__body h2:first-child { margin-top: 0; }
.neif-legal__body ul { margin: 0 0 20px 22px; color: var(--ink-2); }
.neif-legal__body li { margin-bottom: 8px; }
.neif-legal__body a { color: var(--green-deep); text-decoration: underline; }
@media (max-width: 640px) { .neif-legal__updated { margin-left: 0; width: 100%; } }
.neif-legal__body > p:first-of-type::first-letter { all: unset; }
.neif-login__foot { text-align: center; margin: 18px 0 0; font-size: 13.5px; }
.neif-login__foot a { color: var(--green-deep); font-weight: 600; }

/* ── Design review corrections, Sept 2026 ── */
/* 20: two upcoming events sit in a two-column grid instead of leaving a hole */
.neif-card-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
.neif-card-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
/* 23: one treatment for the speaker portraits, whatever the source photo */
.neif-keynote-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,99,65,0) 55%, rgba(0,99,65,0.35) 100%); pointer-events: none; }
.neif-keynote-card__photo img { filter: saturate(0.92) contrast(1.04); }
@media (max-width: 640px) {
    /* 17: phone header: seal and word mark only */
    .neif-nav .neif-brand__text span { display: none; }
    .neif-nav .neif-brand__text strong { font-size: 18px; }
    .neif-nav__inner { padding-top: 8px; padding-bottom: 8px; }
    /* 18: shorter hero on phones */
    .neif-hero__cta .neif-btn:nth-child(3) { display: none; }
    /* 22: breadcrumb shows only where you are */
    .neif-breadcrumb > *:not(:last-child) { display: none; }
    .neif-breadcrumb > *:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    /* 25: the broadcast title gets the full line; × stays */
    .neif-broadcast__cta { display: none; }
}
.nowrap { white-space: nowrap; }
