.all-cards > div:first-of-type {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    cursor: pointer;
}
.inline-flex {
    display: inline-flex;
}
.all-cards > div:first-of-type span {
    transition: .3s;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid black;
    border-radius: 10px;
}

.all-cards > div:first-of-type span.cat-active {
    background: #E3312C;
    border: #E3312C;
    color: white;
}

.all-cards > div:first-of-type span:hover {
    opacity: 0.7;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 50px auto 0;
}

.pagination a {
    cursor: pointer;
    transition: 0.3s;
}

.pagination .page-current {
    background: #F3F3F3;
    padding: 10px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
}

.inline-three {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 30px;
}
.card-post {
    position: relative;
    gap: 15px;
}
.card-post-cats {
    max-width: 280px;
    flex-wrap: wrap;
    overflow: hidden;
    gap: 4px;
}
.card-post .card-post-cats {
    position: absolute;
    top: 10px;
    left: 10px;
}
.card-post-cats .cat {
    min-width: fit-content;
    transition: 0.3s;
    display: block;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: #F1E8CF;
    color: black;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}
.card-img img {
    width: 100%;
    height: 100%;
    display: block;
    transition: 0.3s;
}
.gap5 {
    gap: 5px;
}
.topcats > span {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    white-space: pre;
    min-width: fit-content;
}
.topcats > span.cat-active {
    background-color: #F1E8CF;
}
.topcats {
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
    .topcats {
        overflow-x: scroll;
        width: 100%;
        min-width: 100%;
        flex-wrap: nowrap;
    }
    .inline-three {
        grid-template-columns: repeat(2, 1fr);
    }

    .all-cards > div:first-of-type {
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: scroll;
    }

    .all-cards > div:first-of-type span {
        min-width: fit-content;
    }
    .card-post {
        max-width: 400px;
    }
    .latest-container .inline-three .card-img {
        height: 220px;
    }
}

@media screen and (max-width: 520px) {
    .inline-three {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

.all-cards > div:first-of-type {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.all-cards > div:first-of-type::-webkit-scrollbar {
    display: none;
}

