/*
Theme Name:  NEC Yearbook
Theme URI:   https://necyearbook.gov.in
Author:      NEC / DoNER
Description: Official custom theme for the NEC Yearbook portal — North Eastern Council data platform.
Version:     1.0.0
License:     Private
Text Domain: nec-yearbook
*/

/* ═══════════════════════════════════════════════════════════════
   1. RESET & ROOT VARIABLES
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:        #0f172a;
    --navy-2:      #1e293b;
    --navy-3:      #1e3a5f;
    --accent:      #f97316;
    --accent-alt:  #fbbf24;
    --light-bg:    #f8fafc;
    --border:      #e2e8f0;
    --text:        #0f172a;
    --muted:       #64748b;
    --white:       #ffffff;
    --radius:      8px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 24px rgba(0,0,0,0.10);
    --shadow-lg:   0 16px 48px rgba(0,0,0,0.16);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px; /* offset for sticky header */
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════
   2. TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   3. LAYOUT UTILITIES
═══════════════════════════════════════════════════════════════ */
.nec-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nec-section { padding: 72px 24px; }

/* ═══════════════════════════════════════════════════════════════
   4. HEADER
═══════════════════════════════════════════════════════════════ */
#nec-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    border-bottom: 3px solid var(--accent);
}

.nec-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 70px;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.nec-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    flex-shrink: 0;
    text-decoration: none;
}
.nec-logo-top,
.nec-logo-bot {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
}
.nec-logo-dot { color: var(--accent); }

/* Nav */
.nec-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
    list-style: none;
}
.nec-nav a {
    color: rgba(255,255,255,0.7);
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    display: block;
}
.nec-nav a:hover,
.nec-nav li.current-menu-item > a {
    background: rgba(255,255,255,0.08);
    color: var(--accent-alt);
}

/* Dropdown */
.nec-nav li { position: relative; }
.nec-nav li ul {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--navy-2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    min-width: 200px;
    list-style: none;
    padding: 6px 0;
    box-shadow: var(--shadow-lg);
    z-index: 200;
}
.nec-nav li:hover > ul { display: block; }
.nec-nav li ul a {
    padding: 10px 18px;
    border-radius: 0;
    font-size: 13px;
}
.nec-nav li ul a:hover { background: rgba(255,255,255,0.06); }

/* Header right */
.nec-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Search bar */
.nec-search-wrap { position: relative; }
.nec-search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 0 10px;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
    cursor: text;
}
.nec-search-box:focus-within {
    background: rgba(255,255,255,0.13);
    border-color: rgba(249,115,22,0.6);
}
.nec-search-icon { color: rgba(255,255,255,0.45); font-size: 15px; }
.nec-search-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 160px;
    font-family: inherit;
    padding: 7px 0;
}
.nec-search-input::placeholder { color: rgba(255,255,255,0.35); }
.nec-search-kbd {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: inherit;
}

/* Search dropdown */
.nec-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--navy-2);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    width: 320px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 300;
    overflow: hidden;
}
.nec-search-wrap.open .nec-search-dropdown { display: block; }
.nec-search-dropdown-section { padding: 10px 14px 6px; }
.nec-search-dropdown-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.nec-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.nec-search-result:hover { background: rgba(255,255,255,0.07); }
.nec-search-result-icon { color: rgba(255,255,255,0.45); font-size: 14px; flex-shrink: 0; }
.nec-search-result-title { font-size: 13px; color: #fff; font-weight: 500; }
.nec-search-result-sub   { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px; }
.nec-search-dropdown-footer {
    padding: 8px 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nec-search-dropdown-footer span { font-size: 11px; color: rgba(255,255,255,0.35); }
.nec-search-dropdown-footer a    { font-size: 11px; color: var(--accent); font-weight: 500; }

/* Gov logos */
.nec-gov-logos { display: flex; gap: 8px; align-items: center; }
.nec-gov-logo-box {
    background: #fff;
    border-radius: 6px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 90px;
}
.nec-gov-logo-box img { height: 28px; width: auto; object-fit: contain; }
.nec-gov-logo-label {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-align: center;
    color: #1a1a1a;
}
.nec-gov-logo-label span { color: #1d7fb5; }

/* Hamburger */
.nec-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nec-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   5. HERO BANNER — CENTERED LAYOUT
═══════════════════════════════════════════════════════════════ */
.hero-banner {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    overflow: hidden;
    padding: 80px 24px 120px;
}

.hero-grid-lines {
    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: 60px 60px;
    pointer-events: none;
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(251,191,36,0.6);
    animation: float-particle 8s infinite ease-in-out;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { top: 60%; left: 20%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(3) { top: 30%; left: 80%; animation-delay: 2s; animation-duration: 6s; }
.particle:nth-child(4) { top: 70%; left: 70%; animation-delay: 3s; animation-duration: 8s; }
.particle:nth-child(5) { top: 50%; left: 50%; animation-delay: 1.5s; animation-duration: 10s; }
.particle:nth-child(6) { top: 85%; left: 35%; animation-delay: 0.5s; animation-duration: 7.5s; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50%      { transform: translateY(-30px) scale(1.5); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;   /* was 900px */
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    color: var(--accent-alt);
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 100px;
    padding: 6px 16px;
    margin: 0 auto 28px;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--accent-alt);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.6); }
}

.hero-title {
    width: 100%;
    margin: 0 auto 24px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-align: center;
    overflow-wrap: anywhere;
}

.hero-title--gradient {
    display: block;
    width: 100%;
    margin: 8px auto 0;
    background: linear-gradient(90deg, var(--accent-alt) 0%, var(--accent) 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.2rem, 3.2vw, 2.6rem);  /* scales down so it fits */
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;      /* was normal */
    overflow-wrap: normal;    /* was anywhere */
}
}

.hero-subtitle {
    width: 100%;
    max-width: none;                        /* only change: was 640px */
    margin: 0 auto 40px;                    /* original gap above the button */
    font-size: clamp(1rem, 2vw, 1.2rem);    /* original size */
    line-height: 1.7;
    color: #ffffff !important;           /* original color */
    text-align: center;
    white-space: nowrap;                    /* only change: keeps one line */
}
.hero-subtitle { color: #ffffff !important; }
.hero-subtitle { margin-bottom: 40px !important; }
.hero-ctas {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    margin: 0 auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(251,191,36,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251,191,36,0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.05);
    transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════════════════════════
   6. STATS STRIP
═══════════════════════════════════════════════════════════════ */
.stats-strip {
    display: flex; flex-wrap: wrap; justify-content: center;
    background: var(--navy-2);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.strip-stat {
    flex: 1 1 200px; display: flex; flex-direction: column;
    align-items: center; padding: 32px 24px;
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
}
.strip-stat:last-child { border-right: none; }
.strip-stat:hover { background: rgba(255,255,255,0.03); }
.strip-stat__value {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800; color: var(--accent-alt);
    line-height: 1; margin-bottom: 6px;
}
.strip-stat__label {
    font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(255,255,255,0.45); text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   7. SECTION HEADERS (reusable)
═══════════════════════════════════════════════════════════════ */
.section-eyebrow {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent); background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.2); border-radius: 100px;
    padding: 4px 14px; margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
    color: var(--navy); margin-bottom: 14px; line-height: 1.2;
}
.section-subtitle {
    font-size: 1.05rem; color: var(--muted);
    max-width: 560px; line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   8. INITIATIVES / CARDS SECTION
═══════════════════════════════════════════════════════════════ */
.initiatives-section {
    background: transparent; padding: 80px 24px;
}
.initiatives-container { max-width: 1200px; margin: 0 auto; }
.initiatives-header { text-align: center; margin-bottom: 56px; }
.initiatives-title  { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; color: var(--navy); margin-bottom: 14px; line-height: 1.2; }
.initiatives-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }

.initiatives-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 28px;
}

.initiative-card-link { text-decoration: none; display: block; }
.initiative-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}
.initiative-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.card-image-wrap { position: relative; height: 220px; overflow: hidden; }
.card-image-wrap img { width:100%;height:100%;object-fit:cover;transition:transform 0.4s; }
.initiative-card:hover .card-image-wrap img { transform: scale(1.05); }
.card-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.65) 0%, transparent 60%);
}
.card-icon-box {
    position: absolute; bottom: 16px; left: 16px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.card-icon-box svg { width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.card-badge {
    position: absolute; top: 14px; right: 14px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: #1a1a1a;
    background: var(--accent-alt); border-radius: 100px; padding: 4px 10px;
}

.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.card-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.card-description { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

.card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.stat-box {
    background: #f1f5f9; border-radius: 10px; padding: 12px 10px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.stat-box__value { font-size: 1.05rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.stat-box__label { font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; }

.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; margin-top: auto; border-top: 1px solid #f1f5f9;
}
.card-location {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: #94a3b8; font-weight: 500;
}
.card-location svg { width:14px;height:14px;stroke:#94a3b8;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0; }
.card-link { font-size: 13px; font-weight: 700; color: var(--accent); transition: color 0.2s; }
.card-link:hover { color: #ea580c; }

/* ═══════════════════════════════════════════════════════════════
   9. MARQUEE (SOURCE LINKS)
═══════════════════════════════════════════════════════════════ */
.nec-marquee-section { background: #fff; padding: 0 0 4px; border-bottom: 1px solid var(--border); }
.nc-marquee-wrap {
    width: 100%; display: flex; align-items: center; gap: 8px;
    padding: 14px 24px; user-select: none;
}
.nc-arr {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid var(--border); background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; padding: 0; outline: none;
}
.nc-arr:hover { border-color: var(--accent); background: var(--accent); box-shadow: 0 2px 12px rgba(249,115,22,.2); }
.nc-arr svg { width:13px;height:13px;stroke:#1a1a1a;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round; }
.nc-arr:hover svg { stroke: #fff; }
.nc-track-outer { flex: 1; overflow: hidden; position: relative; }
.nc-track-outer::before,
.nc-track-outer::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none;
}
.nc-track-outer::before { left:0; background:linear-gradient(to right,#ffffff,transparent); }
.nc-track-outer::after  { right:0; background:linear-gradient(to left,#ffffff,transparent); }
.nc-track { display:flex; gap:10px; width:max-content; animation:nc-scroll 55s linear infinite; }
.nc-track:hover { animation-play-state: paused; }
@keyframes nc-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.nc-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 18px; border-radius: 100px;
    border: 1.5px solid var(--border); background: #fff;
    white-space: nowrap; font-family: inherit; font-size: 13px; font-weight: 600;
    color: var(--navy); text-decoration: none; cursor: pointer;
    box-shadow: var(--shadow-sm); transition: border-color 0.22s, box-shadow 0.22s, color 0.22s, transform 0.22s;
}
.nc-tab:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 14px rgba(249,115,22,.18); transform: translateY(-2px); }
.nc-tab-dot { width:16px;height:16px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.nc-tab-dot::after { content:'';width:6px;height:6px;background:#fff;border-radius:50%; }

/* ═══════════════════════════════════════════════════════════════
   10. FOREWORD SLIDER
═══════════════════════════════════════════════════════════════ */
.nec-foreword-section { background: #fffbf0; padding: 72px 24px; }
.nec-foreword-inner   { max-width: 1100px; margin: 0 auto; }
.nec-foreword-heading { text-align: center; margin-bottom: 40px; }

/* All foreword card CSS is embedded in template-part (preserves original styles) */

/* ═══════════════════════════════════════════════════════════════
   11. MAP SECTION
═══════════════════════════════════════════════════════════════ */
.nec-map-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    padding: 0;
}
.nec-map-heading {
    text-align: center; padding: 56px 24px 0;
}
.nec-map-heading .section-eyebrow { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.3); color: var(--accent-alt); }
.nec-map-heading .section-title   { color: #fff; }
.nec-map-heading .section-subtitle{ color: rgba(255,255,255,0.6); margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════
   12. GRAPH CARDS (dark)
═══════════════════════════════════════════════════════════════ */
.nec-graphs-section { background: var(--navy); padding: 72px 24px; }
.nec-graphs-heading { text-align: center; margin-bottom: 40px; }
.nec-graphs-heading .section-title    { color: #fff; }
.nec-graphs-heading .section-subtitle { color: rgba(255,255,255,0.6); margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════
   13. FOOTER
═══════════════════════════════════════════════════════════════ */
#nec-footer {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    padding: 56px 24px 24px;
}
.nec-footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.7fr;   /* was 2fr 1fr 1fr 1fr */
    gap: 40px;                                        /* was 48px */
    padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nec-footer-brand .nec-logo-top,
.nec-footer-brand .nec-logo-bot { font-size: 20px; }
.nec-footer-brand p { font-size: 13px; margin-top: 16px; line-height: 1.7; max-width: 280px; }
.nec-footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.nec-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nec-footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.nec-footer-col ul a:hover { color: var(--accent-alt); }
.nec-footer-bottom {
    max-width: 1200px; margin: 24px auto 0;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 12px; color: rgba(255,255,255,0.4);
}
.nec-footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.nec-footer-bottom a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   14. NEC DASHBOARD PAGE
═══════════════════════════════════════════════════════════════ */
.nec-dashboard-page { background: var(--light-bg); min-height: 100vh; }

/* ═══════════════════════════════════════════════════════════════
   15. RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nec-footer-grid { grid-template-columns: 1fr 1fr; }
    .nec-gov-logos   { display: none; }
}

@media (max-width: 768px) {
    .nec-nav       { display: none; }
    .nec-hamburger { display: flex; }
    .nec-search-input { width: 120px; }

    .hero-banner { padding: 60px 20px 100px; min-height: 80vh; }
    .hero-content { width: 100%; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-title--gradient { font-size: clamp(1.45rem, 6vw, 2.4rem); }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn-primary, .hero-ctas .btn-outline { max-width: 100%; }

    .stats-strip      { flex-direction: column; }
    .strip-stat       { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .strip-stat:last-child { border-bottom: none; }

    .initiatives-grid { grid-template-columns: 1fr; }

    .nec-footer-grid  { grid-template-columns: 1fr; gap: 32px; }
    .nec-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .nec-search-wrap { display: none; }
    .initiatives-section { padding: 56px 16px; }
    .card-body { padding: 18px; }
    .hero-banner { padding: 52px 16px 96px; }
    .hero-eyebrow { font-size: 10px; letter-spacing: 0.1em; padding: 6px 12px; }
    .hero-title { font-size: clamp(1.8rem, 9vw, 2.5rem); }
    .hero-title--gradient { font-size: clamp(1.35rem, 7vw, 1.9rem); }
    .hero-subtitle { margin-bottom: 28px; }
    .btn-primary, .btn-outline { padding: 13px 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   16. MOBILE NAV OVERLAY
═══════════════════════════════════════════════════════════════ */
.nec-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 999;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 4px;
    overflow-y: auto;
}
.nec-mobile-nav.open { display: flex; }
.nec-mobile-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: block;
}
.nec-mobile-nav a:hover { color: var(--accent-alt); }
.nec-mobile-nav-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none; color: #fff; font-size: 28px; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   17. MERGED FROM HELLO THEME ADDITIONAL CSS
       (rules not already covered above)
═══════════════════════════════════════════════════════════════ */

/* ── Global link reset ── */
a { text-decoration: none !important; }

/* ── Elementor heading font override ── */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ── Logo alignment ── */
.nyp-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* ── Initiative card link (no underline, full block) ── */
.initiative-card-link {
    text-decoration: none !important;
    display: block;
}
.initiative-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Animated orange dot on section title ── */
.initiatives-title {
    position: relative;
    display: block;        /* block so it stacks below eyebrow */
}
/* Wrapper trick: dot animates on an inline pseudo via a wrapping span */
.initiatives-header {
    text-align: center;
}
.initiatives-header .initiatives-title {
    display: inline-block; /* shrink-wrap for the ::before dot positioning */
}
.initiatives-title::before {
    content: '';
    position: absolute;
    bottom: 9px;
    right: -10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
    animation: signalSpread 1.8s ease-out infinite;
}
@keyframes signalSpread {
    0%   { box-shadow: 0 0 0 0px  rgba(249, 115, 22, 0.6); }
    50%  { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0.2); }
    100% { box-shadow: 0 0 0 18px rgba(249, 115, 22, 0);   }
}

/* ── Card image: object-position top ── */
.card-image-wrap img { object-position: top; }

/* ── Hide default page title on all pages ── */
.page .entry-title { display: none; }

/* ── Hide specific Elementor template on certain pages ── */
.page-id-49 .elementor-1052,
.page-id-11 .elementor-1052 { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   18. DISCOVER / CATEGORY SECTION
═══════════════════════════════════════════════════════════════ */
.discover-section  { width: 100%; }
.discover-container { max-width: 1200px; margin: 0 auto; }

.discover-title {
    text-align: left;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    padding-left: 10px;
}

.discover-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Left nav panel */
.left-nav {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.nav-section { border-bottom: 1px solid #f0f0f0; }
.nav-section:last-child { border-bottom: none; }

.nav-item {
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
}
.nav-item:hover { background: #f8f9fa; padding-left: 30px; }
.nav-item.active {
    background: linear-gradient(135deg, var(--accent-alt) 0%, var(--accent) 100%);
    color: #1a1a1a;
    font-weight: 600;
}

.nav-arrow {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}
.nav-item.expanded .nav-arrow { transform: rotate(90deg); }

.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}
.sub-menu.show { max-height: 500px; }

.sub-menu-item {
    padding: 12px 24px 12px 56px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
    font-size: 14px;
    border-top: 1px solid #e8e8e8;
    position: relative;
}
.sub-menu-item::before {
    content: "•";
    position: absolute;
    left: 40px;
    color: #999;
    font-size: 18px;
}
.sub-menu-item:hover { background: #fff; padding-left: 62px; color: #333; }
.sub-menu-item:hover::before { color: var(--accent); }

/* Category grid */
.category-grid {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.25);
    border-color: var(--accent);
}
.category-icon  { width: 70px; height: 70px; margin-bottom: 15px; }
.category-name  { font-size: 15px; font-weight: 600; color: #333; line-height: 1.4; }

.view-more-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px dashed var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.view-more-card .category-name {
    color: #92400e;
    font-size: 16px;
    display: flex; align-items: center; gap: 8px;
}
.nec-footer-contact address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}
.nec-footer-contact address p { margin-bottom: 10px; }
.nec-footer-contact address span {
    display: inline-block;
    min-width: 46px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}
.nec-footer-contact address a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
    word-break: break-word;
}
.nec-footer-contact address a:hover { color: var(--accent-alt); }

.nec-footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.nec-footer-logo-box {
    background: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nec-footer-logo-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.nec-footer-logo-box img {
    height: 100%;
    width: auto;
    max-width: 90px;
    object-fit: contain;
}
/* Discover responsive */
@media (max-width: 1024px) {
    .discover-content { flex-direction: column; }
    .left-nav { flex: 1; width: 100%; }
    .grid-container { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-container  { grid-template-columns: repeat(2, 1fr); }
    .discover-title  { font-size: 24px; }
	.hero-title--gradient,
.hero-subtitle {
    white-space: normal;
    overflow-wrap: break-word;
}
}
@media (max-width: 480px) {
    .grid-container { grid-template-columns: 1fr; }
}