@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --nf-primary: #006565;
    --nf-primary-light: #008080;
    --nf-text: #191c1e;
    --nf-text-muted: #6e7979;
    --nf-text-body: #3e4949;
    --nf-border: #e2e8f0;
    --nf-bg: #f7f9fb;
    --nf-bg-muted: #f2f4f6;
    --nf-red: #b22b1d;
    --nf-green: #2e7d32;
    --nf-orange: #ef6c00;
    --nf-teal-light: #e3fffe;
    --nf-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    --nf-shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --nf-page-max: 1280px;
    --nf-page-gutter: 32px;
}

/* Unified page grid – one left/right edge for all sections */
body.nf-home .container {
    max-width: var(--nf-page-max);
    width: 100%;
    padding-left: var(--nf-page-gutter);
    padding-right: var(--nf-page-gutter);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

body.nf-home {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--nf-bg);
    color: var(--nf-text);
}

body.nf-home.bg {
    background-color: var(--nf-bg);
}

/* Top Navigation */
.nf-topnav {
    background: #fff;
    border-bottom: 0;
    box-shadow: var(--nf-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 16px 0;
}

.nf-topnav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nf-topnav-logo img {
    height: 51px;
    width: auto;
}

.nf-topnav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nf-topnav-links a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    color: var(--nf-text-body);
    text-decoration: none;
    text-transform: uppercase;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nf-topnav-links a:hover,
.nf-topnav-links a.active {
    color: var(--nf-primary);
    border-bottom-color: var(--nf-primary);
}

.nf-btn-signin {
    background: var(--nf-primary);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 24px !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    border-bottom: none !important;
    box-shadow: var(--nf-shadow);
}

.nf-btn-signin:hover {
    background: var(--nf-primary-light);
    color: #fff !important;
}

.nf-topnav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nf-topnav-actions .dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--nf-border);
    box-shadow: var(--nf-shadow-lg);
    padding: 0;
    margin-top: 8px;
}

/* Sign In Panel */
.nf-signin-menu {
    width: 360px;
    padding: 0;
    right: 0;
    left: auto;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.nf-signin-panel {
    background: #FFFFFF99;
    border-radius: 12px;
    display: block;
}

.nf-signin-box {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 12px;
}

.nf-signin-box .login-logo {
    display: none;
}

.nf-signin-box .login-box-body {
    padding: 28px 28px 24px !important;
    border-top: 0;
    color: var(--nf-text);
}

.nf-signin-box h3 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--nf-text);
    margin: 0 0 20px;
}

.nf-signin-box .login-box-msg:empty {
    display: none;
}

.nf-signin-box .form-group {
    margin-bottom: 16px;
}

.nf-signin-box .form-control {
    background: var(--nf-bg-muted) !important;
    border: 1px solid var(--nf-border) !important;
    border-radius: 8px;
    height: 44px;
    font-size: 14px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--nf-text);
    box-shadow: none;
    padding-right: 40px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nf-signin-box .form-control:focus {
    border-color: var(--nf-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 101, 101, 0.12);
    outline: none;
}

.nf-signin-box .form-control::placeholder {
    color: var(--nf-text-muted);
}

.nf-signin-box .form-control-feedback {
    height: 44px;
    line-height: 44px;
    color: var(--nf-text-muted);
    z-index: 3;
}

.nf-signin-box .nf-pass-toggle:hover {
    color: var(--nf-primary);
}

.nf-signin-box .nf-signin-error {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--nf-red) !important;
    margin: -8px 0 12px;
}

.nf-signin-box .nf-signin-actions {
    margin-left: -6px;
    margin-right: -6px;
}

.nf-signin-box .nf-signin-actions > div {
    padding-left: 6px;
    padding-right: 6px;
}

.nf-signin-box .btn {
    height: 42px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: none;
    text-transform: none;
}

.nf-signin-box .btn-primary {
    background: var(--nf-primary) !important;
    border-color: var(--nf-primary) !important;
    color: #fff !important;
}

.nf-signin-box .btn-primary:hover,
.nf-signin-box .btn-primary:focus {
    background: var(--nf-primary-light) !important;
    border-color: var(--nf-primary-light) !important;
}

.nf-signin-box .btn-orange {
    background: #fff !important;
    border: 1px solid var(--nf-border) !important;
    color: var(--nf-text) !important;
}

.nf-signin-box .btn-orange:hover,
.nf-signin-box .btn-orange:focus {
    background: var(--nf-bg-muted) !important;
    border-color: var(--nf-primary) !important;
    color: var(--nf-primary) !important;
}

.nf-signin-box .mb-1 {
    margin-top: 16px;
    text-align: center;
}

.nf-signin-box .mb-1 a {
    color: var(--nf-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.nf-signin-box .mb-1 a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .nf-signin-menu {
        width: 300px;
    }
}

/* Hero Section */
.nf-hero {
    position: relative;
    min-height: 540px;
    margin-top: 84px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.nf-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: url('../Images/WEB-HEADER-1.jpg');
}

.nf-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 50, 50, 0.75) 0%, rgba(0, 50, 50, 0.35) 60%, rgba(0, 50, 50, 0.15) 100%);
}

.nf-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 112px;
    padding-bottom: 80px;
}

.nf-hero-content h1,
.nf-hero-content > p,
.nf-hero-actions {
    max-width: 896px;
}

.nf-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.96px;
    margin: 0 0 24px;
}

.nf-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
    max-width: 672px;
    margin: 0 0 24px;
}

.nf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 8px;
}

.nf-btn-primary {
    background: var(--nf-primary-light);
    color: var(--nf-teal-light);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.nf-btn-primary:hover {
    background: var(--nf-primary);
    color: #fff;
    text-decoration: none;
}

.nf-btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 33px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.nf-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

/* Filter Bar */
.nf-filter-bar {
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: 12px;
    box-shadow: var(--nf-shadow-lg);
    padding: 25px;
    margin-top: -66px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
    width: 100%;
    box-sizing: border-box;
}

.nf-filter-group {
    flex: 1;
    min-width: 200px;
}

.nf-filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--nf-text-muted);
    margin-bottom: 10px;
}

.nf-filter-group select,
.nf-filter-group .form-control {
    height: 50px;
    border: 1px solid var(--nf-border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--nf-text);
    box-shadow: none;
}

.nf-btn-apply {
    background: var(--nf-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    height: 48px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nf-btn-apply:hover {
    background: var(--nf-primary-light);
    color: #fff;
}

/* Home Main Content */
.nf-home-main {
    padding: 48px 0;
}

.nf-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--nf-text);
    margin: 0 0 32px;
}

/* KPI Cards */
.nf-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
    width: 100%;
}

.nf-kpi-card {
    flex: 1;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid var(--nf-primary);
    box-shadow: var(--nf-shadow);
    padding: 24px 24px 24px 28px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nf-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nf-shadow-lg);
}

.nf-kpi-card.learners { border-left-color: var(--nf-red); }
.nf-kpi-card.teachers { border-left-color: var(--nf-green); }
.nf-kpi-card.organizations { border-left-color: var(--nf-orange); }

.nf-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.nf-kpi-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--nf-text-muted);
}

.nf-kpi-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.nf-kpi-icon img {
    display: block;
    object-fit: contain;
}

.nf-kpi-card.schools .nf-kpi-icon img { width: 38px; height: 40px; }
.nf-kpi-card.learners .nf-kpi-icon img { width: 40px; height: 34px; }
.nf-kpi-card.teachers .nf-kpi-icon img { width: 34px; height: 43px; }
.nf-kpi-card.organizations .nf-kpi-icon img { width: 36px; height: 40px; }

.nf-kpi-value {
    font-size: 30px;
    font-weight: 600;
    color: var(--nf-text);
    line-height: 1.25;
    margin: 8px 0;
}

.nf-kpi-subtext {
    font-size: 11px;
    font-weight: 500;
    color: #2E7D32;
    line-height: 1.35;
    margin-top: 2px;
}

.nf-kpi-trend {
    font-size: 12px;
    font-weight: 500;
    color: var(--nf-green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nf-kpi-trend.steady { color: var(--nf-text-muted); }

/* Charts & Map Row */
.nf-data-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
    width: 100%;
}

.nf-map-card {
    flex: 1.4;
    min-width: 300px;
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: 12px;
    box-shadow: var(--nf-shadow);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.nf-charts-col {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nf-card {
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: 12px;
    box-shadow: var(--nf-shadow);
    padding: 25px;
}

.nf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.nf-card-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: var(--nf-text);
}

.nf-card-header h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--nf-text-muted);
    margin: 0;
}

.nf-map-stage {
    position: relative;
    background: var(--nf-bg-muted);
    border-radius: 8px;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 280px;
    width: 100%;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.nf-map-stage.is-panning {
    cursor: grabbing;
}

.nf-map-stage-inner {
    position: absolute;
    inset: 0;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

.nf-map-image {
    position: absolute;
    inset: 7%;
    width: 86%;
    height: 86%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.nf-map-pins {
    position: absolute;
    inset: 8% 6%;
}

.nf-map-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -100%);
    z-index: 2;
    cursor: default;
}

.nf-map-pin:hover {
    z-index: 10;
}

.nf-map-pin-label {
    background: var(--nf-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.nf-map-pin-tooltip {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    background: #fff;
    color: var(--nf-text);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--nf-border, #e5e7eb);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.nf-map-pin:hover .nf-map-pin-tooltip {
    opacity: 1;
    visibility: visible;
}

.nf-map-pin-dot {
    width: 16px;
    height: 16px;
    background: var(--nf-primary);
    border: 2px solid #fff;
    border-radius: 50%;
    margin-top: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nf-map-zoom-controls {
    display: flex;
    gap: 8px;
}

.nf-map-zoom-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--nf-border);
    border-radius: 4px;
    background: #fff;
    color: var(--nf-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.nf-map-zoom-btn:hover {
    background: var(--nf-bg-muted);
}

.nf-map-data {
    display: none !important;
}

/* Province Bar Chart */
.nf-bar-chart .nf-bar-item {
    margin-bottom: 16px;
}

.nf-bar-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 12px;
}

.nf-bar-item-header span:first-child {
    font-weight: 500;
    color: var(--nf-text);
}

.nf-bar-item-header span:last-child {
    font-weight: 700;
    color: var(--nf-text);
}

.nf-bar-track {
    height: 16px;
    background: var(--nf-bg-muted);
    border-radius: 9999px;
    overflow: hidden;
}

.nf-bar-fill {
    height: 100%;
    background: var(--nf-primary);
    border-radius: 9999px;
    transition: width 0.6s ease;
}

/* Gender Donut */
.nf-gender-chart {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.nf-donut-wrap {
    position: relative;
    width: 128px;
    height: 128px;
    flex-shrink: 0;
}

.nf-donut-wrap canvas {
    display: block;
    width: 128px !important;
    height: 128px !important;
    max-width: 128px;
    max-height: 128px;
}

.nf-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--nf-text);
}

.nf-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nf-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nf-legend-dot.male { background: var(--nf-primary); }
.nf-legend-dot.female { background: var(--nf-red); }

.nf-legend-label {
    font-size: 12px;
    color: var(--nf-text-muted);
}

.nf-legend-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--nf-text);
}

/* Strategic Initiatives */
.nf-initiatives-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
    width: 100%;
}

.nf-initiative-card {
    flex: 1;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: 12px;
    box-shadow: var(--nf-shadow);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.nf-initiative-card.refugee {
    background: var(--nf-primary);
    border-color: var(--nf-primary);
}

.nf-initiative-card .nf-init-icon {
    font-size: 18px;
    color: var(--nf-primary);
    margin-bottom: 8px;
}

.nf-initiative-card .nf-init-icon-img img {
    display: block;
    width: 22px;
    height: auto;
}

.nf-initiative-card.refugee .nf-init-icon,
.nf-initiative-card.refugee h3,
.nf-initiative-card.refugee .nf-init-desc,
.nf-initiative-card.refugee .nf-refugee-count {
    color: var(--nf-teal-light);
}

.nf-initiative-card h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: var(--nf-text);
}

.nf-init-desc {
    font-size: 12px;
    font-weight: 500;
    color: var(--nf-text-muted);
    line-height: 1.35;
    margin-bottom: 16px;
    flex: 1;
}

.nf-initiative-card.refugee .nf-init-desc {
    color: rgba(255, 255, 255, 0.8);
}

.nf-refugee-count {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.72px;
    line-height: 1.2;
}

.nf-init-footer {
    border-top: 1px solid var(--nf-border);
    padding-top: 17px;
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--nf-green);
}

.nf-initiative-card .form-control,
.nf-initiative-card select {
    border: 1px solid var(--nf-border);
    border-radius: 8px;
    height: 34px;
    font-size: 12px;
}

.nf-init-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.nf-init-actions .form-control,
.nf-init-actions select {
    width: 100%;
}

.nf-oosc-select-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.nf-oosc-select-row select {
    flex: 1;
    min-width: 0;
    width: auto;
}

.nf-oosc-map-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid var(--nf-border);
    border-radius: 8px;
    background: #fff;
    color: var(--nf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.nf-oosc-map-btn:hover {
    background: var(--nf-bg-muted);
    border-color: var(--nf-primary);
}

.nf-oosc-dashboard-btn {
    width: 100%;
}

.nf-init-actions .nf-init-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    padding: 0 16px;
}

.nf-initiative-card a.nf-init-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--nf-green);
    text-decoration: none;
}

/* Latest Updates */
.nf-updates-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.nf-updates-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--nf-text);
}

.nf-updates-header p {
    font-size: 16px;
    color: var(--nf-text-muted);
    margin: 0;
}

.nf-updates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
    width: 100%;
}

.nf-featured-update {
    flex: 1.4;
    min-width: 300px;
    background: #fff;
    border-top: 4px solid var(--nf-primary);
    border-radius: 12px;
    box-shadow: var(--nf-shadow-lg);
    padding: 24px;
}

.nf-featured-badges {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.nf-badge-featured {
    background: rgba(0, 101, 101, 0.1);
    color: var(--nf-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nf-badge-featured img {
    display: block;
    flex-shrink: 0;
}

.nf-badge-new {
    background: var(--nf-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 4px;
}

.nf-featured-body {
    display: flex;
    gap: 24px;
}

.nf-featured-icon {
    width: 96px;
    height: 96px;
    background: var(--nf-bg-muted);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nf-featured-icon img {
    display: block;
    width: 32px;
    height: auto;
}

.nf-update-icon img {
    display: block;
}

.nf-featured-content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 16px;
}

.nf-featured-content p {
    font-size: 16px;
    color: var(--nf-text-muted);
    line-height: 1.5;
    margin: 0 0 16px;
}

.nf-featured-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 8px;
}

.nf-btn-sm-primary {
    background: var(--nf-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-decoration: none;
}

.nf-btn-sm-primary:hover {
    background: var(--nf-primary-light);
    color: #fff;
    text-decoration: none;
}

.nf-btn-sm-outline {
    background: #fff;
    color: var(--nf-text);
    border: 1px solid var(--nf-border);
    border-radius: 8px;
    padding: 9px 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-decoration: none;
}

.nf-btn-sm-outline:hover {
    background: var(--nf-bg-muted);
    text-decoration: none;
    color: var(--nf-text);
}

.nf-updates-list {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nf-update-item {
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: 12px;
    box-shadow: var(--nf-shadow);
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.nf-update-item:hover {
    box-shadow: var(--nf-shadow-lg);
    text-decoration: none;
    color: inherit;
}

.nf-update-item-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nf-update-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.nf-update-icon.red { background: rgba(186, 26, 26, 0.1); color: var(--nf-red); }
.nf-update-icon.teal { background: rgba(0, 101, 101, 0.1); color: var(--nf-primary); }

.nf-update-item h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    margin: 0 0 4px;
    color: var(--nf-text);
}

.nf-update-item .nf-update-date {
    font-size: 12px;
    color: var(--nf-text-muted);
}

.nf-result-links {
    margin-top: 16px;
}

.nf-result-link {
    display: block;
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nf-green);
    text-decoration: none;
}

.nf-result-link:hover {
    box-shadow: var(--nf-shadow);
    text-decoration: none;
    color: var(--nf-green);
}

.nf-important-note {
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 15px;
    margin-top: 16px;
}

.nf-important-note h5 {
    font-size: 18px;
    font-weight: 700;
    color: #e65100;
    margin: 0 0 8px;
}

.nf-important-note p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
#footer.nf-footer {
    background: var(--nf-bg-muted);
    border-top: 1px solid var(--nf-border);
    padding: 49px 0 48px;
    margin: 0;
    color: var(--nf-text-body);
    text-transform: none;
}

.nf-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.nf-footer-col {
    flex: 1;
    min-width: 240px;
}

.nf-footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--nf-text);
    margin: 0 0 16px;
}

.nf-footer-brand {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    color: var(--nf-primary);
    margin-bottom: 24px;
    text-transform: none;
}

.nf-footer-col p,
.nf-footer-col a {
    font-size: 16px;
    color: var(--nf-text-body);
    line-height: 1.5;
    text-transform: none;
}

#footer.nf-footer .nf-footer-col a {
    color: var(--nf-text);
}

#footer.nf-footer .nf-footer-col a i {
    margin-right: 8px;
    color: var(--nf-text-muted);
}

.nf-footer-col a {
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

#footer.nf-footer .nf-footer-col a:hover {
    color: var(--nf-primary);
}

.nf-footer-jica {
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: 8px;
    padding: 8px 13px;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--nf-text-muted);
    margin-top: 16px;
    box-shadow: var(--nf-shadow);
    white-space: nowrap;
    text-transform: none;
}

.nf-footer-locate {
    margin-bottom: 12px;
}

#footer.nf-footer .nf-footer-locate a {
    color: var(--nf-text-muted);
    display: inline;
    margin-bottom: 0;
}

#footer.nf-footer .nf-footer-locate a:hover {
    color: var(--nf-primary);
}

.nf-footer-copyright {
    font-size: 12px;
    font-weight: 500;
    color: var(--nf-text-muted);
    margin-top: 32px;
}

#footer.nf-footer .nf-footer-copyright a {
    color: var(--nf-text-muted);
    display: inline;
    margin-bottom: 0;
}

#footer.nf-footer .nf-footer-copyright a:hover {
    color: var(--nf-primary);
}

/* Mobile Nav Toggle */
.nf-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--nf-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 991px) {
    body.nf-home {
        --nf-page-gutter: 16px;
    }

    .nf-topnav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px var(--nf-page-gutter);
        border-bottom: 1px solid var(--nf-border);
        gap: 16px;
    }

    .nf-topnav-links.open {
        display: flex;
    }

    .nf-mobile-toggle {
        display: block;
    }

    .nf-hero h1 {
        font-size: 32px;
    }

    .nf-filter-bar {
        margin-top: -40px;
    }

    .nf-home-main {
        padding: 32px 0;
    }

    .nf-featured-body {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .nf-kpi-card {
        min-width: 100%;
    }

    .nf-data-row {
        flex-direction: column;
    }

    .nf-initiatives-grid {
        flex-direction: column;
    }
}

/* Hide old banner/carousel styles when redesign active */
body.nf-home #banner.section-banner,
body.nf-home .box-section .box-a {
    display: none;
}

body.nf-home .main-navigation.navbar-fixed-top {
    display: none;
}

body.nf-home .sect-block h2 {
    color: var(--nf-text);
    border-bottom-color: var(--nf-primary);
}

body.nf-home .sect-block {
    padding: 100px 0 48px;
}

/* Contact page */
body.nf-home .nf-contact-page {
    padding-top: 124px;
    padding-bottom: 72px;
}

.nf-contact-page-header {
    min-height: 278px;
    margin: 0;
    padding: 32px 48px 88px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #004f4f 0%, #006565 55%, #004b5f 100%);
    border-radius: 16px 16px 0 0;
}

.nf-contact-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: left;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.nf-contact-back:hover,
.nf-contact-back:focus {
    color: #fff;
    text-decoration: none;
}

.nf-contact-page-header h2 {
    clear: both;
    margin: 26px 0 0;
    padding: 0;
    border: 0;
    color: #fff !important;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.nf-contact-page-header p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
}

.nf-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
    margin: -52px 24px 0;
}

.nf-contact-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: 12px;
    box-shadow: var(--nf-shadow);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nf-contact-card:hover {
    border-color: rgba(0, 101, 101, 0.35);
    box-shadow: var(--nf-shadow-lg);
    transform: translateY(-2px);
}

.nf-contact-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--nf-border);
}

.nf-contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: var(--nf-primary);
    background: var(--nf-teal-light);
    border-radius: 9px;
}

.nf-contact-card-header h3 {
    margin: 0;
    color: var(--nf-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.nf-contact-card-body {
    display: grid;
    gap: 16px;
    padding: 4px 20px 20px;
}

.nf-contact-detail {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: var(--nf-text-body);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.nf-contact-label {
    color: var(--nf-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.nf-contact-detail strong {
    color: var(--nf-text);
    font-size: 15px;
}

.nf-contact-detail .fa {
    width: 16px;
    color: var(--nf-primary);
    text-align: center;
}

@media (max-width: 991px) {
    .nf-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-right: 16px;
        margin-left: 16px;
    }
}

@media (max-width: 575px) {
    body.nf-home .nf-contact-page {
        padding-top: 104px;
        padding-bottom: 40px;
    }

    .nf-contact-page-header h2 {
        font-size: 28px;
    }

    .nf-contact-page-header {
        min-height: 240px;
        padding: 24px 20px 64px;
    }

    .nf-contact-grid {
        grid-template-columns: 1fr;
        margin: -32px 0 0;
    }
}

/* NFEMIS information page */
body.nf-home .nf-about-page {
    padding-top: 124px;
    padding-bottom: 72px;
}

.nf-about-hero {
    min-height: 300px;
    padding: 32px 48px 64px;
    color: #fff;
    background: linear-gradient(135deg, #004f4f 0%, #006565 55%, #004b5f 100%);
    border-radius: 16px 16px 0 0;
}

.nf-about-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.nf-about-back:hover,
.nf-about-back:focus {
    color: #fff;
    text-decoration: none;
}

.nf-about-hero-content {
    max-width: 760px;
    margin: 44px auto 0;
    text-align: center;
}

.nf-about-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #d4f8f6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nf-about-hero h2 {
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff !important;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.7px;
}

.nf-about-hero p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.6;
}

.nf-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
    align-items: start;
    gap: 24px;
    position: relative;
    z-index: 1;
    margin: -36px 24px 0;
}

.nf-about-content-card,
.nf-about-tools-card {
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: 12px;
    box-shadow: var(--nf-shadow);
}

.nf-about-content-card {
    padding: 32px;
}

.nf-about-content-heading,
.nf-about-tools-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.nf-about-content-icon,
.nf-about-tools-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: var(--nf-primary);
    background: var(--nf-teal-light);
    border-radius: 10px;
    font-size: 18px;
}

.nf-about-content-heading h3,
.nf-about-tools-heading h3 {
    margin: 0;
    color: var(--nf-text);
    font-size: 18px;
    font-weight: 700;
}

.nf-about-content-heading p,
.nf-about-tools-heading p {
    margin: 4px 0 0;
    color: var(--nf-text-muted);
    font-size: 13px;
}

.nf-about-content-card > p {
    margin: 0 0 18px;
    color: var(--nf-text-body);
    font-size: 14px;
    line-height: 1.72;
}

.nf-about-content-card > p:last-child {
    margin-bottom: 0;
}

.nf-about-tools-card {
    overflow: hidden;
}

.nf-about-tools-heading {
    margin: 0;
    padding: 22px;
    background: #f8fbfb;
    border-bottom: 1px solid var(--nf-border);
}

.nf-about-tools-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 4px 20px 16px 42px;
}

.nf-about-tools-list li {
    padding-left: 2px;
    color: var(--nf-primary);
}

.nf-about-tools-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0 11px 2px;
    color: var(--nf-text-body);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    border-bottom: 1px solid var(--nf-border);
}

.nf-about-tools-list li:last-child a {
    border-bottom: 0;
}

.nf-about-tools-list a:hover,
.nf-about-tools-list a:focus {
    color: var(--nf-primary);
    text-decoration: none;
}

.nf-about-tools-list .fa {
    flex: 0 0 auto;
    color: var(--nf-primary);
    font-size: 12px;
}

@media (max-width: 991px) {
    .nf-about-grid {
        grid-template-columns: 1fr;
        margin-right: 16px;
        margin-left: 16px;
    }
}

@media (max-width: 575px) {
    body.nf-home .nf-about-page {
        padding-top: 104px;
        padding-bottom: 40px;
    }

    .nf-about-hero {
        min-height: 260px;
        padding: 24px 20px 56px;
    }

    .nf-about-hero-content {
        margin-top: 36px;
    }

    .nf-about-hero h2 {
        font-size: 28px;
    }

    .nf-about-grid {
        gap: 16px;
        margin: -28px 0 0;
    }

    .nf-about-content-card {
        padding: 24px 20px;
    }
}
