.posts {
    padding-top: calc(var(--spacing) * 2);
}

.post-img {
    position: relative;
    background-size: cover;
    background-position: 50%;
}

.post-img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* CATEGORIES */

.categories {
    padding: 0;
    background-color: var(--color-snow-gray);
}

.categories .container {
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.categories ul {
    display: block;
    padding: var(--spacing) 0;
    width: 100%;
    text-align: center;
}

.categories ul li {
    display: inline-block;
    margin: 0 var(--spacing);
}

.categories ul li a {
    display: block;
    position: relative;
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
    text-transform: capitalize;
}

.categories ul li a.active {
    color: var(--color-sky-blue);
}

.categories ul li a:after {
    position: absolute;
    content: '';
    width: 0%;
    height: 4px;
    background-color: var(--color-sky-blue);
    bottom: calc(var(--spacing) * -1);
    left: 0;
    right: 0;
    transition: .3s linear;
    -webkit-transition: .3s linear;
}

.categories ul li a:hover:after,
.categories ul li a.active:after {
    width: 100%;
}

/* POST */

.posts .container {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 1.5);
}

.blog-row {
    display: flex;
    gap: var(--spacing);
}

.blog-row .post-img {
    width: 600px;
    min-width: 600px;
    height: 400px;
}

.post-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: calc(var(--spacing) / 3);
    color: var(--color-text-gray);
}

.post-title,
.post-author,
.post-cta {
    color: var(--color-very-dark-blue);
}

.post-category {
    display: inline-block;
    width: fit-content;
    padding: 5px 10px;
    text-transform: capitalize;
    background-color: var(--color-snow-gray);
    font-weight: 600;
}

.post-pre-data {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) / 3);
}

.post-title {
    font-weight: 700;
    line-height: 1.25;
    font-size: 28px;
    margin-bottom: calc(var(--spacing) / 2);
}

.post-data {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing) / 2);
}

.post-author {
    font-weight: 600;
}

.post-text {
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-cta a {
    text-decoration: underline;
}

.small-row {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing);
}

.small-row .small-post {
    width: 33%;
}

.small-post .post-img {
    width: 100%;
    min-width: 100%;
    height: 250px;
}

.small-post .post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small-post .post-content {
    margin-top: calc(var(--spacing) / 2);
}

.small-post .post-pre-data {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.small-post .post-title {
    font-size: 22px;
    margin: 5px 0;
}

@media only screen and (max-width: 1100px) {
    .blog-row .post-img {
        width: 450px;
        min-width: 450px;
        height: 400px;
    }
}

@media only screen and (max-width: 1000px) {
    .blog-row {
        flex-direction: column;
    }
    .blog-row .post-img {
        width: 100%;
        min-width: auto;
        height: 230px;
    }
    .small-post .post-img {
        height: 230px;
    }
    .categories {
        position: relative;
        text-align: center;
    }
    .categories ul {
        padding-bottom: 0;
    }
    .categories ul li a {
        padding-bottom: var(--spacing);
    }
    .categories ul li a:after {
        bottom: 0;
    }
    .posts {
        margin-top: var(--spacing);
    }
    .slick-next {
        right: 0!important;
    }
    .slick-prev {
        left: 0!important;
    }
}

@media only screen and (max-width: 800px) {
    .blog-row {
        display: flex;
        gap: calc(var(--spacing) / 2);
    }
    .post-pre-data {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .post-text {
        display: none;
    }
    .post-title {
        font-size: 22px;
        margin: 5px 0;
    }
    .small-row {
        flex-direction: column;
        gap: calc(var(--spacing)* 1.5);
    }
    .small-row .small-post {
        width: 100%;
    }
    .categories ul li {
        margin: 0 calc(var(--spacing) / 2);
    }
    .categories ul li a {
        font-size: 18px;
    }
}