/* ============================================================
   blog.css — Fernando Angulo Blog Design System
   Fonts: Space Grotesk (headings) + Sora (body)
   Palette: dark navy + coral + warm gradient hero
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700&family=Sora:wght@400;600;700&display=swap');

:root {
    --bg:          #0D0D14;
    --bg-card:     #14141F;
    --bg-card2:    #1A1A28;
    --coral:       #E8614D;
    --coral2:      #F47550;
    --coral-a:     rgba(232,97,77,.14);
    --blue:        #6B7AE8;
    --purple:      #A67BE8;
    --teal:        #32C8B4;
    --text:        #FFFFFF;
    --muted:       #8A8FA8;
    --dim:         #52566A;
    --border:      rgba(255,255,255,.07);
    --border2:     rgba(255,255,255,.13);
    --ff-head:     'Space Grotesk', system-ui, sans-serif;
    --ff-body:     'Sora', system-ui, sans-serif;
    --ff:          'Sora', system-ui, sans-serif;
    --mw:          1200px;
    --dur:         200ms;
    --ease:        cubic-bezier(.4,0,.2,1);
    /* Semantic aliases */
    --accent:       #E8614D;
    --accent-hover: #D4503C;
    --tag-bg:       rgba(232,97,77,.12);
    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    20px;
    --max-article:  720px;
    --max-site:     1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff-body);
    background: var(--bg);
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--coral); text-decoration: none; transition: color var(--dur); }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 700; color: var(--text); }

/* ── Utilities ── */
.grad-coral {
    background: linear-gradient(135deg,#E8614D,#F47550);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Reading progress ── */
#reading-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--coral2));
    z-index: 1000; transition: width 0.1s linear;
}

/* ── Nav ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 22px 40px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background var(--dur), backdrop-filter var(--dur), padding var(--dur), border-color var(--dur);
}
.nav.scrolled {
    background: rgba(13,13,20,.94); backdrop-filter: blur(20px);
    padding: 14px 40px; border-bottom: 1px solid var(--border);
}
.nav__logo { font-family: var(--ff-head); font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.nav__links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav__link {
    font-family: var(--ff-body); font-size: .82rem; font-weight: 500; color: var(--muted);
    letter-spacing: .02em; transition: color var(--dur); position: relative;
}
.nav__link:hover { color: var(--text); }
.nav__link.active { color: var(--text); }
.nav__link.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
    background: var(--coral); border-radius: 2px;
}

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 50px;
    font-family: var(--ff-body); font-size: .84rem; font-weight: 600;
    cursor: pointer; transition: transform var(--dur), box-shadow var(--dur), opacity var(--dur);
    letter-spacing: .01em;
}
.btn--primary { background: linear-gradient(135deg,#E8614D,#F47550); color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,97,77,.45); color: #fff !important; }
.btn--ghost { background: transparent; color: var(--coral); border: 1px solid rgba(232,97,77,.40); }
.btn--ghost:hover { border-color: var(--coral); background: rgba(232,97,77,.07); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,97,77,.15); }
.btn--outline-muted {
    background: rgba(255,255,255,.06); color: var(--muted);
    border: 1px solid var(--border); gap: 6px;
}
.btn--outline-muted:hover { background: rgba(255,255,255,.1); color: var(--text); }

/* ── Language switcher ── */
.lang-switch { display: flex; align-items: center; gap: 3px; margin-right: 6px; }
.lang-btn { font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-decoration: none; padding: 4px 7px; border-radius: 4px; transition: color var(--dur); }
.lang-btn:hover { color: var(--text); }
.lang-btn--active { color: var(--coral); cursor: default; pointer-events: none; }
.lang-sep { font-size: .6rem; color: var(--dim); user-select: none; }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav__hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.nav__mobile {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(13,13,20,.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 700; color: var(--text); transition: color var(--dur); }
.nav__mobile a:hover { color: var(--coral); }
.nav__mobile-close { position: absolute; top: 24px; right: 32px; font-size: 2rem; color: var(--muted); cursor: pointer; }

/* ============================================================
   BLOG INDEX PAGE
============================================================ */

/* ── Hero with warm gradient glow ── */
.blog-hero-wrap {
    position: relative; overflow: hidden;
    padding: 130px 40px 80px;
    text-align: center;
}
.blog-hero-wrap::before {
    content: ''; position: absolute;
    top: -120px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse at 50% 40%, rgba(180,80,30,.28) 0%, rgba(140,40,100,.16) 45%, transparent 72%);
    pointer-events: none;
}
.blog-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 16px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
    font-family: var(--ff-body); font-size: .68rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
    margin-bottom: 24px;
}
.blog-hero-title {
    font-family: var(--ff-head); font-size: clamp(2.8rem,6vw,4.5rem);
    font-weight: 700; color: var(--text); line-height: 1.08;
    letter-spacing: -.03em; margin-bottom: 18px;
}
.blog-hero-sub {
    font-family: var(--ff-body); font-size: 1rem; color: var(--muted);
    max-width: 540px; margin: 0 auto; line-height: 1.7;
}

/* ── Author profile bar ── */
.author-bar {
    max-width: var(--mw); margin: 36px auto 0; padding: 0 40px;
}
.author-bar__inner {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px 28px;
    display: flex; align-items: center; gap: 20px;
    border-left: 3px solid var(--coral);
}
.author-bar__avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: linear-gradient(135deg, var(--coral), var(--coral2));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-head); font-weight: 700; color: #fff; font-size: .9rem;
}
.author-bar__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.author-bar__info { flex: 1; }
.author-bar__name {
    font-family: var(--ff-head); font-size: .95rem; font-weight: 600; color: var(--text);
    display: flex; align-items: center; gap: 6px; margin-bottom: 2px;
}
.author-bar__name .verified {
    width: 15px; height: 15px; background: var(--coral); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-bar__name .verified svg { width: 8px; height: 8px; }
.author-bar__role { font-family: var(--ff-body); font-size: .78rem; color: var(--muted); }
.author-bar__stat { text-align: right; flex-shrink: 0; }
.author-bar__stat-num {
    font-family: var(--ff-head); font-size: 1.3rem; font-weight: 700; color: var(--text);
    line-height: 1; margin-bottom: 3px;
}
.author-bar__stat-label {
    font-family: var(--ff-body); font-size: .62rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}

/* ── Posts section header ── */
.posts-header {
    max-width: var(--mw); margin: 56px auto 0; padding: 0 40px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin-bottom: 28px;
}
.posts-header__left h2 {
    font-family: var(--ff-head); font-size: clamp(1.6rem,3vw,2rem);
    font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: 4px;
}
.posts-header__left p { font-family: var(--ff-body); font-size: .875rem; color: var(--muted); }
.posts-header__view-toggle { display: flex; gap: 6px; }
.view-btn {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--dim); transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.view-btn.active, .view-btn:hover { background: var(--bg-card2); border-color: var(--border2); color: var(--text); }

/* ── Category filters ── */
.filters {
    max-width: var(--mw); margin: 0 auto 28px; padding: 0 40px;
}
.filters__inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    padding: 7px 18px; border-radius: 50px; font-family: var(--ff-body);
    font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    cursor: pointer; transition: background var(--dur), border-color var(--dur), color var(--dur);
    background: var(--bg-card); color: var(--muted); border: 1px solid var(--border);
}
.filter-btn:hover { border-color: var(--border2); color: var(--text); }
.filter-btn.active { background: var(--coral-a); color: var(--coral); border-color: rgba(232,97,77,.3); }

/* ── Posts grid (3-col cards with gradient images) ── */
.posts-grid-wrap {
    max-width: var(--mw); margin: 0 auto; padding: 0 40px;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
/* ── Flip Card ── */
.post-card {
    height: 400px;
    perspective: 2000px;
    background: transparent;
    border: none;
    overflow: visible;
    transform: none;
    transition: none;
}
.post-card:hover { border: none; transform: none; }
.post-card[data-cat].hidden { display: none; }

.post-card__inner {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 680ms cubic-bezier(.4,0,.2,1);
}
.post-card:hover .post-card__inner { transform: rotateY(180deg); }

.post-card__front,
.post-card__back {
    position: absolute; inset: 0;
    border-radius: 20px; overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ── FRONT ── */
.post-card__front {
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 22px; text-decoration: none; color: inherit;
}
.post-card__front::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.62) 100%);
    pointer-events: none;
}
.post-card__front-cat {
    position: absolute; top: 18px; left: 18px; z-index: 2;
    font-family: var(--ff-body); font-size: .6rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
    border-radius: 50px; padding: 4px 13px; backdrop-filter: blur(6px);
}
.post-card__front-content { position: relative; z-index: 2; }
.post-card__front-title {
    font-family: var(--ff-head);
    font-size: clamp(1.1rem,1.7vw,1.42rem);
    font-weight: 800; color: #fff;
    line-height: 1.2; letter-spacing: -.025em;
    margin-bottom: 14px;
    text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.post-card__front-meta {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--ff-body); font-size: .65rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.62);
}
.post-card__front-meta span { display: flex; align-items: center; gap: 5px; }

/* ── BACK ── */
.post-card__back {
    transform: rotateY(180deg);
    background: var(--bg-card2); border: 1px solid var(--border2);
    display: flex; flex-direction: column; padding: 26px;
}
.post-card__back-cat {
    font-family: var(--ff-body); font-size: .6rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--coral); margin-bottom: 10px;
}
.post-card__back-title {
    font-family: var(--ff-head); font-size: .95rem; font-weight: 700;
    color: var(--text); line-height: 1.38; letter-spacing: -.015em;
    margin-bottom: 12px;
}
.post-card__back-excerpt {
    font-family: var(--ff-body); font-size: .8rem; color: var(--muted);
    line-height: 1.65; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__back-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px;
}
.post-card__back-tag {
    font-family: var(--ff-body); font-size: .58rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    border-radius: 5px; padding: 3px 9px;
}
.post-card__back-cta {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 18px; border-radius: 10px; margin-top: auto;
    background: rgba(232,97,77,.08); border: 1px solid rgba(232,97,77,.2);
    font-family: var(--ff-body); font-size: .82rem; font-weight: 700;
    color: var(--coral) !important; text-decoration: none;
    transition: background var(--dur), border-color var(--dur);
}
.post-card__back-cta:hover { background: rgba(232,97,77,.16); border-color: rgba(232,97,77,.4); }
.post-card__back-cta svg { flex-shrink: 0; transition: transform var(--dur); }
.post-card__back-cta:hover svg { transform: translateX(4px); }

/* Touch devices — stack front + back vertically */
@media (hover: none) {
    .post-card { height: auto; perspective: none; }
    .post-card__inner { transform-style: flat; transition: none; position: relative; display: flex; flex-direction: column; }
    .post-card:hover .post-card__inner { transform: none; }
    .post-card__front { position: relative; height: 260px; border-radius: 20px 20px 0 0; -webkit-backface-visibility: visible; backface-visibility: visible; }
    .post-card__back { transform: none; position: relative; border-radius: 0 0 20px 20px; border-top: none; -webkit-backface-visibility: visible; backface-visibility: visible; }
}

/* Category pill (legacy shared) */
.post-card__cat {
    display: inline-block; font-family: var(--ff-body);
    font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    border-radius: 50px; padding: 3px 10px; margin-bottom: 0;
}
.cat--aiseo    { background: rgba(232,97,77,.18);  color: #F08070; }
.cat--research { background: rgba(107,122,232,.18); color: #8A97F0; }
.cat--strategy { background: rgba(166,123,232,.18); color: #C0A0F0; }
.cat--speaking { background: rgba(50,200,180,.18);  color: #60C8B8; }

/* Load more */
.load-more-wrap { text-align: center; padding: 48px 0 72px; }
.btn--load-more {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 36px; border-radius: 50px;
    background: var(--bg-card); border: 1px solid var(--border);
    font-family: var(--ff-body); font-size: .88rem; font-weight: 600; color: var(--muted);
    cursor: pointer; transition: border-color var(--dur), color var(--dur);
}
.btn--load-more:hover { border-color: var(--coral); color: var(--coral); }

.no-results { display: none; text-align: center; padding: 48px; color: var(--dim); font-size: 1rem; }
.no-results.visible { display: block; }

/* ============================================================
   BLOG POST PAGE
============================================================ */

/* ── Full-bleed post hero with warm gradient ── */
.post-hero {
    position: relative; overflow: hidden;
    padding: 130px 40px 72px; text-align: center;
}
.post-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(180,70,20,.35) 0%, rgba(120,30,80,.2) 40%, transparent 68%),
        var(--bg);
}
.post-hero > * { position: relative; z-index: 1; }
.post-hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 16px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06);
    font-family: var(--ff-body); font-size: .68rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
    margin-bottom: 22px;
}
.post-hero__title {
    font-family: var(--ff-head);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700; color: var(--text);
    line-height: 1.06; letter-spacing: -.03em;
    max-width: 820px; margin: 0 auto 28px;
}
.post-hero__meta {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap;
}
.post-hero__author {
    display: flex; align-items: center; gap: 10px;
}
.post-hero__avatar {
    width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, var(--coral), var(--coral2));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-head); font-size: .75rem; font-weight: 700; color: #fff;
}
.post-hero__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-hero__author-info { text-align: left; }
.post-hero__author-name {
    font-family: var(--ff-head); font-size: .9rem; font-weight: 600; color: var(--text);
    line-height: 1.2;
}
.post-hero__author-role { font-family: var(--ff-body); font-size: .72rem; color: var(--muted); }
.post-hero__meta-sep { width: 1px; height: 32px; background: var(--border2); }
.post-hero__read-info { text-align: left; }
.post-hero__read-num {
    font-family: var(--ff-head); font-size: .9rem; font-weight: 600; color: var(--text);
    line-height: 1.2;
}
.post-hero__read-date { font-family: var(--ff-body); font-size: .72rem; color: var(--muted); }
.post-hero__divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ══════════════════════════════════════════
   ANIMATED TEXT  (port of animated-text.tsx)
   Letter-by-letter spring reveal + gradient underline
══════════════════════════════════════════ */
.at-wrap {
    position: relative;
    display: inline-block;
}

/* Individual letter rise */
.at-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    animation: at-letter-rise 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    will-change: transform, opacity;
}
@keyframes at-letter-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* Title word rise */
.at-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    animation: at-word-rise 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    will-change: transform, opacity;
}
@keyframes at-word-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* Gradient underline that expands left → right */
.at-underline {
    position: absolute;
    bottom: -3px; left: 0;
    height: 2px; width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg,
        var(--coral) 0%,
        var(--coral2) 45%,
        #a855f7 100%
    );
    animation: at-underline-expand 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}
@keyframes at-underline-expand {
    to { width: 100%; }
}

/* Wider underline variant for the h1 title line */
.at-underline--title {
    height: 3px;
    bottom: -5px;
    background: linear-gradient(90deg,
        var(--coral) 0%,
        #F47550 30%,
        #f59e0b 60%,
        #a855f7 100%
    );
}

/* ── 3-column article layout ── */
.article-layout {
    max-width: var(--mw); margin: 0 auto;
    padding: 52px 40px 80px;
    display: grid;
    grid-template-columns: 56px minmax(0,1fr) 272px;
    gap: 44px;
    align-items: start;
}

/* Left share/social column */
.article-share {
    position: sticky; top: 88px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.share-label {
    font-family: var(--ff-body); font-size: .55rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--dim); writing-mode: vertical-lr; transform: rotate(180deg);
    margin-bottom: 4px;
}
.share-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color var(--dur), color var(--dur); color: var(--muted);
}
.share-btn:hover { border-color: var(--coral); color: var(--coral); }
.share-divider { width: 1px; height: 28px; background: var(--border); }
/* Social proof below share buttons */
.social-proof {
    margin-top: 20px; text-align: center;
}
.social-proof__label {
    font-family: var(--ff-body); font-size: .5rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
    writing-mode: vertical-lr; transform: rotate(180deg);
    display: block; margin-bottom: 8px;
}
.social-proof__num {
    font-family: var(--ff-head); font-size: .95rem; font-weight: 700;
    color: var(--coral); line-height: 1.1;
    writing-mode: vertical-lr; transform: rotate(180deg);
}
.social-proof__sub {
    font-family: var(--ff-body); font-size: .5rem; color: var(--dim);
    writing-mode: vertical-lr; transform: rotate(180deg);
    display: block; margin-top: 4px;
}

/* ── Article main content ── */
.article-main { min-width: 0; }

.article-lead {
    font-family: var(--ff-body); font-size: 1.125rem; line-height: 1.75;
    color: var(--text); font-weight: 400;
    border-left: 3px solid var(--coral); padding-left: 1.375rem;
    margin-bottom: 2.5rem;
}
.article-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 2.5rem; }

/* Body typography */
.article-body h2 {
    font-family: var(--ff-head); font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-weight: 700; color: var(--text); line-height: 1.25;
    letter-spacing: -.025em; margin-top: 3rem; margin-bottom: 1rem;
}
.article-body h3 {
    font-family: var(--ff-head); font-size: 1.15rem; font-weight: 600;
    color: var(--text); line-height: 1.35; letter-spacing: -.015em;
    margin-top: 2rem; margin-bottom: .75rem;
}
.article-body p {
    font-family: var(--ff-body); margin-bottom: 1.375rem; color: var(--muted);
    font-size: .975rem; line-height: 1.8;
}
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.375rem; }
.article-body li { font-family: var(--ff-body); margin-bottom: .5rem; color: var(--muted); font-size: .975rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: #94A3B8; font-style: italic; }
.article-body a { color: var(--coral); border-bottom: 1px solid rgba(232,97,77,.3); }
.article-body a:hover { color: var(--accent-hover); }

/* verify badge */
.verify {
    display: inline-block; font-size: .62rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    background: rgba(251,191,36,.12); color: #FBB824;
    border: 1px solid rgba(251,191,36,.25); border-radius: 4px;
    padding: .1rem .35rem; vertical-align: middle; margin-left: .25rem;
    font-family: var(--ff-body);
}

/* Key Insight pull quote */
.stat-callout {
    background: var(--bg-card); border: 1px solid var(--border);
    border-left: 3px solid var(--coral);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem 1.75rem; margin: 2.5rem 0;
}
.stat-callout::before {
    content: 'Key Insight';
    display: block; font-family: var(--ff-body); font-size: .62rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: .75rem;
}
.stat-callout p {
    margin: 0; font-family: var(--ff-head); font-size: 1.15rem;
    font-weight: 500; color: var(--text); line-height: 1.55;
}
.stat-callout cite { display: block; margin-top: .5rem; font-family: var(--ff-body); font-size: .8rem; color: var(--dim); font-style: normal; }

/* Quick answer */
blockquote.quick-answer {
    background: rgba(20,20,31,.9); border: 1px solid rgba(232,97,77,.28);
    border-left: 3px solid var(--coral);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem 1.75rem; margin: 0 0 2.5rem;
}
blockquote.quick-answer::before {
    content: 'Quick Answer'; display: block;
    font-family: var(--ff-body); font-size: .62rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: .75rem;
}
blockquote.quick-answer strong { display: none; }
blockquote.quick-answer p { margin: 0; font-family: var(--ff-body); font-size: .975rem; line-height: 1.75; color: var(--text); }

/* Stats data card */
.stats-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 32px; margin: 2.5rem 0;
}
.stats-card__label {
    font-family: var(--ff-body); font-size: .62rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 20px;
}
.stats-card__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stats-card__stat-num {
    font-family: var(--ff-head); font-size: 2.25rem; font-weight: 700;
    color: var(--text); letter-spacing: -.03em; line-height: 1; margin-bottom: 6px;
}
.stats-card__stat-desc { font-family: var(--ff-body); font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* Checklist with blue circles */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.checklist li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 5px 0; color: var(--muted);
    font-family: var(--ff-body); font-size: .975rem;
}
.checklist li::before {
    content: ''; flex-shrink: 0;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(107,122,232,.2); border: 1.5px solid var(--blue);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%236B7AE8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 10px 8px; background-repeat: no-repeat; background-position: center;
    margin-top: 3px;
}
.checklist li strong { color: var(--text); }

/* Data table */
.data-table-wrap { overflow-x: auto; margin: 2rem 0; border-radius: var(--radius-md); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-family: var(--ff-body); }
.data-table thead { background: rgba(255,255,255,.04); }
.data-table th {
    font-family: var(--ff-body); font-weight: 600; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
    padding: .9rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border);
}
.data-table td { padding: .9rem 1.25rem; color: var(--muted); border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td strong { color: var(--text); }
.data-table tr:hover td { background: rgba(255,255,255,.02); }

/* Key takeaways */
.key-takeaways {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem 2.25rem; margin: 3rem 0;
}
.key-takeaways-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.key-takeaways-icon {
    width: 34px; height: 34px; background: var(--coral-a);
    border: 1px solid rgba(232,97,77,.2); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.key-takeaways-icon svg { width: 17px; height: 17px; }
.key-takeaways h2 { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; margin: 0; }
.key-takeaways ol { list-style: none; padding: 0; counter-reset: takeaway; margin: 0; }
.key-takeaways ol li {
    counter-increment: takeaway; display: flex; gap: 1rem;
    padding: .875rem 0; border-bottom: 1px solid var(--border);
    color: var(--muted); line-height: 1.65; font-family: var(--ff-body); font-size: .95rem;
}
.key-takeaways ol li:last-child { border-bottom: none; padding-bottom: 0; }
.key-takeaways ol li::before {
    content: counter(takeaway, decimal-leading-zero);
    font-family: var(--ff-head); font-size: .75rem; font-weight: 700;
    color: var(--coral); min-width: 24px; padding-top: .2rem;
}

/* FAQ */
.faq-section { margin: 3.5rem 0 2rem; }
.faq-section > h2 {
    font-family: var(--ff-head); font-size: clamp(1.25rem,3vw,1.6rem); font-weight: 700;
    color: var(--text); margin-bottom: 1.5rem; letter-spacing: -.025em;
}
.faq-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%; background: var(--bg-card); border: none; cursor: pointer;
    padding: 1.2rem 1.5rem; display: flex; align-items: flex-start;
    justify-content: space-between; gap: 1rem; text-align: left; transition: background .2s;
}
.faq-question:hover { background: rgba(255,255,255,.025); }
.faq-question[aria-expanded="true"] { background: rgba(232,97,77,.04); }
.faq-question-text { font-family: var(--ff-head); font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: transform .25s ease, color .2s; margin-top: .1rem; }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--coral); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 1.5rem 1.2rem; font-family: var(--ff-body); font-size: .92rem; line-height: 1.75; color: var(--muted); background: rgba(232,97,77,.02); }
.faq-answer-inner p { margin: 0; }

/* Author bio */
.author-bio-wrap { margin-top: 3.5rem; border-top: 1px solid var(--border); padding-top: 2.5rem; }
.author-bio {
    display: flex; gap: 1.25rem; align-items: flex-start;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.75rem 2rem;
}
.author-avatar {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), var(--coral2));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-head); font-weight: 700; font-size: 1.25rem; color: #fff;
    flex-shrink: 0; overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.author-bio-content { flex: 1; }
.author-bio-name { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.author-bio-role { font-family: var(--ff-body); font-size: .78rem; color: var(--coral); font-weight: 500; margin-bottom: .7rem; }
.author-bio-text { font-family: var(--ff-body); font-size: .9rem; line-height: 1.7; color: var(--muted); margin: 0; }
.author-bio-text a { color: var(--coral); font-weight: 500; }

/* Mid-article CTA */
.article-cta {
    background: linear-gradient(135deg, #1A1A2E 0%, #16162A 60%, #1E1629 100%);
    border: 1px solid rgba(232,97,77,.28);
    box-shadow: 0 0 0 1px rgba(232,97,77,.06), 0 8px 40px rgba(232,97,77,.08);
    border-radius: var(--radius-lg); padding: 28px 30px; margin: 3rem 0;
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.article-cta::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 100% at 0% 50%, rgba(232,97,77,.07) 0%, transparent 70%);
}
.article-cta__photo {
    width: 70px; height: 70px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, var(--coral), var(--coral2));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-head); font-size: 1.25rem; font-weight: 700; color: #fff;
    box-shadow: 0 4px 16px rgba(232,97,77,.30);
}
.article-cta__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.article-cta__content { flex: 1; min-width: 180px; }
.article-cta__content h3 { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.article-cta__content p { font-family: var(--ff-body); font-size: .875rem; color: var(--muted); margin: 0; line-height: 1.55; }
.article-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Right sidebar ── */
.article-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.sidebar-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
}
.sidebar-card__icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--coral-a); border: 1px solid rgba(232,97,77,.2);
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.sidebar-card__title {
    font-family: var(--ff-head); font-size: .9rem; font-weight: 600;
    color: var(--text); letter-spacing: -.01em; margin-bottom: 6px;
}
.sidebar-card__sub { font-family: var(--ff-body); font-size: .76rem; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.sidebar-input {
    width: 100%; padding: 9px 13px;
    background: var(--bg); border: 1px solid var(--border2);
    border-radius: 8px; color: var(--text); font-family: var(--ff-body); font-size: .78rem;
    margin-bottom: 8px; transition: border-color var(--dur);
}
.sidebar-input::placeholder { color: var(--dim); }
.sidebar-input:focus { outline: none; border-color: var(--coral); }
.sidebar-btn {
    width: 100%; padding: 9px 14px; border-radius: 8px;
    background: linear-gradient(135deg, var(--coral), var(--coral2));
    color: #fff; font-family: var(--ff-body); font-size: .8rem; font-weight: 600;
    cursor: pointer; border: none; transition: opacity var(--dur);
}
.sidebar-btn:hover { opacity: .88; }
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* Trending Now */
.sidebar-trending-label {
    font-family: var(--ff-body); font-size: .6rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px;
}
.trending-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-item__cat {
    font-family: var(--ff-body); font-size: .58rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    border-radius: 4px; padding: 2px 7px; margin-bottom: 5px; display: inline-block;
}
.trending-item__title {
    font-family: var(--ff-head); font-size: .82rem; font-weight: 600; color: var(--text);
    line-height: 1.4; transition: color var(--dur);
}
.trending-item:hover .trending-item__title { color: var(--coral); }

/* ============================================================
   LATEST INSIGHTS (bottom of post)
============================================================ */
.latest-insights { padding: 72px 40px 80px; border-top: 1px solid var(--border); content-visibility: auto; contain-intrinsic-size: 0 500px; }
.latest-insights__inner { max-width: var(--mw); margin: 0 auto; }
.latest-insights__header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 28px; gap: 16px;
}
.latest-insights__label {
    font-family: var(--ff-body); font-size: .62rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px;
}
.latest-insights__title {
    font-family: var(--ff-head); font-size: clamp(1.5rem,3vw,2rem);
    font-weight: 700; color: var(--text); letter-spacing: -.02em;
}
.latest-insights__view-all {
    font-family: var(--ff-body); font-size: .82rem; font-weight: 600; color: var(--coral);
    display: flex; align-items: center; gap: 5px; white-space: nowrap; transition: gap var(--dur);
}
.latest-insights__view-all:hover { gap: 9px; }
.insights-grid {
    display: grid; grid-template-columns: 1.65fr 1fr;
    grid-template-rows: 1fr 1fr; gap: 18px; min-height: 360px;
}
.insight-card--featured {
    grid-row: 1 / 3; border-radius: 18px; overflow: hidden; position: relative;
    background: var(--bg-card); display: flex; flex-direction: column; justify-content: flex-end;
    text-decoration: none; transition: transform var(--dur);
}
.insight-card--featured:hover { transform: translateY(-3px); }
.insight-card--featured .card-img { position: absolute; inset: 0; }
.insight-card--featured .card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,13,20,.96) 0%, rgba(13,13,20,.45) 55%, transparent 100%);
}
.insight-card--featured .card-body { position: relative; z-index: 2; padding: 28px; }
.insight-card--featured .card-title {
    font-family: var(--ff-head); font-size: 1.2rem; font-weight: 700; color: #fff;
    letter-spacing: -.02em; line-height: 1.3; margin-bottom: 8px;
}
.insight-card--featured .card-meta { font-family: var(--ff-body); font-size: .73rem; color: rgba(255,255,255,.48); }
.insight-card--small {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
    padding: 20px; display: flex; flex-direction: column; text-decoration: none;
    transition: border-color var(--dur), transform var(--dur);
}
.insight-card--small:hover { border-color: rgba(232,97,77,.22); transform: translateY(-2px); }
.insight-card--small .card-title {
    font-family: var(--ff-head); font-size: .94rem; font-weight: 700; color: var(--text);
    letter-spacing: -.01em; line-height: 1.45; flex: 1; transition: color var(--dur);
}
.insight-card--small:hover .card-title { color: var(--coral); }
.insight-card--small .card-meta {
    font-family: var(--ff-body); font-size: .72rem; color: var(--dim);
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.card-cat {
    display: inline-block; font-family: var(--ff-body);
    font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    border-radius: 50px; padding: 3px 10px; margin-bottom: 10px;
}

/* ============================================================
   NEWSLETTER SECTION
============================================================ */
.newsletter-section { padding: 0 40px 72px; }
.newsletter-section__inner { max-width: var(--mw); margin: 0 auto; }
.newsletter-box {
    border-radius: 20px; background: var(--bg-card); padding: 60px;
    text-align: center; position: relative; overflow: hidden;
}
.newsletter-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg,#E8614D,#F47550,#A67BE8);
}
.newsletter-box h2 {
    font-family: var(--ff-head); font-size: clamp(1.75rem,3.5vw,2.4rem);
    font-weight: 700; color: var(--text); letter-spacing: -.025em; margin-bottom: 12px;
}
.newsletter-box p { font-family: var(--ff-body); font-size: .975rem; color: var(--muted); max-width: 480px; margin: 0 auto 32px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto 14px; }
.newsletter-input {
    flex: 1; padding: 12px 20px;
    background: var(--bg); border: 1px solid var(--border2); border-radius: 50px;
    color: var(--text); font-family: var(--ff-body); font-size: .875rem;
    transition: border-color var(--dur);
}
.newsletter-input::placeholder { color: var(--dim); }
.newsletter-input:focus { outline: none; border-color: var(--coral); }
.newsletter-note { font-family: var(--ff-body); font-size: .75rem; color: var(--dim); }

/* ============================================================
   FOOTER
============================================================ */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer__inner {
    max-width: var(--mw); margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer__logo { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; color: var(--text); }
.footer__links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer__links a { font-family: var(--ff-body); font-size: .8rem; color: var(--dim); transition: color var(--dur); }
.footer__links a:hover { color: var(--muted); }
.footer__copy { font-family: var(--ff-body); font-size: .76rem; color: var(--dim); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1060px) {
    .article-layout { grid-template-columns: 1fr 240px; }
    .article-share { display: none; }
}
@media (max-width: 860px) {
    .article-layout { grid-template-columns: 1fr; padding: 32px 24px 56px; }
    .article-sidebar { position: static; }
    .insights-grid { grid-template-columns: 1fr; min-height: auto; }
    .insight-card--featured { grid-row: auto; min-height: 280px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .nav__links { display: none; }
    .nav__hamburger { display: flex; }
}
@media (max-width: 640px) {
    .nav { padding: 18px 20px; }
    .nav.scrolled { padding: 12px 20px; }
    .blog-hero-wrap, .post-hero { padding-left: 20px; padding-right: 20px; }
    .author-bar, .posts-header, .filters, .posts-grid-wrap, .posts-section { padding-left: 20px; padding-right: 20px; }
    .latest-insights, .newsletter-section { padding-left: 20px; padding-right: 20px; }
    .footer__inner { padding: 0 20px; flex-direction: column; text-align: center; }
    .footer__links { justify-content: center; }
    .newsletter-box { padding: 36px 20px; }
    .newsletter-form { flex-direction: column; }
    .posts-grid { grid-template-columns: 1fr; }
    .stats-card__grid { grid-template-columns: 1fr; gap: 16px; }
    .article-cta { flex-direction: column; }
    .author-bar__inner { flex-wrap: wrap; }
    .post-hero__meta { flex-direction: column; gap: 10px; }
    .post-hero__meta-sep { display: none; }
}
