@media (min-width: 768px) {
    .four-cat-boxes {
        .item {
            .cat-posts {
                display: grid;
                gap: .2rem 1rem;
                grid-template-columns: repeat(2, 1fr);

                .entry {
                    .title {
                        line-height: 23px;
                        margin-bottom: unset;
                    }
                }

                .entry:first-child {
                    grid-area: 1/1/7/2;
                    max-width: 320px;
                    max-height: 210px;

                    .thumb {
                        margin-bottom: 16px;
                        height: 100%;

                        img {
                            width: 100%;
                            height: 100%;
                            -o-object-fit: cover;
                            object-fit: cover;
                            max-width: unset;
                        }

                    }

                    .title {
                        a {
                            font-size: 17px !important;
                            color: #000;
                            line-height: 30px !important;
                        }
                    }

                }

                .entry:first-child .title > a:hover,
                .entry:not(:first-child) .title > a:hover {
                    color: #185ADB !important;
                }
            }
        }
    }

}

.four-cat-boxes {
    .item {
        header {
            border-bottom: 1px solid #D4D4D4
        }

        .cat-posts {
            .entry:not(:first-child) {
                .title {
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    padding: 7px 0 !important;
                    gap: .5rem;
                    font-size: 14px;
                    font-weight: 400;
                    border-bottom: 1px solid #e9e9e9;
                    line-height: 23px;
                    margin-bottom: unset;
                    display: -webkit-inline-box;
                    width: 100%;

                    a {
                        color: #3b3b3b
                    }
                }

                .title:before {
                    content: "";
                    min-width: .5rem;
                    height: .5rem;
                    background-color: #C8C8C8;
                    margin-top: 7px
                }
            }

            .entry:first-child {
                .thumb {
                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
        }
    }
}

.news-categories {
    padding: 64px 0 64px 0;
    background: #F8FAFC;

}

.news-categories__title {
    color: #0F172A;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    font-weight: 500;
    font-variation-settings: "wght" 500;
}

.news-categories__title p {

    margin: 0
}

.gutter-row-custom {
    --gutter: 24px
}

.news-categories__tabs {
    padding: 0;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 40px;
}

.news-categories__tabs li {
    position: relative;
    padding-bottom: 8px;
}

.news-categories__tab-link {
    border: none !important;
    background: none !important;
    color: #94A3B8;
}

.news-categories__tab-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    background: #185ADB;
    height: 1px;
    width: 0;
    transition: all 0.3s
}

.news-categories__tab-link.active {
    color: #185ADB !important;
}

.news-categories__tab-link.active:after {
    width: 100%;
}

.news-categories__post {
    position: relative;
    border-radius: 8px;
    height: 100%;
    /*overflow: hidden;*/
}

.news-categories__post-figure {
    margin: 0;
    position: relative;
    height: 100%;
}

.news-categories__post-figure:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 50.86%, rgba(0, 0, 0, 0.7));

}

.news-categories__post-figure-caption {
    position: absolute;
    z-index: 1;
    bottom: 0;
    padding: 24px 32px
}

.news-categories__post img {
    border-radius: 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -o-object-fit: cover;
}

.news-categories__post-title {
    color: #fff;
    font-size: 28px;
    line-height: 2.75rem
}

.news-categories__post-title a {
    color: inherit !important;
}

.news-categories__post-author-info {
    color: #fff;
    font-size: 14px
}

.news-categories__btn-read-more:hover, .news-categories__btn-read-more:focus {
    background: #F8FAFC !important;
}

.news-categories__btn-read-more {
    position: absolute;
    top: -1px;
    left: -1px;
    border: none !important;
    font-size: 16px;
    color: #334155;
    border-radius: 0 0 16px 0 !important;
    background: #F8FAFC;
    padding: 8px 16px;
    font-weight: 500;
    font-variation-settings: "wght" 500;
}

.news-categories__btn-read-more:before {
    content: "";
    position: absolute;
    top: 0;
    right: -30px;
    z-index: 2;
    background: transparent;
    width: 30px;
    height: 30px;
    border-top-left-radius: 16px;
    box-shadow: -10px -10px 0 5px #F8FAFC;
}

.news-categories__btn-read-more:after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 0;
    z-index: 2;
    background: transparent;
    width: 30px;
    height: 30px;
    border-top-left-radius: 16px;
    box-shadow: -10px -10px 0 5px #F8FAFC;
}

.news-categories__post-figure-side {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.news-categories__post-figure-caption-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 8px
}

.news-categories__post-side {
    margin-bottom: 24px;

}

.news-categories__post-side:last-child {
    margin-bottom: 0;
}

.news-categories__post-side:last-child .news-categories__post-figure-side {
    margin-bottom: 0;
}

.news-categories__post-title-side {
    color: #0F172A;
    font-size: 20px;
    line-height: 32px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-weight: 600;
    font-variation-settings: "wght" 600;
}

.news-categories__post-figure-side img {
    width: 233px !important;
    height: 122px;
    object-fit: cover;
    -o-object-fit: cover;
    border-radius: 8px;
    max-width: unset !important;

}

.news-categories__post-author-info-side {
    color: #64748B;
    font-size: 14px
}

.news-categories__btn-show-archive {
    font-size: 16px;
    color: #64748B !important;
    font-weight: 400;
    padding: 0
}

.news-categories__post-figure-caption-side .last-blog__article-content {
    display: none;
}

@media (max-width: 767px) {
    .news-categories__tab-link {
        padding-right: 6px;
        padding-left: 6px
    }

    .four-cat-boxes {
        .item {
            header {
                span {
                    font-size: 12px !important;
                    padding: 10px 20px !important
                }

                a {
                    display: flex;
                    flex-direction: row-reverse;

                    svg {
                        margin-left: 5px
                    }

                }
            }

            .cat-posts {
                display: grid !important;
                grid-template-columns: repeat(1, 1fr) !important;

                .entry:first-child {
                    display: grid;
                    grid-template-columns: 152px calc(100% - 152px);
                    max-width: unset !important;

                    .title {
                        margin-right: 15px;

                        a {
                            font-size: 12px !important;
                            font-style: normal;
                            font-variation-settings: "wght" 600;
                            line-height: normal
                        }
                    }

                    figure {
                        height: 80px !important
                    }
                }

                .entry:not(:first-child) .title > a {
                    color: #000;
                    font-size: 12px !important;
                    font-style: normal;
                    font-variation-settings: "wght" 500;
                    line-height: 22.648px;
                    letter-spacing: -.06px;
                    white-space: unset;
                    height: 25px !important;
                    display: -webkit-box;
                    -webkit-line-clamp: 1;
                    -webkit-box-orient: vertical;
                    overflow: hidden
                }
            }
        }
    }

    .news-categories {
        background: #fff;
    }

    .news-categories__title {
        margin-bottom: 32px
    }

    .news-categories__title p {
        margin: 0;
        color: #0F172A;
        font-size: 20px;
        font-weight: 500;
        font-variation-settings: "wght" 500;

    }

    .news-categories__btn-show-archive {
        color: #64748B;
        font-size: 14px;
        font-variation-settings: "wght" 500;
        font-weight: 500;
        padding: 0
    }

    .news-categories__tabs {
        flex-wrap: nowrap;
        overflow: auto;
        scrollbar-color: transparent transparent;
        margin-bottom: 20px
    }

    .news-categories__tabs li {
        flex-shrink: 0;
    }

    .news-categories__post img {
        border-radius: 8px
    }

    .news-categories__post-figure:after {
        border-radius: 8px
    }

    .news-categories__btn-read-more {
        border-radius: 0 0 8px 0 !important
    }

    .news-categories__post-title-side {
        font-size: 14px;
        display: -webkit-box;
        overflow: hidden;
        line-height: 24px;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        margin-bottom: 0;
    }

    .four-cat-boxes .tab-pane .col-12:first-child {
        margin-bottom: 20px;
        min-height: 200px
    }

    .news-categories__post-title {
        font-size: 1.125rem;
        line-height: 1.8rem;
        font-weight: 800;
        font-variation-settings: "wght" 500;
        margin-bottom: 8px;
    }

    .news-categories__post-figure-caption {
        padding: 8px
    }

    .news-categories__post-author-info {
        font-size: 0.625rem
    }

    .news-categories__btn-read-more {
        background: #fff;
        font-size: 0.625rem;
        font-weight: 700;
        font-variation-settings: "wght" 700;
        top: -1px;
        left: -1px;
    }

    .news-categories__btn-read-more:before {
        box-shadow: -10px -10px 0 -2px #fff;
        border-top-left-radius: 8px
    }

    .news-categories__btn-read-more:after {
        box-shadow: -10px -10px 0 -2px #fff;
        border-top-left-radius: 8px
    }

    .news-categories__post-author-info-side span:not(:first-child) {
        display: none;
    }

    .news-categories__post-author-info-side span {
        font-size: 0.625rem
    }

    .news-categories__post-figure-side img {
        width: 120px !important;
        height: 64px !important;
        object-fit: cover;
        -o-object-fit: cover;
        border-radius: 0.25rem;
    }

    .news-categories__post-side {
        margin-bottom: 16px;
    }
}

@media (min-width: 768px ) and (max-width: 1200px) {
    .gutter-row-custom > div:first-child {
        height: fit-content;
    }

    .news-categories__post-side {
        margin-bottom: 16px
    }

    .news-categories__post-figure {
        max-height: 362px;
        /*margin-bottom: 20px;*/
        overflow: hidden;
        border-radius: 12px
    }

    .news-categories__tabs {
        margin-bottom: 20px
    }

    .news-categories__post {
        margin-bottom: 20px;
        overflow: hidden;
    }

    .news-categories__post-figure-side img {
        width: 312px !important;
        height: 164px
    }

    .news-categories__title {
        margin-bottom: 32px
    }

    .news-categories__title p {
        margin-bottom: 0
    }


    .news-categories__post-figure-caption-side .last-blog__article-content {
        -webkit-line-clamp: 1 !important;
    }
}