/* Blog / articles section for GravEKB */
.blog-page {
    padding: 40px 0 80px;
    background: linear-gradient(180deg, #f7f5f2 0%, #fff 35%, #fff 100%);
    min-height: 60vh;
}

.blog-page__crumb {
    margin: 0 0 18px;
    font-size: 13px;
    color: #636363;
    line-height: 1.5;
}

.blog-page__crumb a {
    color: #8648ed;
    text-decoration: none;
}

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

.blog-page__title {
    margin: 0 0 12px;
    font-family: "Roboto Slab", Roboto, Georgia, serif;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    color: #010101;
}

.blog-page__lead {
    margin: 0 0 32px;
    max-width: 720px;
    font-size: 17px;
    line-height: 1.55;
    color: #636363;
}

.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}

.blog-cats a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}

.blog-cats a:hover,
.blog-cats a.is-active {
    border-color: rgba(196, 65, 65, .45);
    color: #c44141;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 20px;
}

.blog-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    text-decoration: none;
    color: inherit;
}

.blog-item__cat {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #c44141;
}

.blog-item__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: #010101;
    font-weight: 700;
}

.blog-item:hover .blog-item__title {
    color: #8648ed;
}

.blog-item__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #636363;
}

.blog-item__more {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #8648ed;
}

.blog-article {
    max-width: 780px;
}

.blog-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 28px;
    font-size: 13px;
    color: #636363;
}

.blog-article__meta a {
    color: #8648ed;
    text-decoration: none;
}

.blog-article__content {
    font-size: 16px;
    line-height: 1.7;
    color: #222;
}

.blog-article__content h2 {
    margin: 36px 0 14px;
    font-family: "Roboto Slab", Roboto, Georgia, serif;
    font-size: 26px;
    line-height: 1.25;
    color: #010101;
}

.blog-article__content h3 {
    margin: 28px 0 10px;
    font-size: 20px;
    line-height: 1.3;
    color: #010101;
}

.blog-article__content p {
    margin: 0 0 16px;
}

.blog-article__content ul,
.blog-article__content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.blog-article__content li {
    margin-bottom: 8px;
}

.blog-article__content a {
    color: #8648ed;
}

.blog-cta {
    margin: 36px 0;
    padding: 22px 24px;
    border-left: 4px solid #c44141;
    background: rgba(196, 65, 65, .05);
}

.blog-cta p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.blog-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.blog-faq {
    margin: 40px 0 0;
}

.blog-faq__title {
    margin: 0 0 16px;
    font-family: "Roboto Slab", Roboto, Georgia, serif;
    font-size: 24px;
}

.blog-faq details {
    margin-bottom: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.blog-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: #010101;
}

.blog-faq details p {
    margin: 10px 0 0;
    color: #444;
    line-height: 1.55;
}

.blog-related {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.blog-related__title {
    margin: 0 0 16px;
    font-size: 22px;
    font-family: "Roboto Slab", Roboto, Georgia, serif;
}

.blog-related__list {
    display: grid;
    gap: 12px;
}

.blog-related__list a {
    color: #8648ed;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
}

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

.blog-pager {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-pager a,
.blog-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.blog-pager a:hover {
    border-color: #c44141;
    color: #c44141;
}

.blog-pager .is-current {
    background: #c44141;
    border-color: #c44141;
    color: #fff;
}

/* Homepage articles teaser */
.home-articles {
    padding: 56px 0;
    background: linear-gradient(180deg, #fff 0%, #f7f5f2 100%);
}

.home-articles h2 {
    margin: 0 0 10px;
    text-align: center;
}

.home-articles__lead {
    margin: 0 auto 28px;
    max-width: 640px;
    text-align: center;
    color: #636363;
    font-size: 16px;
    line-height: 1.5;
}

.home-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.home-articles__item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.home-articles__item-cat {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #c44141;
}

.home-articles__item-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    color: #010101;
    font-weight: 700;
}

.home-articles__item:hover .home-articles__item-title {
    color: #8648ed;
}

.home-articles__item-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #636363;
}

.home-articles__more {
    text-align: center;
}

@media (max-width: 900px) {
    .blog-grid,
    .home-articles__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-grid,
    .home-articles__grid {
        grid-template-columns: 1fr;
    }

    .blog-page {
        padding: 28px 0 56px;
    }
}
