/* ============================================
   OctaSEO Blog — Blog & Article Styles
   Font: Plus Jakarta Sans + Clash Display
   ============================================ */

:root {
    --bg:        #030912;
    --bg2:       #060f1e;
    --bg3:       #091424;
    --surface:   rgba(255,255,255,0.04);
    --surface2:  rgba(255,255,255,0.07);
    --surface3:  rgba(9,132,227,0.08);
    --border:    rgba(255,255,255,0.07);
    --border2:   rgba(255,255,255,0.12);
    --border-b:  rgba(9,132,227,0.2);
    --text:      #e8f4ff;
    --text2:     rgba(232,244,255,0.55);
    --text3:     rgba(232,244,255,0.28);
    --accent:    #0984e3;
    --accent2:   #4da3f0;
    --accent3:   #81c0f7;
    --accent4:   #0770c7;
    --glow:      rgba(9,132,227,0.25);
    --green:     #10b981;
    --yellow:    #f59e0b;
    --red:       #ef4444;
    --font-head: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius:    16px;
    --radius-lg: 24px;
    --max-w:     1280px;
    --max-w-article: 760px;
    --article-hero-w: 1040px;
    --px:        clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

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

.noise-overlay {
    position: fixed; inset: 0;
    z-index: 1; pointer-events: none; opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

nav, section, footer, main, header { position: relative; z-index: 2; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100; padding: 16px 0;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
    background: rgba(3,9,18,0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 var(--px);
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    flex-shrink: 0;
}

.octopus-logo {
    width: auto; height: 40px; flex-shrink: 0;
    transition: transform 0.3s;
}

.nav-logo:hover .octopus-logo {
    transform: scale(1.03);
}

.nav-links {
    display: flex; align-items: center; gap: 6px;
}

.nav-link {
    padding: 7px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--text2);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--accent3); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px; flex-shrink: 0;
    background: var(--accent); border: none; border-radius: 8px;
    color: white; font-size: 14px; font-weight: 700;
    font-family: var(--font-body); cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: var(--accent4);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(9,132,227,0.4);
}

/* ============================================
   BLOG HERO
   ============================================ */
.blog-hero {
    padding: clamp(120px, 15vh, 170px) var(--px) clamp(60px, 8vh, 90px);
    max-width: var(--max-w); margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 20px;
}

.blog-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px;
    background: rgba(9,132,227,0.1);
    border: 1px solid rgba(9,132,227,0.22);
    border-radius: 100px;
    font-size: 12px; font-weight: 700; color: var(--accent3);
    letter-spacing: 0.12em; text-transform: uppercase;
    animation: fade-up 0.6s ease both;
}

.blog-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 700; letter-spacing: -0.035em;
    line-height: 1.05;
    background: linear-gradient(160deg, var(--text) 30%, var(--accent3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fade-up 0.7s ease 0.1s both;
}

.blog-hero-sub {
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--text2); line-height: 1.7;
    max-width: 540px; font-weight: 300;
    animation: fade-up 0.7s ease 0.2s both;
}

/* Category filters */
.blog-filters {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; justify-content: center;
    animation: fade-up 0.7s ease 0.3s both;
}

.filter-pill {
    padding: 7px 18px; border-radius: 100px;
    font-size: 13px; font-weight: 600;
    border: 1px solid var(--border2);
    background: var(--surface); color: var(--text2);
    cursor: pointer; transition: all 0.2s;
    text-decoration: none; display: inline-block;
}

.filter-pill:hover,
.filter-pill.active {
    background: rgba(9,132,227,0.15);
    border-color: rgba(9,132,227,0.4);
    color: var(--accent3);
}

@keyframes fade-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   FEATURED ARTICLE
   ============================================ */
.featured-section {
    padding: 0 var(--px) clamp(48px, 6vh, 72px);
    max-width: var(--max-w); margin: 0 auto;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg2);
    border: 1px solid var(--border-b);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s;
    text-decoration: none;
    color: inherit;
}

.featured-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 72px rgba(0,0,0,0.5), 0 0 40px rgba(9,132,227,0.08);
}

.featured-image {
    position: relative; overflow: hidden;
    min-height: 360px;
    background: linear-gradient(145deg, #060f1e, #091424);
    display: flex; align-items: center; justify-content: center;
}

.featured-image-inner {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(9,132,227,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(77,163,240,0.1) 0%, transparent 50%);
}

.featured-image-icon {
    font-size: clamp(80px, 10vw, 120px);
    filter: drop-shadow(0 0 40px rgba(9,132,227,0.5));
    animation: float-gentle 5s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

.featured-label {
    position: absolute; top: 20px; left: 20px;
    padding: 5px 12px; border-radius: 100px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(9,132,227,0.9); color: white;
}

.featured-content {
    padding: clamp(32px, 4vw, 52px);
    display: flex; flex-direction: column;
    justify-content: center; gap: 20px;
}

.article-meta {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
}

.article-cat {
    padding: 4px 12px; border-radius: 100px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(9,132,227,0.12);
    border: 1px solid rgba(9,132,227,0.25);
    color: var(--accent3);
}

.article-cat.cat-geo    { background: rgba(9,132,227,0.12); border-color: rgba(9,132,227,0.25); color: var(--accent3); }
.article-cat.cat-aeo    { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.25); color: #34d399; }
.article-cat.cat-ai     { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.25); color: #a78bfa; }
.article-cat.cat-seo    { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); color: #fbbf24; }
.article-cat.cat-local  { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); color: #f87171; }
.article-cat.cat-tools  { background: rgba(20,184,166,0.1); border-color: rgba(20,184,166,0.25); color: #2dd4bf; }

.article-date,
.article-time {
    font-size: 12px; color: var(--text3); font-weight: 500;
}

.article-sep { color: var(--text3); font-size: 11px; }

.featured-content h2 {
    font-family: var(--font-head);
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 700; letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text);
    transition: color 0.2s;
}

.featured-card:hover .featured-content h2 { color: var(--accent3); }

.featured-excerpt {
    font-size: 15px; color: var(--text2);
    line-height: 1.7; font-weight: 300;
}

.featured-author {
    display: flex; align-items: center; gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    display: flex; align-items: center; justify-content: center;
    object-fit: cover;
    font-size: 16px; flex-shrink: 0;
    border: 2px solid rgba(9,132,227,0.3);
}

.author-info { display: flex; flex-direction: column; gap: 2px; }

.author-name {
    font-size: 13px; font-weight: 700; color: var(--text);
    text-decoration: none;
}

.author-role {
    font-size: 12px; color: var(--text3);
}

.featured-read-more {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--accent3);
    margin-top: auto; padding-top: 8px;
    transition: gap 0.2s;
}

.featured-card:hover .featured-read-more { gap: 12px; }

/* ============================================
   ARTICLES GRID
   ============================================ */
.articles-section {
    padding: 0 var(--px) clamp(80px, 10vh, 120px);
    max-width: var(--max-w); margin: 0 auto;
}

.articles-section-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent); margin-bottom: 32px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden; display: flex;
    flex-direction: column;
    text-decoration: none; color: inherit;
    transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
    position: relative;
}

.card-image-link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-b);
    background: rgba(9,132,227,0.04);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.card-image {
    aspect-ratio: 16/9;
    background: linear-gradient(145deg, var(--bg2), var(--bg3));
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.card-image-bg {
    position: absolute; inset: 0;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.article-card:hover .card-image-bg { opacity: 1; }

.card-emoji {
    font-size: 44px; position: relative; z-index: 1;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
    transition: transform 0.3s;
}

.article-card:hover .card-emoji { transform: scale(1.1); }

.card-body {
    padding: 22px; display: flex;
    flex-direction: column; gap: 14px; flex: 1;
    min-height: 0;
}

.card-body .article-cat {
    align-self: flex-start;
}

.card-body h2 {
    font-family: var(--font-head);
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.25; color: var(--text);
    transition: color 0.2s;
}

.article-card:hover .card-body h2 { color: var(--accent3); }

.card-excerpt {
    font-size: 14px; color: var(--text2);
    line-height: 1.7; font-weight: 300; flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.card-author {
    display: flex; align-items: center; gap: 8px;
}

.card-author-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    display: flex; align-items: center; justify-content: center;
    object-fit: cover;
    font-size: 11px;
}

.card-author-name {
    font-size: 12px; color: var(--text3); font-weight: 500;
    text-decoration: none;
}

.card-read-time {
    font-size: 12px; color: var(--text3);
    display: flex; align-items: center; gap: 4px;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    padding: 0 var(--px) clamp(80px, 10vh, 120px);
    max-width: var(--max-w); margin: 0 auto;
}

.newsletter-card {
    background: linear-gradient(145deg, rgba(9,132,227,0.1), rgba(77,163,240,0.04));
    border: 1px solid rgba(9,132,227,0.2);
    border-radius: var(--radius-lg);
    padding: clamp(40px, 5vw, 64px);
    display: flex; align-items: center;
    justify-content: space-between; gap: 40px;
    position: relative; overflow: hidden;
}

.newsletter-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
}

.newsletter-glow {
    position: absolute; top: -60px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(9,132,227,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-text { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.newsletter-text h2 {
    font-family: var(--font-head);
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 700; letter-spacing: -0.025em;
    line-height: 1.2;
}

.newsletter-text p {
    font-size: 15px; color: var(--text2);
    font-weight: 300; line-height: 1.6;
    max-width: 400px;
}

.newsletter-form {
    display: flex; gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border2);
    border-radius: 12px; padding: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
    flex-shrink: 0; min-width: 340px;
}

.newsletter-form:focus-within {
    border-color: rgba(9,132,227,0.45);
    box-shadow: 0 0 0 3px rgba(9,132,227,0.1);
}

.newsletter-input {
    flex: 1; min-width: 0; background: transparent;
    border: none; outline: none; padding: 12px 16px;
    font-size: 14px; color: var(--text); font-family: var(--font-body);
}

.newsletter-input::placeholder { color: var(--text3); }

.newsletter-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 20px; flex-shrink: 0;
    background: var(--accent); border: none; border-radius: 8px;
    color: white; font-size: 13px; font-weight: 700;
    font-family: var(--font-body); cursor: pointer;
    transition: background 0.2s;
}

.newsletter-btn:hover { background: var(--accent4); }

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

.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: 24px;
}

.footer-logo {
    display: flex; align-items: center; gap: 10px;
}

.footer-oct {
    width: auto; height: 34px;
    opacity: 0.9;
}

.footer-links {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px; color: var(--text3); padding: 4px 10px;
    border-radius: 6px; transition: color 0.2s, background 0.2s;
}

.footer-links a:hover { color: var(--text2); background: var(--surface); }

.footer-links .sep { color: var(--text3); opacity: 0.4; font-size: 11px; }

.footer-copy {
    font-size: 12px; color: var(--text3);
}

/* ============================================
   ARTICLE PAGE — LAYOUT
   ============================================ */
.article-page {
    padding-top: clamp(90px, 10vh, 120px);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px var(--px);
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text3);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text3); text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--accent3); }

.breadcrumb-sep { opacity: 0.4; }

.breadcrumb-current { color: var(--text2); }

/* Article Header */
.article-header {
    padding: clamp(32px, 5vh, 56px) 0 clamp(40px, 5vh, 60px);
    width: min(calc(100% - (var(--px) * 2)), var(--article-hero-w));
    max-width: var(--article-hero-w);
    margin: 0 auto;
    display: flex; flex-direction: column; gap: 20px;
    text-align: center; align-items: center;
}

.article-header h1 {
    font-family: var(--font-head);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.1; color: var(--text);
    max-width: 100%;
}

.article-header h1 em {
    font-style: normal; color: var(--accent3);
}

.article-header-sub {
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--text2); line-height: 1.7;
    font-weight: 300; max-width: 920px;
}

.article-author-row {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 24px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); width: 100%;
    justify-content: center; flex-wrap: wrap;
}

.author-avatar-lg {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    display: flex; align-items: center; justify-content: center;
    object-fit: cover;
    font-size: 22px; flex-shrink: 0;
    border: 2px solid rgba(9,132,227,0.35);
}

.author-details { display: flex; flex-direction: column; gap: 2px; }

.author-details .author-name { font-size: 14px; font-weight: 700; }
.author-details .author-role { font-size: 12px; color: var(--text3); }

.article-stats {
    display: flex; align-items: center; gap: 20px;
    padding-left: 16px; margin-left: 16px;
    border-left: 1px solid var(--border);
    flex-wrap: wrap;
}

.stat-item-category .article-cat {
    margin: 0;
}

.stat-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text3);
}

.stat-icon { font-size: 14px; }

/* Featured Image */
.article-cover {
    width: min(calc(100% - (var(--px) * 2)), var(--article-hero-w));
    max-width: var(--article-hero-w);
    margin: 0 auto;
    padding: 0 0 clamp(40px, 5vh, 56px);
}

.article-cover-inner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/7;
    background: linear-gradient(145deg, var(--bg2), var(--bg3));
    display: flex; align-items: center; justify-content: center;
    position: relative;
    border: 1px solid var(--border-b);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.article-cover-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 25% 60%, rgba(9,132,227,0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(77,163,240,0.12) 0%, transparent 50%);
}

.article-cover-emoji {
    font-size: clamp(80px, 12vw, 140px);
    filter: drop-shadow(0 0 60px rgba(9,132,227,0.6));
    position: relative; z-index: 1;
    animation: float-gentle 5s ease-in-out infinite;
}

/* Article Body Layout */
.article-layout {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 var(--px) clamp(80px, 10vh, 120px);
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: start;
}

/* Table of Contents */
.article-toc {
    position: sticky; top: 96px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex; flex-direction: column; gap: 16px;
}

.toc-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent); padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.toc-list {
    list-style: none; display: flex;
    flex-direction: column; gap: 4px;
}

.toc-list li { display: flex; }

.toc-list a {
    font-size: 13px; color: var(--text3); font-weight: 500;
    padding: 6px 10px; border-radius: 8px;
    text-decoration: none; line-height: 1.4;
    transition: color 0.2s, background 0.2s;
    border-left: 2px solid transparent;
    padding-left: 12px; width: 100%;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--accent3);
    background: rgba(9,132,227,0.08);
    border-left-color: var(--accent);
}

.toc-list li.toc-h3 a {
    padding-left: 22px; font-size: 12px;
    color: rgba(232,244,255,0.25);
}

.toc-list li.toc-h3 a:hover { color: var(--text2); }

.toc-progress {
    height: 3px; background: var(--border);
    border-radius: 100px; overflow: hidden;
}

.toc-progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent3));
    border-radius: 100px; width: 0%;
    transition: width 0.1s linear;
}

/* Article Content */
.article-content {
    min-width: 0;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(232,244,255,0.85);
}

.article-content h2 {
    font-family: var(--font-head);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700; letter-spacing: -0.025em;
    color: var(--text); line-height: 1.2;
    margin-top: 56px; margin-bottom: 20px;
    padding-top: 56px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 96px;
}

.article-content h2:first-child {
    margin-top: 0; padding-top: 0; border-top: none;
}

.article-content h3 {
    font-family: var(--font-head);
    font-size: clamp(17px, 1.6vw, 22px);
    font-weight: 700; letter-spacing: -0.02em;
    color: var(--text); line-height: 1.3;
    margin-top: 36px; margin-bottom: 14px;
    scroll-margin-top: 96px;
}

.article-content p {
    margin-bottom: 20px; font-weight: 300;
}

.article-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.article-content strong {
    color: var(--text); font-weight: 700;
}

.article-content em {
    color: var(--accent3); font-style: normal;
}

.article-content a {
    color: var(--accent3);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(129,192,247,0.4);
    transition: color 0.2s, text-decoration-color 0.2s;
}

.article-content a:hover {
    color: var(--accent2);
    text-decoration-color: var(--accent2);
}

.article-content blockquote {
    background: rgba(9,132,227,0.07);
    border: 1px solid rgba(9,132,227,0.2);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 28px 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text2);
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content pre {
    background: rgba(6,15,30,0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 28px 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #d8ecff;
}

.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0.12em 0.4em;
}

.article-content pre code {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    color: inherit;
}

.article-content hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

.article-content figure {
    margin: 32px 0;
}

.article-content figure img,
.article-content > img,
.article-content p img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 24px 56px rgba(0,0,0,0.28);
}

.article-content figcaption {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: var(--text3);
}

.article-content ul li + li,
.article-content ol li + li {
    margin-top: 4px;
}

/* Callout boxes */
.article-callout {
    background: rgba(9,132,227,0.07);
    border: 1px solid rgba(9,132,227,0.2);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 28px 0;
    font-size: 15px;
    line-height: 1.7;
}

.article-callout.callout-tip {
    background: rgba(16,185,129,0.06);
    border-color: rgba(16,185,129,0.18);
    border-left-color: var(--green);
}

.article-callout.callout-warning {
    background: rgba(245,158,11,0.06);
    border-color: rgba(245,158,11,0.18);
    border-left-color: var(--yellow);
}

.callout-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 10px;
    color: var(--accent3);
}

.callout-tip .callout-label { color: #34d399; }
.callout-warning .callout-label { color: #fbbf24; }

/* Stat highlight */
.article-stat-block {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin: 32px 0;
}

.stat-highlight {
    background: var(--surface);
    border: 1px solid var(--border-b);
    border-radius: var(--radius);
    padding: 20px; text-align: center;
}

.stat-highlight-num {
    font-family: var(--font-head);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700; letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block; margin-bottom: 6px;
}

.stat-highlight-label {
    font-size: 12px; color: var(--text3);
    font-weight: 500; line-height: 1.4;
}

/* Ordered & unordered lists */
.article-content ul,
.article-content ol {
    padding-left: 24px; margin-bottom: 20px;
    display: flex; flex-direction: column; gap: 8px;
}

.article-content li {
    font-size: 16px; line-height: 1.7; font-weight: 300;
    color: rgba(232,244,255,0.8);
}

.article-content li::marker { color: var(--accent); }

/* CTA inline */
.article-cta-inline {
    background: linear-gradient(145deg, rgba(9,132,227,0.1), rgba(77,163,240,0.04));
    border: 1px solid rgba(9,132,227,0.22);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin: 40px 0; text-align: center;
    display: flex; flex-direction: column;
    align-items: center; gap: 16px; position: relative;
    overflow: hidden;
}

.article-cta-inline::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
}

.article-cta-inline h3 {
    font-family: var(--font-head);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700; letter-spacing: -0.02em;
    margin: 0; color: var(--text);
}

.article-cta-inline p {
    font-size: 14px; color: var(--text2);
    max-width: 400px; margin: 0; font-weight: 300;
}

.cta-inline-title {
    font-family: var(--font-head);
    font-size: clamp(17px, 1.8vw, 22px) !important;
    letter-spacing: -0.02em; color: var(--text) !important;
    font-weight: 400 !important; max-width: none !important;
}

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    background: var(--accent); border: none; border-radius: 10px;
    color: white; font-size: 15px; font-weight: 700;
    font-family: var(--font-body); cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: var(--accent4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(9,132,227,0.4);
}

/* Separator */
.article-sep-line {
    border: none; height: 1px;
    background: var(--border);
    margin: 48px 0;
}

/* Author bio */
.author-bio {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex; gap: 20px;
    margin-top: 56px;
}

.author-bio-avatar {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    display: flex; align-items: center; justify-content: center;
    object-fit: cover;
    font-size: 28px;
    border: 3px solid rgba(9,132,227,0.3);
}

.author-bio-body { display: flex; flex-direction: column; gap: 8px; }

.author-bio-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--accent);
}

.author-bio-name {
    font-family: var(--font-head); font-size: 20px;
    font-weight: 700; color: var(--text); letter-spacing: -0.02em;
    text-decoration: none;
}

.scroll-top-btn {
    position: fixed;
    right: clamp(18px, 3vw, 32px);
    bottom: clamp(18px, 3vw, 32px);
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(9,132,227,0.24);
    border-radius: 999px;
    background: rgba(3,9,18,0.82);
    color: var(--text);
    box-shadow: 0 14px 30px rgba(0,0,0,0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s, border-color 0.2s;
}

.scroll-top-btn:hover {
    background: rgba(9,132,227,0.18);
    border-color: rgba(9,132,227,0.42);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.author-bio-text {
    font-size: 14px; color: var(--text2);
    line-height: 1.65; font-weight: 300;
}

.article-tags {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-tags-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(9,132,227,0.1);
    border: 1px solid rgba(9,132,227,0.2);
    color: var(--accent3);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.article-tag:hover {
    background: rgba(9,132,227,0.16);
    border-color: rgba(9,132,227,0.32);
    color: var(--text);
}

/* Related Articles */
.related-section {
    padding: 0 var(--px) clamp(80px, 10vh, 120px);
    max-width: var(--max-w); margin: 0 auto;
}

.related-section-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent); margin-bottom: 32px;
}

.related-section h2 {
    font-family: var(--font-head);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700; letter-spacing: -0.025em;
    margin-bottom: 32px; line-height: 1.15;
}

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

/* Article page CTA */
.article-page-cta {
    padding: 0 var(--px) clamp(80px, 10vh, 120px);
    max-width: var(--max-w); margin: 0 auto;
}

.cta-card {
    background: linear-gradient(145deg, rgba(9,132,227,0.1), rgba(77,163,240,0.04));
    border: 1px solid rgba(9,132,227,0.22);
    border-radius: var(--radius-lg);
    padding: clamp(40px, 5vw, 64px);
    display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 24px;
    position: relative; overflow: hidden;
}

.cta-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
}

.cta-card-oct { font-size: 56px; }

.cta-card h2 {
    font-family: var(--font-head);
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.15;
}

.cta-card h2 em { font-style: normal; color: var(--accent3); }

.cta-card p {
    font-size: 16px; color: var(--text2);
    font-weight: 300; max-width: 480px; line-height: 1.7;
}

.cta-form-inline {
    display: flex; gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border2);
    border-radius: 12px; padding: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%; max-width: 460px;
}

.cta-form-inline:focus-within {
    border-color: rgba(9,132,227,0.45);
    box-shadow: 0 0 0 3px rgba(9,132,227,0.1);
}

.cta-input {
    flex: 1; min-width: 0; background: transparent;
    border: none; outline: none; padding: 12px 16px;
    font-size: 15px; color: var(--text); font-family: var(--font-body);
}

.cta-input::placeholder { color: var(--text3); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-toc { display: none; }

    .articles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

    .newsletter-card { flex-direction: column; }
    .newsletter-form { min-width: unset; width: 100%; }
}

@media (max-width: 900px) {
    .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

    .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related-grid { grid-template-columns: 1fr; }

    .article-stat-block { grid-template-columns: 1fr; }

    .nav-links { display: none; }

    .article-header h1 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .article-header {
        width: 100%;
        padding-left: var(--px);
        padding-right: var(--px);
    }

    .article-cover {
        width: 100%;
        padding-left: var(--px);
        padding-right: var(--px);
    }

    .author-bio { flex-direction: column; }

    .cta-form-inline { flex-direction: column; }
    .newsletter-form { flex-direction: column; }
}

@media (max-width: 640px) {
    .articles-grid { grid-template-columns: 1fr; }
}
