/* ---- Blog listing ---- */
.blog-wrap {
    padding-top: 12rem;
    padding-bottom: 12rem;
    min-height: 100vh;
    background: #f7f7f7;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.blog-page-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0a0a;
    margin-bottom: 3rem;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: #0A66C2;
    box-shadow: 0 20px 50px rgba(10, 102, 194, 0.12);
}

.post-thumb {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
}

.post-thumb-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #0A66C2, #0a66c280);
}

.post-card-body {
    padding: 1.8rem;
}

.post-meta {
    font-size: 0.8rem;
    color: #0A66C2;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.post-card-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.post-excerpt {
    font-size: 0.95rem;
    color: rgba(0,0,0,0.6);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-posts {
    text-align: center;
    padding: 4rem;
    color: #888;
    font-size: 1.1rem;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.8rem;
    border-radius: 12px;
    border: 2px solid rgba(0,0,0,0.1);
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.blog-pagination a:hover,
.blog-pagination span.current {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #fff;
}

/* ---- Single post ---- */
.single-wrap {
    padding-top: 12rem;
    padding-bottom: 12rem;
    min-height: 100vh;
    background: #f7f7f7;
    overflow-x: hidden;
}

.single-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: hidden;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0A66C2;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
    transition: gap 0.3s;
}

.back-link:hover { gap: 0.8rem; }

.single-meta {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.single-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0a0a;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.single-featured {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2/1;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    display: block;
}

.single-content {
    font-family: 'freight-sans-pro', Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.85;
    color: rgba(0,0,0,0.85);
}

.single-content p { margin-bottom: 1.5rem; }
.single-content h2 { font-family: 'Josefin Sans', sans-serif; font-size: 1.8rem; font-weight: 700; color: #0a0a0a; margin: 2.5rem 0 1rem; }
.single-content h3 { font-family: 'Josefin Sans', sans-serif; font-size: 1.4rem; font-weight: 700; color: #0a0a0a; margin: 2rem 0 0.8rem; }
.single-content a { color: #0A66C2; }
.single-content blockquote { border-left: 4px solid #0A66C2; padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: rgba(0,0,0,0.6); }
.single-content ul, .single-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.single-content li { margin-bottom: 0.5rem; }
.single-content img { max-width: 100% !important; width: auto !important; height: auto !important; border-radius: 12px; margin: 1.5rem 0; display: block; }

/* ---- Mobile ---- */
@media (max-width: 1024px) {
    .blog-container { padding: 0 1.5rem; }
    .single-container { padding: 0 1.5rem; }
    .blog-wrap, .single-wrap { padding-top: 10rem; padding-bottom: 4rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .post-thumb { height: 200px !important; }
    .post-thumb-placeholder { height: 200px; }
}

@media (max-width: 640px) {
    .blog-container { padding: 0 1.2rem; }
    .single-container { padding: 0 1.2rem; }
    .blog-wrap, .single-wrap { padding-top: 8rem; }
    .single-content { font-size: 1.05rem; }
    .post-thumb { height: 180px !important; }
    .post-thumb-placeholder { height: 180px; }
}
