:root {
    --primary: #1e90ff;
    --primary-hover: #1873cc;
    --teal: #2ec4b6;
    --teal-hover: #3a928b;
    --cyan: #22d3ee;
    --background: #f4f7fb;
    --foreground: #0f172a;
    --accent: #1e90ff;
    --surface: #ffffff;
    --surface-2: #eef3f9;
    --border: #e2e8f0;
    --muted: #64748b;
    --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 14px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px rgba(30, 144, 255, 0.14);
    --radius: 1rem;
    --radius-lg: 1.35rem;
    --gradient-blue: linear-gradient(90deg, #4d7caa, #1e90ff);
    --gradient-teal: linear-gradient(135deg, #2ec4b6, #3a928b);
    --gradient-blue-teal: linear-gradient(155deg, #1e90ff, #2ec4b6);
    --gradient-hero: linear-gradient(135deg, rgba(30,144,255,.12), rgba(46,196,182,.1) 45%, rgba(34,211,238,.08));
    --glass: rgba(255, 255, 255, 0.72);
}

[data-bs-theme="dark"] {
    --primary: #3d9eff;
    --primary-hover: #1e90ff;
    --teal: #3dd4c4;
    --background: #0f0f1a;
    --foreground: #f1f5f9;
    --accent: #3d9eff;
    --surface: #1a1a2e;
    --border: #2d2d44;
    --muted: #9ca3af;
}

html,
body {
    font-family: "Poppins", sans-serif;
    background: var(--background);
    color: var(--foreground);
}

.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-body > main {
    flex: 1 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1030;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

[data-bs-theme="dark"] .site-header {
    background: rgba(15, 15, 26, 0.95);
}

.brand-logo--dark {
    display: none;
}

[data-bs-theme="dark"] .brand-logo--light {
    display: none;
}

[data-bs-theme="dark"] .brand-logo--dark {
    display: block;
}

.nh-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    gap: 0.7rem;
}

.nh-logo--lockup {
    align-items: center;
}

.nh-logo__mark-wrap {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.nh-logo__mark {
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.nh-logo__mark--knockout {
    /* PNG has black background — knock it out on dark surfaces */
    mix-blend-mode: screen;
}

.nh-logo__mark--dark-only {
    display: none;
}

[data-bs-theme="dark"] .nh-logo__mark--light-only {
    display: none;
}

[data-bs-theme="dark"] .nh-logo__mark--dark-only {
    display: block;
}

.nh-logo__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.nh-logo__name {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.1;
    color: #0f172a;
    white-space: nowrap;
}

.nh-logo__tag {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 0.72rem;
    line-height: 1.2;
    color: #334155;
    white-space: nowrap;
}

.nh-logo__text--light .nh-logo__name,
[data-bs-theme="dark"] .nh-logo--auto .nh-logo__name {
    color: #fff;
}

.nh-logo__text--light .nh-logo__tag,
[data-bs-theme="dark"] .nh-logo--auto .nh-logo__tag {
    color: #cbd5e1;
}

.nh-logo__img {
    width: auto;
    max-width: min(240px, 62vw);
    height: auto;
    object-fit: contain;
}

.nh-logo__img--dark {
    display: none;
}

[data-bs-theme="dark"] .nh-logo--auto .nh-logo__img--light {
    display: none;
}

[data-bs-theme="dark"] .nh-logo--auto .nh-logo__img--dark {
    display: block;
}

.navbar-brand.nh-logo {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

@media (max-width: 575.98px) {
    .nh-logo__tag {
        display: none;
    }

    .nh-logo__name {
        font-size: 1.1rem;
    }
}

.site-header .btn {
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    font-size: 0.85rem;
}

.nh-header-cta {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue-teal);
    color: #fff !important;
    border: none;
    padding: 0.45rem 1.2rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 50rem;
    box-shadow: 0 4px 14px rgba(30, 144, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nh-header-cta:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 144, 255, 0.35);
}

.header-icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.header-search__input {
    width: 0;
    opacity: 0;
    padding-left: 0;
    padding-right: 0;
    border-width: 0;
    transition: width 0.2s ease, opacity 0.2s ease;
}

.header-search.is-open .header-search__input {
    width: 11rem;
    opacity: 1;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-width: 1px;
}

/* Rich Editor Fixes: ensure fields underneath do not get overlapped or covered */
.rich-editor-wrapper {
    position: relative;
    display: block;
    width: 100%;
    clear: both;
    margin-bottom: 1.25rem;
    z-index: 1;
}

.rich-editor {
    display: flex;
    flex-direction: column;
    background: #fff;
    clear: both;
    position: relative;
    z-index: 1;
}

.rich-editor .ql-toolbar.ql-snow {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-color: var(--border, #dee2e6);
    background: #f8fafc;
    flex-shrink: 0;
}

.rich-editor .ql-container.ql-snow {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-color: var(--border, #dee2e6);
    min-height: 200px;
    font-family: inherit;
    font-size: 0.95rem;
}

.rich-editor .ql-editor {
    min-height: 200px;
    max-height: 480px;
    overflow-y: auto;
}

.theme-icon--moon {
    display: none;
}

[data-bs-theme="dark"] .theme-icon--sun {
    display: none;
}

[data-bs-theme="dark"] .theme-icon--moon {
    display: block;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.55rem;
    background: #1f2937;
    border: 1px solid #374151;
    color: #e5e7eb;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social:hover {
    background: #374151;
    color: #fff;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 5.5rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: #fff;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.08);
    color: inherit;
}

.category-card__name {
    font-weight: 700;
}

.category-card__meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.featured-stories {
    background: #0f172a;
}

.featured-lead {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: #111827;
    height: 100%;
}

.featured-lead__media {
    aspect-ratio: 16 / 10;
    background: var(--gradient-blue-teal);
}

.featured-lead__media img,
.featured-side__media img,
.latest-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-lead__body {
    padding: 1.25rem;
}

.featured-side {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.featured-side__media {
    width: 5.5rem;
    height: 4rem;
    border-radius: 0.6rem;
    overflow: hidden;
    background: var(--gradient-blue-teal);
}

.latest-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.latest-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.latest-row__thumb {
    width: 5rem;
    height: 5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-blue-teal);
}

.latest-row__chevron {
    font-size: 1.5rem;
    line-height: 1;
}

.trending-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 0.9rem;
    color: #fff;
}

.trending-card--0 { background: var(--gradient-blue-teal); }
.trending-card--1 { background: #111827; }
.trending-card--2 { background: linear-gradient(135deg, #f59e0b, #d97706); }

.trending-card__num {
    font-weight: 800;
    opacity: 0.85;
}

.trending-card__title {
    font-weight: 600;
    line-height: 1.35;
}

/* ===== Newsletter (exact original layout) ===== */
.nh-newsletter {
    background: #020617;
    color: #fff;
    padding: 4.5rem 0;
}

.nh-newsletter__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(30, 144, 255, 0.18);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.nh-newsletter__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.nh-newsletter__accent {
    display: inline;
    background: linear-gradient(90deg, #38bdf8, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nh-newsletter__lead {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

.nh-newsletter__checks {
    margin: 0 0 1.5rem;
}

.nh-newsletter__checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #e2e8f0;
    margin-bottom: 0.85rem;
    line-height: 1.45;
}

.nh-check {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.nh-newsletter__note {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.nh-newsletter__card {
    background: linear-gradient(135deg, #1e90ff 0%, #2ec4b6 100%);
    border-radius: 1.35rem;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.45);
}

.nh-newsletter__card-title {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.nh-newsletter__card-sub {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.35rem;
}

.nh-newsletter__label {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.nh-newsletter__input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    outline: none;
}

.nh-newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.nh-newsletter__input:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.nh-newsletter__btn {
    border: 0;
    background: #fff;
    color: #1e90ff;
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.8rem 1.35rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nh-newsletter__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    color: #1873cc;
}

/* ===== Ad strip ===== */
.nh-ad-strip {
    background: #fff;
    padding: 1.25rem 0;
}

.nh-ad-banner {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 7.5rem;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.nh-ad-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.72));
}

.nh-ad-banner__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
    flex-wrap: wrap;
}

.nh-ad-banner__label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #86efac;
    margin-bottom: 0.35rem;
}

.nh-ad-banner__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.nh-ad-banner__sub {
    color: #cbd5e1;
    font-size: 0.92rem;
}

.nh-ad-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    text-decoration: none;
    border-radius: 0.65rem;
    padding: 0.7rem 1.15rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
}

.nh-ad-banner__cta:hover {
    background: #fff;
    color: #0f172a;
}

[data-bs-theme="dark"] .category-card,
[data-bs-theme="dark"] .latest-row {
    background: #111827;
    border-color: #1f2937;
    color: #f3f4f6;
}

[data-bs-theme="dark"] .nh-ad-strip {
    background: #0f172a;
}

.site-nav-active {
    background: rgba(30, 144, 255, 0.1);
    color: var(--accent) !important;
}

.btn-primary,
.bg-gradient-brand {
    background: var(--gradient-blue-teal);
    border: 0;
}

.btn-primary:hover,
.btn-primary:focus {
    opacity: 0.92;
    background: var(--gradient-blue-teal);
}

.text-gradient-brand {
    background: var(--gradient-blue-teal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    background: #111827;
    color: #fff;
}

.hero-banner__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.92));
}

.hero-banner__content {
    position: relative;
    z-index: 2;
    padding: 4.5rem 0 1.5rem;
}

.hero-stat-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 0.9rem;
    padding: 1.25rem;
}

.breaking-ticker {
    position: sticky;
    top: 72px;
    z-index: 1020;
    overflow: hidden;
    background: var(--gradient-blue-teal);
    color: #fff;
    padding: 0.65rem 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.breaking-dot {
    position: relative;
    display: inline-flex;
    width: 0.5rem;
    height: 0.5rem;
}

.breaking-dot::before,
.breaking-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #fff;
}

.breaking-dot::before {
    animation: ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.ticker-track {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    width: max-content;
    animation: ticker 50s linear infinite;
}

.ticker-track a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.ticker-track a:hover {
    color: #fff;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    color: inherit;
}

.article-card__media {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--gradient-blue-teal);
    overflow: hidden;
}

.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    max-width: 80%;
    border-radius: 999px;
    background: var(--gradient-blue-teal);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
}

.article-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--foreground);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue-teal);
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 28rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(12, 74, 110, 0.25);
    padding: 1.75rem;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--foreground);
}

.article-body p {
    margin-bottom: 1.1rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.article-body ul,
.article-body ol {
    padding-left: 1.25rem;
    margin-bottom: 1.1rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.25rem;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
    line-height: 1.7;
}

.rich-editor .ql-toolbar {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.rich-editor.ql-container {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
    background: #f3f4f6;
}

.admin-sidebar {
    width: 16rem;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-nav-link.active,
.admin-nav-link:hover {
    background: rgba(46, 196, 182, 0.12);
    color: #0f766e;
}

.admin-main {
    flex: 1;
    overflow: auto;
    padding: 1.5rem;
}

.dashboard-side-card {
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #cbd5e1;
    padding: 1rem;
}

.site-footer {
    background: #020617;
    color: #e2e8f0;
}

.site-footer__brand {
    color: #fff;
}

.site-footer__name {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.site-footer__tagline {
    margin-top: 0.2rem;
    color: #94a3b8;
    font-size: 0.82rem;
}

.site-footer__about {
    color: #94a3b8;
    line-height: 1.7;
    max-width: 22rem;
    margin-bottom: 0;
}

.site-footer__heading {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.site-footer__link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-footer__link:hover {
    color: #fff;
}

.site-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.site-footer__bottom a {
    color: #64748b;
    text-decoration: none;
}

.site-footer__bottom a:hover {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .article-card,
[data-bs-theme="dark"] .admin-sidebar,
[data-bs-theme="dark"] .auth-card {
    background: #111827;
    border-color: #1f2937;
    color: #f3f4f6;
}

[data-bs-theme="dark"] .admin-shell {
    background: #0f0f1a;
}

@media (max-width: 991.98px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .breaking-ticker {
        top: 64px;
    }
}

/* ===== Marketplace homepage ===== */
.nh-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(30, 144, 255, 0.18), transparent 60%),
        radial-gradient(900px 420px at 90% 10%, rgba(46, 196, 182, 0.16), transparent 55%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 70%);
    border-bottom: 1px solid var(--border);
}

.nh-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.nh-hero__glow--a {
    width: 280px;
    height: 280px;
    background: rgba(30, 144, 255, 0.22);
    top: -60px;
    right: 18%;
}

.nh-hero__glow--b {
    width: 220px;
    height: 220px;
    background: rgba(46, 196, 182, 0.18);
    bottom: -40px;
    left: 8%;
}

.nh-hero__eyebrow,
.nh-section__eyebrow,
.nh-cta-banner__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.nh-hero__title {
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.nh-hero__lead,
.nh-section__lead,
.nh-cta-banner__lead {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 36rem;
}

.nh-search-panel {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.nh-search-panel__input {
    border-radius: 0.85rem;
    border-color: #e5e7eb;
    min-height: 3rem;
    font-size: 0.95rem;
}

.nh-search-panel__submit {
    min-height: 3rem;
    border-radius: 999px;
    font-weight: 600;
}

.nh-btn-ghost {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--foreground);
}

.nh-btn-ghost:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

.nh-hero-collage {
    position: relative;
    min-height: 320px;
}

.nh-hero-collage__main {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    aspect-ratio: 4 / 3;
}

.nh-hero-collage__main img,
.nh-hero-collage__stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nh-hero-collage__stack {
    display: none;
}

.nh-hero-collage__chip {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.nh-hero-collage__chip-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.2);
}

@media (min-width: 992px) {
    .nh-hero-collage__stack {
        display: grid;
        gap: 0.85rem;
        position: absolute;
        right: -0.5rem;
        bottom: -1.25rem;
        width: 42%;
    }

    .nh-hero-collage__stack img {
        border-radius: 1rem;
        aspect-ratio: 3 / 2;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
        border: 3px solid #fff;
    }
}

.nh-trust {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.nh-trust__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .nh-trust__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.nh-trust__item {
    text-align: center;
    padding: 1rem 0.5rem;
}

.nh-trust__value {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-blue-teal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nh-trust__label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.nh-section__title {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nh-section--surface {
    background: var(--surface);
}

.nh-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.nh-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.nh-cat-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    padding: 1.15rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: inherit;
}

.nh-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    border-color: rgba(30, 144, 255, 0.35);
    color: inherit;
}

.nh-cat-card__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(30, 144, 255, 0.12), rgba(46, 196, 182, 0.14));
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.nh-cat-card__name {
    font-weight: 700;
    font-size: 1rem;
}

.nh-cat-card__meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.nh-event-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.nh-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.nh-event-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--surface);
    overflow: hidden;
}

.nh-event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nh-event-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background:
        linear-gradient(145deg, rgba(30, 144, 255, 0.18), rgba(46, 196, 182, 0.22)),
        linear-gradient(180deg, #e8f3ff, #e9fbf8);
    color: #0f172a;
}

.nh-event-card__placeholder-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: var(--gradient-blue-teal);
}

.nh-event-card__placeholder-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.nh-event-card__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.7rem;
}

.nh-event-card__body {
    padding: 1.1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nh-event-card__category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.nh-event-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

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

.nh-event-card__title a:hover {
    color: var(--primary);
}

.nh-event-card__meta {
    display: grid;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.nh-event-card__meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.nh-event-card__meta svg {
    margin-top: 0.15rem;
    flex-shrink: 0;
    opacity: 0.75;
}

.nh-event-card__actions {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nh-city-card {
    position: relative;
    display: block;
    border-radius: 1.15rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.nh-city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nh-city-card:hover img {
    transform: scale(1.05);
}

.nh-city-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.78));
}

.nh-city-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.nh-city-card__name {
    font-weight: 700;
    font-size: 1.1rem;
}

.nh-city-card__meta {
    font-size: 0.82rem;
    opacity: 0.85;
}

.nh-benefit-card {
    padding: 1.35rem;
    border-radius: 1.2rem;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.nh-benefit-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    margin-bottom: 0.85rem;
    color: var(--primary);
    background: linear-gradient(145deg, rgba(30, 144, 255, 0.12), rgba(46, 196, 182, 0.14));
}

.nh-benefit-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.nh-benefit-card__text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.nh-cta-banner {
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    color: #fff;
    background:
        radial-gradient(600px 220px at 90% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
        var(--gradient-blue-teal);
    box-shadow: 0 20px 40px rgba(30, 144, 255, 0.25);
}

.nh-cta-banner__eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

.nh-cta-banner__title {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 800;
}

.nh-cta-banner__lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 36rem;
}

.nh-insight-card {
    display: block;
    height: 100%;
    padding: 1.15rem;
    border-radius: 1.1rem;
    border: 1px solid var(--border);
    background: #fff;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nh-insight-card:hover {
    border-color: rgba(30, 144, 255, 0.35);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    color: inherit;
}

.nh-insight-card__meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.nh-insight-card__title {
    font-weight: 700;
    line-height: 1.4;
}

.nh-empty {
    padding: 2rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px dashed var(--border);
    color: var(--muted);
}

.nh-upload {
    border: 1.5px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1.25rem;
    background: #f8fafc;
}

.nh-upload__title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.nh-upload__help {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.nh-upload__optional {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--teal-hover);
    background: rgba(46, 196, 182, 0.12);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.65rem;
}

[data-bs-theme="dark"] .nh-hero {
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(30, 144, 255, 0.2), transparent 60%),
        radial-gradient(900px 420px at 90% 10%, rgba(46, 196, 182, 0.12), transparent 55%),
        linear-gradient(180deg, #121225 0%, #0f0f1a 70%);
    border-bottom-color: var(--border);
}

[data-bs-theme="dark"] .nh-search-panel,
[data-bs-theme="dark"] .nh-cat-card,
[data-bs-theme="dark"] .nh-event-card,
[data-bs-theme="dark"] .nh-benefit-card,
[data-bs-theme="dark"] .nh-insight-card,
[data-bs-theme="dark"] .nh-upload {
    background: var(--surface);
    border-color: var(--border);
    color: var(--foreground);
}

[data-bs-theme="dark"] .nh-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--foreground);
}

[data-bs-theme="dark"] .nh-trust {
    background: var(--background);
}

@media (max-width: 575.98px) {
    .nh-hero {
        padding-bottom: 0.5rem;
    }

    .nh-cta-banner {
        padding: 1.5rem 1.15rem;
    }
}

/* ===== UX v2: denser premium SaaS system ===== */
.site-header {
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom-color: rgba(226, 232, 240, 0.85) !important;
}

.site-header .nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--muted);
}

.site-header .nav-link:hover,
.site-nav-active {
    color: var(--primary) !important;
    background: rgba(30, 144, 255, 0.08);
}

.nh-header-cta {
    background: var(--gradient-blue-teal);
    border: 0;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(30, 144, 255, 0.28);
}

.nh-header-cta:hover { filter: brightness(1.05); color: #fff !important; }

.nh-page-hero {
    background: var(--gradient-hero);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0 1.5rem;
}

.nh-page-hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.nh-page-hero p { color: var(--muted); margin-bottom: 0; max-width: 40rem; }

.nh-filter-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.15rem;
    position: sticky;
    top: 5.5rem;
}

.nh-filter-shell .form-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.nh-results-meta {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

.nh-badge-featured {
    background: linear-gradient(135deg, #1e90ff, #2ec4b6);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
}

.nh-event-card {
    background: var(--surface);
}

.nh-event-card__actions .btn-share {
    border-radius: 999px;
}

.nh-cal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.nh-cal__head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.nh-cal__head span {
    text-align: center;
    padding: 0.75rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.nh-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.nh-cal__cell {
    min-height: 7.5rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.55rem;
    background: var(--surface);
}

.nh-cal__cell:nth-child(7n) { border-right: 0; }
.nh-cal__cell--muted { background: #fafbfc; color: #94a3b8; }
.nh-cal__cell--today { box-shadow: inset 0 0 0 2px rgba(30,144,255,.35); }
.nh-cal__daynum { font-weight: 800; font-size: 0.85rem; margin-bottom: 0.35rem; }
.nh-cal__event {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    padding: 0.2rem 0.35rem;
    margin-bottom: 0.2rem;
    border-radius: 0.4rem;
    background: rgba(30,144,255,.1);
    color: #0f4c81;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nh-cal__event:hover { background: rgba(30,144,255,.18); color: #0b3a63; }
.nh-cal__more { font-size: 0.7rem; color: var(--muted); font-weight: 700; }

.nh-mag-hero {
    display: grid;
    gap: 1rem;
}
@media (min-width: 992px) {
    .nh-mag-hero { grid-template-columns: 1.4fr 1fr; gap: 1.25rem; }
}

.nh-mag-lead {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}
.nh-mag-lead img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; position: absolute; inset: 0; }
.nh-mag-lead__body { position: relative; z-index: 1; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; height: 100%; background: linear-gradient(180deg, transparent 20%, rgba(15,23,42,.85)); }
.nh-mag-side { display: grid; gap: 0.85rem; }
.nh-mag-side a {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.nh-mag-side__media { background: var(--gradient-blue-teal); min-height: 84px; }
.nh-mag-side__media img { width: 100%; height: 100%; object-fit: cover; }
.nh-mag-side__body { padding: 0.75rem 0.75rem 0.75rem 0; }
.nh-mag-side__meta { font-size: 0.72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.nh-mag-side__title { font-weight: 700; font-size: 0.95rem; line-height: 1.35; margin-top: 0.25rem; }

.nh-contact-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 992px) {
    .nh-contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; }
}

.nh-info-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}
.nh-info-tile strong { display: block; margin-bottom: 0.15rem; }
.nh-map {
    border: 0;
    border-radius: 1rem;
    width: 100%;
    min-height: 260px;
    box-shadow: var(--shadow-sm);
}

.nh-section { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }
.nh-hero { padding-bottom: 0; }
.nh-trust { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.nh-cat-card, .nh-benefit-card, .nh-insight-card, .nh-event-card {
    box-shadow: var(--shadow-sm);
}
.nh-cat-card:hover, .nh-event-card:hover {
    box-shadow: var(--shadow-md);
}

.article-card__media {
    background: linear-gradient(145deg, rgba(30,144,255,.2), rgba(46,196,182,.25));
}
.article-card__placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 1.4rem;
}

.nh-detail-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}
.nh-detail-hero img, .nh-detail-hero .nh-event-card__placeholder {
    aspect-ratio: 21/9; max-height: 360px; width: 100%; object-fit: cover;
}
.nh-sticky-cta {
    position: sticky; top: 5.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
}
.nh-faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
}
.nh-faq summary { font-weight: 700; cursor: pointer; }
.nh-faq p { margin: 0.65rem 0 0; color: var(--muted); }

.nh-org-band {
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #0f172a, #12385f 55%, #0f766e);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 767.98px) {
    .nh-cal__cell { min-height: 4.5rem; padding: 0.35rem; }
    .nh-cal__event { display: none; }
    .nh-cal__dot {
        width: 0.4rem; height: 0.4rem; border-radius: 50%;
        background: var(--primary); display: inline-block; margin-top: 0.25rem;
    }
    .nh-filter-shell { position: static; }
}
