/* Blog, archive, search and generic page layouts */
.blog-page-layout {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.blog-page-layout-narrow {
    width: min(1140px, calc(100% - 22px));
}

.blog-page-title {
    margin: 0 0 30px;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    line-height: 1.2;
    color: #111827;
}

.blog-search-title {
    margin-bottom: 20px;
}

.blog-page-intro-card,
.blog-content-card,
.page-content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

.blog-page-intro-card {
    margin-bottom: 28px;
}

.blog-content-title {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #111827;
}

.blog-content-body {
    color: #374151;
}

.page-layout-shell {
    display: block;
}

.page-layout-content {
    width: 100%;
}

.blog-posts-grid {
    display: grid;
    gap: 22px;
}

.blog-posts-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-posts-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-pagination-wrap,
.apps-pagination-wrap {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.blog-empty-message {
    margin: 0;
    color: #6b7280;
}

.widget-block {
    margin-bottom: 1rem;
}

.widget-title-block,
.widget-area-title {
    margin: 0 0 0.8rem;
    color: #1f2937;
    font-weight: 700;
    font-size: 1.15rem;
}

.search-generic-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.search-generic-card-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.search-generic-card-link {
    color: #111827;
    text-decoration: none;
}

.search-generic-card-link:hover {
    color: #2563eb;
}

.search-generic-card-excerpt {
    margin: 0 0 14px;
    color: #4b5563;
}

.search-generic-card-cta {
    margin-top: auto;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.search-generic-card-cta:hover {
    color: #1d4ed8;
}

/* Post card */
.post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.11);
}

.post-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.post-card-media-wrap {
    display: block;
    height: 192px;
    min-height: 192px;
    overflow: hidden;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card-fallback {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
}

.post-card-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(38px);
}

.post-card-shape-1 {
    width: 180px;
    height: 180px;
    top: -48px;
    left: -70px;
    background: rgba(99, 102, 241, 0.45);
}

.post-card-shape-2 {
    width: 150px;
    height: 150px;
    right: -40px;
    bottom: -54px;
    background: rgba(129, 140, 248, 0.4);
}

.post-card-shape-3 {
    width: 92px;
    height: 92px;
    top: 28px;
    left: 34px;
    background: rgba(255, 255, 255, 0.58);
}

.post-card-glass {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.post-card-fallback-title {
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    color: #312e81;
    font-size: 1.45rem;
    font-weight: 800;
}

.post-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 210px;
}

.post-card-category-wrap {
    margin-bottom: 10px;
}

.post-card-category {
    display: inline-block;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-card-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.12rem;
    line-height: 1.35;
}

.post-card-excerpt {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 0.93rem;
    line-height: 1.6;
    flex-grow: 1;
}

.post-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.85rem;
}

.post-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    margin-right: 8px;
}

.post-card-author {
    color: #374151;
    font-weight: 600;
}

.post-card-separator {
    margin: 0 8px;
}

.author-bio-card {
    margin-top: 2.4rem;
    padding: 24px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.author-bio-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
}

.author-bio-name {
    margin: 0;
    font-size: 1.2rem;
}

.author-bio-link {
    color: #111827;
    text-decoration: none;
}

.author-bio-link:hover {
    color: #4f46e5;
}

.author-bio-description {
    margin: 10px 0 0;
    color: #4b5563;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .blog-posts-grid-four {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .blog-posts-grid-three,
    .blog-posts-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-page-layout,
    .blog-page-layout-narrow {
        width: min(1280px, calc(100% - 22px));
        padding: 20px 0;
    }

    .blog-posts-grid-three,
    .blog-posts-grid-four {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-page-intro-card,
    .blog-content-card,
    .page-content-card,
    .search-generic-card {
        padding: 18px;
    }

    .author-bio-card {
        flex-direction: column;
    }

    .author-bio-avatar {
        width: 72px;
        height: 72px;
    }
}
