/* ============================================
   NetworkUstad Astra Child Theme - Custom CSS
   ============================================ */

/* CSS Custom Properties */
:root {
    --nu-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nu-font-serif: 'Merriweather', Georgia, serif;
    --nu-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --nu-primary: hsl(186, 80%, 32%);
    --nu-primary-light: hsl(186, 80%, 42%);
    --nu-primary-foreground: hsl(0, 0%, 100%);

    --nu-background: hsl(200, 20%, 98%);
    --nu-foreground: hsl(200, 25%, 10%);
    --nu-card: hsl(200, 18%, 96%);
    --nu-card-foreground: hsl(200, 25%, 12%);
    --nu-card-border: hsl(200, 16%, 91%);
    --nu-border: hsl(200, 15%, 88%);
    --nu-muted: hsl(200, 14%, 90%);
    --nu-muted-foreground: hsl(200, 12%, 40%);
    --nu-accent: hsl(186, 30%, 90%);
    --nu-accent-foreground: hsl(186, 80%, 25%);
    --nu-secondary: hsl(200, 16%, 86%);
    --nu-secondary-foreground: hsl(200, 25%, 18%);
    --nu-destructive: hsl(0, 84%, 42%);

    --nu-radius: 0.375rem;
    --nu-radius-lg: 0.5rem;
}

/* Dark mode variables */
.nu-dark {
    --nu-background: hsl(200, 25%, 7%);
    --nu-foreground: hsl(200, 15%, 92%);
    --nu-card: hsl(200, 20%, 10%);
    --nu-card-foreground: hsl(200, 15%, 90%);
    --nu-card-border: hsl(200, 16%, 14%);
    --nu-border: hsl(200, 16%, 18%);
    --nu-muted: hsl(200, 14%, 16%);
    --nu-muted-foreground: hsl(200, 12%, 60%);
    --nu-accent: hsl(186, 25%, 16%);
    --nu-accent-foreground: hsl(186, 60%, 70%);
    --nu-secondary: hsl(200, 16%, 18%);
    --nu-secondary-foreground: hsl(200, 15%, 85%);
    --nu-primary: hsl(186, 80%, 42%);
    --nu-primary-light: hsl(186, 80%, 50%);
}

/* ============================================
   Base Styles
   ============================================ */
body.nu-theme {
    font-family: var(--nu-font-sans);
    background-color: var(--nu-background);
    color: var(--nu-foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.nu-theme * {
    box-sizing: border-box;
}

/* Override Astra defaults */
body.nu-theme .site-content,
body.nu-theme .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

body.nu-theme #page {
    overflow-x: hidden;
}

body.nu-theme .site-content {
    padding-top: 0 !important;
}

/* Prevent Astra from adding flex/grid to content that breaks our layout */
body.nu-theme .ast-container {
    display: block !important;
    float: none !important;
}

/* Reset all Astra entry wrappers */
body.nu-theme article.post,
body.nu-theme article.page,
body.nu-theme .ast-article-post,
body.nu-theme .ast-article-single {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ============================================
   Typography
   ============================================ */
body.nu-theme h1,
body.nu-theme h2,
body.nu-theme h3,
body.nu-theme h4,
body.nu-theme h5,
body.nu-theme h6 {
    font-family: var(--nu-font-sans);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--nu-foreground);
    line-height: 1.2;
}

/* ============================================
   Layout Container
   ============================================ */
.nu-container {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    .nu-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .nu-container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* ============================================
   Custom Header
   ============================================ */
.nu-header {
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--nu-border);
    background-color: var(--nu-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(
        from var(--nu-background) r g b / 0.8
    );
}

@supports not (color: rgb(from white r g b)) {
    .nu-header {
        background-color: var(--nu-background);
        opacity: 0.97;
    }
}

.nu-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.nu-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--nu-foreground);
}

.nu-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--nu-radius);
    background-color: var(--nu-primary);
    color: var(--nu-primary-foreground);
    flex-shrink: 0;
}

.nu-logo-icon svg {
    width: 16px;
    height: 16px;
}

.nu-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nu-logo-text .nu-highlight {
    color: var(--nu-primary);
}

@media (max-width: 639px) {
    .nu-logo-text {
        display: none;
    }
}

/* Navigation */
.nu-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nu-nav {
        display: flex;
    }
}

.nu-nav a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--nu-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nu-muted-foreground);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.nu-nav a:hover {
    background-color: var(--nu-muted);
    color: var(--nu-foreground);
}

.nu-nav a.current {
    background-color: var(--nu-accent);
    color: var(--nu-accent-foreground);
}

/* Header Actions */
.nu-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nu-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--nu-radius);
    border: none;
    background: transparent;
    color: var(--nu-muted-foreground);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    padding: 0;
}

.nu-icon-btn:hover {
    background-color: var(--nu-muted);
    color: var(--nu-foreground);
}

.nu-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Search form in header */
.nu-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nu-search-input {
    width: 200px;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid var(--nu-border);
    border-radius: var(--nu-radius);
    background-color: var(--nu-background);
    color: var(--nu-foreground);
    font-size: 0.875rem;
    font-family: var(--nu-font-sans);
    outline: none;
    transition: border-color 0.2s;
}

.nu-search-input:focus {
    border-color: var(--nu-primary);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

.nu-search-input::placeholder {
    color: var(--nu-muted-foreground);
}

@media (min-width: 640px) {
    .nu-search-input {
        width: 256px;
    }
}

/* Mobile menu */
.nu-mobile-toggle {
    display: inline-flex;
}

@media (min-width: 1024px) {
    .nu-mobile-toggle {
        display: none;
    }
}

.nu-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.nu-mobile-overlay.active {
    display: block;
    opacity: 1;
}

.nu-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 288px;
    background-color: var(--nu-background);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nu-mobile-menu.active {
    transform: translateX(0);
}

.nu-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--nu-border);
}

.nu-mobile-nav {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
}

.nu-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--nu-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nu-muted-foreground);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.nu-mobile-nav a:hover {
    background-color: var(--nu-muted);
    color: var(--nu-foreground);
}

.nu-mobile-nav a.current {
    background-color: var(--nu-accent);
    color: var(--nu-accent-foreground);
}

.nu-mobile-nav a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   Hero Section
   ============================================ */
.nu-hero {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.nu-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.nu-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nu-hero-bg .nu-gradient-r {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 1;
}

.nu-hero-bg .nu-gradient-t {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent);
    z-index: 2;
}

.nu-hero .nu-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.nu-hero-content {
    position: relative;
    padding: 3rem 0;
    max-width: 640px;
    text-align: left;
}

@media (min-width: 640px) {
    .nu-hero {
        min-height: 600px;
    }
    .nu-hero-content {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .nu-hero {
        min-height: 700px;
    }
    .nu-hero-content {
        padding: 5rem 0;
        max-width: 700px;
    }
}

.nu-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--nu-radius);
    color: white !important;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.nu-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: white !important;
    margin: 0 0 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-align: left;
}

@media (min-width: 640px) {
    .nu-hero h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .nu-hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .nu-hero h1 {
        font-size: 3.5rem;
    }
}

.nu-hero h1 .nu-gradient-text {
    background: linear-gradient(135deg, hsl(176, 60%, 70%), hsl(186, 80%, 65%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.nu-hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 2rem;
    max-width: 36rem;
    line-height: 1.7;
    text-align: left;
}

@media (min-width: 640px) {
    .nu-hero-desc {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
}

.nu-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .nu-hero-buttons {
        gap: 1rem;
    }
}

.nu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--nu-radius);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--nu-font-sans);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .nu-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
    }
}

.nu-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.nu-btn:hover svg {
    transform: translateX(2px);
}

.nu-btn-primary {
    background-color: var(--nu-primary);
    color: var(--nu-primary-foreground);
    border-color: var(--nu-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nu-btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.nu-btn-outline-light {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nu-btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.nu-btn-outline {
    background-color: transparent;
    color: var(--nu-foreground);
    border-color: var(--nu-border);
}

.nu-btn-outline:hover {
    background-color: var(--nu-muted);
}

.nu-btn-ghost {
    background-color: transparent;
    color: var(--nu-muted-foreground);
    border-color: transparent;
}

.nu-btn-ghost:hover {
    background-color: var(--nu-muted);
    color: var(--nu-foreground);
}

/* Hero Stats */
.nu-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 500px;
}

@media (min-width: 640px) {
    .nu-hero-stats {
        gap: 2rem;
    }
}

.nu-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--nu-radius);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nu-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--nu-radius);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.nu-stat-icon svg {
    width: 18px;
    height: 18px;
    color: hsl(176, 60%, 70%);
}

.nu-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: white !important;
    margin: 0;
    line-height: 1.2;
}

.nu-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0;
    line-height: 1.2;
}

/* ============================================
   Section Headers
   ============================================ */
.nu-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nu-section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

@media (min-width: 640px) {
    .nu-section-header h2 {
        font-size: 1.5rem;
    }
}

.nu-section-header p {
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
    margin: 0.25rem 0 0;
}

.nu-section-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nu-primary);
    text-decoration: none;
    white-space: nowrap;
}

.nu-section-link:hover {
    color: var(--nu-primary-light);
}

.nu-section-link svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Cards
   ============================================ */
.nu-card {
    background-color: var(--nu-card);
    border: 1px solid var(--nu-card-border);
    border-radius: var(--nu-radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.nu-dark .nu-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.nu-card a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   Article Cards
   ============================================ */
/* Featured Article Card */
.nu-featured-card {
    overflow: hidden;
}

.nu-featured-card .nu-featured-grid {
    display: grid;
    gap: 0;
}

@media (min-width: 768px) {
    .nu-featured-card .nu-featured-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.nu-featured-card .nu-featured-image {
    position: relative;
    overflow: hidden;
    background: var(--nu-muted);
}

@media (min-width: 768px) {
    .nu-featured-card .nu-featured-image {
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.nu-featured-card .nu-featured-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s;
    display: block;
    max-width: 100%;
    background: var(--nu-muted);
}

.nu-card:hover .nu-featured-image img {
    transform: scale(1.05);
}

.nu-featured-card .nu-featured-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.nu-featured-card .nu-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .nu-featured-card .nu-featured-content {
        padding: 1.5rem;
    }
}

.nu-featured-card .nu-featured-content h2 {
    font-size: 1.25rem;
    margin: 0.75rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .nu-featured-card .nu-featured-content h2 {
        font-size: 1.5rem;
    }
}

.nu-featured-card .nu-featured-content .nu-excerpt {
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

/* Standard Article Card */
.nu-article-card .nu-card-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--nu-radius-lg) var(--nu-radius-lg) 0 0;
    width: 100%;
    max-width: 100%;
    background: var(--nu-muted);
    aspect-ratio: 16 / 10;
}

.nu-article-card .nu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
    display: block;
    background: var(--nu-muted);
}

.nu-card:hover .nu-card-image img {
    transform: scale(1.05);
}

.nu-article-card .nu-card-image .nu-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.nu-article-card .nu-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

.nu-article-card .nu-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nu-article-card .nu-card-body .nu-excerpt {
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
    flex: 1;
}

.nu-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--nu-muted-foreground);
}

.nu-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.nu-card-meta svg {
    width: 12px;
    height: 12px;
}

/* ============================================
   Badge
   ============================================ */
.nu-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: var(--nu-radius);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.nu-badge-primary {
    background-color: var(--nu-primary);
    color: var(--nu-primary-foreground);
}

.nu-badge-secondary {
    background-color: var(--nu-secondary);
    color: var(--nu-secondary-foreground);
}

.nu-badge-glass {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(4px);
}

.nu-badge-muted {
    background-color: rgba(from var(--nu-background) r g b / 0.8);
    backdrop-filter: blur(4px);
    color: var(--nu-foreground);
}

@supports not (color: rgb(from white r g b)) {
    .nu-badge-muted {
        background-color: var(--nu-card);
    }
}

/* ============================================
   Trend Cards
   ============================================ */
.nu-trend-card .nu-trend-inner {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.nu-trend-rank {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--nu-primary);
    opacity: 0.3;
    flex-shrink: 0;
    line-height: 1;
}

.nu-trend-body {
    flex: 1;
    min-width: 0;
}

.nu-trend-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.nu-trend-meta .nu-date {
    font-size: 0.75rem;
    color: var(--nu-muted-foreground);
}

.nu-trend-content {
    display: flex;
    gap: 0.75rem;
}

.nu-trend-text {
    flex: 1;
    min-width: 0;
}

.nu-trend-text h3 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nu-trend-text .nu-excerpt {
    font-size: 0.75rem;
    color: var(--nu-muted-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.nu-trend-thumb {
    width: 96px;
    height: 64px;
    border-radius: var(--nu-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.nu-trend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--nu-muted);
}

.nu-trend-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nu-trend-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.nu-trend-stat svg {
    width: 12px;
    height: 12px;
}

.nu-trend-stat .nu-stat-up {
    color: var(--nu-primary);
}

.nu-trend-stat .nu-stat-down {
    color: var(--nu-destructive);
}

.nu-trend-stat strong {
    font-weight: 500;
}

.nu-trend-stat span {
    color: var(--nu-muted-foreground);
}

/* ============================================
   Category Cards
   ============================================ */
.nu-category-card .nu-cat-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--nu-radius-lg) var(--nu-radius-lg) 0 0;
    background: var(--nu-muted);
}

.nu-category-card .nu-cat-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s;
    background: var(--nu-muted);
    display: block;
}

.nu-card:hover .nu-cat-image img {
    transform: scale(1.05);
}

.nu-category-card .nu-cat-image .nu-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent);
}

.nu-category-card .nu-cat-image .nu-cat-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
}

.nu-category-card .nu-cat-image .nu-cat-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem;
}

.nu-category-card .nu-cat-image .nu-cat-info .nu-cat-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.nu-category-card .nu-cat-body {
    padding: 1rem;
}

.nu-category-card .nu-cat-body p {
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 0.75rem;
}

.nu-browse-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--nu-primary);
    text-decoration: none;
}

.nu-browse-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.nu-card:hover .nu-browse-link svg {
    transform: translateX(4px);
}

/* ============================================
   Tool Cards
   ============================================ */
.nu-tool-card .nu-tool-inner {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nu-tool-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.nu-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--nu-radius);
    background-color: rgba(from var(--nu-primary) r g b / 0.1);
    flex-shrink: 0;
}

@supports not (color: rgb(from white r g b)) {
    .nu-tool-icon {
        background-color: var(--nu-accent);
    }
}

.nu-tool-icon svg {
    width: 20px;
    height: 20px;
    color: var(--nu-primary);
}

.nu-tool-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.nu-tool-card .nu-tool-desc {
    font-size: 0.75rem;
    color: var(--nu-muted-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex: 1;
}

.nu-tool-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--nu-primary);
    text-decoration: none;
}

.nu-tool-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.nu-card:hover .nu-tool-link svg {
    transform: translateX(4px);
}

/* ============================================
   Grids
   ============================================ */
.nu-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    .nu-grid-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.nu-grid-3 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    .nu-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .nu-grid-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.nu-grid-4 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    .nu-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .nu-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    }
}

/* ============================================
   Sections
   ============================================ */
.nu-section {
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .nu-section {
        padding: 3rem 0;
    }
}

/* ============================================
   Category Page Hero
   ============================================ */
.nu-category-hero {
    position: relative;
    overflow: hidden;
}

.nu-category-hero .nu-cat-hero-bg {
    position: absolute;
    inset: 0;
}

.nu-category-hero .nu-cat-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nu-category-hero .nu-cat-hero-bg .nu-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}

.nu-category-hero .nu-cat-hero-content {
    position: relative;
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .nu-category-hero .nu-cat-hero-content {
        padding: 5rem 0;
    }
}

.nu-cat-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.nu-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--nu-radius);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.nu-cat-icon svg {
    width: 20px;
    height: 20px;
    color: hsl(176, 60%, 70%);
}

.nu-category-hero h1 {
    font-size: 1.875rem;
    color: white;
    margin: 0 0 0.75rem;
}

@media (min-width: 640px) {
    .nu-category-hero h1 {
        font-size: 2.25rem;
    }
}

.nu-category-hero .nu-cat-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 36rem;
}

/* ============================================
   Single Article
   ============================================ */
.nu-article-single {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
    .nu-article-single {
        padding: 2rem 2rem;
    }
}

@media (min-width: 1024px) {
    .nu-article-single {
        padding: 2rem 3rem;
    }
}

/* Breadcrumbs */
.nu-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.nu-breadcrumbs a {
    color: var(--nu-muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.nu-breadcrumbs a:hover {
    color: var(--nu-foreground);
}

.nu-breadcrumbs svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.nu-breadcrumbs .nu-current {
    color: var(--nu-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nu-article-single h1 {
    font-size: 1.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .nu-article-single h1 {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .nu-article-single h1 {
        font-size: 2.25rem;
    }
}

.nu-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
    margin-bottom: 1.5rem;
}

.nu-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.nu-article-meta svg {
    width: 16px;
    height: 16px;
}

/* Share buttons */
.nu-share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

/* Article featured image */
.nu-article-hero-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--nu-radius-lg);
    margin-bottom: 2rem;
}

.nu-article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--nu-muted);
}

/* Article Content */
.nu-article-content-card {
    background-color: var(--nu-card);
    border: 1px solid var(--nu-card-border);
    border-radius: var(--nu-radius-lg);
    margin-bottom: 3rem;
}

.nu-article-content-card .nu-content-inner {
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .nu-article-content-card .nu-content-inner {
        padding: 2rem;
    }
}

/* Prose styling for article content */
.nu-prose {
    font-family: var(--nu-font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--nu-card-foreground);
}

.nu-prose h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.nu-prose h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.nu-prose h4 {
    font-size: 1.125rem;
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
}

.nu-prose p {
    margin: 0 0 1.25rem;
    line-height: 1.8;
}

.nu-prose a {
    color: var(--nu-primary);
    text-decoration: none;
}

.nu-prose a:hover {
    text-decoration: underline;
}

.nu-prose ul,
.nu-prose ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.nu-prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.nu-prose img {
    border-radius: var(--nu-radius);
    max-width: 100%;
    height: auto;
}

.nu-prose pre,
.nu-prose code {
    font-family: var(--nu-font-mono);
}

.nu-prose pre {
    background-color: var(--nu-muted);
    padding: 1rem;
    border-radius: var(--nu-radius);
    overflow-x: auto;
    margin: 0 0 1.25rem;
}

.nu-prose code {
    background-color: var(--nu-muted);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.875em;
}

.nu-prose pre code {
    background-color: transparent;
    padding: 0;
}

.nu-prose blockquote {
    border-left: 3px solid var(--nu-primary);
    margin: 0 0 1.25rem;
    padding: 0.5rem 1rem;
    color: var(--nu-muted-foreground);
    font-style: italic;
}

/* Author box */
.nu-author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--nu-radius-lg);
    background-color: var(--nu-card);
    border: 1px solid var(--nu-card-border);
    margin-bottom: 3rem;
}

.nu-author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(from var(--nu-primary) r g b / 0.1);
    flex-shrink: 0;
}

@supports not (color: rgb(from white r g b)) {
    .nu-author-avatar {
        background-color: var(--nu-accent);
    }
}

.nu-author-avatar svg {
    width: 24px;
    height: 24px;
    color: var(--nu-primary);
}

.nu-author-info .nu-author-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
}

.nu-author-info .nu-author-role {
    font-size: 0.75rem;
    color: var(--nu-muted-foreground);
    margin: 0;
}

/* ============================================
   Search Page
   ============================================ */
.nu-search-header {
    border-bottom: 1px solid var(--nu-border);
    background-color: var(--nu-card);
}

.nu-search-header-inner {
    padding: 2.5rem 0;
}

@media (min-width: 640px) {
    .nu-search-header-inner {
        padding: 3.5rem 0;
    }
}

.nu-search-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.nu-search-title-row svg {
    width: 24px;
    height: 24px;
    color: var(--nu-primary);
}

.nu-search-title-row h1 {
    font-size: 1.5rem;
    margin: 0;
}

@media (min-width: 640px) {
    .nu-search-title-row h1 {
        font-size: 1.875rem;
    }
}

.nu-search-query-info {
    color: var(--nu-muted-foreground);
}

.nu-search-query-info strong {
    color: var(--nu-foreground);
}

/* ============================================
   404 Page
   ============================================ */
.nu-404 {
    text-align: center;
    padding: 6rem 1rem;
}

.nu-404 h1 {
    font-size: 4rem;
    color: var(--nu-primary);
    margin: 0 0 1rem;
    opacity: 0.3;
}

.nu-404 h2 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.nu-404 p {
    color: var(--nu-muted-foreground);
    margin: 0 0 1.5rem;
}

/* ============================================
   Empty State
   ============================================ */
.nu-empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.nu-empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--nu-muted-foreground);
    opacity: 0.3;
    margin: 0 auto 1rem;
}

.nu-empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.nu-empty-state p {
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
}

/* ============================================
   Custom Footer
   ============================================ */
.nu-footer {
    border-top: 1px solid var(--nu-border);
    background-color: var(--nu-card);
}

.nu-footer-inner {
    padding: 3rem 0;
}

.nu-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .nu-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .nu-footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.nu-footer-brand p {
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
    margin: 0 0 1rem;
    max-width: 300px;
}

.nu-footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nu-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--nu-radius);
    color: var(--nu-muted-foreground);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.nu-footer-social a:hover {
    background-color: var(--nu-muted);
    color: var(--nu-foreground);
}

.nu-footer-social a svg {
    width: 16px;
    height: 16px;
}

.nu-footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--nu-foreground);
}

.nu-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nu-footer-col ul li {
    margin-bottom: 0.625rem;
}

.nu-footer-col ul li a {
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.nu-footer-col ul li a:hover {
    color: var(--nu-foreground);
}

.nu-footer-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
}

.nu-footer-email svg {
    width: 16px;
    height: 16px;
}

.nu-footer-copyright {
    background: var(--nu-background);
    border-top: 1px solid var(--nu-border);
    padding: 1.5rem 0;
    text-align: center;
}

.nu-footer-copyright p {
    font-size: 0.75rem;
    color: var(--nu-muted-foreground);
    margin: 0;
}

/* ============================================
   Pagination
   ============================================ */
.nu-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.nu-pagination a,
.nu-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: var(--nu-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.nu-pagination a {
    color: var(--nu-muted-foreground);
    border: 1px solid var(--nu-border);
}

.nu-pagination a:hover {
    background-color: var(--nu-muted);
    color: var(--nu-foreground);
}

.nu-pagination span.current {
    background-color: var(--nu-primary);
    color: var(--nu-primary-foreground);
    border: 1px solid var(--nu-primary);
}

/* ============================================
   Astra Overrides - COMPREHENSIVE
   ============================================ */

/* Hide all Astra header elements */
body.nu-theme #masthead,
body.nu-theme .ast-above-header,
body.nu-theme .ast-below-header,
body.nu-theme .ast-main-header-wrap,
body.nu-theme .ast-above-header-wrap,
body.nu-theme .ast-below-header-wrap,
body.nu-theme .main-header-bar-wrap,
body.nu-theme .ast-header-break-point .main-header-bar,
body.nu-theme .ast-mobile-header-wrap,
body.nu-theme header.site-header {
    display: none !important;
}

/* Hide all Astra footer elements */
body.nu-theme .site-footer,
body.nu-theme footer.site-footer,
body.nu-theme .ast-footer-overlay,
body.nu-theme .ast-small-footer,
body.nu-theme .site-footer .ast-small-footer,
body.nu-theme footer.site-footer > .ast-small-footer,
body.nu-theme .ast-footer-copyright,
body.nu-theme .ast-above-footer,
body.nu-theme .ast-above-footer-wrap,
body.nu-theme .ast-footer-widget,
body.nu-theme .ast-footer-widget-area,
body.nu-theme .footer-widget-area {
    display: none !important;
}

/* Hide Astra sidebar */
body.nu-theme #secondary,
body.nu-theme .widget-area,
body.nu-theme aside.widget-area {
    display: none !important;
}

/* Force all Astra containers to full width */
body.nu-theme .ast-container,
body.nu-theme .site-content .ast-container,
body.nu-theme .ast-separate-container .ast-container,
body.nu-theme .ast-plain-container .ast-container,
body.nu-theme .ast-page-builder-template .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Force primary content to full width */
body.nu-theme #primary,
body.nu-theme .site-main,
body.nu-theme .site-content,
body.nu-theme #content,
body.nu-theme .content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Remove Astra's page wrapper constraints */
body.nu-theme #page,
body.nu-theme .site {
    overflow-x: hidden;
    max-width: 100% !important;
}

/* Override Astra entry content */
body.nu-theme .entry-content,
body.nu-theme .entry-header,
body.nu-theme .ast-article-single,
body.nu-theme .ast-article-post {
    margin: 0 !important;
    padding: 0 !important;
}

/* Override Astra's post/page layout wrapper */
body.nu-theme .ast-separate-container .ast-article-single,
body.nu-theme .ast-separate-container .ast-article-post,
body.nu-theme .ast-separate-container .ast-comment-list li,
body.nu-theme .ast-plain-container .site-content .ast-article-single {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove Astra's separate container styling */
body.nu-theme.ast-separate-container .site-content .ast-container,
body.nu-theme.ast-separate-container #primary {
    background-color: transparent !important;
    padding: 0 !important;
}

/* Hide Astra archive description */
body.nu-theme .ast-archive-description {
    display: none !important;
}

/* Hide default post navigation from Astra */
body.nu-theme .ast-single-post-order .ast-post-navigation,
body.nu-theme .post-navigation {
    display: none !important;
}

/* Override Astra Pro header builder if active */
body.nu-theme .ast-hfb-header,
body.nu-theme [data-section="section-header-builder"],
body.nu-theme .ast-builder-header-row {
    display: none !important;
}

/* Override any Astra max-width constraints on images/content */
body.nu-theme .site-content img {
    max-width: 100%;
    height: auto;
}

/* Remove Astra Pro's content max-width if set */
body.nu-theme .site-content .ast-container,
body.nu-theme .ast-container .site-main {
    max-width: 100% !important;
}

/* Fix Astra's default grid/flex on content area */
body.nu-theme .ast-container {
    display: block !important;
}

/* Remove Astra separate container borders/shadows */
body.nu-theme.ast-separate-container .ast-article-single,
body.nu-theme.ast-separate-container .ast-article-post {
    border: none !important;
    box-shadow: none !important;
}

/* Reset Astra entry title spacing */
body.nu-theme .entry-title {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure our custom header/footer render above Astra wrappers */
body.nu-theme .nu-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

body.nu-theme .nu-footer {
    position: relative !important;
    z-index: 1 !important;
}

/* Target Astra body class variations that control container */
body.nu-theme.ast-plain-container .site-content,
body.nu-theme.ast-separate-container .site-content,
body.nu-theme.ast-page-builder-template .site-content,
body.nu-theme.ast-box-layout .site-content,
body.nu-theme.ast-full-width-layout .site-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.nu-theme.ast-plain-container .site-content > .ast-container,
body.nu-theme.ast-separate-container .site-content > .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.nu-theme .site-content > .ast-container > #primary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Override Astra Pro inline container max-width */
body.nu-theme .ast-container,
body.nu-theme .site-content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Ensure images within our cards/grids stay properly sized */
body.nu-theme .nu-grid-2 img,
body.nu-theme .nu-grid-3 img,
body.nu-theme .nu-grid-4 img {
    max-width: 100% !important;
    height: auto;
}

/* Fix any Astra inline-style max-width overrides */
body.nu-theme .ast-container[style] {
    max-width: 100% !important;
}

/* ============================================
   Trending Shortcode Override (trends-publisher plugin)
   ============================================
   Plugin HTML structure:
   <div class="trends-publisher-trending">
     <div class="trends-publisher-trending-grid">
       <article class="trends-publisher-trending-item">
         <a class="trends-publisher-trending-link" href="...">
           <span class="trends-publisher-trending-thumb"><img></span>
           <span class="trends-publisher-trending-title">Title</span>
         </a>
       </article>
     </div>
   </div>
   ============================================ */

/* ── Trending Now: wrapper is a block container ── */
.nu-trending-grid {
    display: block !important;
    width: 100% !important;
}

/* ── Plugin wrapper fills full width ── */
.nu-trending-grid .tptt-wrap-tptt-52028db,
[class*="tptt-wrap-"] {
    width: 100% !important;
    display: block !important;
}

/* ── Force plugin grid to 3 columns ── */
[id^="tptt-"] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

@media (max-width: 900px) {
    [id^="tptt-"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 560px) {
    [id^="tptt-"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Image broken/overflow fix inside trending section ── */
.nu-trending-grid img,
.nu-trending-section img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

.trends-publisher-trending {
    width: 100% !important;
}

.trends-publisher-trending-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1023px) {
    .trends-publisher-trending-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 599px) {
    .trends-publisher-trending-grid {
        grid-template-columns: 1fr !important;
    }
}

.trends-publisher-trending-item {
    display: flex !important;
    flex-direction: column !important;
    background: var(--nu-card) !important;
    border: 1px solid var(--nu-border) !important;
    border-radius: var(--nu-radius-lg) !important;
    overflow: hidden !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    max-width: 100% !important;
}

.trends-publisher-trending-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.nu-dark .trends-publisher-trending-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.trends-publisher-trending-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
}

.trends-publisher-trending-thumb {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.trends-publisher-trending-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s !important;
}

.trends-publisher-trending-item:hover .trends-publisher-trending-thumb img {
    transform: scale(1.05) !important;
}

.trends-publisher-trending-title {
    display: block !important;
    padding: 1rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    color: var(--nu-foreground) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ============================================
   Trends Publisher v2.0.0 - Card Style Overrides
   Responsive to nu-dark / light mode toggle
   ============================================ */

/* --- Grid Layout --- */
.nu-trending-section .tp-trends-section {
    width: 100% !important;
}

.nu-trending-section .tp-trends-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

@media (max-width: 1023px) {
    .nu-trending-section .tp-trends-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 599px) {
    .nu-trending-section .tp-trends-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Light Mode: White cards on light background --- */
.nu-trending-section .tp-trend-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: var(--nu-radius-lg) !important;
    overflow: hidden !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.nu-trending-section .tp-trend-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.nu-trending-section .tp-trend-card-link {
    text-decoration: none !important;
    color: inherit !important;
}

.nu-trending-section .tp-trend-card-thumb {
    background: #f3f4f6 !important;
}

.nu-trending-section .tp-trend-card-body {
    padding: 16px 18px 18px !important;
}

.nu-trending-section .tp-trend-card-title {
    color: #1a1a2e !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.nu-trending-section .tp-trend-card-excerpt {
    color: #9ca3af !important;
}

.nu-trending-section .tp-trend-card-badge {
    background: var(--nu-primary) !important;
    color: #ffffff !important;
}

.nu-trending-section .tp-trend-card-stats {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    border-top: 1px solid #e5e7eb !important;
}

.nu-trending-section .tp-trend-stat {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
}

.nu-trending-section .tp-trend-stat.tp-stat-up {
    background: rgba(22, 163, 74, 0.08) !important;
    color: #16a34a !important;
}

.nu-trending-section .tp-trend-stat.tp-stat-down {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #dc2626 !important;
}

.nu-trending-section .tp-trend-stat.tp-stat-neutral {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #3b82f6 !important;
}

.nu-trending-section .tp-trend-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    color: #9ca3af !important;
}

/* --- Dark Mode: Dark cards on dark background --- */
.nu-dark .nu-trending-section .tp-trend-card {
    background: #1e1e2e !important;
    border-color: #3a3a4a !important;
}

.nu-dark .nu-trending-section .tp-trend-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.nu-dark .nu-trending-section .tp-trend-card-thumb {
    background: #2a2a3a !important;
}

.nu-dark .nu-trending-section .tp-trend-card-title {
    color: #e4e4e7 !important;
}

.nu-dark .nu-trending-section .tp-trend-card-excerpt {
    color: rgba(255, 255, 255, 0.55) !important;
}

.nu-dark .nu-trending-section .tp-trend-card-stats {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    border-top-color: #3a3a4a !important;
}

.nu-dark .nu-trending-section .tp-trend-stat {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.nu-dark .nu-trending-section .tp-trend-stat.tp-stat-up {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #22c55e !important;
}

.nu-dark .nu-trending-section .tp-trend-stat.tp-stat-down {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
}

.nu-dark .nu-trending-section .tp-trend-stat.tp-stat-neutral {
    background: rgba(96, 165, 250, 0.12) !important;
    color: #60a5fa !important;
}

.nu-dark .nu-trending-section .tp-trend-placeholder {
    background: linear-gradient(135deg, #2a2a3a 0%, #3a3a4a 100%) !important;
    color: #71717a !important;
}

/* ============================================
   Trends Publisher v2.0.0 - Single Trend Page
   Dark Mode Fix (nu-dark)
   ============================================ */

/* Bridge nu-dark to plugin's tp- CSS variables */
.nu-dark .tp-single-trend,
.nu-dark .tp-archive-main {
    --tp-card-bg: #1e1e2e;
    --tp-card-border: #2e2e3e;
    --tp-text-primary: #e4e4e7;
    --tp-text-secondary: #a1a1aa;
    --tp-text-muted: #71717a;
    --tp-accent: #14b8a6;
    --tp-muted-bg: #27272a;
    --tp-stat-up-color: #22c55e;
    --tp-stat-up-bg: rgba(34, 197, 94, 0.12);
    --tp-stat-down-color: #ef4444;
    --tp-stat-down-bg: rgba(239, 68, 68, 0.12);
    --tp-stat-neutral-color: #60a5fa;
    --tp-stat-neutral-bg: rgba(96, 165, 250, 0.12);
}

/* Single trend page background */
.nu-dark .tp-single-trend {
    background-color: var(--nu-background) !important;
}

/* Single trend title */
.nu-dark .tp-single-title {
    color: var(--nu-foreground) !important;
}

/* Single trend meta text */
.nu-dark .tp-single-meta {
    color: var(--nu-muted-foreground) !important;
}

.nu-dark .tp-single-date,
.nu-dark .tp-single-readtime {
    color: var(--nu-muted-foreground) !important;
}

.nu-dark .tp-single-source {
    color: var(--nu-primary) !important;
}

/* Single trend content text */
.nu-dark .tp-single-content {
    color: var(--nu-foreground) !important;
}

.nu-dark .tp-single-content h2,
.nu-dark .tp-single-content h3,
.nu-dark .tp-single-content h4 {
    color: var(--nu-foreground) !important;
}

.nu-dark .tp-single-content p,
.nu-dark .tp-single-content li {
    color: var(--nu-card-foreground) !important;
}

.nu-dark .tp-single-content a {
    color: var(--nu-primary) !important;
}

.nu-dark .tp-single-content blockquote {
    background: var(--nu-muted) !important;
    border-left-color: var(--nu-primary) !important;
    color: var(--nu-muted-foreground) !important;
}

.nu-dark .tp-single-content pre {
    background: var(--nu-muted) !important;
    color: var(--nu-foreground) !important;
}

.nu-dark .tp-single-content code {
    background: var(--nu-muted) !important;
    color: var(--nu-foreground) !important;
}

/* Stats panel dark mode */
.nu-dark .tp-stats-panel {
    background: var(--nu-card) !important;
    border-color: var(--nu-card-border) !important;
}

.nu-dark .tp-stats-panel-header {
    background: var(--nu-muted) !important;
    border-bottom-color: var(--nu-card-border) !important;
    color: var(--nu-foreground) !important;
}

.nu-dark .tp-stat-card {
    border-right-color: var(--nu-card-border) !important;
}

@media (max-width: 639px) {
    .nu-dark .tp-stat-card {
        border-bottom-color: var(--nu-card-border) !important;
    }
}

.nu-dark .tp-stat-card-value {
    color: var(--nu-foreground) !important;
}

.nu-dark .tp-stat-card-label {
    color: var(--nu-muted-foreground) !important;
}

.nu-dark .tp-stat-card.tp-stat-up .tp-stat-card-value { color: #22c55e !important; }
.nu-dark .tp-stat-card.tp-stat-up .tp-stat-card-arrow { color: #22c55e !important; }
.nu-dark .tp-stat-card.tp-stat-down .tp-stat-card-value { color: #ef4444 !important; }
.nu-dark .tp-stat-card.tp-stat-down .tp-stat-card-arrow { color: #ef4444 !important; }
.nu-dark .tp-stat-card.tp-stat-neutral .tp-stat-card-value { color: #60a5fa !important; }

/* Featured image dark mode */
.nu-dark .tp-single-featured-image {
    background: var(--nu-muted) !important;
}

/* Category badge dark mode */
.nu-dark .tp-single-category-badge {
    background: var(--nu-primary) !important;
    color: #ffffff !important;
}

/* Breadcrumbs dark mode */
.nu-dark .tp-breadcrumbs {
    color: var(--nu-muted-foreground) !important;
}

.nu-dark .tp-breadcrumbs a {
    color: var(--nu-muted-foreground) !important;
}

.nu-dark .tp-breadcrumbs a:hover {
    color: var(--nu-primary) !important;
}

/* Related articles dark mode */
.nu-dark .tp-related-section {
    border-top-color: var(--nu-border) !important;
}

.nu-dark .tp-related-title {
    color: var(--nu-foreground) !important;
}

.nu-dark .tp-related-card {
    background: var(--nu-card) !important;
    border-color: var(--nu-card-border) !important;
}

.nu-dark .tp-related-card:hover {
    background: var(--nu-muted) !important;
}

.nu-dark .tp-related-name {
    color: var(--nu-foreground) !important;
}

.nu-dark .tp-related-date {
    color: var(--nu-muted-foreground) !important;
}

/* ============================================
   Trends Publisher v2.0.0 - Archive Page
   Dark Mode Fix (nu-dark)
   ============================================ */
.nu-dark .tp-archive-header {
    border-bottom-color: var(--nu-border) !important;
}

.nu-dark .tp-archive-title {
    color: var(--nu-foreground) !important;
}

.nu-dark .tp-archive-description {
    color: var(--nu-muted-foreground) !important;
}

.nu-dark .tp-archive-container .tp-trend-card {
    background: var(--nu-card) !important;
    border-color: var(--nu-card-border) !important;
}

.nu-dark .tp-archive-container .tp-trend-card-title {
    color: var(--nu-foreground) !important;
}

.nu-dark .tp-archive-container .tp-trend-card-excerpt {
    color: var(--nu-muted-foreground) !important;
}

.nu-dark .tp-archive-container .tp-trend-card-stats {
    border-top-color: var(--nu-card-border) !important;
}

.nu-dark .tp-no-posts {
    background: var(--nu-card) !important;
    border-color: var(--nu-card-border) !important;
}

.nu-dark .tp-no-posts h2 {
    color: var(--nu-foreground) !important;
}

.nu-dark .tp-no-posts p {
    color: var(--nu-muted-foreground) !important;
}

.nu-dark .tp-archive-container .page-numbers {
    color: var(--nu-muted-foreground) !important;
    background: var(--nu-card) !important;
    border-color: var(--nu-card-border) !important;
}

.nu-dark .tp-archive-container .page-numbers:hover {
    background: var(--nu-muted) !important;
    color: var(--nu-foreground) !important;
}

/* ============================================
   SVG Icons (inline)
   ============================================ */
.nu-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nu-svg-icon svg {
    width: 1em;
    height: 1em;
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    /* Reduce animations on mobile */
    * {
        animation-duration: 0.1s !important;
        transition-duration: 0.1s !important;
    }
    
    /* Optimize images for mobile */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Reduce shadows on mobile */
    .nu-card,
    .nu-article-card,
    .nu-featured-card,
    .nu-category-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Simplify borders on mobile */
    .nu-card,
    .nu-article-card {
        border-width: 1px !important;
    }
    
    /* Reduce padding on mobile */
    .nu-container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Optimize grid gaps on mobile */
    .nu-grid-2,
    .nu-grid-3,
    .nu-grid-4 {
        gap: 0.75rem !important;
    }
    
    /* Reduce font sizes slightly on mobile */
    body {
        font-size: 15px !important;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Optimize hero section for mobile */
    .nu-hero {
        min-height: 400px !important;
        padding: 2rem 0 !important;
    }
    
    .nu-hero-bg {
        opacity: 0.3 !important;
    }
    
    /* Reduce card padding on mobile */
    .nu-card-body,
    .nu-featured-content,
    .nu-cat-body {
        padding: 0.75rem !important;
    }
    
    /* Optimize images for mobile */
    .nu-card-image,
    .nu-featured-image,
    .nu-cat-image {
        background: transparent !important;
    }
    
    /* Remove hover effects on mobile */
    .nu-card:hover,
    .nu-article-card:hover,
    .nu-featured-card:hover {
        transform: none !important;
    }
    
    .nu-card:hover img,
    .nu-article-card:hover img {
        transform: none !important;
    }
    
    /* Optimize header for mobile */
    .nu-header {
        padding: 0.5rem 0 !important;
    }
    
    /* Reduce section spacing on mobile */
    .nu-section {
        padding: 2rem 0 !important;
    }
    
    /* Optimize footer for mobile */
    .nu-footer {
        padding: 2rem 0 !important;
    }
    
    /* Remove unnecessary decorations on mobile */
    .nu-badge {
        font-size: 0.625rem !important;
        padding: 0.125rem 0.5rem !important;
    }
    
    /* Optimize meta information on mobile */
    .nu-card-meta {
        font-size: 0.625rem !important;
    }
    
    /* Reduce line height on mobile */
    body {
        line-height: 1.5 !important;
    }
    
    /* Optimize buttons on mobile */
    .nu-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* Mobile-first critical CSS */
@media (max-width: 480px) {
    /* Extra small mobile optimizations */
    .nu-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .nu-grid-2,
    .nu-grid-3,
    .nu-grid-4 {
        gap: 0.5rem !important;
    }
    
    .nu-hero {
        min-height: 300px !important;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.125rem !important;
    }
}

/* Optimize for slow connections */
@media (prefers-reduced-data: reduce) {
    /* Remove background images */
    .nu-hero-bg,
    .nu-cat-image::before {
        display: none !important;
    }
    
    /* Disable animations */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Remove shadows */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* Optimize for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =====================================================
   Most Popular Section
   ===================================================== */

.nu-popular-section {
    background: var(--nu-card);
    border-radius: var(--nu-radius-lg);
    padding: 2rem !important;
    border: 1px solid var(--nu-border);
}

.nu-popular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .nu-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .nu-popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nu-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    border-radius: var(--nu-radius);
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.2s;
    border-bottom: 1px solid var(--nu-border);
}

.nu-popular-item:last-child,
.nu-popular-item:nth-last-child(-n+3):nth-child(3n+1),
.nu-popular-item:nth-last-child(-n+3) {
    border-bottom: none;
}

.nu-popular-item:hover {
    background: var(--nu-muted);
    border-radius: var(--nu-radius);
}

.nu-popular-rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--nu-border);
    line-height: 1;
    min-width: 2rem;
    padding-top: 0.1rem;
    font-variant-numeric: tabular-nums;
}

.nu-popular-item:nth-child(1) .nu-popular-rank { color: #f59e0b; }
.nu-popular-item:nth-child(2) .nu-popular-rank { color: #9ca3af; }
.nu-popular-item:nth-child(3) .nu-popular-rank { color: #cd7f32; }

.nu-popular-thumb {
    width: 72px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--nu-radius);
    overflow: hidden;
    background: var(--nu-muted);
}

.nu-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nu-popular-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--nu-muted);
}

.nu-popular-body {
    flex: 1;
    min-width: 0;
}

.nu-popular-cat {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nu-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.nu-popular-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--nu-foreground);
}

.nu-popular-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.72rem;
    color: var(--nu-muted-foreground);
}

/* =====================================================
   Back to Top Button
   ===================================================== */

.nu-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nu-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s, background 0.2s;
    z-index: 500;
    pointer-events: none;
}

.nu-back-to-top svg {
    display: block;
    flex-shrink: 0;
}

.nu-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nu-back-to-top:hover {
    background: var(--nu-primary-light);
}

@media (max-width: 599px) {
    .nu-back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }
}

/* =====================================================
   DHgate Banner Ad
   ===================================================== */

.nu-dhgate-banner-wrap {
    padding: 4px 0 12px;
    background: var(--nu-background);
}

.nu-dhgate-ad-tag {
    display: block;
    font-family: var(--nu-font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nu-muted-foreground);
    text-align: center;
    margin-bottom: 4px;
    opacity: 0.5;
}

.nu-dhgate-banner-link {
    display: block;
    max-width: 728px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    text-decoration: none;
    border: 1px solid var(--nu-card-border);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.nu-dhgate-banner-link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transform: translateY(-1px);
}

.nu-dhgate-banner-img {
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: cover;
    display: block;
}

/* =====================================================
   Author Box — Enhanced (proper bio + links)
   ===================================================== */

.nu-author-box--full {
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
}

.nu-author-box--full .nu-author-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.nu-author-box--full .nu-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.nu-author-box--full .nu-author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nu-foreground);
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.nu-author-box--full .nu-author-name:hover {
    color: var(--nu-primary);
}

.nu-author-bio {
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
    line-height: 1.6;
    margin: 6px 0 10px;
}

.nu-author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 8px;
}

.nu-author-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--nu-primary);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--nu-radius);
    border: 1px solid var(--nu-primary);
    transition: background 0.2s, color 0.2s;
}

.nu-author-link:hover {
    background: var(--nu-primary);
    color: var(--nu-primary-foreground);
}

/* ── Last Updated Badge ─────────────────────────────────────────── */
.nu-last-updated {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 500;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 2px 10px 2px 7px;
}
.nu-last-updated svg {
    stroke: #2563eb;
    flex-shrink: 0;
}


/* ============================================
   CCNA Series — Homepage Promo Section
   ============================================ */

.nu-ccna-home-section {
    background: linear-gradient(135deg, var(--nu-accent) 0%, var(--nu-background) 100%);
    border: 1px solid var(--nu-primary);
    border-radius: var(--nu-radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.nu-ccna-home-section::before {
    content: 'CCNA';
    position: absolute;
    right: -1rem;
    top: -1.5rem;
    font-size: 8rem;
    font-weight: 900;
    color: var(--nu-primary);
    opacity: 0.04;
    pointer-events: none;
    line-height: 1;
    user-select: none;
}

.nu-ccna-home-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.nu-ccna-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nu-primary);
    background: var(--nu-accent);
    border: 1px solid var(--nu-primary);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.5rem;
}

.nu-ccna-home-btn {
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.nu-ccna-home-modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .nu-ccna-home-modules {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .nu-ccna-home-modules {
        grid-template-columns: repeat(6, 1fr);
    }
}

.nu-ccna-home-mod {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.875rem;
    border-radius: var(--nu-radius);
    border: 1px solid var(--nu-card-border);
    background: var(--nu-card);
    transition: border-color 0.2s, transform 0.2s;
}

.nu-ccna-home-mod.live {
    border-color: var(--nu-primary);
    background: var(--nu-background);
}

.nu-ccna-home-mod.live:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nu-ccna-home-mod-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--nu-primary);
    font-family: var(--nu-font-mono);
}

.nu-ccna-home-mod-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nu-foreground);
    line-height: 1.3;
    flex: 1;
}

.nu-ccna-home-mod.soon .nu-ccna-home-mod-title {
    color: var(--nu-muted-foreground);
}

.nu-ccna-home-mod-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nu-ccna-home-mod-badge.live {
    background: var(--nu-primary);
    color: #fff;
}

.nu-ccna-home-mod-badge.soon {
    background: var(--nu-muted);
    color: var(--nu-muted-foreground);
}

.nu-ccna-home-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nu-border);
    font-size: 0.8rem;
    color: var(--nu-muted-foreground);
}

.nu-ccna-home-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.nu-ccna-home-footer-link {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nu-primary);
    text-decoration: none;
}

.nu-ccna-home-footer-link:hover {
    text-decoration: underline;
}

/* ============================================
   CCNA Series — Full Landing Page
   ============================================ */

/* Hero */
.nu-ccna-hero {
    position: relative;
    background: var(--nu-foreground);
    color: #fff;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.nu-ccna-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, hsl(186,80%,25%) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 10% 80%, hsl(186,60%,15%) 0%, transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.nu-ccna-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .nu-ccna-hero-inner {
        grid-template-columns: 1fr 380px;
    }
}

.nu-ccna-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(186,80%,75%);
    border: 1px solid hsl(186,60%,35%);
    background: hsl(186,60%,15%);
    border-radius: 9999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
}

/* Force all text white inside dark hero — overrides global theme h1/h2/body rules */
.nu-ccna-hero h1,
.nu-ccna-hero h2,
.nu-ccna-hero h3,
.nu-ccna-hero p,
.nu-ccna-hero span:not(.nu-ccna-gradient),
.nu-ccna-hero li {
    color: #fff !important;
}

.nu-ccna-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff !important;
    margin: 0 0 1rem;
}

.nu-ccna-gradient {
    background: linear-gradient(135deg, hsl(186,80%,60%) 0%, hsl(186,90%,75%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nu-ccna-hero-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: hsl(200,15%,75%);
    max-width: 560px;
    margin: 0 0 2rem;
}

.nu-ccna-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.nu-ccna-cta {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

.nu-ccna-outline-btn {
    background: transparent;
    border: 1px solid hsl(200,15%,40%);
    color: hsl(200,15%,85%);
}

.nu-ccna-outline-btn:hover {
    border-color: hsl(186,80%,50%);
    color: #fff;
}

/* Stats row */
.nu-ccna-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.nu-ccna-stat {
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem 0 0;
}

.nu-ccna-stat:first-child {
    padding-left: 0;
}

.nu-ccna-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.nu-ccna-stat-lbl {
    font-size: 0.72rem;
    color: hsl(200,15%,60%);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.nu-ccna-stat-divider {
    width: 1px;
    height: 2.5rem;
    background: hsl(200,15%,25%);
    margin-right: 1.5rem;
}

/* Hero right card */
.nu-ccna-hero-card {
    background: hsl(200,20%,10%);
    border: 1px solid hsl(200,15%,18%);
    border-radius: var(--nu-radius-lg);
    overflow: hidden;
}

.nu-ccna-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(186,70%,65%);
    background: hsl(186,40%,10%);
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid hsl(200,15%,18%);
}

.nu-ccna-learn-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nu-ccna-learn-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.85rem;
    color: hsl(200,15%,75%);
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(200,15%,14%);
}

.nu-ccna-learn-list li:last-child {
    border-bottom: none;
}

.nu-ccna-learn-list svg {
    color: hsl(186,70%,55%);
    flex-shrink: 0;
}

.nu-ccna-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: hsl(200,15%,50%);
    padding: 0.75rem 1.25rem;
    border-top: 1px solid hsl(200,15%,14%);
    background: hsl(200,20%,8%);
}

/* Progress bar */
.nu-ccna-progress-bar-wrap {
    background: var(--nu-accent);
    border-bottom: 1px solid var(--nu-border);
    padding: 0.625rem 0;
}

.nu-ccna-progress-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nu-ccna-progress-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nu-foreground);
    white-space: nowrap;
    flex-shrink: 0;
}

.nu-ccna-progress-track {
    flex: 1;
    height: 6px;
    background: var(--nu-muted);
    border-radius: 9999px;
    overflow: hidden;
}

.nu-ccna-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nu-primary) 0%, hsl(186,80%,55%) 100%);
    border-radius: 9999px;
    transition: width 0.6s ease;
}

.nu-ccna-progress-pct {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nu-primary);
    flex-shrink: 0;
}

/* Modules grid */
.nu-ccna-modules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .nu-ccna-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .nu-ccna-modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nu-ccna-module-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--nu-radius-lg);
    border: 1px solid var(--nu-card-border);
    background: var(--nu-card);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nu-ccna-module-live {
    border-left: 3px solid var(--nu-primary);
}

.nu-ccna-module-live:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--nu-primary);
}

.nu-ccna-module-soon {
    opacity: 0.65;
}

.nu-ccna-module-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--nu-primary);
    opacity: 0.25;
    line-height: 1;
    font-family: var(--nu-font-mono);
    flex-shrink: 0;
    width: 2.5rem;
}

.nu-ccna-module-live .nu-ccna-module-num {
    opacity: 1;
}

.nu-ccna-module-body {
    flex: 1;
    min-width: 0;
}

.nu-ccna-module-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.nu-ccna-module-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--nu-foreground);
    margin: 0;
    line-height: 1.3;
}

.nu-ccna-module-desc {
    font-size: 0.8rem;
    color: var(--nu-muted-foreground);
    margin: 0 0 0.875rem;
    line-height: 1.5;
}

.nu-ccna-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nu-ccna-pill-live {
    background: var(--nu-primary);
    color: #fff;
}

.nu-ccna-pill-soon {
    background: var(--nu-muted);
    color: var(--nu-muted-foreground);
}

.nu-ccna-module-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nu-primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.nu-ccna-module-link:hover {
    gap: 0.6rem;
}

.nu-ccna-module-link-disabled {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--nu-muted-foreground);
    cursor: default;
}

/* Why grid */
.nu-ccna-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .nu-ccna-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .nu-ccna-why-grid { grid-template-columns: repeat(3, 1fr); }
}

.nu-ccna-why-card {
    padding: 1.5rem;
    border: 1px solid var(--nu-card-border);
    border-radius: var(--nu-radius-lg);
    background: var(--nu-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nu-ccna-why-card:hover {
    border-color: var(--nu-primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.nu-ccna-why-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--nu-radius);
    background: var(--nu-accent);
    color: var(--nu-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.nu-ccna-why-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.nu-ccna-why-card p {
    font-size: 0.85rem;
    color: var(--nu-muted-foreground);
    line-height: 1.6;
    margin: 0;
}

/* Newsletter CTA */
.nu-ccna-newsletter-section {
    margin: 2rem 0 3rem;
}

.nu-ccna-newsletter-inner {
    background: linear-gradient(135deg, var(--nu-foreground) 0%, hsl(186,50%,15%) 100%);
    border-radius: var(--nu-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
}

.nu-ccna-nl-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: hsl(186,60%,20%);
    color: hsl(186,80%,65%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.nu-ccna-newsletter-inner h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.nu-ccna-newsletter-inner p {
    color: hsl(200,15%,70%);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.nu-ccna-nl-btn {
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
}

/* ── Exam weight pill ── */
.nu-ccna-pill-weight {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.18rem 0.45rem;
    border-radius: 9999px;
    background: hsl(186,30%,88%);
    color: var(--nu-primary);
    border: 1px solid var(--nu-primary);
    white-space: nowrap;
}
.nu-dark .nu-ccna-pill-weight {
    background: hsl(186,30%,16%);
    color: hsl(186,70%,65%);
    border-color: hsl(186,50%,35%);
}

/* ── Module topic bullets ── */
.nu-ccna-module-topics {
    list-style: none;
    margin: 0 0 0.875rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.nu-ccna-module-topics li {
    font-size: 0.75rem;
    color: var(--nu-muted-foreground);
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    line-height: 1.4;
}
.nu-ccna-module-topics li::before {
    content: '›';
    color: var(--nu-primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05em;
}

/* =============================================================
   CCNA EXAM FORMAT BOX — Hero Section
   ============================================================= */
.nu-ccna-exam-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 28px 28px 22px;
    margin: 32px auto 0;
    max-width: 960px;
}
.nu-ccna-exam-header {
    margin-bottom: 18px;
}
.nu-ccna-exam-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.nu-ccna-exam-icon { font-size: 20px; }
.nu-ccna-exam-title-row h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex: 1;
}
.nu-ccna-exam-link {
    font-size: 13px;
    font-weight: 600;
    color: #7ab8ff !important;
    text-decoration: none !important;
    border: 1px solid rgba(122,184,255,0.4);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.2s;
}
.nu-ccna-exam-link:hover {
    background: rgba(122,184,255,0.1) !important;
}

/* Meta pills row */
.nu-ccna-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.nu-ccna-meta-pill {
    background: rgba(0,123,255,0.12);
    border: 1px solid rgba(0,123,255,0.28);
    border-radius: 10px;
    padding: 10px 16px;
    flex: 1 1 160px;
    min-width: 130px;
}
.nu-ccna-meta-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #7ab8ff;
    font-weight: 600;
    margin-bottom: 3px;
}
.nu-ccna-meta-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* Domain table */
.nu-ccna-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    margin-bottom: 18px;
}
.nu-ccna-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.nu-ccna-table thead tr {
    background: rgba(0,123,255,0.22);
}
.nu-ccna-table thead th {
    padding: 10px 12px;
    text-align: left;
    color: #7ab8ff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.nu-ccna-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s;
}
.nu-ccna-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.nu-ccna-table tbody td {
    padding: 10px 12px;
    color: #cbd5e0;
    vertical-align: top;
    line-height: 1.5;
}
.nu-ccna-table tbody td:first-child {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}
.nu-ccna-row-hl {
    background: rgba(0,212,100,0.06) !important;
    border-left: 3px solid #00d464;
}
.nu-ccna-dnum {
    display: inline-block;
    background: rgba(0,123,255,0.3);
    color: #7ab8ff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 5px;
}
.nu-ccna-th-topics,
.nu-ccna-td-topics { min-width: 220px; }

/* Weight badges */
.nu-ccna-wbadge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.nu-ccna-wbadge.w25 { background: rgba(0,212,100,0.2);  color: #00d464; border: 1px solid rgba(0,212,100,0.4); }
.nu-ccna-wbadge.w20 { background: rgba(0,123,255,0.2);  color: #7ab8ff; border: 1px solid rgba(0,123,255,0.4); }
.nu-ccna-wbadge.w15 { background: rgba(245,158,11,0.2); color: #fbbf24; border: 1px solid rgba(245,158,11,0.4); }
.nu-ccna-wbadge.w10 { background: rgba(255,255,255,0.08); color: #94a3b8; border: 1px solid rgba(255,255,255,0.15); }

/* Visual weight bar */
.nu-ccna-wbar-wrap { margin-bottom: 18px; }
.nu-ccna-wbar-label {
    font-size: 11px;
    color: #7ab8ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 7px;
}
.nu-ccna-wbar {
    display: flex;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}
.nu-ccna-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    transition: filter 0.2s;
}
.nu-ccna-seg:hover { filter: brightness(1.2); }
.seg-fund { background: #2563eb; }
.seg-acc  { background: #3b82f6; }
.seg-ip   { background: #059669; }
.seg-svc  { background: #6366f1; }
.seg-sec  { background: #d97706; }
.seg-auto { background: #7c3aed; }
.nu-ccna-wbar-tip {
    font-size: 12px;
    color: #7ab8ff;
    margin: 8px 0 0;
    font-style: italic;
}

/* CTA */
.nu-ccna-exam-cta {
    text-align: center;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 640px) {
    .nu-ccna-exam-box { padding: 18px 14px; }
    .nu-ccna-th-topics,
    .nu-ccna-td-topics { display: none; }
    .nu-ccna-table tbody td:first-child { white-space: normal; }
    .nu-ccna-seg span { font-size: 8px; }
    .nu-ccna-meta-pill { flex: 1 1 120px; }
}
@media (max-width: 480px) {
    .nu-ccna-wbar { height: 38px; }
    .nu-ccna-exam-title-row h2 { font-size: 15px; }
}

/* ══ NEWSLETTER — Homepage Section ══════════════════════════ */
.nu-newsletter-homepage {
    background: #080d1a;
    padding: 72px 24px;
    position: relative;
    overflow: hidden;
}
.nu-newsletter-homepage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
}
.nu-newsletter-hp-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.nu-newsletter-hp-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #93c5fd;
    margin-bottom: 14px;
}
.nu-newsletter-hp-text h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: #fff !important;
    margin: 0 0 12px;
    letter-spacing: -.8px;
    line-height: 1.2;
}
.nu-newsletter-hp-text p {
    font-size: 16px;
    color: #94a3b8 !important;
    margin: 0;
    line-height: 1.7;
}
.nu-newsletter-hp-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.nu-newsletter-hp-form input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
}
.nu-newsletter-hp-form input::placeholder { color: #475569; }
.nu-newsletter-hp-form input:focus { border-color: #3b82f6; }
.nu-newsletter-hp-form button {
    padding: 14px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.nu-newsletter-hp-form button:hover { background: #1d4ed8; }
.nu-newsletter-hp-form button:disabled { background: #334155; cursor: not-allowed; }
.nu-newsletter-hp-note {
    font-size: 12px;
    color: #475569 !important;
    margin: 0;
}

/* Message states */
.nu-newsletter-msg, .nu-newsletter-hp-msg {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 10px;
}
.nu-msg-success { background: rgba(16,185,129,.15); color: #34d399 !important; }
.nu-msg-error   { background: rgba(239,68,68,.15);  color: #f87171 !important; }
.nu-msg-info    { background: rgba(59,130,246,.15); color: #93c5fd !important; }

/* CCNA newsletter msg */
.nu-ccna-newsletter .nu-newsletter-msg { margin-top: 12px; }

@media (max-width: 768px) {
    .nu-newsletter-hp-inner { grid-template-columns: 1fr; gap: 32px; }
    .nu-newsletter-hp-form  { flex-direction: column; }
}

/* ============================================================
   HOMEPAGE REDESIGN — Learning Paths + CCNA Strip + 3-col
   ============================================================ */

.nu-hp-wrap { min-height: 60vh; }

/* Section head */
.nu-hp-section { padding: 56px 0; }
.nu-hp-section-head { text-align: center; margin-bottom: 36px; }
.nu-hp-section-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    color: #0f172a !important;
    margin: 0 0 8px;
    letter-spacing: -.5px;
}
.nu-hp-section-sub {
    font-size: 15px;
    color: #64748b !important;
    margin: 0;
}

/* ── LEARNING PATHS ─────────────────────────────────────── */
.nu-hp-paths { padding-top: 48px; padding-bottom: 48px; }
.nu-hp-paths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.nu-hp-path-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 18px;
    text-decoration: none !important;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.nu-hp-path-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.nu-path-ccna  { border-color: #bfdbfe; }
.nu-path-ccna:hover  { border-color: #2563eb; box-shadow: 0 8px 28px rgba(37,99,235,.12); }
.nu-path-sp    { border-color: #fecaca; }
.nu-path-sp:hover    { border-color: #dc2626; box-shadow: 0 8px 28px rgba(220,38,38,.12); }
.nu-path-cyber { border-color: #fecaca; }
.nu-path-cyber:hover { border-color: #dc2626; box-shadow: 0 8px 28px rgba(220,38,38,.1); }
.nu-path-tech  { border-color: #ddd6fe; }
.nu-path-tech:hover  { border-color: #7c3aed; box-shadow: 0 8px 28px rgba(124,58,237,.1); }

.nu-hp-path-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.nu-hp-path-body { flex: 1; min-width: 0; }
.nu-hp-path-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 5px;
}
.nu-path-ccna  .nu-hp-path-badge { background: #dbeafe; color: #1d4ed8; }
.nu-path-sp    .nu-hp-path-badge { background: #fee2e2; color: #dc2626; }
.nu-path-cyber .nu-hp-path-badge { background: #fee2e2; color: #dc2626; }
.nu-path-tech  .nu-hp-path-badge { background: #ede9fe; color: #6d28d9; }

.nu-hp-path-body h3 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px !important;
    line-height: 1.3;
}
.nu-hp-path-body p {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 0 10px !important;
    line-height: 1.5;
}
.nu-hp-path-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}
.nu-hp-path-bar {
    flex: 1;
    max-width: 80px;
    background: #e2e8f0;
    border-radius: 999px;
    height: 4px;
    overflow: hidden;
}
.nu-hp-path-fill { background: #2563eb; height: 100%; border-radius: 999px; }
.nu-hp-fill-red  { background: #dc2626 !important; }

.nu-hp-path-arrow {
    font-size: 18px;
    color: #cbd5e1;
    flex-shrink: 0;
    transition: color .2s, transform .2s;
}
.nu-hp-path-card:hover .nu-hp-path-arrow { color: #2563eb; transform: translateX(3px); }
.nu-path-sp:hover    .nu-hp-path-arrow,
.nu-path-cyber:hover .nu-hp-path-arrow { color: #dc2626; }
.nu-path-tech:hover  .nu-hp-path-arrow { color: #7c3aed; }

/* ── CCNA STRIP ─────────────────────────────────────────── */
.nu-hp-ccna-strip {
    background: #080d1a;
    border-radius: 16px;
    margin: 0 0 40px;
    overflow: hidden;
    position: relative;
}
.nu-hp-ccna-strip::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.nu-hp-ccna-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 40px;
    position: relative;
    z-index: 1;
    align-items: center;
}
.nu-hp-ccna-strip-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #93c5fd;
    margin-bottom: 12px;
}
.nu-hp-ccna-strip-text h2 {
    font-size: clamp(22px, 2.5vw, 32px) !important;
    font-weight: 900 !important;
    color: #fff !important;
    margin: 0 0 10px !important;
    letter-spacing: -.5px;
    line-height: 1.2;
}
.nu-hp-ccna-strip-text p {
    font-size: 15px !important;
    color: #94a3b8 !important;
    margin: 0 0 20px !important;
}
.nu-hp-ccna-strip-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 9px;
    transition: background .2s;
}
.nu-hp-ccna-strip-btn:hover { background: #1d4ed8; }

/* Module list in strip */
.nu-hp-ccna-strip-modules {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nu-hp-ccna-mod {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 10px 14px;
    transition: background .15s;
}
.nu-hp-ccna-mod.live { border-color: rgba(37,99,235,.4); background: rgba(37,99,235,.08); }
.nu-hp-ccna-mod-num {
    font-size: 11px;
    font-weight: 800;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: #94a3b8;
    flex-shrink: 0;
}
.nu-hp-ccna-mod.live .nu-hp-ccna-mod-num { background: #2563eb; color: #fff; }
.nu-hp-ccna-mod-title { font-size: 13px; font-weight: 600; color: #cbd5e1; flex: 1; }
.nu-hp-ccna-mod.live .nu-hp-ccna-mod-title { color: #fff; }
.nu-hp-ccna-mod-status { font-size: 14px; flex-shrink: 0; }
.nu-hp-ccna-mod-more {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #7ab8ff;
    text-decoration: none;
    padding: 8px;
    border: 1px dashed rgba(122,184,255,.3);
    border-radius: 8px;
    transition: background .15s;
}
.nu-hp-ccna-mod-more:hover { background: rgba(122,184,255,.08); }

/* ── THREE COLUMN LATEST ────────────────────────────────── */
.nu-hp-three-col { padding-top: 40px; padding-bottom: 56px; }
.nu-hp-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.nu-hp-col {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}
.nu-hp-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1.5px solid #e2e8f0;
}
.nu-hp-col-header span {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.nu-hp-col-header a {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #64748b;
}
.nu-hp-col-header a:hover { color: #2563eb; }
.nu-col-networking { background: #f0f6ff; border-bottom-color: #bfdbfe; }
.nu-col-cyber      { background: #fff5f5; border-bottom-color: #fecaca; }
.nu-col-tech       { background: #f5f3ff; border-bottom-color: #ddd6fe; }
.nu-col-networking span { color: #1d4ed8; }
.nu-col-cyber span      { color: #dc2626; }
.nu-col-tech span       { color: #6d28d9; }

.nu-hp-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.nu-hp-list-item:last-child { border-bottom: none; }
.nu-hp-list-item:hover { background: #f8fafc; }
.nu-hp-list-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.nu-hp-list-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nu-hp-list-body { flex: 1; min-width: 0; }
.nu-hp-list-body h4 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 3px !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nu-hp-list-body span {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nu-hp-paths-grid { grid-template-columns: 1fr 1fr; }
    .nu-hp-ccna-strip-inner { grid-template-columns: 1fr; }
    .nu-hp-ccna-strip-modules { display: none; }
}
@media (max-width: 768px) {
    .nu-hp-paths-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .nu-hp-three-grid { grid-template-columns: 1fr; }
    .nu-hp-path-card { padding: 16px 14px; }
    .nu-hp-path-icon { font-size: 24px; }
    .nu-hp-ccna-strip { border-radius: 12px; }
    .nu-hp-ccna-strip-inner { padding: 28px 24px; }
}
@media (max-width: 480px) {
    .nu-hp-paths-grid { grid-template-columns: 1fr; }
    .nu-hp-path-arrow { display: none; }
    .nu-hp-ccna-strip-inner { padding: 24px 20px; }
}

/* ============================================================
   HOMEPAGE — Force full width, kill Astra sidebar layout
   ============================================================ */
.home #primary,
.home .site-main,
.home #content,
.home .content-area,
.home #main,
.home .ast-container,
.home .site-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    flex: 1 1 100% !important;
}
/* Kill sidebar on homepage */
.home #secondary,
.home .widget-area,
.home .ast-sidebar-wrap {
    display: none !important;
    width: 0 !important;
}
/* Remove Astra's flex/grid layout on homepage */
.home .site-content,
.home .ast-container {
    display: block !important;
    flex-direction: unset !important;
}
/* Make sure full-width hero works */
.home .nu-lp-hero,
.home .nu-hero,
.home .nu-hp-paths,
.home .nu-hp-ccna-strip,
.home .nu-newsletter-homepage {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
}
/* Astra entry-content padding fix on homepage */
.home .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
/* Astra .ast-article-single wrapper fix */
.home .ast-article-single,
.home .ast-article-post {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* ============================================================
   HOMEPAGE — ASTRA FULL WIDTH FIX (nuclear option)
   ============================================================ */
body.home #primary { width: 100% !important; max-width: 100% !important; float: none !important; padding: 0 !important; }
body.home #secondary { display: none !important; }
body.home #content { display: block !important; }
body.home .site-content > .ast-container { display: block !important; }
body.home .entry-content { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
body.home .ast-article-single { padding: 0 !important; margin: 0 !important; background: transparent !important; }

/* ── Featured Article Card ── */
.nu-hp-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    transition: box-shadow .2s, transform .2s;
}
.nu-hp-featured-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-2px); }
.nu-hp-featured-img { overflow: hidden; max-height: 320px; }
.nu-hp-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nu-hp-featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.nu-hp-featured-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #2563eb; }
.nu-hp-featured-body h3 { font-size: 22px !important; font-weight: 800 !important; color: #0f172a !important; margin: 0 !important; line-height: 1.35; }
.nu-hp-featured-body p { font-size: 15px !important; color: #64748b !important; margin: 0 !important; line-height: 1.65; }
.nu-hp-featured-meta { font-size: 12px; color: #94a3b8; font-weight: 600; }

/* ── Trending Grid ── */
.nu-hp-trending-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nu-hp-trend-card { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; overflow: hidden; text-decoration: none !important; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.nu-hp-trend-card:hover { border-color: #2563eb; transform: translateY(-2px); }
.nu-hp-trend-img { height: 140px; overflow: hidden; }
.nu-hp-trend-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nu-hp-trend-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.nu-hp-trend-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #2563eb; }
.nu-hp-trend-body h4 { font-size: 13px !important; font-weight: 700 !important; color: #0f172a !important; margin: 0 !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nu-hp-trend-date { font-size: 11px; color: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .nu-hp-featured-card { grid-template-columns: 1fr; }
    .nu-hp-featured-img { max-height: 220px; }
    .nu-hp-trending-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .nu-hp-trending-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOMEPAGE V3 — New Sections
   ============================================================ */

/* ── STICKY BAR ─────────────────────────────────────────── */
.nu-sticky-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99999;
    background: linear-gradient(90deg, #1d4ed8, #0891b2);
    padding: 0;
}
.nu-sticky-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 9px 24px;
}
.nu-sticky-bar-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
    animation: nu-pulse 2s infinite;
}
@keyframes nu-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.6; transform:scale(1.3); }
}
.nu-sticky-bar-text {
    font-size: 13px;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nu-sticky-bar-text strong { color: #34d399; }
.nu-sticky-bar-btn {
    padding: 5px 14px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}
.nu-sticky-bar-btn:hover { background: rgba(255,255,255,.25); }
.nu-sticky-bar-close {
    background: none; border: none;
    color: rgba(255,255,255,.6);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    flex-shrink: 0;
    line-height: 1;
}
.nu-sticky-bar-close:hover { color: #fff; }

/* ── START HERE ─────────────────────────────────────────── */
.nu-start-here {
    background: #f0f6ff;
    border-bottom: 1.5px solid #dbeafe;
    padding: 14px 0;
}
.nu-start-here-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.nu-start-here-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
    flex-shrink: 0;
}
.nu-start-here-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}
.nu-start-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none !important;
    transition: border-color .2s, box-shadow .2s;
}
.nu-start-step:hover { border-color: #2563eb; box-shadow: 0 2px 10px rgba(37,99,235,.12); }
.nu-start-step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nu-start-step-body strong { display: block; font-size: 13px; font-weight: 700; color: #0f172a; }
.nu-start-step-body span  { display: block; font-size: 11px; color: #64748b; }
.nu-start-step-arrow { font-size: 14px; color: #93c5fd; }
.nu-start-step-divider { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .4px; }

/* ── SOCIAL PROOF ───────────────────────────────────────── */
.nu-hp-social-proof {
    background: #0f172a;
    padding: 32px 0;
}
.nu-hp-proof-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.nu-hp-proof-stat {
    text-align: center;
    padding: 12px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.nu-hp-proof-num {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.nu-hp-proof-plus { font-size: 24px; font-weight: 900; color: #3b82f6; }
.nu-hp-proof-label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.nu-hp-proof-divider { width: 1px; height: 48px; background: rgba(255,255,255,.08); }

/* ── THIS WEEK IN CYBERSECURITY ─────────────────────────── */
.nu-hp-week-cyber { padding: 48px 0; background: #fff; }
.nu-hp-week-inner { }
.nu-hp-week-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.nu-hp-week-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #dc2626;
    margin-bottom: 4px;
}
.nu-hp-week-all {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}
.nu-hp-week-all:hover { text-decoration: underline; }
.nu-hp-week-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 16px;
}
.nu-hp-week-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s;
}
.nu-hp-week-card:hover { border-color: #dc2626; transform: translateY(-2px); }
.nu-hp-week-card.featured { border-color: #fecaca; }
.nu-hp-week-img { overflow: hidden; }
.nu-hp-week-card.featured .nu-hp-week-img { height: 200px; }
.nu-hp-week-card:not(.featured) .nu-hp-week-img { height: 130px; }
.nu-hp-week-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nu-hp-week-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nu-hp-week-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #dc2626; }
.nu-hp-week-body h3 { font-size: 15px !important; font-weight: 700 !important; color: #0f172a !important; margin: 0 !important; line-height: 1.4; }
.nu-hp-week-card:not(.featured) .nu-hp-week-body h3 { font-size: 13px !important; }
.nu-hp-week-body p { font-size: 13px !important; color: #64748b !important; margin: 0 !important; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nu-hp-week-card:not(.featured) .nu-hp-week-body p { display: none; }
.nu-hp-week-meta { font-size: 11px; color: #94a3b8; font-weight: 600; margin-top: auto; }

/* ── COMMUNITY COMMENTS ─────────────────────────────────── */
.nu-hp-community { padding: 48px 0; background: #f8fafc; }
.nu-hp-community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.nu-hp-comment-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s, transform .2s;
}
.nu-hp-comment-card:hover { border-color: #bfdbfe; transform: translateY(-2px); }
.nu-hp-comment-header { display: flex; align-items: center; gap: 10px; }
.nu-hp-comment-avatar { border-radius: 50% !important; width: 36px !important; height: 36px !important; }
.nu-hp-comment-author { display: block; font-size: 13px; font-weight: 700; color: #0f172a; }
.nu-hp-comment-date   { display: block; font-size: 11px; color: #94a3b8; }
.nu-hp-comment-text   { font-size: 13px; color: #475569; line-height: 1.6; margin: 0; font-style: italic; flex: 1; }
.nu-hp-comment-link   { font-size: 12px; font-weight: 600; color: #2563eb; text-decoration: none; border-top: 1px solid #f1f5f9; padding-top: 10px; margin-top: auto; }
.nu-hp-comment-link:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nu-hp-week-grid { grid-template-columns: 1fr 1fr; }
    .nu-hp-week-card:not(.featured) .nu-hp-week-body p { display: -webkit-box; }
    .nu-hp-community-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nu-sticky-bar-text { display: none; }
    .nu-start-here-steps { gap: 6px; }
    .nu-start-step-divider { display: none; }
    .nu-hp-proof-stat { padding: 10px 20px; }
    .nu-hp-proof-num { font-size: 28px; }
    .nu-hp-week-grid { grid-template-columns: 1fr; }
    .nu-hp-community-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .nu-start-here-inner { flex-direction: column; align-items: flex-start; }
    .nu-hp-proof-divider { display: none; }
    .nu-hp-proof-grid { gap: 8px; }
    .nu-hp-proof-stat { padding: 8px 16px; }
    .nu-hp-community-grid { grid-template-columns: 1fr; }
    .nu-sticky-bar-inner { padding: 8px 16px; }
}

/* Footer 6-column grid */
.nu-footer-grid-6 {
    grid-template-columns: 1.8fr repeat(5, 1fr) !important;
}
@media (max-width: 1100px) {
    .nu-footer-grid-6 { grid-template-columns: 1fr 1fr 1fr !important; }
}
@media (max-width: 640px) {
    .nu-footer-grid-6 { grid-template-columns: 1fr 1fr !important; }
}

/* ============================================================
   DARK MODE — Complete Override System
   Applies to entire site when body.nu-dark is present
   ============================================================ */

/* ── Core body + Astra overrides ─────────────────────────── */
body.nu-dark,
body.nu-dark.nu-theme {
    background-color: hsl(200, 25%, 7%) !important;
    color: hsl(200, 15%, 92%) !important;
}

body.nu-dark .site,
body.nu-dark #page,
body.nu-dark .site-content,
body.nu-dark .ast-container,
body.nu-dark main,
body.nu-dark .content-area {
    background-color: hsl(200, 25%, 7%) !important;
    color: hsl(200, 15%, 92%) !important;
}

/* ── Header ─────────────────────────────────────────────── */
body.nu-dark .nu-header {
    background-color: hsla(200, 25%, 7%, 0.92) !important;
    border-bottom-color: hsl(200, 16%, 18%) !important;
}
body.nu-dark .nu-logo-text,
body.nu-dark .nu-nav a,
body.nu-dark .nu-icon-btn {
    color: hsl(200, 15%, 85%) !important;
}
body.nu-dark .nu-nav a:hover,
body.nu-dark .nu-nav a.current {
    color: hsl(186, 80%, 50%) !important;
}
body.nu-dark .nu-mobile-menu {
    background-color: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 18%) !important;
}
body.nu-dark .nu-mobile-nav a {
    color: hsl(200, 15%, 85%) !important;
    border-bottom-color: hsl(200, 16%, 18%) !important;
}
body.nu-dark .nu-search-form {
    background: hsl(200, 20%, 10%) !important;
}
body.nu-dark .nu-search-input {
    background: hsl(200, 20%, 12%) !important;
    color: hsl(200, 15%, 92%) !important;
    border-color: hsl(200, 16%, 20%) !important;
}

/* ── Cards ───────────────────────────────────────────────── */
body.nu-dark .nu-card,
body.nu-dark .nu-article-card,
body.nu-dark .nu-trend-card,
body.nu-dark .nu-category-card,
body.nu-dark .nu-featured-card,
body.nu-dark [class*="-card"] {
    background-color: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 14%) !important;
    color: hsl(200, 15%, 90%) !important;
}
body.nu-dark .nu-card:hover,
body.nu-dark .nu-article-card:hover {
    border-color: hsl(200, 16%, 22%) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}
body.nu-dark .nu-card h2,
body.nu-dark .nu-card h3,
body.nu-dark .nu-card h4,
body.nu-dark .nu-article-card h2,
body.nu-dark .nu-article-card h3,
body.nu-dark [class*="-card"] h2,
body.nu-dark [class*="-card"] h3,
body.nu-dark [class*="-card"] h4 {
    color: hsl(200, 15%, 92%) !important;
}

/* ── Typography (Astra overrides) ────────────────────────── */
body.nu-dark h1, body.nu-dark h2, body.nu-dark h3,
body.nu-dark h4, body.nu-dark h5, body.nu-dark h6 {
    color: hsl(200, 15%, 92%) !important;
}
body.nu-dark p { color: hsl(200, 12%, 72%) !important; }
body.nu-dark a { color: hsl(186, 80%, 50%) !important; }
body.nu-dark a:hover { color: hsl(186, 80%, 65%) !important; }

/* ── Sections & backgrounds ──────────────────────────────── */
body.nu-dark section,
body.nu-dark .nu-section,
body.nu-dark .nu-hero,
body.nu-dark .nu-lp-hero,
body.nu-dark .nu-category-section,
body.nu-dark .nu-featured-section,
body.nu-dark .nu-trending-section,
body.nu-dark .nu-articles-section,
body.nu-dark .nu-newsletter-section,
body.nu-dark .nu-footer {
    background-color: hsl(200, 25%, 7%) !important;
}
body.nu-dark .nu-section-alt,
body.nu-dark .nu-sidebar,
body.nu-dark .nu-widget,
body.nu-dark .nu-tag-cloud,
body.nu-dark .nu-breadcrumb {
    background-color: hsl(200, 20%, 10%) !important;
}

/* ── Borders ─────────────────────────────────────────────── */
body.nu-dark .nu-divider,
body.nu-dark hr,
body.nu-dark [class*="-border"],
body.nu-dark [class*="border-"] {
    border-color: hsl(200, 16%, 18%) !important;
}

/* ── Tags & badges ───────────────────────────────────────── */
body.nu-dark .nu-tag,
body.nu-dark .nu-badge,
body.nu-dark .nu-category-label,
body.nu-dark [class*="-tag"],
body.nu-dark [class*="-badge"] {
    background-color: hsl(200, 20%, 13%) !important;
    color: hsl(186, 60%, 70%) !important;
    border-color: hsl(200, 16%, 20%) !important;
}

/* ── Buttons ─────────────────────────────────────────────── */
body.nu-dark .nu-btn-ghost,
body.nu-dark .nu-btn-outline,
body.nu-dark .nu-btn-secondary {
    background: hsl(200, 20%, 12%) !important;
    border-color: hsl(200, 16%, 22%) !important;
    color: hsl(200, 15%, 85%) !important;
}
body.nu-dark .nu-btn-ghost:hover,
body.nu-dark .nu-btn-outline:hover {
    background: hsl(200, 20%, 16%) !important;
    border-color: hsl(186, 80%, 42%) !important;
    color: hsl(186, 80%, 65%) !important;
}

/* ── Forms & inputs ──────────────────────────────────────── */
body.nu-dark input,
body.nu-dark textarea,
body.nu-dark select {
    background-color: hsl(200, 20%, 12%) !important;
    border-color: hsl(200, 16%, 20%) !important;
    color: hsl(200, 15%, 92%) !important;
}
body.nu-dark input::placeholder,
body.nu-dark textarea::placeholder {
    color: hsl(200, 12%, 45%) !important;
}
body.nu-dark input:focus,
body.nu-dark textarea:focus {
    border-color: hsl(186, 80%, 42%) !important;
    outline: none !important;
}

/* ── Homepage specific ───────────────────────────────────── */
body.nu-dark .nu-hp-wrap { background: hsl(200, 25%, 7%) !important; }
body.nu-dark .nu-hp-courses { background: hsl(200, 25%, 7%) !important; }
body.nu-dark .nu-course-card {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 16%) !important;
}
body.nu-dark .nu-course-card:hover { border-color: hsl(200, 16%, 24%) !important; }
body.nu-dark .nu-course-name,
body.nu-dark .nu-course-desc { color: hsl(200, 15%, 85%) !important; }
body.nu-dark .nu-course-meta-row { color: hsl(200, 12%, 55%) !important; }
body.nu-dark .nu-course-progress-bar { background: hsl(200, 16%, 16%) !important; }
body.nu-dark .nu-vs-section { background: hsl(200, 22%, 9%) !important; }
body.nu-dark .nu-vs-col { background: hsl(200, 20%, 10%) !important; border-color: hsl(200,16%,16%) !important; }
body.nu-dark .nu-vs-col-header { background: hsl(200, 20%, 12%) !important; }
body.nu-dark .nu-vs-col-title { color: hsl(200,15%,90%) !important; }
body.nu-dark .nu-vs-list li { color: hsl(200,12%,72%) !important; }
body.nu-dark .nu-hp-roadmap { background: hsl(200,25%,7%) !important; }
body.nu-dark .nu-roadmap-cert { color: hsl(200,15%,92%) !important; }
body.nu-dark .nu-roadmap-desc { color: hsl(200,12%,55%) !important; }
body.nu-dark .nu-hp-latest { background: hsl(200,22%,9%) !important; }
body.nu-dark .nu-hp-col {
    background: hsl(200,20%,10%) !important;
    border-color: hsl(200,16%,16%) !important;
}
body.nu-dark .nu-hp-list-item { border-color: hsl(200,16%,14%) !important; }
body.nu-dark .nu-hp-list-item:hover { background: hsl(200,20%,12%) !important; }
body.nu-dark .nu-hp-list-body h4 { color: hsl(200,15%,90%) !important; }
body.nu-dark .nu-hp-community { background: hsl(200,25%,7%) !important; }
body.nu-dark .nu-hp-comment-card {
    background: hsl(200,20%,10%) !important;
    border-color: hsl(200,16%,16%) !important;
}
body.nu-dark .nu-hp-comment-text { color: hsl(200,12%,72%) !important; }
body.nu-dark .nu-hp-section-head h2 { color: hsl(200,15%,92%) !important; }
body.nu-dark .nu-hp-section-head p { color: hsl(200,12%,60%) !important; }
body.nu-dark .nu-courses-roadmap-link { color: hsl(200,12%,55%) !important; }

/* ── Landing pages (CCNA, Security+, Network+, CySA+) ────── */
body.nu-dark .nu-landing-page { background: hsl(200,25%,7%) !important; }
body.nu-dark .nu-lp-container { color: hsl(200,15%,90%) !important; }
body.nu-dark .nu-ccna-exam-section,
body.nu-dark .nu-ccna-modules-section,
body.nu-dark .nu-ccna-why-section,
body.nu-dark .nu-ccna-newsletter { background: hsl(200,25%,7%) !important; }
body.nu-dark .nu-ccna-domains,
body.nu-dark .nu-ccna-domain-row {
    background: hsl(200,20%,10%) !important;
    border-color: hsl(200,16%,16%) !important;
}
body.nu-dark .nu-ccna-domain-name { color: hsl(200,15%,90%) !important; }
body.nu-dark .nu-ccna-mod-card {
    background: hsl(200,20%,10%) !important;
    border-color: hsl(200,16%,16%) !important;
}
body.nu-dark .nu-ccna-mod-card.is-live { border-color: hsl(200,16%,22%) !important; }
body.nu-dark .nu-ccna-mod-title { color: hsl(200,15%,92%) !important; }
body.nu-dark .nu-ccna-mod-desc { color: hsl(200,12%,60%) !important; }
body.nu-dark .nu-ccna-exam-left h2 { color: hsl(200,15%,92%) !important; }
body.nu-dark .nu-ccna-exam-desc { color: hsl(200,12%,60%) !important; }
body.nu-dark .nu-ccna-meta-pill {
    background: hsl(200,20%,12%) !important;
    border-color: hsl(200,16%,18%) !important;
}
body.nu-dark .nu-ccna-pill-label { color: hsl(200,12%,55%) !important; }
body.nu-dark .nu-ccna-pill-val { color: hsl(200,15%,88%) !important; }
body.nu-dark .nu-ccna-why-card {
    background: hsl(200,20%,10%) !important;
    border-color: hsl(200,16%,16%) !important;
}
body.nu-dark .nu-ccna-modules-heading { color: hsl(200,15%,92%) !important; }
body.nu-dark .nu-ccna-modules-sub { color: hsl(200,12%,60%) !important; }

/* ── Module pages ────────────────────────────────────────── */
body.nu-dark .nu-mod-page { background: hsl(200,25%,7%) !important; }
body.nu-dark .nu-mod-container { background: hsl(200,25%,7%) !important; }
body.nu-dark .nu-lesson-card {
    background: hsl(200,20%,10%) !important;
    border-color: hsl(200,16%,16%) !important;
}
body.nu-dark .nu-lesson-card.live:hover { border-color: hsl(186,80%,35%) !important; }
body.nu-dark .nu-card-title { color: hsl(200,15%,88%) !important; }
body.nu-dark .nu-mod-breadcrumb { background: hsl(200,20%,10%) !important; }
body.nu-dark .nu-mod-breadcrumb a { color: hsl(186,60%,60%) !important; }
body.nu-dark .nu-mod-nav-btn {
    background: hsl(200,20%,10%) !important;
    border-color: hsl(200,16%,18%) !important;
}
body.nu-dark .nu-mod-nav-title { color: hsl(200,15%,85%) !important; }

/* ── Single article ──────────────────────────────────────── */
body.nu-dark .nu-single-wrap { background: hsl(200,25%,7%) !important; }
body.nu-dark .nu-single-content,
body.nu-dark .nu-article-body {
    color: hsl(200,12%,75%) !important;
    background: hsl(200,25%,7%) !important;
}
body.nu-dark .nu-single-content h1,
body.nu-dark .nu-single-content h2,
body.nu-dark .nu-single-content h3,
body.nu-dark .nu-single-content h4 { color: hsl(200,15%,92%) !important; }
body.nu-dark .nu-single-content code,
body.nu-dark .nu-single-content pre {
    background: hsl(200,20%,10%) !important;
    color: hsl(186,60%,70%) !important;
    border-color: hsl(200,16%,18%) !important;
}
body.nu-dark .nu-single-content blockquote {
    background: hsl(200,20%,10%) !important;
    border-color: hsl(186,80%,42%) !important;
    color: hsl(200,12%,72%) !important;
}
body.nu-dark .nu-single-content table th {
    background: hsl(200,20%,12%) !important;
    color: hsl(200,15%,90%) !important;
}
body.nu-dark .nu-single-content table td { color: hsl(200,12%,72%) !important; }
body.nu-dark .nu-single-content table { border-color: hsl(200,16%,18%) !important; }

/* ── Sidebar ─────────────────────────────────────────────── */
body.nu-dark .nu-sidebar-widget {
    background: hsl(200,20%,10%) !important;
    border-color: hsl(200,16%,16%) !important;
}
body.nu-dark .nu-sidebar-widget h3 { color: hsl(200,15%,90%) !important; }

/* ── Category & archive pages ────────────────────────────── */
body.nu-dark .nu-category-page,
body.nu-dark .nu-archive-page { background: hsl(200,25%,7%) !important; }
body.nu-dark .nu-page-header { background: hsl(200,20%,10%) !important; }
body.nu-dark .nu-page-title { color: hsl(200,15%,92%) !important; }

/* ── Footer ──────────────────────────────────────────────── */
body.nu-dark .nu-footer,
body.nu-dark footer { background: hsl(200,25%,5%) !important; }
body.nu-dark .nu-footer-widget h3 { color: hsl(200,15%,88%) !important; }
body.nu-dark .nu-footer-widget a { color: hsl(200,12%,65%) !important; }
body.nu-dark .nu-footer-bottom { border-color: hsl(200,16%,14%) !important; }

/* ── Astra theme overrides in dark mode ──────────────────── */
body.nu-dark .entry-content,
body.nu-dark .entry-summary,
body.nu-dark .ast-article-single,
body.nu-dark .site-main { background: hsl(200,25%,7%) !important; color: hsl(200,15%,90%) !important; }
body.nu-dark .entry-content h1,
body.nu-dark .entry-content h2,
body.nu-dark .entry-content h3 { color: hsl(200,15%,92%) !important; }

/* ── Scrollbar ───────────────────────────────────────────── */
body.nu-dark ::-webkit-scrollbar { background: hsl(200,25%,7%); }
body.nu-dark ::-webkit-scrollbar-thumb { background: hsl(200,16%,22%); border-radius: 4px; }
body.nu-dark ::-webkit-scrollbar-thumb:hover { background: hsl(200,16%,30%); }

/* ── Transition ──────────────────────────────────────────── */
body, body * {
    transition: background-color 0.25s ease, color 0.2s ease, border-color 0.2s ease !important;
}

/* ============================================================
   DARK MODE — Cards & Specific Element Fixes
   Targets all hardcoded #fff / white backgrounds
   ============================================================ */

/* ── FAQ cards (details/summary + .nu-faq-item) ─────────── */
body.nu-dark details,
body.nu-dark .nu-faq-item,
body.nu-dark summary {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 18%) !important;
    color: hsl(200, 15%, 90%) !important;
}
body.nu-dark details[open] {
    background: hsl(200, 20%, 11%) !important;
}
body.nu-dark summary {
    color: hsl(200, 15%, 90%) !important;
}
body.nu-dark details div,
body.nu-dark .nu-faq-answer {
    color: hsl(200, 12%, 70%) !important;
    border-top-color: hsl(200, 16%, 18%) !important;
}

/* ── Homepage sections with white bg ────────────────────── */
body.nu-dark .nu-hp-courses,
body.nu-dark .nu-hp-roadmap,
body.nu-dark .nu-hp-community { background: hsl(200, 25%, 7%) !important; }

/* ── Homepage course cards ───────────────────────────────── */
body.nu-dark .nu-course-card { background: hsl(200, 20%, 10%) !important; border-color: hsl(200, 16%, 16%) !important; }
body.nu-dark .nu-course-card:hover { border-color: hsl(200, 16%, 24%) !important; box-shadow: 0 8px 32px rgba(0,0,0,.4) !important; }
body.nu-dark .nu-vs-price { background: hsl(200, 20%, 14%) !important; }

/* ── Homepage article list cols ──────────────────────────── */
body.nu-dark .nu-hp-col { background: hsl(200, 20%, 10%) !important; border-color: hsl(200, 16%, 16%) !important; }
body.nu-dark .nu-hp-comment-card { background: hsl(200, 20%, 10%) !important; border-color: hsl(200, 16%, 16%) !important; }
body.nu-dark .nu-comment-quote { color: hsl(200, 16%, 22%) !important; }

/* ── ALL card variants across site ───────────────────────── */
body.nu-dark .nu-article-card,
body.nu-dark .nu-hp-article-card,
body.nu-dark .nu-featured-article,
body.nu-dark .nu-trend-card,
body.nu-dark .nu-hp-trend-card,
body.nu-dark .nu-category-card,
body.nu-dark .nu-week-card,
body.nu-dark .nu-sidebar-card,
body.nu-dark .nu-related-card,
body.nu-dark .nu-hp-week-item,
body.nu-dark .nu-hp-ccna-mod,
body.nu-dark .nu-ccna-mod-card,
body.nu-dark .nu-ccna-why-card,
body.nu-dark .nu-ccna-meta-pill,
body.nu-dark .nu-ccna-progress-badge,
body.nu-dark .nu-ccna-domain-row,
body.nu-dark .nu-why-card,
body.nu-dark .nu-mod-card,
body.nu-dark .nu-lesson-card,
body.nu-dark .nu-review-card,
body.nu-dark .nu-job-card,
body.nu-dark .nu-cert-card {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 16%) !important;
    color: hsl(200, 15%, 88%) !important;
}
body.nu-dark .nu-article-card:hover,
body.nu-dark .nu-hp-trend-card:hover,
body.nu-dark .nu-trend-card:hover,
body.nu-dark .nu-lesson-card:hover {
    border-color: hsl(200, 16%, 26%) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.35) !important;
}

/* ── Card text inside ────────────────────────────────────── */
body.nu-dark .nu-article-card h2,
body.nu-dark .nu-article-card h3,
body.nu-dark .nu-hp-trend-card h3,
body.nu-dark .nu-trend-card h3,
body.nu-dark .nu-lesson-card h3,
body.nu-dark .nu-ccna-mod-card h3,
body.nu-dark [class*="-card"] h2,
body.nu-dark [class*="-card"] h3 {
    color: hsl(200, 15%, 92%) !important;
}
body.nu-dark [class*="-card"] p,
body.nu-dark [class*="-card"] span:not([class*="badge"]):not([class*="tag"]):not([class*="status"]) {
    color: hsl(200, 12%, 65%) !important;
}

/* ── Landing page specific cards ─────────────────────────── */
body.nu-dark .nu-ccna-exam-section { background: hsl(200, 25%, 7%) !important; }
body.nu-dark .nu-ccna-why-section { background: hsl(200, 25%, 7%) !important; }
body.nu-dark .nu-lp-topics { background: hsl(200, 25%, 7%) !important; }
body.nu-dark .nu-ccna-domain-row {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 16%) !important;
}
body.nu-dark .nu-ccna-domain-row.heavy {
    background: hsl(200, 22%, 12%) !important;
    border-color: hsl(200, 30%, 20%) !important;
}
body.nu-dark .nu-ccna-progress-badge {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 18%) !important;
}
body.nu-dark .nu-ccna-modules-section { background: hsl(200, 22%, 9%) !important; }
body.nu-dark .nu-ccna-mod-card {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 16%) !important;
}
body.nu-dark .nu-ccna-mod-card.is-live { border-color: hsl(200, 20%, 20%) !important; }
body.nu-dark .nu-ccna-why-card {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 16%) !important;
}
body.nu-dark .nu-ccna-meta-pill {
    background: hsl(200, 20%, 12%) !important;
    border-color: hsl(200, 16%, 18%) !important;
}

/* ── "Who is this for" cards (inline style bg) ───────────── */
body.nu-dark [style*="background:#fff"],
body.nu-dark [style*="background: #fff"],
body.nu-dark [style*="background:#ffffff"],
body.nu-dark [style*="background-color:#fff"],
body.nu-dark [style*="background-color: #fff"],
body.nu-dark [style*="background-color: white"],
body.nu-dark [style*="background-color:white"] {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 16%) !important;
}

/* ── Inline style text color overrides ───────────────────── */
body.nu-dark [style*="color:#0f172a"],
body.nu-dark [style*="color: #0f172a"],
body.nu-dark [style*="color:#1e293b"],
body.nu-dark [style*="color:#334155"] {
    color: hsl(200, 15%, 88%) !important;
}
body.nu-dark [style*="color:#64748b"],
body.nu-dark [style*="color:#475569"],
body.nu-dark [style*="color:#94a3b8"] {
    color: hsl(200, 12%, 60%) !important;
}

/* ── Inline white section backgrounds ───────────────────── */
body.nu-dark [style*="background:#f8fafc"],
body.nu-dark [style*="background: #f8fafc"],
body.nu-dark [style*="background:#f1f5f9"],
body.nu-dark [style*="background: #f1f5f9"],
body.nu-dark [style*="background:#f8f9fa"] {
    background: hsl(200, 22%, 9%) !important;
}

/* ── White section backgrounds via class ─────────────────── */
body.nu-dark .nu-hp-week-cyber,
body.nu-dark .nu-hp-ccna-strip,
body.nu-dark .nu-featured-section,
body.nu-dark .nu-articles-section,
body.nu-dark [class*="-section"]:not([class*="hero"]):not([class*="newsletter"]):not([class*="cta"]) {
    background: hsl(200, 25%, 7%) !important;
}

/* ── Alternate section bg ────────────────────────────────── */
body.nu-dark .nu-vs-section,
body.nu-dark .nu-hp-latest,
body.nu-dark .nu-ccna-modules-section,
body.nu-dark section:nth-child(even):not([class*="hero"]):not([class*="newsletter"]) {
    background: hsl(200, 22%, 9%) !important;
}

/* ── ccna-single.css cards ───────────────────────────────── */
body.nu-dark .nu-single-toc,
body.nu-dark .nu-single-summary,
body.nu-dark .nu-single-quiz,
body.nu-dark .nu-single-nav,
body.nu-dark .nu-single-author,
body.nu-dark .nu-single-related-card {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 16%) !important;
    color: hsl(200, 15%, 85%) !important;
}

/* ── Category/archive page cards ─────────────────────────── */
body.nu-dark .nu-col-net,
body.nu-dark .nu-col-cyber,
body.nu-dark .nu-col-tech {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 16%) !important;
}
body.nu-dark .nu-hp-week-item {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 16%) !important;
}
body.nu-dark .nu-hp-week-item h3 { color: hsl(200, 15%, 90%) !important; }

/* ── Roadmap steps ───────────────────────────────────────── */
body.nu-dark .nu-roadmap-fork-tag {
    background: hsl(38, 20%, 12%) !important;
    border-color: hsl(38, 30%, 22%) !important;
    color: #f59e0b !important;
}

/* ── Borders on inline styles ────────────────────────────── */
body.nu-dark [style*="border:1.5px solid #e2e8f0"],
body.nu-dark [style*="border: 1.5px solid #e2e8f0"],
body.nu-dark [style*="border:1px solid #e2e8f0"],
body.nu-dark [style*="border: 1px solid #e2e8f0"],
body.nu-dark [style*="border-bottom:1px solid #e2e8f0"],
body.nu-dark [style*="border-bottom: 1px solid #e2e8f0"] {
    border-color: hsl(200, 16%, 18%) !important;
}

/* ── Page wrappers ───────────────────────────────────────── */
body.nu-dark .nu-lp-wrap,
body.nu-dark .nu-category-page-wrap,
body.nu-dark .nu-archive-wrap,
body.nu-dark .nu-page-wrap {
    background: hsl(200, 25%, 7%) !important;
}

/* ============================================================
   DARK MODE — TOC + EEAT Box + Plugin Boxes
   ============================================================ */

/* ── Table of Contents (nu-cas-toc theme + Rank Math) ────── */
body.nu-dark .nu-cas-toc-wrap {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 18%) !important;
}
body.nu-dark .nu-cas-toc-header {
    background: hsl(200, 20%, 12%) !important;
    border-color: hsl(200, 16%, 18%) !important;
    color: hsl(200, 15%, 88%) !important;
}
body.nu-dark .nu-cas-toc-link {
    color: hsl(186, 60%, 60%) !important;
}
body.nu-dark .nu-cas-toc-link:hover {
    background: hsl(200, 20%, 14%) !important;
    color: hsl(186, 80%, 65%) !important;
}
body.nu-dark .nu-cas-toc-link.active {
    background: hsl(200, 20%, 14%) !important;
    color: hsl(186, 80%, 60%) !important;
}

/* Rank Math TOC block */
body.nu-dark .wp-block-rank-math-toc-block,
body.nu-dark .rank-math-toc,
body.nu-dark nav.rank-math-toc,
body.nu-dark .rll-toc,
body.nu-dark [class*="rank-math-toc"],
body.nu-dark [class*="toc-block"] {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 18%) !important;
    color: hsl(200, 15%, 88%) !important;
}
body.nu-dark .wp-block-rank-math-toc-block h2,
body.nu-dark .wp-block-rank-math-toc-block h3,
body.nu-dark .rank-math-toc h2,
body.nu-dark .rank-math-toc h3 {
    color: hsl(200, 15%, 88%) !important;
}
body.nu-dark .wp-block-rank-math-toc-block a,
body.nu-dark .rank-math-toc a {
    color: hsl(186, 60%, 60%) !important;
}
body.nu-dark .wp-block-rank-math-toc-block a:hover,
body.nu-dark .rank-math-toc a:hover {
    color: hsl(186, 80%, 70%) !important;
}

/* Easy Table of Contents plugin */
body.nu-dark .ez-toc-container,
body.nu-dark .ez-toc-widget-container,
body.nu-dark #ez-toc-container,
body.nu-dark .ez-toc-v2_0_66,
body.nu-dark [id*="ez-toc"],
body.nu-dark [class*="ez-toc"] {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 18%) !important;
    color: hsl(200, 15%, 88%) !important;
}
body.nu-dark [class*="ez-toc"] a { color: hsl(186, 60%, 60%) !important; }
body.nu-dark [class*="ez-toc"] a:hover { color: hsl(186, 80%, 70%) !important; }

/* ── EEAT / "About This Content" box ─────────────────────── */
/* Common EEAT plugin class names */
body.nu-dark .eeat-box,
body.nu-dark .eeat-snippet,
body.nu-dark .eeat-author-box,
body.nu-dark .nu-eeat,
body.nu-dark .nu-expertise-box,
body.nu-dark .content-credentials,
body.nu-dark .author-credentials,
body.nu-dark [class*="eeat"],
body.nu-dark [class*="expertise-box"],
body.nu-dark [class*="credential"] {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 18%) !important;
    color: hsl(200, 15%, 85%) !important;
}

/* Target by the visible text structure in screenshot:
   box with light gray bg, "About This Content" heading */
body.nu-dark .entry-content > div[style*="background"],
body.nu-dark .entry-content > div[style*="border"][style*="radius"],
body.nu-dark .post-content > div[style*="background"],
body.nu-dark .post-content > div[style*="border"][style*="radius"] {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 18%) !important;
}

/* Catch-all for any box with inline light bg in article content */
body.nu-dark .entry-content [style*="background:#f"],
body.nu-dark .entry-content [style*="background: #f"],
body.nu-dark .entry-content [style*="background-color:#f"],
body.nu-dark .entry-content [style*="background-color: #f"],
body.nu-dark .entry-content [style*="background:#fff"],
body.nu-dark .entry-content [style*="background: #fff"],
body.nu-dark .entry-content [style*="background-color:#fff"],
body.nu-dark .entry-content [style*="background-color: #fff"],
body.nu-dark .entry-content [style*="background: white"],
body.nu-dark .entry-content [style*="background:white"] {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 18%) !important;
    color: hsl(200, 12%, 72%) !important;
}
body.nu-dark .entry-content [style*="background:#f"] h1,
body.nu-dark .entry-content [style*="background:#f"] h2,
body.nu-dark .entry-content [style*="background:#f"] h3,
body.nu-dark .entry-content [style*="background:#fff"] h1,
body.nu-dark .entry-content [style*="background:#fff"] h2,
body.nu-dark .entry-content [style*="background:#fff"] h3 {
    color: hsl(200, 15%, 88%) !important;
}

/* nu-cas article body bg */
body.nu-dark .nu-cas-body,
body.nu-dark .nu-cas-main-content,
body.nu-dark .nu-cas-content-area {
    background: hsl(200, 25%, 7%) !important;
}

/* Sidebar module nav */
body.nu-dark .nu-cas-sidebar-left,
body.nu-dark .nu-cas-module-nav {
    background: hsl(200, 20%, 10%) !important;
    border-color: hsl(200, 16%, 18%) !important;
}
body.nu-dark .nu-cas-module-item a { color: hsl(200, 12%, 70%) !important; }
body.nu-dark .nu-cas-module-item a:hover { color: hsl(186, 60%, 60%) !important; }
body.nu-dark .nu-cas-module-item.active a { color: hsl(186, 80%, 55%) !important; }

/* ── Footer bottom bar ───────────────────────────────────── */
.nu-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}
.nu-footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.nu-footer-legal-links a {
    color: #64748b !important;
    font-size: 12px;
    text-decoration: none;
    transition: color .15s;
}
.nu-footer-legal-links a:hover { color: #009688 !important; }
.nu-footer-legal-links span { color: #334155; font-size: 11px; }
.nu-footer-credit {
    font-size: 12px;
    color: #475569;
    margin: 0;
}
.nu-footer-credit a {
    color: #009688 !important;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.nu-footer-credit a:hover { color: #4dd0c4 !important; }

/* Legal pages styling */
.nu-legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 0 60px;
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}
.nu-legal-page h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 36px 0 12px !important;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}
.nu-legal-page h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 24px 0 8px !important;
}
.nu-legal-page ul, .nu-legal-page ol {
    padding-left: 24px;
    margin: 12px 0 16px;
}
.nu-legal-page li { margin-bottom: 6px; }
.nu-legal-page a { color: #009688 !important; }
.nu-legal-page a:hover { color: #00796b !important; }
.nu-legal-updated {
    background: #f0fdf9;
    border: 1.5px solid #80cbc4;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #0d7d62;
    margin-bottom: 28px;
    display: inline-block;
}
.nu-legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 13px;
}
.nu-legal-page table th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #e2e8f0;
}
.nu-legal-page table td {
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: top;
}
.nu-legal-page table tr:nth-child(even) td { background: #f8fafc; }

/* Dark mode for legal pages */
body.nu-dark .nu-legal-page { color: #cbd5e1; }
body.nu-dark .nu-legal-page h2 { color: #e2e8f0 !important; border-color: #1e293b; }
body.nu-dark .nu-legal-page h3 { color: #e2e8f0 !important; }
body.nu-dark .nu-legal-updated { background: #0d2318; border-color: #1a4731; color: #4dd0c4; }
body.nu-dark .nu-legal-page table th { background: #1e293b; color: #e2e8f0; border-color: #334155; }
body.nu-dark .nu-legal-page table td { border-color: #334155; color: #94a3b8; }
body.nu-dark .nu-legal-page table tr:nth-child(even) td { background: #1a2332; }
body.nu-dark .nu-footer-credit a { color: #4dd0c4 !important; }
body.nu-dark .nu-footer-legal-links a { color: #475569 !important; }
body.nu-dark .nu-footer-legal-links a:hover { color: #4dd0c4 !important; }

@media(max-width:600px) {
    .nu-footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ================================================================
   NetworkUstad v3.5 — Modern Universal Single Post Experience
   Applies to normal posts and all certification learning articles.
   ================================================================ */
.nu-article-single {
    max-width: 1180px !important;
    padding: 28px 20px 80px !important;
    margin: 0 auto !important;
}
.nu-article-single > .nu-breadcrumbs {
    max-width: 920px;
    margin: 0 auto 22px;
    padding: 9px 14px;
    border: 1px solid var(--nu-border, #e2e8f0);
    border-radius: 12px;
    background: rgba(248,250,252,.85);
}
.nu-article-single > h1 {
    max-width: 920px;
    margin: 14px auto 16px !important;
    font-size: clamp(32px, 5vw, 54px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.04em;
    font-weight: 900 !important;
}
.nu-article-single > .nu-badge {
    display:flex !important;
    width:max-content;
    margin: 0 auto 12px !important;
}
.nu-article-meta {
    max-width:920px;
    margin:0 auto 18px !important;
    padding:11px 16px;
    justify-content:center;
    border-top:1px solid var(--nu-border,#e2e8f0);
    border-bottom:1px solid var(--nu-border,#e2e8f0);
}
.nu-share-buttons {
    max-width:920px;
    margin:0 auto 24px !important;
    justify-content:flex-end;
}
.nu-article-hero-image {
    max-width:1080px;
    margin:0 auto 28px !important;
    border-radius:24px !important;
    box-shadow:0 20px 55px rgba(15,23,42,.12);
    background:#f8fafc;
}
.nu-article-hero-image img {
    object-fit:cover !important;
    background:transparent !important;
}
.nu-article-content-card {
    max-width:920px;
    margin:0 auto 34px !important;
    border-radius:24px !important;
    box-shadow:0 14px 45px rgba(15,23,42,.07);
    overflow:hidden;
}
.nu-article-content-card .nu-content-inner {
    padding:clamp(24px,4vw,52px) !important;
}
.nu-prose {
    font-size:18px !important;
    line-height:1.9 !important;
    color:var(--nu-card-foreground,#1e293b) !important;
}
.nu-prose p { margin:0 0 1.35em; }
.nu-prose h2 {
    position:relative;
    margin-top:2.2em !important;
    padding-top:.35em;
    font-size:clamp(25px,3vw,32px) !important;
    letter-spacing:-.025em;
}
.nu-prose h2::before {
    content:"";
    display:block;
    width:38px;height:4px;
    margin-bottom:12px;
    border-radius:99px;
    background:linear-gradient(90deg,#0f9d8f,#38bdf8);
}
.nu-prose h3 { font-size:clamp(21px,2.5vw,25px) !important; margin-top:1.8em !important; }
.nu-prose img {
    max-width:100%;height:auto;border-radius:16px;
    box-shadow:0 12px 35px rgba(15,23,42,.08);
}
.nu-prose blockquote {
    margin:1.7em 0;padding:18px 22px;border-left:4px solid #0f9d8f;
    border-radius:0 14px 14px 0;background:#f0faf8;
}
.nu-prose pre {
    border-radius:16px !important;
    padding:20px !important;
    overflow:auto;
    box-shadow:inset 0 0 0 1px rgba(148,163,184,.18);
}
.nu-prose table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border-radius:14px; }
.nu-prose th, .nu-prose td { padding:12px 14px; border-bottom:1px solid #e2e8f0; }
.nu-prose th { background:#f1f5f9; font-weight:800; }

/* Certification single articles — modern reading dashboard */
.nu-ccna-single {
    background:linear-gradient(180deg,#f6fafb 0,#fff 420px);
}
.nu-ccna-single .nu-cas-header {
    position:relative;
    overflow:hidden;
    background:
      radial-gradient(circle at 10% 20%,rgba(45,212,191,.15),transparent 28%),
      radial-gradient(circle at 88% 10%,rgba(59,130,246,.13),transparent 26%),
      linear-gradient(135deg,#071522,#0b2938 55%,#073b39) !important;
}
.nu-ccna-single .nu-cas-header::after {
    content:"";position:absolute;inset:auto -10% -90px;height:180px;
    background:radial-gradient(ellipse,rgba(255,255,255,.08),transparent 68%);pointer-events:none;
}
.nu-ccna-single .nu-cas-header-inner { max-width:1120px !important; }
.nu-ccna-single .nu-cas-title { font-size:clamp(32px,5vw,56px) !important; letter-spacing:-.04em !important; }
.nu-ccna-single .nu-cas-meta { padding:13px 16px; border-radius:14px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); }
.nu-ccna-single .nu-cas-body { max-width:1180px !important; gap:26px !important; }
.nu-ccna-single .nu-cas-sidebar-left,
.nu-ccna-single .nu-cas-sidebar-right { position:sticky; top:92px; align-self:start; }
.nu-ccna-single .nu-cas-module-nav,
.nu-ccna-single .nu-cas-share,
.nu-ccna-single .nu-cas-toc-wrap {
    border-radius:18px !important;
    box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.nu-ccna-single .nu-cas-main { min-width:0; }
.nu-ccna-single .nu-cas-feat-img {
    border-radius:22px !important;
    overflow:hidden;
    box-shadow:0 18px 45px rgba(15,23,42,.11);
}
.nu-ccna-single .nu-cas-feat-img img { width:100%;height:auto;display:block; }
.nu-ccna-single .nu-cas-prose {
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:24px;
    padding:clamp(24px,4vw,50px);
    box-shadow:0 14px 45px rgba(15,23,42,.06);
    font-size:18px !important;
    line-height:1.9 !important;
}
.nu-ccna-single .nu-cas-prose h2,
.nu-ccna-single .nu-cas-prose h3 { letter-spacing:-.025em; }
.nu-ccna-single .nu-cas-prose h2::before {
    content:"";display:block;width:38px;height:4px;margin-bottom:12px;border-radius:99px;
    background:linear-gradient(90deg,#0f9d8f,#38bdf8);
}
.nu-ccna-single .nu-cas-art-nav-btn { border-radius:16px !important; transition:transform .2s,box-shadow .2s; }
.nu-ccna-single .nu-cas-art-nav-btn:hover { transform:translateY(-2px);box-shadow:0 10px 25px rgba(15,23,42,.08); }

/* Dark mode */
.nu-dark .nu-article-single > .nu-breadcrumbs { background:rgba(15,23,42,.75); border-color:#334155; }
.nu-dark .nu-article-single > h1,
.nu-dark .nu-prose { color:#e2e8f0 !important; }
.nu-dark .nu-article-meta { border-color:#334155; }
.nu-dark .nu-article-content-card { background:#111c2e; border-color:#334155; }
.nu-dark .nu-prose blockquote { background:#0b2a2a; border-color:#2dd4bf; }
.nu-dark .nu-prose th { background:#1e293b; }
.nu-dark .nu-prose th,.nu-dark .nu-prose td { border-color:#334155; }
.nu-dark .nu-ccna-single { background:linear-gradient(180deg,#07111d,#0b1220 420px); }
.nu-dark .nu-ccna-single .nu-cas-prose { background:#111c2e;border-color:#334155; }

@media (max-width: 900px) {
    .nu-ccna-single .nu-cas-sidebar-left,
    .nu-ccna-single .nu-cas-sidebar-right { position:static; }
}
@media (max-width: 640px) {
    .nu-article-single { padding:18px 12px 52px !important; }
    .nu-article-single > h1 { font-size:32px !important; }
    .nu-article-meta { justify-content:flex-start; gap:.7rem; }
    .nu-share-buttons { justify-content:flex-start; }
    .nu-article-hero-image { border-radius:16px !important; }
    .nu-prose { font-size:16px !important; line-height:1.8 !important; }
    .nu-article-content-card { border-radius:18px !important; }
    .nu-ccna-single .nu-cas-prose { border-radius:18px;padding:22px; font-size:16px !important; }
}
