/* Blog index */
.blogHero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.blogHero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.75rem;
}

.blogHero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 560px;
    margin: 0 auto;
}

.blogGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0 4rem;
}

.blogCard {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}

.blogCard:hover {
    box-shadow: 0 8px 24px rgba(104, 159, 242, 0.15);
    transform: translateY(-2px);
}

.blogCard img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blogCardPlaceholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #689ff2 0%, #3f87f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blogCardPlaceholder span {
    font-size: 3rem;
}

.blogCardBody {
    padding: 1.5rem;
}

.blogCardMeta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blogCardBody h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.blogCardBody p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blogReadMore {
    color: #689ff2;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

.blogReadMore:hover {
    color: #3f87f3;
}

.blogEmpty {
    text-align: center;
    padding: 4rem 0;
    color: #999;
}

/* Blog post */
.postContainer {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.postBreadcrumb {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.postBreadcrumb a {
    color: #689ff2;
}

.postBreadcrumb a:hover {
    text-decoration: underline;
}

.postHeader {
    margin-bottom: 2rem;
}

.postHeader h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.postMeta {
    font-size: 0.85rem;
    color: #999;
}

.postCover {
    width: 100%;
    border-radius: 12px;
    height: 360px;
    object-fit: cover;
    margin-bottom: 2rem;
}

.postCoverPlaceholder {
    width: 100%;
    border-radius: 12px;
    height: 280px;
    background: linear-gradient(135deg, #689ff2 0%, #3f87f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 5rem;
}

.postContent {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.postContent h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 2rem 0 0.75rem;
}

.postContent h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin: 1.5rem 0 0.5rem;
}

.postContent p {
    margin-bottom: 1.2rem;
}

.postContent ul,
.postContent ol {
    margin: 0 0 1.2rem 1.5rem;
    list-style: disc;
}

.postContent li {
    margin-bottom: 0.4rem;
    list-style: disc;
}

.postContent strong {
    color: #222;
}

/* CTA box inside post */
.postCta {
    background: linear-gradient(135deg, #689ff2 0%, #3f87f3 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2.5rem 0;
    color: #fff;
}

.postCta h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.postCta p {
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.postCtaBtn {
    display: inline-block;
    background: #fff;
    color: #689ff2;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}

.postCtaBtn:hover {
    background: #f0f5ff;
    transform: scale(1.03);
}

/* Related posts */
.relatedPosts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e8e8;
}

.relatedPosts h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.5rem;
}

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

.relatedCard {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1rem;
    transition: box-shadow 0.2s;
}

.relatedCard:hover {
    box-shadow: 0 4px 12px rgba(104, 159, 242, 0.15);
}

.relatedCard h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.relatedCard a {
    color: #689ff2;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .blogHero h1 {
        font-size: 1.6rem;
    }

    .blogGrid {
        grid-template-columns: 1fr;
    }

    .postHeader h1 {
        font-size: 1.5rem;
    }

    .postContent {
        font-size: 1rem;
    }
}
