/* Blog listing & article detail */

.blog-hero {
    padding: 48px 0 32px;
    background: linear-gradient(180deg, var(--bg-section, #f8fafc) 0%, var(--bg, #fff) 100%);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.blog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 999px;
}

.blog-hero__eyebrow [data-lucide] {
    width: 16px;
    height: 16px;
}

.blog-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--heading, #0f172a);
}

.blog-hero__copy p {
    margin: 0;
    max-width: 640px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text, #475569);
}

.blog-hero__stat {
    margin-top: 14px !important;
    font-size: 0.875rem !important;
    font-weight: 600;
    color: #64748b !important;
}

.blog-listing {
    padding: 40px 0 80px;
}

.blog-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.08));
    overflow: hidden;
}

.blog-featured__media {
    position: relative;
    display: block;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.blog-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-featured__illus {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.blog-featured__label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.blog-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
}

.blog-featured__body h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.25;
}

.blog-featured__body h2 a {
    color: var(--heading, #0f172a);
    transition: color 0.2s;
}

.blog-featured__body h2 a:hover {
    color: var(--primary, #2563eb);
}

.blog-featured__body p {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text, #475569);
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.blog-card__meta .meta-dot {
    color: #cbd5e1;
}

.blog-grid--listing {
    margin-top: 8px;
}

.blog-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.blog-pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    color: var(--heading, #0f172a);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.blog-pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Article detail */
.article-hero {
    padding: 40px 0 28px;
    background: linear-gradient(180deg, var(--bg-section, #f8fafc) 0%, var(--bg, #fff) 100%);
}

.article-hero__header {
    max-width: 820px;
    margin-top: 20px;
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #64748b;
}

.article-hero__author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-hero__author [data-lucide] {
    width: 14px;
    height: 14px;
}

.article-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--heading, #0f172a);
}

.article-hero__lead {
    margin: 16px 0 0;
    max-width: 720px;
    font-size: 1.125rem;
    line-height: 1.65;
    color: #64748b;
}

.article-cover-wrap {
    padding: 0 0 8px;
}

.article-cover {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.08));
}

.article-cover img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.article-layout {
    padding: 40px 0 80px;
}

.article-layout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.article-main {
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.08));
}

.article-main__content {
    padding: 36px 40px;
}

.article-main__footer {
    padding: 20px 40px 28px;
    border-top: 1px solid var(--border, #e2e8f0);
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.article-share span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.article-share a,
.article-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: var(--bg, #fff);
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.article-share a:hover,
.article-share button:hover {
    border-color: #93c5fd;
    color: #2563eb;
    background: #eff6ff;
}

.article-share [data-lucide] {
    width: 18px;
    height: 18px;
}

.article-share__copy.is-copied {
    border-color: #22c55e;
    color: #16a34a;
    background: #f0fdf4;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 96px;
}

.article-sidebar__card {
    padding: 22px;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.08));
}

.article-sidebar__card h3 {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading, #0f172a);
}

.article-tool-cta {
    background: linear-gradient(160deg, #eff6ff 0%, #f5f3ff 100%);
    border-color: #bfdbfe;
}

.article-tool-cta__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
}

.article-tool-cta p {
    margin: 0 0 16px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.article-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-related-list li + li {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border, #e2e8f0);
}

.article-related-list a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-related-list a:hover .article-related-list__title {
    color: #2563eb;
}

.article-related-list__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--heading, #0f172a);
    transition: color 0.2s;
}

.article-related-list__meta {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Prose (shared) */
.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card__author {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.article-main__content.prose h2,
.article-panel__content.prose h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 1.5em 0 0.6em;
    color: var(--heading, #0f172a);
}

.article-main__content.prose h3,
.article-panel__content.prose h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.25em 0 0.5em;
}

.article-main__content.prose p,
.article-panel__content.prose p {
    margin: 0 0 1em;
    line-height: 1.75;
}

.article-main__content.prose ul,
.article-main__content.prose ol,
.article-panel__content.prose ul,
.article-panel__content.prose ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.article-main__content.prose li,
.article-panel__content.prose li {
    margin-bottom: 0.35em;
    line-height: 1.65;
}

.article-main__content.prose img,
.article-panel__content.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1em 0;
}

.article-main__content.prose blockquote,
.article-panel__content.prose blockquote {
    margin: 1.25em 0;
    padding: 12px 18px;
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    border-radius: 0 10px 10px 0;
    color: #475569;
}

.article-main__content.prose pre,
.article-panel__content.prose pre {
    margin: 1em 0;
    padding: 14px 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.875rem;
}

.article-main__content.prose code,
.article-panel__content.prose code {
    padding: 2px 6px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 0.875em;
}

.article-main__content.prose pre code,
.article-panel__content.prose pre code {
    padding: 0;
    background: transparent;
}

.article-main__content.prose a,
.article-panel__content.prose a {
    color: #2563eb;
    text-decoration: underline;
}

@media (max-width: 960px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }

    .article-layout__grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .article-main__content {
        padding: 24px 20px;
    }

    .article-main__footer {
        padding: 16px 20px 22px;
    }
}
