.blog-shell {
    max-width: 1120px;
}

.blog-content.content {
    max-width: none;
    width: 100%;
}

.blog-header-inner {
    align-items: center;
}

.blog-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.blog-hero {
    margin-bottom: 18px;
}

.blog-hero .hero-lead {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.65;
}

.blog-breadcrumbs {
    margin-bottom: 14px;
}

.blog-grid,
.blog-brand-grid {
    display: grid;
    gap: 14px;
}

.blog-grid {
    grid-template-columns: 1fr;
}

.blog-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.blog-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.blog-card-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.blog-card-title {
    display: block;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #334155;
}

.blog-card-title-part {
    font-weight: 500;
}

.blog-card-title-part--main {
    color: #0f172a;
    font-weight: 700;
}

.blog-card-title-part--ref {
    color: #475569;
    font-weight: 600;
}

.blog-card-title-sep {
    color: #94a3b8;
    font-weight: 400;
}

.blog-card-arrow {
    color: var(--accent);
    flex-shrink: 0;
}

.blog-brand-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.blog-brand-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.blog-brand-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    text-decoration: none;
}

.blog-brand-icon {
    color: var(--accent);
}

.blog-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 0;
    align-items: start;
}

.blog-article.panel {
    padding: 0;
    overflow: hidden;
}

.blog-article-main {
    padding: 24px 28px 28px;
    min-width: 0;
}

.blog-article-header {
    margin-bottom: 22px;
}

.blog-article-title {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-article-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
}

.blog-article-chip--code {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-family: Consolas, monospace;
    letter-spacing: 0.02em;
}

.blog-article-chip--muted {
    color: #475569;
    font-weight: 600;
}

.blog-article-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--surface-border);
}

.blog-article-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.blog-article-section-title {
    display: flex;
    align-items: center;
    margin: 0 0 14px;
    font-size: 1.02rem;
}

.blog-article-facts {
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.blog-article-tags {
    gap: 10px;
}

.blog-article-tags li {
    background: #fff;
    border-color: #dbeafe;
    color: #1e3a8a;
    line-height: 1.35;
}

.blog-article-empty {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    font-size: 0.92rem;
}

.blog-article-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 22px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 1px solid var(--surface-border);
}

.blog-article-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-article-intro h1 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
}

.blog-article-lead {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.65;
}

.blog-cta {
    position: sticky;
    top: 16px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(165deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
    color: #eff6ff;
    box-shadow:
        0 22px 44px rgba(15, 23, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blog-cta-inner {
    padding: 22px 20px 20px;
}

.blog-cta-title {
    margin: 12px 0 8px;
    color: #fff;
    font-size: 1.28rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.blog-cta-context {
    margin: 0 0 8px;
    color: #dbeafe;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.blog-cta-lead {
    margin: 0;
    color: #bfdbfe;
    font-size: 0.9rem;
    line-height: 1.55;
}

.blog-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.blog-cta-badge-icon {
    color: #93c5fd;
}

.blog-cta-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.blog-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.blog-cta-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.blog-cta-btn-icon {
    flex-shrink: 0;
}

.blog-cta-btn-text {
    min-width: 0;
}

.blog-cta-btn--phone {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.blog-cta-btn--phone:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.blog-cta-btn--wa {
    background: #25d366;
    border: 1px solid #20bd5a;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.blog-cta-btn--wa:hover {
    background: #20bd5a;
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.34);
}

.blog-side-card {
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-soft);
}

.blog-side-card h3 {
    margin: 0 0 10px;
    font-size: 0.98rem;
}

.blog-side-popular {
    padding-bottom: 14px;
}

.blog-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-popular-item {
    margin: 0;
}

.blog-popular-link {
    display: grid;
    grid-template-columns: 24px 44px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.blog-popular-link:hover {
    text-decoration: none;
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(2px);
}

.blog-popular-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.blog-popular-item:nth-child(-n+3) .blog-popular-rank {
    background: #dbeafe;
    color: #1e40af;
}

.blog-popular-rank--dot {
    background: #f1f5f9;
    color: #64748b;
    font-size: 1rem;
    line-height: 0;
}

.blog-popular-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.blog-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-popular-thumb-empty {
    color: #64748b;
}

.blog-popular-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.blog-popular-title {
    display: block;
    font-size: 0.88rem;
    line-height: 1.35;
    color: #0f172a;
}

.blog-popular-meta {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-popular-arrow {
    color: #94a3b8;
    flex-shrink: 0;
}

.blog-popular-link:hover .blog-popular-arrow {
    color: #2563eb;
}

.blog-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    width: 100%;
}

.blog-footer-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.blog-footer-note a {
    color: var(--accent);
}

@media (max-width: 960px) {
    .blog-article-layout {
        grid-template-columns: 1fr;
    }

    .blog-article-main {
        padding: 20px 18px 10px;
    }

    .blog-article-side {
        padding: 0 18px 22px;
        border-left: 0;
        border-top: 1px solid var(--surface-border);
    }

    .blog-cta {
        position: static;
    }

    .blog-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .blog-header-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.blog-article-main .article-gallery {
    margin-bottom: 24px;
}

.blog-article-main .article-gallery-main {
    border-color: #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.blog-article-main .gallery-thumb {
    border-radius: 12px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
