.blog-container {
    max-width: 1560px;
    margin: 0 auto;

    @media screen and (max-width: 1600px) {
        padding: 0 16px;
    }
}

.bg-image {
    position: absolute;
    right: 0;
    bottom: 0;

    @media screen and (max-width: 900px) {
        display: none;
    }
}

.escape-nav {
    padding-top: 96px;
    background-color: #2F202D;
    padding-right: 180px;
    padding-left: 180px;

    @media screen and (max-width: 1919px) {
        padding-left: 0;
        padding-right: 0;
    }

    @media screen and (max-width: 1100px) {
        padding-top: 85px;
    }

    @media screen and (max-width: 640px) {
        padding-left: 27px;
    }

    @media screen and (max-width: 374px) {
        padding-top: 60px;
    }
}

.title-container {
    padding: 64px 180px;
    background-color: #2F202D;

    @media screen and (max-width: 1919px) {
        padding-left: 0;
        padding-right: 0;
    }

    @media screen and (max-width: 1366px) {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

.title-container > div > h1 {
    font-size: 60px;

    @media screen and (max-width: 1366px) {
        font-size: 48px;
    }
}

.blog-list-top-bar {
    display: flex;
    flex-direction: row;
    margin-top: 34px;

    @media screen and (max-width: 1366px) {
        margin-top: 16px;
    }
}

.categories {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 8px;

}

.categories > span {

}

.category {
    padding: 12px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #475467;
    background-color: #E4E7EC;
    height: fit-content;
    display: block;
    white-space: nowrap;
    width: fit-content;

    @media screen and (max-width: 1366px) {
        /*padding: 8px 12px;*/
        /*font-size: 13px;*/
    }
}

.category:hover {
    background-color: #D0D5DD;
    color: black;
    cursor: pointer;
    text-decoration: none;
}

.category.active {
    background-color: #2F202D;
    color: white;
    cursor: unset;
}

.related-blogs {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    @media screen and (max-width: 760px) {
        flex-direction: column;
    }
}

.all-blogs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
    grid-auto-flow: dense;

    @media screen and (max-width: 1300px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media screen and (max-width: 900px) {
        grid-template-columns: repeat(1, 1fr);
    }
}

.blog {
    text-decoration: none;
    color: black !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog:hover {
    text-decoration: none;
}

.blog > img {
    width: 100%;
    height: auto;
    /*max-height: 380px;*/
}

.blog__body {
    padding: 32px;
    height: 100%;
    border: 1px solid #E4E7EC;
    border-top: 0;

    @media screen and (max-width: 1300px) {
        padding: 16px;
    }
}

.blog__topbar {
    display: flex;
    gap: 8px;
    color: #667085;
    font-size: 12px;
    margin-bottom: 8px;
}

.blog__body > h5 {
    margin-bottom: 12px;
}

.blog__body > h6 {
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 50px;
}

.cta {
    width: 100%;
    grid-column: span 3;
    background-color: #2F202D;
    padding: 48px 32px;
    margin: 16px 0;
    color: white;
    display: flex;
    flex-direction: row;

    @media screen and (max-width: 1300px) {
        padding: 24px 16px;
        grid-column: span 2;
    }

    @media screen and (max-width: 1000px) {
        flex-wrap: wrap;
    }

    @media screen and (max-width: 900px) {
        grid-column: span 1;
    }
}

.cta > span {
    margin-right: 16px;
    margin-bottom: 20px;
}

.cta > div {
    flex: 1;
    max-width: 50%;

    @media screen and (max-width: 1000px) {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.cta > .cta__text {
    flex: 0 0 51.66%;
    max-width: 51.66%;
    padding-right: 16px;

    @media screen and (max-width: 1000px) {
        margin-bottom: 24px;
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.blog-filter-container {
    display: flex;

    margin-top: 16px;
}

.blog-filter {
    margin-left: auto;
}

.blog-filter > label {
    font-weight: 400;
    color: #6B6B6B;
    font-size: 14px;
    line-height: 20px;
}

.pagination-container {
    display: flex;
    flex-direction: row;
    margin-top: 64px;
    margin-bottom: 64px;

    @media screen and (max-width: 700px) {
        flex-wrap: wrap;
        gap: 8px;
    }
}

.pagination {
    float: unset;
    margin-left: auto;
    display: flex !important;
    gap: 8px;
    justify-content: flex-end;
}

.pagination > a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #939393;
    align-content: center;

    @media screen and (max-width: 700px) {
        padding: 4px 8px;
    }

    @media screen and (max-width: 360px) {
        padding: 2px 4px;
    }
}

.pagination > a:hover {
    background-color: #F2F4F7;
    text-decoration: none;
}

.pagination > span.page_current {
    background-color: #F2F4F7;
    padding: 8px 16px;
    color: #1E1E1E;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.prev {
    display: none;
}

.next {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    align-content: center;
    color: white !important;
    background-color: #D4A773 !important;

    @media screen and (max-width: 700px) {
        padding: 4px 16px !important;
    }
}

.next:hover {
    opacity: 0.8;
}

span.ellipsis {
    align-content: center;
}

.page-counter {
    width: 100%;
    margin: 0;
    font-size: 14px;

    @media screen and (max-width: 900px) {
        display: none;
    }
}

.no-records {
    width: 100%;
    text-align: center;
    color: black;
}