/* ========================================
   TCF Brasil — Blog Stylesheet v2 (moderno, mobile-first, com efeitos)
   Tema: Vermelho (#D62027) + Azul vivo (#1556C8) + Branco + Mascote Dazaf
======================================== */

:root {
    --red: #D62027;
    --red-dark: #B31B21;
    --red-light: #E84C51;
    --blue: #1556C8;
    --blue-dark: #0E3A8C;
    --blue-light: #3E82E0;
    --gold: #FBBF24;
    --cyan: #22C8EE;
    --ink: #1F2937;
    --muted: #6B7280;
    --line: #E5E7EB;
    --soft: #F7F9FC;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 26px;
    --ease: cubic-bezier(.16,1,.3,1);
    --shadow-sm: 0 4px 14px rgba(14,58,140,.08);
    --shadow-md: 0 14px 34px rgba(14,58,140,.14);
    --shadow-lg: 0 26px 56px rgba(14,58,140,.20);
    --mascot-face: url('../assets/dazaf/dazaf-face-256.webp');
    --mascot-hello: url('../assets/dazaf/dazaf-body-hello-600.webp');
    --mascot-thumbs: url('../assets/dazaf/dazaf-body-thumbs-600.webp');
}

*{ -webkit-tap-highlight-color: transparent; }

/* ---------- Reveal on scroll ---------- */
.blog-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
.blog-reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* Cascata suave nos grids */
.post-grid .blog-reveal:nth-child(1) { transition-delay: .02s; }
.post-grid .blog-reveal:nth-child(2) { transition-delay: .08s; }
.post-grid .blog-reveal:nth-child(3) { transition-delay: .14s; }
.post-grid .blog-reveal:nth-child(4) { transition-delay: .2s; }
.post-grid .blog-reveal:nth-child(5) { transition-delay: .26s; }
.post-grid .blog-reveal:nth-child(6) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .blog-reveal, .post-grid .blog-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Scrollbar sutil ---------- */
.article-toc, .blog-sidebar { scrollbar-width: thin; scrollbar-color: var(--red-light) transparent; }

/* ---------- Blog Hero ---------- */
.blog-hero {
    position: relative;
    padding: 150px 0 110px;
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(214,32,39,.22), transparent 60%),
        radial-gradient(900px 500px at 8% 110%, rgba(34,200,238,.14), transparent 60%),
        linear-gradient(180deg, #0A2E75 0%, #0E3A8C 55%, #1556C8 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.blog-hero::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    width: 340px; height: 340px;
    background: rgba(214,32,39,.28);
    top: -120px; right: -80px;
    animation: blogFloat 9s ease-in-out infinite;
}
/* Mascote Dazaf flutuando no hero (some no mobile p/ não competir com o texto) */
.blog-hero::after {
    content: '';
    position: absolute;
    right: 4%; bottom: -18px;
    width: 300px; height: 300px;
    background-image: var(--mascot-hello);
    background-repeat: no-repeat; background-size: contain; background-position: bottom;
    filter: drop-shadow(0 24px 40px rgba(0,0,0,.35));
    animation: mascotBob 6s ease-in-out infinite;
    z-index: 1; pointer-events: none;
}
@keyframes mascotBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-2deg); }
}
@keyframes blogFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-22px) scale(1.04); }
}
.blog-hero .container { position: relative; z-index: 2; overflow: visible; }
.blog-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    font-size: .82rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #FDE68A;
    margin-bottom: 22px;
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,.0); }
    50% { box-shadow: 0 0 0 6px rgba(251,191,36,.08); }
}
.blog-hero h1 {
    color: #fff; font-weight: 800;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    max-width: 760px; margin-bottom: 18px;
}
.blog-hero h1 .accent {
    background: linear-gradient(90deg, #F87171, #FBBF24);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blog-hero p {
    color: rgba(255,255,255,.85);
    font-size: 1.12rem; line-height: 1.7;
    max-width: 620px;
}
@media (max-width: 900px) {
    .blog-hero::after { width: 200px; height: 200px; opacity: .5; right: -10px; }
}
@media (max-width: 600px) {
    .blog-hero::after { display: none; }
}

/* ---------- Blog Layout ---------- */
.blog-main {
    padding: 70px 0 90px;
    background: var(--soft);
}
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

/* ---------- Filter chips ---------- */
.blog-filters {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 34px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.blog-filters::-webkit-scrollbar { display: none; }
.blog-chip {
    padding: 10px 20px; border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff; color: var(--blue);
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem; font-weight: 700; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap; flex: none;
    -webkit-tap-highlight-color: transparent;
}
.blog-chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.blog-chip:active { transform: translateY(0) scale(.96); }
.blog-chip.active {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff; border-color: transparent;
    box-shadow: 0 8px 20px rgba(214,32,39,.35);
}

/* ---------- Search ---------- */
.blog-search-wrap {
    position: relative;
    max-width: 460px;
    margin-bottom: 26px;
}
.blog-search-wrap i {
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted); font-size: .95rem;
    transition: color .25s ease;
}
.blog-search {
    width: 100%;
    padding: 15px 18px 15px 46px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem; color: var(--ink);
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
    box-shadow: var(--shadow-sm);
}
.blog-search::placeholder { color: var(--muted); }
.blog-search:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(214,32,39,.12);
}
.blog-search:focus + i,
.blog-search-wrap:has(.blog-search:focus) i { color: var(--red); }

/* ---------- Post cards ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}
.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease;
    position: relative;
}
.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(214,32,39,.18);
}
.post-card::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--blue));
    background-size: 200% 100%;
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s ease;
    z-index: 4;
}
.post-card:hover::before { transform: scaleX(1); animation: gradShift 3s linear infinite; }
@keyframes gradShift { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.post-card-visual {
    position: relative; height: 180px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.post-card-visual i {
    font-size: 3rem; color: rgba(255,255,255,.9);
    position: relative; z-index: 2;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
    transition: transform .45s var(--ease);
}
.post-card:hover .post-card-visual i { transform: scale(1.12) rotate(-4deg); }
.post-card-visual .orb {
    position: absolute; border-radius: 50%;
    transition: transform .6s var(--ease);
}
.post-card-visual .orb.red { width: 120px; height: 120px; background: rgba(214,32,39,.55); top: -40px; right: -30px; }
.post-card-visual .orb.gold { width: 70px; height: 70px; background: rgba(251,191,36,.35); bottom: -22px; left: 24px; }
.post-card:hover .orb.red { transform: translate(-6px, 8px) scale(1.06); }
.post-card:hover .orb.gold { transform: translate(6px, -6px) scale(1.1); }
.post-card-visual.v-red { background: linear-gradient(135deg, var(--red-dark), var(--red)); }
/* Cards da categoria Dazaf IA ganham a mascote como visual */
.post-card[data-cat="dazaf"] .post-card-visual {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}
.post-card[data-cat="dazaf"] .post-card-visual::after {
    content: '';
    position: absolute; inset: 0;
    background-image: var(--mascot-thumbs);
    background-repeat: no-repeat; background-position: center bottom -10px; background-size: 130px;
    opacity: .9; z-index: 1;
    transition: transform .45s var(--ease);
}
.post-card[data-cat="dazaf"]:hover .post-card-visual::after { transform: translateY(-6px) scale(1.05); }
.post-card[data-cat="dazaf"] .post-card-visual i { display: none; }
.post-cat {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    background: rgba(255,255,255,.95); color: var(--red);
    padding: 5px 13px; border-radius: 999px;
    font-size: .72rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: .8rem; color: var(--muted); margin-bottom: 12px;
}
.post-meta i { color: var(--red); margin-right: 4px; }
.post-card-body h3 {
    font-size: 1.18rem; margin-bottom: 10px; line-height: 1.35;
}
.post-card-body h3 a { color: var(--blue-dark); transition: color .2s; }
.post-card-body h3 a:hover { color: var(--red); }
.post-card-body p {
    color: var(--muted); font-size: .95rem; line-height: 1.65;
    margin-bottom: 18px; flex: 1;
}
.post-read {
    margin-top: auto;
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem; font-weight: 800; color: var(--red);
    display: inline-flex; align-items: center; gap: 8px;
}
.post-read i { transition: transform .25s ease; }
.post-card:hover .post-read i { transform: translateX(5px); }

/* Language links on post cards */
.post-card-langs {
    display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--line);
}
.post-card-langs .lang-tag {
    font-size: .68rem; font-weight: 800; letter-spacing: .5px;
    padding: 3px 9px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--blue);
    transition: all .2s ease;
}
.post-card-langs .lang-tag:hover { border-color: var(--red); color: var(--red); }
.post-card-langs .lang-tag.active {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-color: transparent; color: #fff;
}

/* Featured card */
.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-card.featured .post-card-visual { width: 42%; height: auto; min-height: 260px; }
.post-card.featured .post-card-visual i { font-size: 4.5rem; }
.post-card.featured .post-card-body { width: 58%; padding: 34px; }
.post-card.featured h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.post-card.featured p { font-size: 1rem; }

/* ---------- Sidebar ---------- */
.blog-sidebar { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 110px; }
.sidebar-box {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s ease, transform .3s var(--ease);
}
.sidebar-box:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sidebar-box h4 {
    font-size: 1rem; margin-bottom: 16px; color: var(--blue-dark);
    display: flex; align-items: center; gap: 9px;
}
.sidebar-box h4 i { color: var(--red); }
.sidebar-list { display: flex; flex-direction: column; gap: 14px; }
.sidebar-list a {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.4;
    transition: color .2s, transform .2s;
}
.sidebar-list a:hover { color: var(--red); transform: translateX(3px); }
.sidebar-list a .num {
    flex: none; width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 800;
}
.sidebar-cta {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff; text-align: center; position: relative; overflow: hidden;
}
.sidebar-cta::before {
    content: ''; position: absolute; width: 130px; height: 130px;
    background-image: var(--mascot-thumbs); background-repeat: no-repeat;
    background-size: contain; opacity: .22;
    right: -18px; top: -14px; transform: rotate(8deg);
    animation: mascotBob 5s ease-in-out infinite;
}
.sidebar-cta h4 { color: #fff; justify-content: center; position: relative; z-index: 2; }
.sidebar-cta p { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 18px; position: relative; z-index: 2; }
.sidebar-cta .btn { position: relative; z-index: 2; }

/* ---------- Newsletter strip ---------- */
.blog-newsletter {
    position: relative;
    background:
        radial-gradient(700px 260px at 10% 0%, rgba(214,32,39,.18), transparent 60%),
        radial-gradient(700px 260px at 90% 100%, rgba(34,200,238,.16), transparent 60%),
        linear-gradient(135deg, #0E3A8C, #1556C8);
    padding: 70px 0; color: #fff; text-align: center;
    overflow: hidden;
}
.blog-newsletter::after {
    content: '';
    position: absolute; right: 2%; bottom: -10px;
    width: 160px; height: 160px;
    background-image: var(--mascot-face); background-repeat: no-repeat; background-size: contain;
    opacity: .18; animation: mascotBob 7s ease-in-out infinite;
    pointer-events: none;
}
.blog-newsletter h2 { color: #fff; margin-bottom: 12px; position: relative; z-index: 2; }
.blog-newsletter p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 28px; position: relative; z-index: 2; }
.blog-newsletter-form {
    display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
    position: relative; z-index: 2;
}
.blog-newsletter-form input {
    flex: 1; padding: 14px 20px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1);
    color: #fff; font-size: .95rem; outline: none;
    transition: border-color .25s ease, background .25s ease;
}
.blog-newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.blog-newsletter-form input:focus { border-color: #fff; background: rgba(255,255,255,.16); }
@media (max-width: 640px) {
    .blog-newsletter::after { width: 100px; height: 100px; opacity: .12; }
}

/* ==================================================
   ARTICLE (single post) STYLES
================================================== */
.article-hero {
    position: relative; padding: 140px 0 76px;
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(214,32,39,.20), transparent 60%),
        radial-gradient(800px 420px at 6% 110%, rgba(34,200,238,.14), transparent 60%),
        linear-gradient(180deg, #0A2E75, #0E3A8C);
    color: #fff; overflow: hidden; isolation: isolate;
}
.article-hero::before {
    content: '';
    position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: rgba(214,32,39,.22); top: -140px; right: -60px;
    animation: blogFloat 10s ease-in-out infinite; pointer-events: none;
}
.article-hero .container { position: relative; z-index: 2; overflow: visible; }
/* Mascote no canto do hero de artigo (decorativo, escondido em telas pequenas) */
.article-hero::after {
    content: '';
    position: absolute; right: 3%; bottom: -14px;
    width: 190px; height: 190px;
    background-image: var(--mascot-face); background-repeat: no-repeat; background-size: contain; background-position: bottom;
    opacity: .9; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
    animation: mascotBob 6s ease-in-out infinite;
    z-index: 1; pointer-events: none;
}
.article-cat {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff; padding: 8px 18px; border-radius: 999px;
    font-size: .78rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(214,32,39,.3);
}
.article-hero h1 {
    color: #fff; font-weight: 800;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    max-width: 820px; line-height: 1.2; margin-bottom: 20px;
}
.article-hero .lead {
    color: rgba(255,255,255,.85); font-size: 1.08rem; line-height: 1.7;
    max-width: 720px;
}
.article-meta {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    margin-top: 26px; color: rgba(255,255,255,.75); font-size: .88rem;
}
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta i { color: var(--gold); }
.article-meta .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--blue));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: .85rem;
    border: 2px solid rgba(255,255,255,.4);
}
@media (max-width: 900px) {
    .article-hero::after { width: 130px; height: 130px; opacity: .55; }
}
@media (max-width: 560px) {
    .article-hero { padding: 118px 0 56px; }
    .article-hero::after { display: none; }
    .article-meta { gap: 12px 16px; }
}

/* Article body */
.article-body { padding: 54px 0 80px; background: #fff; }
.article-body .container { max-width: 780px; }
.article-body h2 {
    font-size: 1.6rem; color: var(--blue-dark); margin: 44px 0 18px;
    position: relative; padding-left: 0;
    scroll-margin-top: 100px;
}
.article-body h2::after {
    content: ''; display: block; width: 52px; height: 4px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 2px; margin-top: 12px;
    transition: width .4s var(--ease);
}
.article-body h2:hover::after { width: 84px; }
.article-body h3 { font-size: 1.22rem; color: var(--blue); margin: 30px 0 12px; }
.article-body p {
    color: #374151; line-height: 1.85; font-size: 1.05rem; margin-bottom: 20px;
}
.article-body ul, .article-body ol {
    margin: 0 0 22px; padding-left: 4px; list-style: none;
}
.article-body ul li, .article-body ol li {
    position: relative; padding-left: 30px; margin-bottom: 12px;
    line-height: 1.7; color: #374151;
}
.article-body ul li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 2px; color: var(--red); font-size: .9rem;
}
.article-body ol { counter-reset: item; }
.article-body ol li::before {
    counter-increment: item; content: counter(item);
    position: absolute; left: 0; top: 1px;
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff; font-size: .75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.article-body strong { color: var(--blue-dark); }
.article-body a { color: var(--red); font-weight: 700; }

/* Callouts */
.article-callout {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 22px 24px; border-radius: 14px; margin: 28px 0;
    border-left: 5px solid var(--red);
    background: linear-gradient(90deg, rgba(214,32,39,.06), rgba(214,32,39,.02));
    transition: transform .3s var(--ease), box-shadow .3s ease;
}
.article-callout:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.article-callout.blue { border-left-color: var(--blue); background: linear-gradient(90deg, rgba(21,86,200,.08), rgba(21,86,200,.02)); }
.article-callout i {
    font-size: 1.4rem; color: var(--red); margin-top: 3px; flex: none;
}
.article-callout.blue i { color: var(--blue); }
.article-callout p { margin: 0; font-size: 1rem; }

/* Pull quote */
.article-quote {
    position: relative; margin: 34px 0; padding: 26px 30px 26px 74px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff; font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem; font-weight: 700; line-height: 1.55;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.article-quote::before {
    content: '\f10d'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 24px; top: 22px; font-size: 2rem; color: var(--gold);
    z-index: 2;
}
.article-quote::after {
    content: '';
    position: absolute; right: -10px; bottom: -14px;
    width: 96px; height: 96px;
    background-image: var(--mascot-face); background-repeat: no-repeat; background-size: contain;
    opacity: .35; pointer-events: none;
}
@media (max-width: 600px) {
    .article-quote::after { display: none; }
}

/* Comparison / stat boxes */
.article-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0; }
.article-box {
    border-radius: 14px; padding: 24px; border: 1px solid var(--line);
    background: #fff;
    transition: transform .3s var(--ease), box-shadow .3s ease;
}
.article-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-box.red { border-top: 4px solid var(--red); }
.article-box.blue { border-top: 4px solid var(--blue); }
.article-box h4 { color: var(--blue-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.article-box.red h4 i { color: var(--red); }
.article-box.blue h4 i { color: var(--blue); }
.article-box p, .article-box li { font-size: .95rem; margin-bottom: 0; }

/* Stat row */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; }
.stat-card {
    text-align: center; padding: 26px 16px; border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff;
    transition: transform .3s var(--ease), box-shadow .3s ease;
    box-shadow: var(--shadow-sm);
}
.stat-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-md); }
.stat-card.red { background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.stat-card .big { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; display: block; }
.stat-card .label { font-size: .82rem; opacity: .9; margin-top: 4px; display: block; }

/* Table */
.article-table-wrap { overflow-x: auto; margin: 26px 0; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.article-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.article-table th {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff; padding: 14px 18px; text-align: left; font-size: .9rem;
}
.article-table td { padding: 14px 18px; border-top: 1px solid var(--line); font-size: .93rem; color: #374151; transition: background .2s ease; }
.article-table tr:nth-child(even) td { background: var(--soft); }
.article-table tr:hover td { background: rgba(214,32,39,.05); }

/* TOC */
.article-toc {
    background: var(--soft); border: 1px solid var(--line); border-radius: 14px;
    padding: 22px 26px; margin: 30px 0;
    position: relative; overflow: hidden;
}
.article-toc::before {
    content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
    background: linear-gradient(180deg, var(--red), var(--blue));
}
.article-toc h4 { color: var(--blue-dark); margin-bottom: 12px; font-size: .95rem; letter-spacing: .5px; text-transform: uppercase; }
.article-toc a {
    display: flex; gap: 10px; align-items: center; padding: 6px 0;
    color: var(--ink); font-size: .95rem; font-weight: 600;
    transition: color .2s, transform .2s;
}
.article-toc a:hover { color: var(--red); transform: translateX(4px); }
.article-toc a i { color: var(--red); font-size: .7rem; transition: transform .2s; }
.article-toc a:hover i { transform: translateX(2px); }

/* Share + tags */
.article-footer { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.article-tags span {
    background: var(--soft); border: 1px solid var(--line); color: var(--blue);
    padding: 6px 15px; border-radius: 999px; font-size: .8rem; font-weight: 700;
    transition: background .2s, color .2s, border-color .2s;
}
.article-tags span:hover { background: var(--red); color: #fff; border-color: transparent; }
.article-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-share strong { color: var(--blue-dark); font-size: .9rem; }
.share-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.05rem; transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: var(--shadow-sm);
}
.share-btn:hover { transform: translateY(-4px) scale(1.08); box-shadow: var(--shadow-md); }
.share-wa { background: #25D366; }
.share-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.share-tw { background: #1DA1F2; }
.share-li { background: #0A66C2; }

/* CTA at end of article */
.article-cta {
    margin-top: 46px; padding: 40px 34px; border-radius: 20px; text-align: center;
    background:
        radial-gradient(600px 200px at 50% 0%, rgba(214,32,39,.22), transparent 70%),
        linear-gradient(135deg, #0E3A8C, #1556C8);
    color: #fff;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.article-cta::after {
    content: '';
    position: absolute; left: -20px; bottom: -18px;
    width: 150px; height: 150px;
    background-image: var(--mascot-thumbs); background-repeat: no-repeat; background-size: contain;
    opacity: .28; pointer-events: none;
    animation: mascotBob 6s ease-in-out infinite;
}
.article-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; position: relative; z-index: 2; }
.article-cta p { color: rgba(255,255,255,.85); margin-bottom: 24px; font-size: 1rem; position: relative; z-index: 2; }
.article-cta .btn { position: relative; z-index: 2; }
@media (max-width: 560px) {
    .article-cta { padding: 32px 22px; }
    .article-cta::after { width: 90px; height: 90px; opacity: .18; }
}

/* Related posts */
.related-posts { background: var(--soft); padding: 60px 0 80px; }
.related-posts .post-grid { margin-top: 10px; }

/* Breadcrumb */
.blog-crumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.blog-crumb a { color: #FDE68A; font-weight: 700; }
.blog-crumb i { margin: 0 8px; font-size: .65rem; opacity: .6; }

/* Language switcher (article) */
.article-langs {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 18px; flex-wrap: wrap;
}
.article-langs .lang-label { color: rgba(255,255,255,.65); font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; }
.article-langs a {
    padding: 4px 12px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 800; letter-spacing: .5px;
    transition: all .2s ease;
}
.article-langs a:hover { background: rgba(255,255,255,.15); color: #fff; }
.article-langs a.active {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-color: transparent; color: #fff;
}

/* Empty state for filters */
.blog-empty {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px;
    color: var(--muted); display: none;
}
.blog-empty i { font-size: 2.6rem; color: var(--line); margin-bottom: 16px; }

/* ---------- Responsive (mobile-first, 100% otimizado) ---------- */
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .post-card.featured { flex-direction: column; }
    .post-card.featured .post-card-visual,
    .post-card.featured .post-card-body { width: 100%; }
    .post-card.featured .post-card-visual { min-height: 200px; }
}
@media (max-width: 768px) {
    .post-grid { grid-template-columns: 1fr; }
    .blog-hero, .article-hero { padding-top: 116px; }
    .article-grid-2, .stat-row { grid-template-columns: 1fr; }
    .blog-newsletter-form { flex-direction: column; }
    .article-quote { padding: 22px 20px 22px 60px; font-size: 1.08rem; }
    .article-body { padding: 40px 0 60px; }
    .article-toc { padding: 18px 20px; }
    .article-cta { padding: 34px 24px; }
    .sidebar-cta::before { width: 90px; height: 90px; }
}
@media (max-width: 600px) {
    .blog-hero { padding: 108px 0 76px; }
    .blog-hero h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
    .blog-hero p { font-size: 1rem; }
    .blog-search { font-size: .95rem; padding: 13px 16px 13px 44px; }
    .blog-chip { padding: 9px 16px; font-size: .8rem; }
    .post-card-visual { height: 150px; }
    .post-card-visual i { font-size: 2.3rem; }
    .post-card-body { padding: 18px 18px 20px; }
    .post-card-body h3 { font-size: 1.05rem; }
    .article-hero h1 { font-size: clamp(1.55rem, 7vw, 2.1rem); }
    .article-hero .lead { font-size: 1rem; }
    .article-meta { font-size: .8rem; gap: 10px 14px; }
    .article-body p { font-size: 1rem; line-height: 1.75; }
    .article-body h2 { font-size: 1.32rem; margin: 34px 0 14px; }
    .article-body h3 { font-size: 1.1rem; }
    .article-quote { font-size: 1rem; padding: 20px 16px 20px 54px; }
    .article-quote::before { left: 16px; font-size: 1.6rem; }
    .article-callout { padding: 18px; flex-direction: column; gap: 10px; }
    .article-box { padding: 18px; }
    .stat-card .big { font-size: 1.6rem; }
    .article-cta h3 { font-size: 1.25rem; }
    .article-cta .btn-lg { width: 100%; justify-content: center; }
    .share-btn { width: 44px; height: 44px; font-size: 1.1rem; }
    .article-langs a, .blog-crumb { font-size: .74rem; }
}
@media (max-width: 380px) {
    .stat-row { gap: 10px; }
    .article-grid-2 { gap: 14px; }
}
