.blog-subnav {
    margin-top: 7rem;
}

/* Blog hero */
.blog-hero {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-hero .hero-inner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 2.25rem 2rem;
}

.blog-hero .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 .5rem 0;
    letter-spacing: -0.02em;
}

.blog-hero .hero-subtitle {
    margin: 0;
    color: #475569;
}

/* Blog cards */
.blog-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
}

.blog-card .image-wrap {
    display: block;
    aspect-ratio: 16/10;
    background: #f1f5f9;
}

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

.blog-card .content {
    padding: 1rem 1rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.blog-card .meta {
    font-size: .85rem;
    color: #64748b;
}

.blog-card .title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
}

.blog-card .title a {
    color: #0f172a;
    text-decoration: none;
}

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

.blog-card .excerpt {
    margin: 0 0 .25rem 0;
    color: #475569;
}

.blog-card .custom-btn {
    align-self: flex-start;
    background: #111827;
    color: #ffffff !important;
    border-radius: 999px;
    padding: .5rem .9rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.blog-card .custom-btn:hover {
    background: #0b1220;
    transform: translateY(-1px);
}

/* Sidebar */
.blog-sidebar .widget {
    margin-bottom: 1.25rem;
}

.blog-sidebar .widget.cardish {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 1rem;
}

.blog-sidebar .widget-title {
    margin: 0 0 .75rem 0;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .01em;
}

.blog-sidebar .category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-sidebar .category-list li a {
    display: block;
    padding: .4rem .5rem;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
}

.blog-sidebar .category-list li a:hover {
    background: #f1f5f9;
}

.blog-sidebar .tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.blog-sidebar .tag {
    display: inline-block;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: .9rem;
}

.blog-sidebar .tag:hover {
    background: #e2e8f0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
}

.empty-state .empty-illustration {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(236, 72, 153, 0.18));
}

.empty-state h3 {
    margin: 0 0 .25rem 0;
}

.empty-state p {
    margin: 0;
    color: #64748b;
}

/* Pagination wrapper adjustments */
.pagination-wrap {
    margin-top: .5rem;
}

/* Post page */
.blog-post.cardish {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 1.25rem;
}

.blog-post .post-header {
    margin-bottom: .75rem;
}

.blog-post .post-title {
    margin: 0 0 .25rem 0;
    letter-spacing: -0.01em;
}

.blog-post .post-meta {
    color: #64748b;
    font-size: .95rem;
}

.blog-post .post-image {
    margin: .75rem 0 1rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.blog-post .post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post .post-tags {
    margin-top: 1rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.blog-post .post-tags .tag {
    display: inline-block;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: .9rem;
}

.related-posts {
    margin-top: 1.5rem;
}

.related-posts .related-title {
    margin: 0 0 .75rem 0;
}

/* Readable content */
.typography {
    line-height: 1.8;
    color: #0f172a;
}

.typography h2,
.typography h3,
.typography h4,
.typography h5 {
    margin-top: 1.25rem;
    margin-bottom: .5rem;
}

.typography p {
    margin: 0 0 1rem 0;
}

.typography ul,
.typography ol {
    padding-left: 1.25rem;
}