/* BLOG PAGE */

.blog-page {
    background: #fff;
    padding: 75px 0 90px;
}

.blog-page__inner {
    width: min(100% - 48px, 1525px);
    margin-inline: auto;
}

.blog-page__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.blog-page__heading h2 {
    margin: 0;
    color: #202657;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

/* Categories */

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e9ebf0;
}

.blog-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 17px;
    border: 1px solid #dfe2eb;
    border-radius: 6px;
    color: #202657;
    background: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 180ms ease;
}

.blog-category:hover,
.blog-category.active {
    border-color: #ffcc00;
    background: #ffcc00;
    color: #202657;
}

.blog-page__filter-info {
    margin: -15px 0 28px;
    color: #535b7d;
    font-size: 1.4rem;
}

.blog-page__filter-info a {
    margin-left: 12px;
    color: #202657;
    font-weight: 700;
    text-decoration: underline;
}

/* Posts grid */

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

.blog-post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
}

.blog-post-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    background: #f0f2f5;
}

.blog-post-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms ease;
}

.blog-post-card__image:hover img {
    transform: scale(1.04);
}

.blog-post-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 21px 2px 0;
}

.blog-post-card__category {
    align-self: flex-start;
    margin-bottom: 12px;
    color: #8a6c00;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.blog-post-card__category:hover {
    color: #202657;
}

.blog-post-card h3 {
    margin: 0 0 13px;
    font-size: clamp(2rem, 2vw, 2.6rem);
    font-weight: 600;
    line-height: 1.3;
}

.blog-post-card h3 a {
    color: #202657;
    text-decoration: none;
    transition: color 180ms ease;
}

.blog-post-card h3 a:hover {
    color: #a98600;
}

.blog-post-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 20px;
    color: #535b7d;
    font-size: 1.4rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.blog-post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e9ebf0;
}

.blog-post-card__footer time {
    color: #737b9c;
    font-size: 1.3rem;
}

.blog-post-card__link {
    color: #202657;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.blog-post-card__link span {
    margin-left: 5px;
    color: #b28e00;
    font-size: 2rem;
    vertical-align: -1px;
}

.blog-post-card__link:hover {
    color: #a98600;
}

/* Empty state */

.blog-empty {
    padding: 65px 25px;
    background: #f3f7fa;
    text-align: center;
}

.blog-empty h3 {
    margin-bottom: 15px;
    color: #202657;
}

.blog-empty p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: #535b7d;
    line-height: 1.7;
}

/* Pagination */

.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}

.blog-pagination nav {
    display: flex;
    justify-content: center;
}

.blog-pagination nav > div:first-child {
    display: none;
}

.blog-pagination nav > div:last-child {
    display: flex;
    align-items: center;
    gap: 7px;
}

.blog-pagination a,
.blog-pagination span[aria-current="page"] span,
.blog-pagination span[aria-disabled="true"] span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e3eb;
    border-radius: 5px;
    color: #202657;
    background: #fff;
    font-size: 1.4rem;
    text-decoration: none;
}

.blog-pagination a:hover,
.blog-pagination span[aria-current="page"] span {
    border-color: #ffcc00;
    background: #ffcc00;
    color: #202657;
}

.blog-pagination span[aria-disabled="true"] span {
    color: #a0a4b5;
}

/* Responsive */

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

    .blog-page {
        padding: 60px 0 70px;
    }
}

@media (max-width: 600px) {
    .blog-page {
        padding: 45px 0 55px;
    }

    .blog-page__inner {
        width: calc(100% - 36px);
    }

    .blog-page__heading h2 br {
        display: none;
    }

    .blog-categories {
        gap: 8px;
        margin-bottom: 28px;
    }

    .blog-category {
        min-height: 35px;
        padding: 7px 12px;
        font-size: 1.2rem;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .blog-post-card__image {
        aspect-ratio: 1.55 / 1;
    }

    .blog-post-card__content {
        padding-top: 16px;
    }

    .blog-post-card h3 {
        font-size: 2.2rem;
    }

    .blog-post-card__excerpt {
        font-size: 1.3rem;
    }

    .blog-pagination {
        margin-top: 38px;
    }
}




/* BLOG ARTICLE */

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

.blog-article__back {
    display: inline-block;
    margin-bottom: 25px;
    color: #202657;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-article__back:hover {
    text-decoration: underline;
}

.blog-article__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    color: #737b9c;
    font-size: 1.4rem;
}

.blog-article__meta span {
    color: #8a6c00;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-article__image {
    width: 100%;
    max-height: 550px;
    overflow: hidden;
    margin-bottom: 45px;
    background: #f0f2f5;
}

.blog-article__image img {
    display: block;
    width: 100%;
    max-height: 550px;
    object-fit: cover;
}

.blog-article__content {
    color: #30375e;
    font-size: 1.6rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.blog-article__content h2,
.blog-article__content h3 {
    margin: 35px 0 18px;
    color: #202657;
    line-height: 1.3;
}

.blog-article__content p {
    margin-bottom: 22px;
    line-height: 1.8;
}

.blog-article__content img {
    max-width: 100%;
    height: auto;
}

.blog-article__content ul,
.blog-article__content ol {
    margin: 0 0 25px 25px;
    font-size: 1.5rem;
}

.blog-article__content a {
    color: #8a6c00;
}

.blog-article__footer {
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid #e9ebf0;
}

.blog-related {
    margin-top: 75px;
}

.blog-related h2 {
    margin-bottom: 30px;
    color: #202657;
}

@media (max-width: 600px) {
    .blog-article__image {
        margin-bottom: 28px;
    }

    .blog-article__content {
        font-size: 1.4rem;
    }

    .blog-related {
        margin-top: 50px;
    }
}