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

/* ============================================
   GLOBAL LINK FIX — Astra override hatao
   Sari jagah links clickable rahein
   ============================================ */
body.nu-theme a,
body.nu-theme a:link,
body.nu-theme a:visited {
    pointer-events: auto !important;
    cursor: pointer !important;
}

body.nu-theme a[href^="mailto:"] {
    color: var(--nu-primary) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

body.nu-theme a[href^="mailto:"]:hover {
    text-decoration: underline !important;
    color: var(--nu-primary-light) !important;
}

body.nu-theme a[href^="tel:"] {
    color: var(--nu-primary) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none;
}

body.nu-theme a[href^="tel:"]:hover {
    text-decoration: underline !important;
}

/* Nav, footer, card — sab links */
body.nu-theme .nu-nav a,
body.nu-theme .nu-mobile-nav a,
body.nu-theme .nu-footer-col ul li a,
body.nu-theme .nu-footer-social a,
body.nu-theme .nu-footer-email a,
body.nu-theme .nu-card a,
body.nu-theme .nu-btn,
body.nu-theme .nu-hero-buttons a {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 5;
}

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

    --nu-primary: hsl(252, 75%, 60%);
    --nu-primary-light: hsl(258, 80%, 70%);
    --nu-primary-foreground: hsl(0, 0%, 100%);

    --nu-background: hsl(260, 30%, 98%);
    --nu-foreground: hsl(260, 25%, 12%);
    --nu-card: hsl(260, 25%, 97%);
    --nu-card-foreground: hsl(260, 25%, 14%);
    --nu-card-border: hsl(258, 25%, 91%);
    --nu-border: hsl(258, 20%, 88%);
    --nu-muted: hsl(258, 20%, 92%);
    --nu-muted-foreground: hsl(258, 12%, 42%);
    --nu-accent: hsl(258, 60%, 93%);
    --nu-accent-foreground: hsl(258, 70%, 40%);
    --nu-secondary: hsl(258, 20%, 88%);
    --nu-secondary-foreground: hsl(258, 25%, 20%);
    --nu-destructive: hsl(0, 84%, 42%);

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

/* Dark mode variables */
.nu-dark {
    --nu-background: hsl(258, 30%, 8%);
    --nu-foreground: hsl(258, 15%, 92%);
    --nu-card: hsl(258, 25%, 11%);
    --nu-card-foreground: hsl(258, 15%, 90%);
    --nu-card-border: hsl(258, 20%, 16%);
    --nu-border: hsl(258, 20%, 19%);
    --nu-muted: hsl(258, 16%, 17%);
    --nu-muted-foreground: hsl(258, 12%, 62%);
    --nu-accent: hsl(258, 30%, 18%);
    --nu-accent-foreground: hsl(258, 70%, 75%);
    --nu-secondary: hsl(258, 18%, 19%);
    --nu-secondary-foreground: hsl(258, 15%, 86%);
    --nu-primary: hsl(252, 80%, 66%);
    --nu-primary-light: hsl(258, 85%, 74%);
}

/* ============================================
   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-family: var(--nu-font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

@media (max-width: 639px) {
    .nu-logo-text {
        font-size: 1.05rem;
    }
}

/* 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;
}

.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-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);
}

/* ============================================
   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;
}

/* Small Article Card (More Stories section - chota image) */
.nu-article-card--sm .nu-card-image {
    aspect-ratio: 16 / 10;
    max-height: 140px;
}

@media (min-width: 640px) {
    .nu-article-card--sm .nu-card-image {
        max-height: 120px;
    }
}

.nu-article-card--sm .nu-card-body {
    padding: 0.85rem;
}

.nu-article-card--sm .nu-card-body h3 {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
}

.nu-article-card--sm .nu-card-body .nu-excerpt {
    display: none;
}

/* 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-cat-number {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    font-family: var(--nu-font-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: white;
    background-color: rgba(20, 14, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.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.88), rgba(0,0,0,0.68), rgba(0,0,0,0.32));
}

.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,
body .nu-cat-icon svg {
    width: 20px;
    height: 20px;
    color: hsl(258, 80%, 78%) !important;
    filter: drop-shadow(0 0 4px rgba(160, 120, 255, 0.5));
}

.nu-badge-glass,
body .nu-badge-glass {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    backdrop-filter: blur(4px);
    text-shadow: none;
}

.nu-category-hero h1,
.nu-category-hero .nu-cat-hero-content h1,
body .nu-category-hero h1 {
    font-size: 1.875rem;
    color: #ffffff !important;
    margin: 0 0 0.75rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

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

.nu-category-hero .nu-cat-desc,
body .nu-category-hero .nu-cat-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 36rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ============================================
   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: flex-start;
    gap: 1.1rem;
    padding: 1.25rem;
    border-radius: var(--nu-radius-lg);
    background-color: var(--nu-card);
    border: 1px solid var(--nu-card-border);
    margin-bottom: 3rem;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nu-author-box:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-color: var(--nu-primary);
}

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

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

@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 {
    min-width: 0;
}

.nu-author-info .nu-author-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}

.nu-author-info .nu-author-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    font-family: var(--nu-font-serif);
}

.nu-author-info .nu-author-role {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--nu-accent-foreground);
    background: var(--nu-accent);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    margin: 0;
}

.nu-author-info .nu-author-bio {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--nu-muted-foreground);
    margin: 0.35rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nu-author-info .nu-author-viewall {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--nu-primary);
    margin-top: 0.5rem;
}

/* Author archive page */
.nu-author-hero-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nu-author-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.35);
}

.nu-author-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nu-author-hero-role {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,0.18);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

/* ============================================
   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-email a {
    color: var(--nu-muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

.nu-footer-email a:hover {
    color: var(--nu-primary);
    text-decoration: underline;
}

.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>
   ============================================ */

.nu-trending-grid {
    width: 100% !important;
}

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

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

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

@media (min-width: 1024px) {
    .trends-publisher-trending-grid {
        grid-template-columns: repeat(3, 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: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

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

@media (min-width: 1024px) {
    .nu-trending-section .tp-trends-grid {
        grid-template-columns: repeat(3, 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;
    }
}



/* ============================================
   Page Hero (Search, 404, Archive pages)
   Fashion-related background image hero
   ============================================ */
.nu-page-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 640px) {
    .nu-page-hero {
        min-height: 340px;
    }
}

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

.nu-page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.nu-page-hero-bg .nu-gradient-r {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,10,15,0.88) 0%, rgba(10,10,15,0.55) 60%, rgba(10,10,15,0.25) 100%);
}

.nu-page-hero-bg .nu-gradient-t {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.7) 0%, transparent 60%);
}

.nu-page-hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
    color: #fff;
}

.nu-page-hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #fff;
    line-height: 1.2;
}

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

.nu-page-hero-content .nu-search-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.nu-page-hero-content .nu-search-title-row svg {
    color: var(--nu-primary, #a855f7);
    flex-shrink: 0;
}

.nu-page-hero-content .nu-search-title-row h1 {
    margin: 0;
}

.nu-page-hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin: 0;
}

.nu-page-hero-subtitle strong {
    color: #fff;
}

.nu-result-count {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    margin-left: 0.25rem;
}

/* 404 specific */
.nu-404-hero .nu-page-hero-content {
    text-align: center;
    padding: 4rem 0;
}

.nu-404-number {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--nu-primary, #a855f7), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

@media (min-width: 640px) {
    .nu-404-number {
        font-size: 8rem;
    }
}

.nu-404-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin: 0 0 2rem;
}

/* Latest Articles section — "New" badge on fresh posts */
.nu-latest-new-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: 0.4rem;
}

/* ============================================
   NEW FASHION LOGO STYLES
   ============================================ */
.nu-logo-icon-wrap {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.nu-logo-icon-wrap--sm {
    width: 32px;
    height: 32px;
}

.nu-logo-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nu-logo-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nu-logo-miga {
    font-family: var(--nu-font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nu-foreground);
    letter-spacing: -0.01em;
    line-height: 1;
}

.nu-logo-trendz {
    font-family: var(--nu-font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
    line-height: 1;
    /* Miga and trendz on same line */
    display: inline;
}

/* Keep Miga and trendz on one line */
.nu-logo-wordmark {
    flex-direction: row;
    align-items: baseline;
    gap: 0;
    position: relative;
}

.nu-logo-tagline {
    display: none; /* shown only on wider screens */
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--nu-muted-foreground);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: absolute;
    bottom: -12px;
    left: 0;
    white-space: nowrap;
    font-family: var(--nu-font-sans);
    -webkit-text-fill-color: var(--nu-muted-foreground);
}

@media (min-width: 640px) {
    .nu-logo-tagline {
        display: block;
    }
    .nu-logo-wordmark {
        padding-bottom: 0.8rem;
    }
}

.nu-logo-miga,
.nu-logo-trendz {
    font-size: 1.15rem;
}

@media (max-width: 639px) {
    .nu-logo-miga,
    .nu-logo-trendz {
        font-size: 1rem;
    }
}

/* Footer logo */
.nu-footer-logo {
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Force SVG gradient circle visible on any bg */
.nu-footer-logo .nu-logo-svg {
    width: 32px;
    height: 32px;
    display: block;
    filter: drop-shadow(0 1px 4px rgba(168,85,247,0.35));
}

/* Wordmark colors in footer — always visible */
.nu-footer-logo .nu-logo-miga {
    color: var(--nu-foreground) !important;
    -webkit-text-fill-color: var(--nu-foreground) !important;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--nu-font-serif, Georgia, serif);
    line-height: 1;
}

.nu-footer-logo .nu-logo-trendz {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--nu-font-serif, Georgia, serif);
    line-height: 1;
    display: inline !important;
}

/* Ensure wordmark stays on one line in footer */
.nu-footer-logo .nu-logo-wordmark {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0;
    padding-bottom: 0;
}

/* Hide tagline in footer to keep it compact */
.nu-footer-logo .nu-logo-tagline {
    display: none !important;
}

/* Dark mode: miga text stays light */
body.nu-dark .nu-footer-logo .nu-logo-miga {
    color: #f0eeff !important;
    -webkit-text-fill-color: #f0eeff !important;
}

.nu-footer-desc {
    font-size: 0.875rem;
    color: var(--nu-muted-foreground);
    line-height: 1.6;
    max-width: 22rem;
    margin: 0 0 1.25rem;
}

/* ============================================
   CATEGORY SECTIONS (landing page scroll)
   Each category as its own full section
   ============================================ */
.nu-category-section {
    border-top: 1px solid var(--nu-border);
    padding-top: 2.5rem;
}

.nu-cat-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    position: relative;
    padding-left: 0;
    border-left: none;
}

.nu-cat-section-header--fashion,
.nu-cat-section-header--beauty,
.nu-cat-section-header--homedecor,
.nu-cat-section-header--lifestyle { border-left: none; }

.nu-cat-section-icon { display: none; }

.nu-cat-section-icon svg { display: none; }

.nu-cat-section-titles {
    flex: 1;
    min-width: 0;
}

.nu-cat-section-number { display: none; }

.nu-cat-section-titles h2 {
    font-family: var(--nu-font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

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

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

.nu-cat-viewall {
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem !important;
    padding: 0.4rem 0.9rem !important;
}

@media (max-width: 639px) {
    .nu-cat-viewall {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .nu-cat-section-header {
        gap: 0.75rem;
    }
}


/* ============================================================
   INNER PAGES — About, Contact, Premium Services, Privacy Policy
   Fixed: Explicit colors for full visibility in light + dark mode
   ============================================================ */

/* ---- Light mode colors (default) ---- */
:root {
    --nup-bg:        #ffffff;
    --nup-card:      #f7f5ff;
    --nup-border:    #e5e0f5;
    --nup-text:      #1a1035;
    --nup-muted:     #4a4565;
    --nup-accent:    #a855f7;
    --nup-input-bg:  #f0edfb;
}

/* ---- Dark mode colors ---- */
.nu-dark :root,
.nu-dark,
body.nu-dark {
    --nup-bg:        #0f0b1e;
    --nup-card:      #1a1535;
    --nup-border:    #2e2850;
    --nup-text:      #f0eeff;
    --nup-muted:     #b0a8d0;
    --nup-accent:    #c084fc;
    --nup-input-bg:  #120e28;
}

/* Page wrapper */
.nu-inner-page {
    min-height: 60vh;
    padding-bottom: 4rem;
    background: var(--nup-bg, #ffffff);
}

/* ---- Hero ---- */
.nu-inner-page-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0a0a0f 100%);
    padding: 4rem 0 3rem;
    overflow: hidden;
    text-align: center;
}

.nu-inner-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.nu-inner-page-hero .nu-container {
    position: relative;
    z-index: 1;
}

.nu-inner-page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 0.75rem;
    font-family: var(--nu-font-serif, Georgia, serif);
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

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

.nu-inner-page-hero .nu-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(168,85,247,0.22);
    border: 1px solid rgba(168,85,247,0.5);
    color: #d8b4fe !important;
    border-radius: 999px;
    padding: 0.3rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.nu-inner-page-hero .nu-page-subtitle {
    color: rgba(255,255,255,0.78) !important;
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ---- Body ---- */
.nu-inner-page-body {
    padding: 3rem 0;
    background: var(--nup-bg, #ffffff);
}

/* Prose inside article-content-card on inner pages */
.nu-inner-page .nu-article-content-card {
    background: var(--nup-card, #f7f5ff) !important;
    border: 1px solid var(--nup-border, #e5e0f5) !important;
}

.nu-inner-page .nu-prose h2 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 1.75rem 0 0.6rem !important;
    color: var(--nup-text, #1a1035) !important;
    font-family: var(--nu-font-serif, Georgia, serif);
}

.nu-inner-page .nu-prose h2:first-child { margin-top: 0 !important; }

.nu-inner-page .nu-prose p,
.nu-inner-page .nu-prose li {
    color: var(--nup-muted, #4a4565) !important;
    line-height: 1.8;
    margin-bottom: 0.85rem;
}

/* ---- About: Value Cards ---- */
.nu-about-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
}

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

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

.nu-value-card {
    background: var(--nup-card, #f7f5ff);
    border: 1px solid var(--nup-border, #e5e0f5);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.nu-value-card:hover {
    border-color: var(--nup-accent, #a855f7);
    transform: translateY(-3px);
}

.nu-value-card .nu-value-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(168,85,247,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--nup-accent, #a855f7);
}

.nu-value-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--nup-text, #1a1035) !important;
}

.nu-value-card p {
    font-size: 0.85rem;
    color: var(--nup-muted, #4a4565) !important;
    margin: 0;
    line-height: 1.6;
}

/* ---- About: Team Strip ---- */
.nu-about-team-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--nup-card, #f7f5ff);
    border: 1px solid var(--nup-border, #e5e0f5);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.nu-about-team-strip p {
    color: var(--nup-muted, #4a4565) !important;
    margin: 0;
}

.nu-about-team-strip p:first-child {
    color: var(--nup-text, #1a1035) !important;
}

.nu-about-team-avatars { display: flex; }

.nu-about-team-avatars span {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border: 2px solid #fff;
    margin-left: -0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff !important;
}

.nu-about-team-avatars span:first-child { margin-left: 0; }

/* ---- Contact Grid ---- */
.nu-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

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

.nu-contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nu-contact-info-card {
    background: var(--nup-card, #f7f5ff);
    border: 1px solid var(--nup-border, #e5e0f5);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.nu-contact-info-card .nu-ci-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: rgba(168,85,247,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--nup-accent, #a855f7);
}

.nu-contact-info-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--nup-text, #1a1035) !important;
}

.nu-contact-info-card p {
    font-size: 0.85rem;
    color: var(--nup-muted, #4a4565) !important;
    margin: 0;
    line-height: 1.5;
}

.nu-contact-info-card p a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nu-contact-info-card p a:hover {
    color: var(--nu-primary, #a855f7) !important;
    text-decoration: underline;
}

/* Contact Form Card */
.nu-contact-form-card {
    background: var(--nup-card, #f7f5ff);
    border: 1px solid var(--nup-border, #e5e0f5);
    border-radius: 1rem;
    padding: 2rem;
}

.nu-contact-form-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--nup-text, #1a1035) !important;
}

.nu-form-group { margin-bottom: 1.25rem; }

.nu-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nup-text, #1a1035) !important;
    margin-bottom: 0.4rem;
}

.nu-form-group input,
.nu-form-group textarea,
.nu-form-group select {
    width: 100%;
    background: var(--nup-input-bg, #f0edfb);
    border: 1.5px solid var(--nup-border, #e5e0f5);
    border-radius: 0.625rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    color: var(--nup-text, #1a1035) !important;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.nu-form-group input::placeholder,
.nu-form-group textarea::placeholder {
    color: #9990bb !important;
    opacity: 1;
}

.nu-form-group input:focus,
.nu-form-group textarea:focus,
.nu-form-group select:focus {
    outline: none;
    border-color: var(--nup-accent, #a855f7);
}

.nu-form-group textarea { min-height: 130px; resize: vertical; }

.nu-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .nu-form-row { grid-template-columns: 1fr; }
}

/* ---- Premium Services ---- */
.nu-premium-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

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

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

.nu-premium-card {
    background: var(--nup-card, #f7f5ff);
    border: 1px solid var(--nup-border, #e5e0f5);
    border-radius: 1.25rem;
    padding: 2rem;
    position: relative;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nu-premium-card:hover {
    border-color: var(--nup-accent, #a855f7);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168,85,247,0.1);
}

.nu-premium-card.nu-featured-card {
    border-color: var(--nup-accent, #a855f7);
    background: linear-gradient(135deg, rgba(168,85,247,0.06) 0%, var(--nup-card, #f7f5ff) 100%);
}

.nu-premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nu-premium-card .nu-pc-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(168,85,247,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nup-accent, #a855f7);
    margin-bottom: 1.25rem;
}

.nu-premium-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--nup-text, #1a1035) !important;
    font-family: var(--nu-font-serif, Georgia, serif);
}

.nu-premium-card p {
    font-size: 0.875rem;
    color: var(--nup-muted, #4a4565) !important;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

.nu-premium-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nu-premium-card ul li {
    font-size: 0.85rem;
    color: var(--nup-muted, #4a4565) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
}

.nu-premium-card ul li::before {
    content: '';
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    background: rgba(168,85,247,0.15);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    flex-shrink: 0;
}

/* ---- Privacy Policy ---- */
.nu-privacy-toc {
    background: var(--nup-card, #f7f5ff);
    border: 1px solid var(--nup-border, #e5e0f5);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.nu-privacy-toc h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nup-muted, #4a4565) !important;
    margin: 0 0 0.75rem;
}

.nu-privacy-toc ol {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nu-privacy-toc ol li a {
    color: var(--nup-accent, #a855f7) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.nu-privacy-toc ol li a:hover { opacity: 0.75; }

.nu-privacy-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 80px;
}

.nu-privacy-section h2 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--nup-text, #1a1035) !important;
    margin: 0 0 0.9rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--nup-border, #e5e0f5);
    font-family: var(--nu-font-serif, Georgia, serif);
}

.nu-privacy-section p {
    font-size: 0.9rem;
    color: var(--nup-muted, #4a4565) !important;
    line-height: 1.8;
    margin-bottom: 0.85rem;
}

.nu-privacy-section ul {
    padding-left: 1.4rem;
    margin: 0.75rem 0 1rem;
}

.nu-privacy-section ul li {
    font-size: 0.9rem;
    color: var(--nup-muted, #4a4565) !important;
    line-height: 1.75;
    margin-bottom: 0.4rem;
}

.nu-privacy-section a {
    color: var(--nup-accent, #a855f7) !important;
    text-decoration: none;
}

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

/* ---- Form success message ---- */
.nu-form-success {
    display: none;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.35);
    color: #16a34a !important;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
}

/* ---- Dark mode overrides for inner pages ---- */
body.nu-dark .nu-inner-page,
body.nu-dark .nu-inner-page-body {
    background: #0f0b1e !important;
}

body.nu-dark .nu-value-card,
body.nu-dark .nu-contact-info-card,
body.nu-dark .nu-contact-form-card,
body.nu-dark .nu-premium-card,
body.nu-dark .nu-premium-card.nu-featured-card,
body.nu-dark .nu-privacy-toc,
body.nu-dark .nu-about-team-strip,
body.nu-dark .nu-inner-page .nu-article-content-card {
    background: #1a1535 !important;
    border-color: #2e2850 !important;
}

body.nu-dark .nu-value-card h3,
body.nu-dark .nu-contact-info-card h4,
body.nu-dark .nu-contact-form-card h3,
body.nu-dark .nu-premium-card h3,
body.nu-dark .nu-privacy-section h2,
body.nu-dark .nu-inner-page .nu-prose h2 {
    color: #f0eeff !important;
}

body.nu-dark .nu-value-card p,
body.nu-dark .nu-contact-info-card p,
body.nu-dark .nu-premium-card p,
body.nu-dark .nu-premium-card ul li,
body.nu-dark .nu-privacy-section p,
body.nu-dark .nu-privacy-section ul li,
body.nu-dark .nu-inner-page .nu-prose p,
body.nu-dark .nu-about-team-strip p {
    color: #b0a8d0 !important;
}

body.nu-dark .nu-form-group label {
    color: #d8d0f0 !important;
}

body.nu-dark .nu-form-group input,
body.nu-dark .nu-form-group textarea,
body.nu-dark .nu-form-group select {
    background: #120e28 !important;
    border-color: #2e2850 !important;
    color: #f0eeff !important;
}

body.nu-dark .nu-form-group input::placeholder,
body.nu-dark .nu-form-group textarea::placeholder {
    color: #6b6090 !important;
    opacity: 1;
}

body.nu-dark .nu-privacy-toc h4 {
    color: #9088c0 !important;
}

body.nu-dark .nu-privacy-section {
    border-color: #2e2850;
}

body.nu-dark .nu-privacy-section h2 {
    border-bottom-color: #2e2850 !important;
}

/* ============================================================
   FIX: Main Heading Visibility — Light Mode & Dark Mode
   ------------------------------------------------------------
   Several headings across the site were relying on inherited
   text color, which let the parent Astra theme's own heading
   color silently take over and made titles hard/impossible to
   read in one or both color modes. Every selector below now
   sets its own color explicitly (with !important) so headings
   stay correctly visible no matter which mode is active.
   ============================================================ */

/* Headings on the normal page background (auto light/dark) */
.nu-section-header h2,
.nu-cat-section-titles h2,
.nu-article-single h1,
.nu-404 h1,
.nu-404 h2,
.nu-empty-state h3 {
    color: var(--nu-foreground) !important;
}

/* Headings inside cards — about/article/trend/tool cards + post body (auto light/dark) */
.nu-featured-card .nu-featured-content h2,
.nu-article-card .nu-card-body h3,
.nu-trend-text h3,
.nu-tool-card h3,
.nu-prose h2,
.nu-prose h3,
.nu-prose h4 {
    color: var(--nu-card-foreground) !important;
}

/* Headings sitting on a dark image/gradient hero — always white in BOTH modes */
.nu-page-hero-content h1,
.nu-page-hero-content .nu-search-title-row h1,
.nu-search-title-row h1,
.nu-category-card .nu-cat-image .nu-cat-info h3 {
    color: #ffffff !important;
}
/* ============================================
   ENHANCED HERO SECTION - Screenshot Match
   Migatrendz Astra Child Theme
   ============================================ */


/* ============================================
   Hero Slider Section

/* ============================================
   Hero Slider Section
   ============================================ */

.nu-hero {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: #080410;
}

@media (min-width: 640px)  { .nu-hero { min-height: 560px; } }
@media (min-width: 1024px) { .nu-hero { min-height: 620px; } }

/* Content area */
.nu-hero .nu-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

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

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

/* Badge pill */
.nu-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.18);
    background-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 1.4rem;
}

/* H1 */
.nu-hero h1 {
    font-family: var(--nu-font-serif);
    font-size: 2.4rem;
    font-weight: 800;
    color: white !important;
    margin: 0 0 1.25rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-align: left;
}

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

/* Gradient text */
.nu-hero h1 .nu-gradient-text {
    background: linear-gradient(135deg, #c084fc 0%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Description */
.nu-hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.80) !important;
    margin-bottom: 2.25rem;
    max-width: 420px;
    line-height: 1.78;
    text-align: left;
}

/* Buttons */
.nu-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
}

.nu-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #a855f7;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 12px rgba(168,85,247,0.35);
    padding: 0.72rem 1.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: opacity 0.2s, transform 0.2s;
}

.nu-btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff !important;
}

.nu-btn-outline-light {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255,255,255,0.07);
    color: white !important;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: background-color 0.2s, transform 0.2s;
}

.nu-btn-outline-light:hover {
    background-color: rgba(255,255,255,0.13);
    transform: translateY(-1px);
    color: #fff !important;
}

/* Mobile */
@media (max-width: 768px) {
    /* Hero container — stack vertically on mobile */
    .nu-hero {
        min-height: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Background slide image: full width on top, fixed height */
    .nu-slide {
        position: relative !important;
        width: 100% !important;
        height: 220px !important;
        opacity: 1 !important;
        pointer-events: none !important;
        flex-shrink: 0;
    }

    /* All inactive slides hidden on mobile too */
    .nu-slide[style*="opacity:0"],
    .nu-slide[style*="opacity: 0"] {
        display: none !important;
    }

    /* Text content below the image */
    .nu-hero .nu-container {
        position: relative !important;
        z-index: 10;
        background: #080410;
        padding-bottom: 1.5rem;
    }

    .nu-hero-content {
        padding: 1.5rem 0 1rem !important;
        max-width: 100% !important;
    }

    .nu-hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.22 !important;
        margin-bottom: 0.9rem !important;
    }

    .nu-hero-desc {
        font-size: 0.925rem !important;
        margin-bottom: 1.5rem !important;
        max-width: 100% !important;
        line-height: 1.65 !important;
    }

    .nu-hero-buttons {
        flex-direction: column !important;
        gap: 0.625rem !important;
    }

    .nu-hero-buttons a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Progress bar stays at bottom of whole hero */
    #nu-hero-prog {
        bottom: 0 !important;
        top: auto !important;
    }

    #nu-hero-thumbs {
        position: static !important;
        justify-content: center !important;
        margin-top: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .nu-slide {
        height: 190px !important;
    }

    .nu-hero h1 {
        font-size: 1.5rem !important;
    }

    .nu-hero-badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.7rem !important;
    }
}

/* ============================================
   Meet the Team (Front Page)
   ============================================ */
.nu-team-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

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

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

.nu-team-card {
    background: var(--nu-card);
    border: 1px solid var(--nu-card-border);
    border-radius: var(--nu-radius-lg);
    padding: 1.15rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.nu-team-avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.75rem;
    border: 3px solid var(--nu-accent);
    background: var(--nu-muted);
}

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

.nu-team-name {
    font-family: var(--nu-font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nu-foreground);
    margin: 0 0 0.25rem;
}

.nu-team-role {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--nu-accent-foreground);
    background: var(--nu-accent);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.nu-team-bio {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--nu-muted-foreground);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Newsletter Signup
   ============================================ */
.nu-newsletter-box {
    background: linear-gradient(135deg, var(--nu-primary), var(--nu-primary-light));
    border-radius: var(--nu-radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #fff;
}

.nu-newsletter-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
}

.nu-newsletter-box h2 {
    font-family: var(--nu-font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff;
}

.nu-newsletter-box p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin: 0 auto 1.5rem;
    max-width: 460px;
}

.nu-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 420px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .nu-newsletter-form {
        flex-direction: row;
    }
}

.nu-newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--nu-radius);
    border: none;
    font-size: 0.9rem;
    font-family: var(--nu-font-sans);
    outline: none;
}

.nu-newsletter-form button {
    background: #fff !important;
    color: var(--nu-primary) !important;
    border: none;
    white-space: nowrap;
}

.nu-newsletter-form button:hover {
    background: rgba(255,255,255,0.92) !important;
}

.nu-newsletter-form button:disabled {
    opacity: 0.7;
    cursor: default;
}

.nu-newsletter-message {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.85rem 0 0;
    min-height: 1.2em;
}

.nu-newsletter-message.is-success {
    color: #d4f7d4;
}

.nu-newsletter-message.is-error {
    color: #ffd6d6;
}

.nu-newsletter-privacy {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    margin: 0.5rem 0 0;
}

/* ============================================
   Trending Now — bara banner image, hover pe title+intro
   ============================================ */
.nu-trending-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nu-trending-item {
    position: relative;
    display: block;
    text-decoration: none !important;
    color: inherit;
    border-radius: var(--nu-radius-lg);
    overflow: hidden;
}

.nu-trending-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 300;
    background: var(--nu-muted);
    overflow: hidden;
    border-radius: var(--nu-radius-lg);
}

@media (max-width: 640px) {
    .nu-trending-thumb {
        aspect-ratio: 4 / 3;
    }
}

.nu-trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nu-trending-item:hover .nu-trending-thumb img {
    transform: scale(1.04);
}

.nu-trending-rank {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    font-family: var(--nu-font-serif);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    line-height: 1.4;
}

.nu-trending-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nu-trending-item:hover .nu-trending-overlay,
.nu-trending-item:focus-visible .nu-trending-overlay {
    opacity: 1;
    transform: translateY(0);
}

.nu-trending-overlay h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.35rem;
    font-family: var(--nu-font-serif);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nu-trending-overlay p {
    color: rgba(255,255,255,0.88);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nu-trending-overlay .nu-trending-meta {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Mobile / touch devices: title thora hamesha visible rahe (chota gradient), 
   full overlay tap/hover pe */
@media (hover: none) {
    .nu-trending-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
    }
    .nu-trending-overlay p {
        display: none;
    }
}
