/*
Theme Name: Nebraska SFMTD
Theme URI: https://nebraskasfmtd.org
Author: Nebraska SFMTD
Author URI: https://nebraskasfmtd.org
Description: Guide pratique pour citoyens français - Droits, démarches administratives (carte grise, carte d'identité, passeport), aides financières (CAF, APL, RSA, chèque énergie), formation professionnelle (CPF, VAE) et protection sociale. Thème WordPress SEO optimisé avec Schema.org, Open Graph, breadcrumbs et performance optimale.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nebraska-sfmtd
Tags: blog, education, custom-logo, custom-menu, featured-images, accessibility-ready, translation-ready, one-column, two-columns

Nebraska SFMTD V2 - Guide des droits, démarches administratives et aides financières en France.
*/

/* ================================
   DESIGN TOKENS
   ================================ */
:root {
    /* Light Theme Colors */
    --nsk-bg-primary: #ffffff;
    --nsk-bg-secondary: #f8fafc;
    --nsk-bg-tertiary: #f1f5f9;
    --nsk-bg-card: #ffffff;
    
    /* Brand Colors */
    --nsk-primary: #1e40af;
    --nsk-primary-light: #3b82f6;
    --nsk-primary-dark: #1e3a8a;
    --nsk-secondary: #059669;
    --nsk-secondary-light: #10b981;
    --nsk-accent-orange: #ea580c;
    --nsk-accent-purple: #7c3aed;
    
    /* Text Colors */
    --nsk-text-primary: #0f172a;
    --nsk-text-secondary: #475569;
    --nsk-text-muted: #64748b;
    --nsk-text-light: #94a3b8;
    
    /* Borders & Surfaces */
    --nsk-border: #e2e8f0;
    --nsk-border-light: #f1f5f9;
    --nsk-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --nsk-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --nsk-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    
    /* Gradients */
    --nsk-gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --nsk-gradient-secondary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --nsk-gradient-hero: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    
    /* Typography */
    --nsk-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nsk-font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --nsk-container: 1180px;
    --nsk-radius-sm: 6px;
    --nsk-radius-md: 10px;
    --nsk-radius-lg: 14px;
    --nsk-radius-xl: 20px;
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--nsk-font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--nsk-text-primary);
    background: var(--nsk-bg-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--nsk-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--nsk-primary-light);
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-family: var(--nsk-font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--nsk-text-primary);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1em;
}

/* Highlighted Text */
.nsk-highlight {
    color: var(--nsk-primary);
    font-weight: 600;
}

.nsk-highlight--green {
    color: var(--nsk-secondary);
}

/* ================================
   LAYOUT
   ================================ */
.nsk-container {
    width: 100%;
    max-width: var(--nsk-container);
    margin: 0 auto;
    padding: 0 24px;
}

.nsk-section {
    padding: 80px 0;
}

.nsk-section--gray {
    background: var(--nsk-bg-secondary);
}

.nsk-section--gradient {
    background: var(--nsk-gradient-hero);
}

/* ================================
   BUTTONS
   ================================ */
.nsk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--nsk-font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--nsk-radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.nsk-btn--primary {
    background: var(--nsk-gradient-primary);
    color: #fff;
    box-shadow: var(--nsk-shadow-md);
}

.nsk-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.35);
    color: #fff;
}

.nsk-btn--secondary {
    background: var(--nsk-gradient-secondary);
    color: #fff;
    box-shadow: var(--nsk-shadow-md);
}

.nsk-btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
    color: #fff;
}

.nsk-btn--outline {
    background: transparent;
    color: var(--nsk-primary);
    border: 2px solid var(--nsk-primary);
}

.nsk-btn--outline:hover {
    background: var(--nsk-primary);
    color: #fff;
}

/* ================================
   CARDS
   ================================ */
.nsk-card {
    background: var(--nsk-bg-card);
    border: 1px solid var(--nsk-border);
    border-radius: var(--nsk-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--nsk-shadow-sm);
}

.nsk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nsk-shadow-lg);
    border-color: var(--nsk-border-light);
}

.nsk-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--nsk-bg-tertiary);
}

.nsk-card__content {
    padding: 24px;
}

.nsk-card__category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--nsk-radius-sm);
    margin-bottom: 12px;
}

.nsk-card__category--blue {
    background: rgba(30, 64, 175, 0.1);
    color: var(--nsk-primary);
}

.nsk-card__category--green {
    background: rgba(5, 150, 105, 0.1);
    color: var(--nsk-secondary);
}

.nsk-card__category--orange {
    background: rgba(234, 88, 12, 0.1);
    color: var(--nsk-accent-orange);
}

.nsk-card__category--purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--nsk-accent-purple);
}

.nsk-card__title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.nsk-card__title a {
    color: var(--nsk-text-primary);
}

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

.nsk-card__excerpt {
    color: var(--nsk-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.nsk-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--nsk-border-light);
    font-size: 13px;
    color: var(--nsk-text-muted);
}

/* ================================
   HEADER STYLES
   ================================ */
.nsk-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nsk-border);
}

.nsk-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nsk-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--nsk-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--nsk-text-primary);
    text-decoration: none;
}

.nsk-logo:hover {
    color: var(--nsk-text-primary);
}

.nsk-logo__icon {
    width: 42px;
    height: 42px;
    background: var(--nsk-gradient-primary);
    border-radius: var(--nsk-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.nsk-logo__text span {
    color: var(--nsk-primary);
}

.nsk-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nsk-nav__link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--nsk-text-secondary);
    border-radius: var(--nsk-radius-sm);
    transition: all 0.2s ease;
}

.nsk-nav__link:hover {
    color: var(--nsk-primary);
    background: var(--nsk-bg-tertiary);
}

.nsk-nav__link--active {
    color: var(--nsk-primary);
    background: rgba(30, 64, 175, 0.08);
}

.nsk-header__cta {
    padding: 10px 20px;
    font-size: 14px;
}

/* Mobile Menu Toggle */
.nsk-menu-toggle {
    display: none;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nsk-text-primary);
}

/* ================================
   FOOTER STYLES
   ================================ */
.nsk-footer {
    background: var(--nsk-text-primary);
    color: #fff;
    padding: 60px 0 30px;
}

.nsk-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.nsk-footer a:hover {
    color: #fff;
}

.nsk-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.nsk-footer__brand {
    max-width: 300px;
}

.nsk-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--nsk-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.nsk-footer__logo:hover {
    color: #fff;
}

.nsk-footer__tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.nsk-footer__title {
    font-family: var(--nsk-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nsk-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nsk-footer__links li {
    margin-bottom: 12px;
}

.nsk-footer__links a {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nsk-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.nsk-footer__legal {
    display: flex;
    gap: 24px;
}

/* ================================
   HERO SECTION
   ================================ */
.nsk-hero {
    padding: 140px 0 80px;
    background: var(--nsk-gradient-hero);
    position: relative;
    overflow: hidden;
}

.nsk-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(30, 64, 175, 0.08) 0%, transparent 50%);
}

.nsk-hero__content {
    max-width: 580px;
    position: relative;
    z-index: 2;
}

/* Hero Illustration - Abstract Document/Admin Pattern */
.nsk-hero__illustration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 520px;
    height: auto;
    z-index: 1;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .nsk-hero__illustration {
        width: 40%;
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .nsk-hero__illustration {
        display: none;
    }
}

.nsk-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(5, 150, 105, 0.1);
    color: var(--nsk-secondary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.nsk-hero__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.nsk-hero__subtitle {
    font-size: 1.2rem;
    color: var(--nsk-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.nsk-hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ================================
   CATEGORY GRID
   ================================ */
.nsk-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nsk-category-card {
    padding: 32px 24px;
    text-align: center;
    border-radius: var(--nsk-radius-lg);
    background: var(--nsk-bg-card);
    border: 1px solid var(--nsk-border);
    transition: all 0.3s ease;
}

.nsk-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nsk-shadow-lg);
    border-color: transparent;
}

.nsk-category-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--nsk-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.nsk-category-card__icon--blue {
    background: rgba(30, 64, 175, 0.1);
    color: var(--nsk-primary);
}

.nsk-category-card__icon--green {
    background: rgba(5, 150, 105, 0.1);
    color: var(--nsk-secondary);
}

.nsk-category-card__icon--orange {
    background: rgba(234, 88, 12, 0.1);
    color: var(--nsk-accent-orange);
}

.nsk-category-card__icon--purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--nsk-accent-purple);
}

.nsk-category-card__title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.nsk-category-card__count {
    font-size: 13px;
    color: var(--nsk-text-muted);
}

/* ================================
   ARTICLES GRID
   ================================ */
.nsk-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.nsk-articles-grid--2cols {
    grid-template-columns: repeat(2, 1fr);
}

/* ================================
   SIDEBAR
   ================================ */
.nsk-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
}

.nsk-sidebar__widget {
    background: var(--nsk-bg-card);
    border: 1px solid var(--nsk-border);
    border-radius: var(--nsk-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.nsk-sidebar__title {
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--nsk-primary);
}

/* ================================
   SINGLE ARTICLE
   ================================ */
.nsk-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.nsk-article__header {
    margin-bottom: 40px;
}

.nsk-article__title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.nsk-article__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--nsk-text-muted);
    font-size: 14px;
}

.nsk-article__content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.nsk-article__content h2 {
    margin-top: 48px;
    margin-bottom: 20px;
}

.nsk-article__content h3 {
    margin-top: 36px;
    margin-bottom: 16px;
}

.nsk-article__content p {
    margin-bottom: 1.5em;
}

.nsk-article__content ul,
.nsk-article__content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.nsk-article__content li {
    margin-bottom: 0.5em;
}

/* ================================
   NEWSLETTER
   ================================ */
.nsk-newsletter {
    background: var(--nsk-gradient-primary);
    border-radius: var(--nsk-radius-xl);
    padding: 48px;
    text-align: center;
    color: #fff;
}

.nsk-newsletter__title {
    color: #fff;
    margin-bottom: 12px;
}

.nsk-newsletter__text {
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.nsk-newsletter__form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
}

.nsk-newsletter__input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--nsk-radius-md);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
}

.nsk-newsletter__input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.nsk-newsletter__btn {
    padding: 14px 28px;
    background: var(--nsk-text-primary);
    color: #fff;
    border: none;
    border-radius: var(--nsk-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nsk-newsletter__btn:hover {
    transform: scale(1.02);
}

/* ================================
   404 PAGE
   ================================ */
.nsk-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
}

.nsk-404__code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--nsk-border);
    line-height: 1;
    margin-bottom: 16px;
}

.nsk-404__title {
    margin-bottom: 12px;
}

.nsk-404__text {
    color: var(--nsk-text-secondary);
    margin-bottom: 32px;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .nsk-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nsk-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nsk-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nsk-layout-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nsk-section {
        padding: 60px 0;
    }
    
    .nsk-nav {
        display: none;
    }
    
    .nsk-menu-toggle {
        display: block;
    }
    
    .nsk-hero {
        padding: 120px 0 60px;
    }
    
    .nsk-hero__title {
        font-size: 2.2rem;
    }
    
    .nsk-footer__grid {
        grid-template-columns: 1fr;
    }
    
    .nsk-footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .nsk-categories {
        grid-template-columns: 1fr;
    }
    
    .nsk-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .nsk-newsletter {
        padding: 32px 24px;
    }
    
    .nsk-newsletter__form {
        flex-direction: column;
    }
    
    .nsk-article__title {
        font-size: 1.8rem;
    }
}

/* ================================
   SEO COMPONENTS V2
   ================================ */

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--nsk-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Breadcrumbs */
.nsk-breadcrumbs {
    padding: 14px 0;
    background: var(--nsk-bg-secondary);
    border-bottom: 1px solid var(--nsk-border);
    margin-top: 72px;
}
.nsk-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    max-width: var(--nsk-container);
    margin: 0 auto;
    padding: 0 24px;
}
.nsk-breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nsk-text-muted);
}
.nsk-breadcrumbs__item::after {
    content: '›';
    color: var(--nsk-text-light);
    font-size: 16px;
}
.nsk-breadcrumbs__item:last-child::after {
    display: none;
}
.nsk-breadcrumbs__item a {
    color: var(--nsk-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.nsk-breadcrumbs__item a:hover {
    color: var(--nsk-primary-dark);
    text-decoration: underline;
}
.nsk-breadcrumbs__item--current {
    color: var(--nsk-text-primary);
    font-weight: 500;
}

/* Table of Contents (TOC) */
.nsk-toc {
    background: var(--nsk-bg-secondary);
    border: 1px solid var(--nsk-border);
    border-radius: var(--nsk-radius-lg);
    padding: 24px 28px;
    margin: 32px 0;
}
.nsk-toc__title {
    font-family: var(--nsk-font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--nsk-text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nsk-toc__list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: decimal;
}
.nsk-toc__item {
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.5;
}
.nsk-toc__item a {
    color: var(--nsk-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.nsk-toc__item a:hover {
    color: var(--nsk-primary-dark);
    text-decoration: underline;
}

/* Trust Signals */
.nsk-trust {
    background: var(--nsk-bg-secondary);
    border-bottom: 1px solid var(--nsk-border);
    padding: 24px 0;
}
.nsk-trust__grid {
    max-width: var(--nsk-container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.nsk-trust__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nsk-trust__number {
    font-family: var(--nsk-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--nsk-primary);
}
.nsk-trust__label {
    font-size: 14px;
    color: var(--nsk-text-muted);
}

/* Section Header */
.nsk-section__header {
    text-align: center;
    margin-bottom: 48px;
}
.nsk-section__header--flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}
.nsk-section__title {
    font-family: var(--nsk-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--nsk-text-primary);
    margin: 0 0 12px;
}
.nsk-section__desc {
    font-size: 17px;
    color: var(--nsk-text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}
.nsk-section__header--flex .nsk-section__desc {
    margin: 0;
}

/* Category Card (Enhanced) */
.nsk-category-card__desc {
    font-size: 14px;
    color: var(--nsk-text-secondary);
    line-height: 1.6;
    margin: 8px 0 12px;
}

/* FAQ Section */
.nsk-faq {
    max-width: 800px;
    margin: 0 auto;
}
.nsk-faq__item {
    background: var(--nsk-bg-card);
    border: 1px solid var(--nsk-border);
    border-radius: var(--nsk-radius-lg);
    padding: 24px 28px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}
.nsk-faq__item:hover {
    box-shadow: var(--nsk-shadow-md);
}
.nsk-faq__question {
    font-family: var(--nsk-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--nsk-text-primary);
    margin: 0 0 12px;
}
.nsk-faq__answer {
    color: var(--nsk-text-secondary);
    line-height: 1.7;
}
.nsk-faq__answer p {
    margin: 0;
}

/* SEO Content Block */
.nsk-seo-content {
    max-width: 900px;
    margin: 0 auto;
}
.nsk-seo-content h2 {
    font-family: var(--nsk-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nsk-text-primary);
    margin: 0 0 20px;
}
.nsk-seo-content p {
    color: var(--nsk-text-secondary);
    line-height: 1.8;
    margin: 0 0 16px;
}
.nsk-seo-content p:last-child {
    margin-bottom: 0;
}
.nsk-seo-content strong {
    color: var(--nsk-text-primary);
}

/* Article Category Link */
.nsk-article__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nsk-article__category:hover {
    transform: translateY(-2px);
    box-shadow: var(--nsk-shadow-md);
}
.nsk-article__category--blue {
    background: rgba(30, 64, 175, 0.1);
    color: var(--nsk-primary);
}
.nsk-article__category--green {
    background: rgba(5, 150, 105, 0.1);
    color: var(--nsk-secondary);
}
.nsk-article__category--orange {
    background: rgba(234, 88, 12, 0.1);
    color: var(--nsk-accent-orange);
}
.nsk-article__category--purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--nsk-accent-purple);
}

/* Article Meta Enhanced */
.nsk-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--nsk-text-muted);
    font-size: 14px;
    margin-top: 16px;
}
.nsk-article__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nsk-article__meta-item svg {
    flex-shrink: 0;
}

/* Key Info Box */
.nsk-article__keyinfo {
    margin: 32px 0;
}
.nsk-keyinfo {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(30, 64, 175, 0.15);
    border-left: 4px solid var(--nsk-primary);
    border-radius: var(--nsk-radius-md);
    padding: 20px 24px;
}
.nsk-keyinfo__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--nsk-font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--nsk-primary);
    margin-bottom: 10px;
}
.nsk-keyinfo__content {
    color: var(--nsk-text-secondary);
    line-height: 1.7;
}
.nsk-keyinfo__content p {
    margin: 0;
}

/* Article Image */
.nsk-article__image {
    margin: 0 0 32px;
    border-radius: var(--nsk-radius-lg);
    overflow: hidden;
}
.nsk-article__image img {
    width: 100%;
    height: auto;
}
.nsk-article__image-caption {
    padding: 12px 16px;
    background: var(--nsk-bg-secondary);
    font-size: 14px;
    color: var(--nsk-text-muted);
    text-align: center;
}

/* Article Footer */
.nsk-article__footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--nsk-border);
}
.nsk-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.nsk-article__tags-label {
    font-weight: 600;
    color: var(--nsk-text-primary);
}
.nsk-article__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nsk-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--nsk-bg-tertiary);
    border-radius: var(--nsk-radius-sm);
    font-size: 13px;
    color: var(--nsk-text-secondary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.nsk-tag:hover {
    background: var(--nsk-primary);
    color: #fff;
}

/* Share Buttons */
.nsk-article__share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    padding: 20px 0;
    border-top: 1px solid var(--nsk-border);
    border-bottom: 1px solid var(--nsk-border);
}
.nsk-article__share-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--nsk-text-secondary);
}
.nsk-article__share-buttons {
    display: flex;
    gap: 10px;
}
.nsk-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nsk-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--nsk-shadow-md);
}
.nsk-share-btn--facebook {
    background: #1877f2;
    color: #fff;
}
.nsk-share-btn--twitter {
    background: #1da1f2;
    color: #fff;
}
.nsk-share-btn--linkedin {
    background: #0a66c2;
    color: #fff;
}
.nsk-share-btn--email {
    background: var(--nsk-bg-tertiary);
    color: var(--nsk-text-secondary);
}
.nsk-share-btn--email:hover {
    background: var(--nsk-text-secondary);
    color: #fff;
}

/* Author Box Enhanced */
.nsk-author-box {
    margin: 40px 0;
}
.nsk-author-box__inner {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--nsk-bg-secondary);
    border-radius: var(--nsk-radius-lg);
}
.nsk-author-box__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.nsk-author-box__content {
    flex: 1;
}
.nsk-author-box__label {
    font-size: 13px;
    color: var(--nsk-text-muted);
    margin: 0 0 4px;
}
.nsk-author-box__name {
    font-family: var(--nsk-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--nsk-text-primary);
    margin: 0 0 8px;
}
.nsk-author-box__bio {
    font-size: 14px;
    color: var(--nsk-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Mobile Menu */
.nsk-mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--nsk-bg-primary);
    border-bottom: 1px solid var(--nsk-border);
    box-shadow: var(--nsk-shadow-lg);
    z-index: 999;
    padding: 16px 24px;
}
.nsk-mobile-nav[hidden] {
    display: none;
}
.nsk-mobile-nav__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nsk-mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--nsk-radius-md);
    color: var(--nsk-text-primary);
    font-weight: 500;
    transition: background 0.2s;
}
.nsk-mobile-nav__link:hover {
    background: var(--nsk-bg-secondary);
}
.nsk-mobile-nav__icon {
    display: flex;
}

/* Navigation Icon */
.nsk-nav__icon {
    display: flex;
    align-items: center;
}
.nsk-nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card Image Placeholder */
.nsk-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nsk-bg-tertiary);
    color: var(--nsk-text-light);
    aspect-ratio: 16/10;
}

/* Empty State */
.nsk-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--nsk-text-muted);
    padding: 48px 24px;
}

/* Responsive SEO Components */
@media (max-width: 768px) {
    .nsk-trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .nsk-trust__number {
        font-size: 24px;
    }
    
    .nsk-section__header--flex {
        flex-direction: column;
        gap: 16px;
    }
    
    .nsk-faq__item {
        padding: 20px;
    }
    
    .nsk-faq__question {
        font-size: 16px;
    }
    
    .nsk-article__share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nsk-author-box__inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .nsk-toc {
        padding: 20px;
    }
    
    .nsk-breadcrumbs__list {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nsk-trust__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .nsk-article__meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ================================
   ARCHIVE PAGE STYLES
   ================================ */

/* Archive Header */
.nsk-archive-header {
    background: var(--nsk-bg-secondary);
    padding: 48px 0;
    border-bottom: 1px solid var(--nsk-border);
}
.nsk-archive-header__content {
    max-width: 700px;
}
.nsk-archive-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}
.nsk-archive-header__badge--blue {
    background: rgba(30, 64, 175, 0.1);
    color: var(--nsk-primary);
}
.nsk-archive-header__badge--green {
    background: rgba(5, 150, 105, 0.1);
    color: var(--nsk-secondary);
}
.nsk-archive-header__badge--orange {
    background: rgba(234, 88, 12, 0.1);
    color: var(--nsk-accent-orange);
}
.nsk-archive-header__badge--purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--nsk-accent-purple);
}
.nsk-archive-header__title {
    font-family: var(--nsk-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nsk-text-primary);
    margin: 0 0 16px;
    line-height: 1.2;
}
.nsk-archive-header__desc {
    font-size: 1.1rem;
    color: var(--nsk-text-secondary);
    line-height: 1.7;
    margin: 0 0 12px;
}
.nsk-archive-header__count {
    font-size: 14px;
    color: var(--nsk-text-muted);
    margin: 0;
}
.nsk-archive-header__count strong {
    color: var(--nsk-primary);
}

/* Card Title as H2 for archives */
.nsk-card__title {
    font-size: 1.15rem;
}

/* Pagination */
.nsk-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}
.nsk-pagination__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nsk-pagination__item a,
.nsk-pagination__item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--nsk-radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.nsk-pagination__item a {
    background: var(--nsk-bg-card);
    border: 1px solid var(--nsk-border);
    color: var(--nsk-text-secondary);
}
.nsk-pagination__item a:hover {
    background: var(--nsk-primary);
    border-color: var(--nsk-primary);
    color: #fff;
}
.nsk-pagination__item span.current {
    background: var(--nsk-primary);
    color: #fff;
}
.nsk-pagination__item span.dots {
    background: transparent;
    border: none;
    color: var(--nsk-text-muted);
}

/* Empty State */
.nsk-empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--nsk-text-light);
}
.nsk-empty-state svg {
    margin-bottom: 24px;
}
.nsk-empty-state h2 {
    font-family: var(--nsk-font-heading);
    font-size: 1.5rem;
    color: var(--nsk-text-primary);
    margin: 0 0 12px;
}
.nsk-empty-state p {
    color: var(--nsk-text-secondary);
    margin: 0 0 24px;
}

/* Responsive Archive */
@media (max-width: 768px) {
    .nsk-archive-header {
        padding: 32px 0;
    }
    .nsk-archive-header__title {
        font-size: 1.8rem;
    }
    .nsk-pagination__item a,
    .nsk-pagination__item span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ================================
   ARTICLE CONTENT BLOCKS V4
   ================================ */

/* Intro paragraph */
.nsk-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--nsk-text-primary);
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--nsk-bg-secondary) 0%, #f0f9ff 100%);
    border-left: 4px solid var(--nsk-primary);
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px;
}

/* Key Info Box */
.nsk-key-info {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
}

.nsk-key-info h4 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nsk-primary);
}

.nsk-key-info ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.nsk-key-info li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(147, 197, 253, 0.5);
    font-size: 0.95rem;
}

.nsk-key-info li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Warning Box */
.nsk-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 28px 0;
}

.nsk-warning h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #92400e;
}

.nsk-warning p {
    margin: 0;
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tip Box */
.nsk-tip {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 28px 0;
}

.nsk-tip h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #065f46;
}

.nsk-tip p {
    margin: 0;
    color: #064e3b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Example Box */
.nsk-example {
    background: var(--nsk-bg-secondary);
    border: 1px solid var(--nsk-border);
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
}

.nsk-example h4 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nsk-text-primary);
}

.nsk-example p,
.nsk-example ul,
.nsk-example ol {
    font-size: 0.95rem;
    color: var(--nsk-text-secondary);
}

.nsk-example p:last-child,
.nsk-example ul:last-child,
.nsk-example ol:last-child {
    margin-bottom: 0;
}

/* Checklist Box */
.nsk-checklist {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
}

.nsk-checklist h4 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nsk-secondary);
}

.nsk-checklist ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.nsk-checklist li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(187, 247, 208, 0.7);
    font-size: 0.95rem;
    color: var(--nsk-text-primary);
}

.nsk-checklist li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Article Tables */
.nsk-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--nsk-shadow-sm);
}

.nsk-table thead {
    background: var(--nsk-primary);
    color: white;
}

.nsk-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.nsk-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--nsk-border);
    background: var(--nsk-bg-card);
}

.nsk-table tbody tr:hover td {
    background: var(--nsk-bg-secondary);
}

.nsk-table tbody tr:last-child td {
    border-bottom: none;
}

/* Article Content Images */
.nsk-article-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: var(--nsk-shadow-md);
}

.nsk-article-image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--nsk-text-muted);
    margin-top: -24px;
    margin-bottom: 32px;
}

/* Article Content Improvements */
.entry-content h2 {
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--nsk-border);
    color: var(--nsk-primary);
}

.entry-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--nsk-text-primary);
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.entry-content li {
    margin: 10px 0;
    line-height: 1.7;
}

.entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.entry-content strong {
    color: var(--nsk-text-primary);
}

/* Nested lists in content blocks */
.nsk-checklist ul ul,
.nsk-example ul ul,
.nsk-key-info ul ul {
    padding-left: 20px;
    margin-top: 8px;
}

.nsk-checklist ul ul li,
.nsk-example ul ul li,
.nsk-key-info ul ul li {
    font-size: 0.9rem;
    padding: 4px 0;
    border-bottom: none;
}
