/* ===== Blog Dadoos ===== */
.blog-page { padding: 120px 0 80px; }
.blog-hero { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.blog-hero .label { margin-bottom: 10px; }
.blog-hero h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 0 0 14px; color: #172541; letter-spacing: -.03em; }
.blog-lead { margin: 0 auto 30px; color: #66738a; font-size: 16px; line-height: 1.65; max-width: 560px; }

.blog-toolbar { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.blog-search { position: relative; width: 100%; max-width: 460px; }
.blog-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8995aa; pointer-events: none; }
.blog-search input {
    width: 100%; height: 48px; padding: 0 18px 0 46px;
    border: 1px solid #e5eaf4; border-radius: 999px;
    background: #fff; color: #172541; font: inherit; font-size: 14px;
    box-shadow: 0 8px 24px rgba(23, 37, 65, .06);
    transition: border-color .2s, box-shadow .2s;
}
.blog-search input:focus { outline: none; border-color: #3657d9; box-shadow: 0 0 0 4px rgba(54, 87, 217, .12); }
.blog-search input::placeholder { color: #8995aa; }

.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.blog-chip {
    appearance: none; border: 1px solid #e5eaf4; background: #fff; color: #526580;
    font: inherit; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
    cursor: pointer; transition: all .18s;
}
.blog-chip:hover { border-color: #c6d2ee; color: #3657d9; }
.blog-chip.is-active { background: #172541; border-color: #172541; color: #fff; }

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }

/* ===== Featured ===== */
.blog-featured {
    position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
    border-radius: 20px; overflow: hidden; background: #fff;
    border: 1px solid #e5eaf4; box-shadow: 0 18px 50px rgba(23, 37, 65, .08);
    margin-bottom: 40px; text-decoration: none; color: inherit;
    transition: transform .25s, box-shadow .25s;
}
.blog-featured:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(23, 37, 65, .14); }
.blog-featured .blog-cover { min-height: 280px; }
.blog-featured-body { padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured .blog-meta { margin-bottom: 14px; }
.blog-featured h2 { font-family: Manrope, sans-serif; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 14px; color: #172541; }
.blog-featured .blog-excerpt { margin: 0 0 20px; color: #526580; font-size: 15px; line-height: 1.65; }
.blog-read-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #3657d9; }
.blog-read-more svg { transition: transform .2s; }
.blog-featured:hover .blog-read-more svg, .blog-card:hover .blog-read-more svg { transform: translateX(4px); }

/* ===== Cards ===== */
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.blog-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid #e5eaf4;
    border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(23, 37, 65, .12); border-color: #cfdaef; }
.blog-card .blog-cover { height: 180px; position: relative; }
.blog-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 10px; color: #172541; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: #3657d9; }
.blog-excerpt { margin: 0 0 18px; color: #526580; font-size: 14px; line-height: 1.6; flex: 1; }

/* ===== Meta / badges ===== */
.blog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #8995aa; }
.blog-meta time { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta .blog-dot { width: 3px; height: 3px; border-radius: 50%; background: #c3cddd; }
.blog-badge {
    display: inline-flex; align-items: center; font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
    background: rgba(54, 87, 217, .1); color: #3657d9;
}
.blog-badge--dark { background: #172541; color: #fff; }

/* ===== Covers (gradientes por tema) ===== */
.blog-cover { position: relative; overflow: hidden; background: linear-gradient(135deg, #172541, #3657d9); }
.blog-cover::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px);
    background-size: 22px 22px; opacity: .5;
}
.blog-cover::before {
    content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    right: -90px; top: -110px; background: rgba(255,255,255,.12); filter: blur(2px);
}
.blog-cover-ic {
    position: absolute; right: 22px; bottom: -14px; width: 120px; height: 120px;
    color: rgba(255,255,255,.22); z-index: 1; pointer-events: none;
}
.blog-cover-ic svg { width: 100%; height: 100%; }
.cover-rf { background: linear-gradient(135deg, #172541 0%, #2c4a9e 55%, #3657d9 100%); }
.cover-price { background: linear-gradient(135deg, #101c38 0%, #1d3a6e 50%, #2f6fed 100%); }
.cover-extract { background: linear-gradient(135deg, #1a2340 0%, #31427a 55%, #4f63c8 100%); }
.cover-cnpj { background: linear-gradient(135deg, #14213d 0%, #274b8f 60%, #3b82f6 100%); }
.cover-lgpd { background: linear-gradient(135deg, #16213f 0%, #2a4d8f 55%, #4a6fd1 100%); }
.cover-open { background: linear-gradient(135deg, #1c2a4a 0%, #33539b 55%, #5b7fe0 100%); }

/* ===== Aside ===== */
.blog-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.blog-box { background: #fff; border: 1px solid #e5eaf4; border-radius: 16px; padding: 24px; }
.blog-box h4 { font-family: Manrope, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: #172541; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.blog-cat-list { display: flex; flex-direction: column; }
.blog-cat-btn {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: none; border: 0; border-bottom: 1px solid #f0f3fa; padding: 11px 0;
    font: inherit; font-size: 14px; color: #526580; cursor: pointer; text-align: left;
    transition: color .15s;
}
.blog-cat-btn:last-child { border-bottom: 0; }
.blog-cat-btn:hover { color: #3657d9; }
.blog-cat-btn.is-active { color: #3657d9; font-weight: 700; }
.blog-cat-btn .blog-cat-count { font-size: 12px; color: #8995aa; background: #f4f7fd; border-radius: 999px; padding: 2px 9px; }
.blog-cat-btn.is-active .blog-cat-count { background: #3657d9; color: #fff; }

.blog-mini { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f0f3fa; text-decoration: none; color: inherit; }
.blog-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.blog-mini:first-of-type { padding-top: 0; }
.blog-mini-cover { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; position: relative; overflow: hidden; }
.blog-mini-cover::after { content:''; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 12px 12px; }
.blog-mini-title { font-size: 13.5px; font-weight: 700; color: #172541; line-height: 1.35; margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: lines; overflow: hidden; }
.blog-mini-meta { font-size: 11.5px; color: #8995aa; }

.blog-news { background: linear-gradient(150deg, #172541, #2c4a9e); border: 0; color: #fff; }
.blog-news h4 { color: #fff; }
.blog-news p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.75); }
.blog-news-form { display: flex; gap: 8px; }
.blog-news-form input {
    flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff;
    font: inherit; font-size: 13px;
}
.blog-news-form input::placeholder { color: rgba(255,255,255,.5); }
.blog-news-form input:focus { outline: none; border-color: rgba(255,255,255,.5); }
.blog-news-form button {
    height: 42px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer;
    background: #fff; color: #172541; font: inherit; font-size: 13px; font-weight: 700;
    transition: transform .15s;
}
.blog-news-form button:hover { transform: translateY(-1px); }
.blog-news-note { margin: 12px 0 0 !important; font-size: 11.5px !important; color: rgba(255,255,255,.5) !important; }

/* ===== Empty ===== */
.blog-empty { text-align: center; padding: 60px 20px; color: #66738a; }
.blog-empty p { margin: 0 0 18px; font-size: 15px; }
.blog-empty button { border: 1px solid #e5eaf4; background: #fff; color: #3657d9; font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.blog-empty button:hover { border-color: #3657d9; }

/* ===== Detalhe ===== */
.blog-back { font-size: 14px; margin: 0 0 26px; }
.blog-back a { color: #3657d9; font-weight: 600; text-decoration: none; }
.blog-back a:hover { text-decoration: underline; }
.blog-article-hero { max-width: 780px; margin: 0 auto; }
.blog-article-cover { height: 300px; border-radius: 20px; margin-bottom: 34px; position: relative; overflow: hidden; }
.blog-article-cover .blog-cover-ic { width: 160px; height: 160px; right: 30px; bottom: -20px; }
.blog-article-body { max-width: 720px; margin: 0 auto; }
.blog-article-body h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; color: #172541; line-height: 1.2; margin: 0 0 18px; }
.blog-article-lead { font-size: 18px; line-height: 1.7; color: #3657d9; font-weight: 600; margin: 0 0 28px; }
.blog-article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid #e5eaf4; font-size: 13.5px; color: #66738a; }
.blog-author { display: flex; align-items: center; gap: 12px; }
.blog-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #3657d9, #6d8bf0); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; font-family: Manrope, sans-serif; }
.blog-author strong { display: block; color: #172541; font-size: 14px; }
.blog-author span { font-size: 12px; color: #8995aa; }

.blog-content h2 { font-family: Manrope, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #172541; margin: 40px 0 14px; }
.blog-content p { font-size: 16px; line-height: 1.8; color: #30466e; margin: 0 0 18px; }
.blog-content p:first-of-type::first-letter { }

.blog-cta {
    margin: 48px 0 0; padding: 32px; border-radius: 18px;
    background: linear-gradient(140deg, #172541, #2c4a9e); color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.blog-cta h3 { font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; margin: 0 0 6px; color: #fff; }
.blog-cta p { margin: 0; font-size: 14px; color: rgba(255,255,255,.75); }
.blog-cta a.btn { text-decoration: none; }

.blog-related { max-width: 720px; margin: 56px auto 0; }
.blog-related h2 { font-family: Manrope, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #172541; margin: 0 0 20px; }

@media (max-width: 980px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-aside { position: static; }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured .blog-cover { min-height: 220px; height: 220px; }
}
@media (max-width: 640px) {
    .blog-page { padding: 96px 0 56px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-featured-body { padding: 26px 22px; }
    .blog-article-cover { height: 200px; }
    .blog-news-form { flex-direction: column; }
    .blog-news-form button { height: 44px; }
}
