/* Public blog overview and article layout. */

.blog-body {
    background: var(--bg-body, #f7f9fc);
}

.blog-overview,
.blog-article {
    padding: 120px 0 80px;
}

.blog-overview-header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.blog-overview-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.blog-overview-intro {
    color: var(--text-muted, #5a6b7b);
    font-size: 1.1rem;
}

/* Card grid */
.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(10, 25, 41, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(10, 25, 41, 0.1);
}

.blog-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: #eef2f7;
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b8c4d0;
    font-size: 2.4rem;
}

.blog-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-card-topic,
.blog-article-topic {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    text-decoration: underline;
}

.blog-card-excerpt {
    color: var(--text-muted, #5a6b7b);
    font-size: 0.95rem;
    margin: 0;
}

.blog-card-date {
    margin-top: auto;
    color: #8494a3;
    font-size: 0.85rem;
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}

.blog-page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #0a66c2;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.blog-page-link:hover {
    background: #084a8c;
    color: #fff;
}

.blog-page-status {
    color: var(--text-muted, #5a6b7b);
    font-weight: 600;
}

/* Empty state */
.blog-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #5a6b7b);
}

.blog-empty-state i {
    font-size: 3rem;
    color: #b8c4d0;
    margin-bottom: 16px;
}

/* Article */
.blog-article-inner {
    max-width: 820px;
    margin: 0 auto;
}

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

.blog-article-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 12px 0 16px;
}

.blog-article-lead {
    font-size: 1.2rem;
    color: var(--text-muted, #46586a);
    line-height: 1.6;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #8494a3;
    font-size: 0.9rem;
    margin-top: 16px;
}

.blog-article-cover {
    margin: 0 0 36px;
    border-radius: 16px;
    overflow: hidden;
}

.blog-article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* Table of contents */
.blog-toc {
    background: #fff;
    border: 1px solid rgba(10, 25, 41, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 36px;
}

.blog-toc-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8494a3;
    margin-bottom: 12px;
}

.blog-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc li {
    margin: 6px 0;
}

.blog-toc-h3 {
    padding-left: 18px;
}

.blog-toc a {
    color: #0a66c2;
    text-decoration: none;
}

.blog-toc a:hover {
    text-decoration: underline;
}

/* CTA */
.blog-article-cta {
    margin-top: 48px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #0a1929, #123a5e);
    color: #fff;
    border-radius: 16px;
}

.blog-article-cta h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.blog-article-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}

/* Related */
.blog-related {
    max-width: 1100px;
    margin: 64px auto 0;
}

.blog-related h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Preview banner */
.blog-preview-banner {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #ffb020;
    color: #3d2c00;
    text-align: center;
    padding: 10px 16px;
    font-weight: 600;
}

@media (max-width: 768px) {

    .blog-overview,
    .blog-article {
        padding: 100px 0 60px;
    }
}