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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text-primary: #f0f0f5;
    --text-secondary: #9898a8;
    --text-muted: #6a6a7a;
    --accent: #6c5ce7;
    --accent-hover: #7f71ed;
    --accent-glow: rgba(108,92,231,0.15);
    --cyan: #00d4ff;
    --cyan-glow: rgba(0,212,255,0.15);
    --green: #00c896;
    --orange: #ff9f43;
    --pink: #fd79a8;
    --blue: #0984e3;
    --yellow: #f9ca24;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* JetBrains Mono applied to: titles (headings), top nav, footer, related-articles */
h1, h2, h3, h4, h5, h6,
.nav-links,
.site-footer,
.related-articles {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER / NAV ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

.logo {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border: 2px solid var(--cyan);
    border-radius: 9px;
    background: rgba(0,212,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cyan);
}

.logo-icon::before { content: '>_'; }

.logo-accent { color: var(--cyan); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

/* Mobile hamburger button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-btn {
    padding: 10px 22px;
    background: var(--accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-block;
    text-decoration: none;
}

.cta-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ========== HERO / FEATURED POST ========== */
.hero {
    padding: 64px 0 48px;
}

.page-hero {
    padding: 64px 0 32px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.featured-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 40px 48px 40px 0;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-ai { background: rgba(108,92,231,0.15); color: var(--accent); }
.tag-security { background: rgba(0,200,150,0.12); color: var(--green); }
.tag-productivity { background: rgba(255,159,67,0.12); color: var(--orange); }
.tag-cloud { background: rgba(9,132,227,0.12); color: var(--blue); }
.tag-design { background: rgba(253,121,168,0.12); color: var(--pink); }
.tag-creative { background: rgba(253,121,168,0.12); color: var(--pink); }
.tag-business { background: rgba(249,202,36,0.12); color: var(--yellow); }
.tag-marketing { background: rgba(255,159,67,0.12); color: var(--orange); }
.tag-hosting { background: rgba(9,132,227,0.12); color: var(--blue); }
.tag-privacy { background: rgba(0,200,150,0.12); color: var(--green); }
.tag-education { background: rgba(0,212,255,0.18); color: var(--cyan); }

.featured-content .tag { margin-bottom: 16px; }

.featured-content h1,
.featured-content h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.featured-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    object-fit: cover;
    display: inline-block;
}

.meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* ========== SECTION HEADING ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.view-all {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    transition: color var(--transition);
}

.view-all:hover { color: var(--accent-hover); }

/* ========== FILTER BAR ========== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 200px;
    min-width: 200px;
}

.search-wrap .search-icon {
    position: absolute;
    left: 11px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 6px 12px 6px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.search-input:focus {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .search-wrap {
        flex: 1 1 100%;
        margin-bottom: 4px;
    }

    .filter-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .filter-bar::-webkit-scrollbar { display: none; }

    .filter-btn {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}

.filter-btn {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ========== ARTICLE GRID ========== */
.articles {
    padding: 16px 0 80px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    color: inherit;
}

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

.card-image {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-meta .tag {
    padding: 4px 10px;
    font-size: 0.68rem;
}

.grad-1 { background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); }
.grad-2 { background: linear-gradient(135deg, #0a2e1a, #0f4030, #1a3a4a); }
.grad-3 { background: linear-gradient(135deg, #1a0a2e, #2d1b69, #1b2838); }
.grad-4 { background: linear-gradient(135deg, #2e1a0a, #4a2c1a, #3a2a1a); }
.grad-5 { background: linear-gradient(135deg, #1a1a2e, #2e1a3a, #3a1a2e); }
.grad-6 { background: linear-gradient(135deg, #0a1a2e, #1a2e4a, #0f3460); }
.grad-7 { background: linear-gradient(135deg, #0e2a1e, #1a4030, #2a3a2a); }
.grad-8 { background: linear-gradient(135deg, #2e0a1a, #4a1a2e, #3a1a1a); }

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body .excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

.card-meta .read-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== ARTICLE DETAIL PAGE ========== */
.article-hero {
    padding: 48px 0 32px;
}

.article-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.article-hero .tag {
    margin-bottom: 20px;
}

.article-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-hero .lede {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.article-hero .meta {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.article-hero-image {
    max-width: 960px;
    margin: 0 auto 48px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 64px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 48px 0 16px;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.article-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 18px;
    color: var(--text-primary);
}

.article-body a {
    color: var(--cyan);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.article-body a:hover { color: #5fe3ff; }

.article-body ul,
.article-body ol {
    margin: 0 0 20px 24px;
    color: var(--text-primary);
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong { color: var(--text-primary); font-weight: 700; }
.article-body em { color: var(--text-secondary); }

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 20px;
    margin: 24px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-body code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--border);
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.article-body pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
}

/* ========== TABLE OF CONTENTS ========== */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 0 0 40px;
}

.toc h2,
.toc h3 {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary) !important;
    margin: 0 0 16px !important;
}

.toc ul,
.toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.925rem;
    transition: color var(--transition);
}

.toc a:hover { color: var(--accent); }

/* ========== TOOL CARD ========== */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin: 32px 0;
}

.tool-card h3,
.tool-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.tool-card .tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.tool-card .tool-meta strong {
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 4px;
}

.tool-card .cta-wrap {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-verdict {
    margin-bottom: 18px;
}

/* ========== LINK BUTTON ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 19px;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    background: rgba(10,10,15,0.6);
}

.btn-primary {
    color: var(--cyan);
    border-color: var(--cyan);
    text-decoration: none !important;
}

.btn-primary::before {
    content: '>_';
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cyan);
}

.btn-primary:hover {
    background: rgba(0,212,255,0.1);
    box-shadow: 0 0 24px var(--cyan-glow);
    transform: translateY(-1px);
}

.article-body a.btn-primary,
.article-body a.btn { text-decoration: none; }

/* ========== COMPARISON TABLE ========== */
.table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.comparison-table,
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.925rem;
}

.comparison-table th,
.comparison-table td,
.article-body th,
.article-body td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.comparison-table th,
.article-body th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tr:last-child td,
.article-body tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ========== RELATED ARTICLES ========== */
.related-articles {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 80px;
    border-top: 1px solid var(--border);
}

.related-articles h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== LEGAL / STATIC PAGES ========== */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-page .updated {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 14px;
    color: var(--text-primary);
}

.legal-page h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--text-primary);
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-page ul,
.legal-page ol {
    margin-left: 24px;
    margin-bottom: 18px;
}

.legal-page a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page a:hover { color: var(--accent-hover); }

/* ========== NEWSLETTER ========== */
.newsletter {
    padding: 80px 0;
}

.newsletter-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center top, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.newsletter-inner h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    position: relative;
}

.newsletter-inner p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 32px;
    position: relative;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-form button {
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 24px var(--accent-glow);
}

.newsletter-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    position: relative;
}

/* ========== FOOTER ========== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}

.footer-grid .footer-col {
    text-align: right;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    transition: color var(--transition);
    display: inline-flex;
}

.footer-social a:hover { color: var(--text-primary); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .article-grid,
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 12px 0;
        flex-direction: column;
        gap: 0;
        min-width: 160px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }

    .nav-links.active { display: flex; }

    .nav-links li { list-style: none; }

    .nav-links a {
        display: block;
        padding: 10px 20px;
    }

    .featured-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured-content {
        padding: 28px 24px 32px;
    }

    .featured-content h1,
    .featured-content h2 { font-size: 1.5rem; }

    .page-hero h1 { font-size: 2rem; }

    .article-hero h1 { font-size: 1.75rem; }
    .article-hero .lede { font-size: 1.05rem; }

    .article-body { font-size: 1rem; }
    .article-body h2 { font-size: 1.4rem; }
    .article-body h3 { font-size: 1.15rem; }

    .article-grid,
    .related-grid { grid-template-columns: 1fr; }

    .newsletter-inner { padding: 40px 24px; }
    .newsletter-form { flex-direction: column; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
