/* Blog page */
.blog-page {
    padding-top: 100px;
}

.blog-page h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #2F4156;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.blog-card {
    background: #F5EFEB;
    border: 1px solid #C8D9E6;
    border-radius: 16px;
    padding: 28px;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    background: #fff;
    border-color: #567C8D;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(47,65,86,.08);
}

.blog-card__date {
    font-size: 13px;
    color: #567C8D;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2F4156;
    line-height: 1.3;
}

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

.blog-card__title a:hover {
    color: #567C8D;
}

.blog-card__excerpt {
    font-size: 14px;
    color: #567C8D;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-card__tg-link {
    font-size: 13px;
    color: #26A5E4;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card__tg-link:hover {
    text-decoration: underline;
}

/* Blog post page */
.post-page {
    padding-top: 120px;
    padding-bottom: 60px;
}

.post-page .container {
    max-width: 720px;
}

.post__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #567C8D;
    margin-bottom: 24px;
    font-weight: 500;
}

.post__back:hover {
    color: #2F4156;
}

.post__date {
    font-size: 14px;
    color: #567C8D;
    margin-bottom: 8px;
}

.post__title {
    font-size: 32px;
    font-weight: 800;
    color: #2F4156;
    line-height: 1.2;
    margin-bottom: 24px;
}

.post__content {
    font-size: 17px;
    line-height: 1.8;
    color: #2F4156;
}

.post__content p {
    margin-bottom: 20px;
}

.post__tg {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #C8D9E6;
}

.post__tg-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #26A5E4;
    font-weight: 500;
}

.post__tg-link:hover {
    text-decoration: underline;
}

/* Latest blog block on homepage */
.blog-latest {
    background: #fff;
}

.blog-latest__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.blog-latest__all {
    text-align: center;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-latest__grid {
        grid-template-columns: 1fr;
    }

    .post__title {
        font-size: 24px;
    }
}
