div#work-container {
    margin-bottom: 300px;
}

#work-container .offset-section {

    margin-top: -120px;
}

.small-width-container {
    max-width: 70%;
    margin: 0 auto
}

p {
    font-size: 17px;
    line-height: 26px;
    margin-top: 20px
}

p:nth-child(4) {
    margin-top: 0px
}


/* Cards Switch */
.card {
    height: 222px;
    aspect-ratio: 460/222;
    object-fit: cover;
    height: 100%;
}

.card .card-img {
    aspect-ratio: 460/222;
    object-fit: cover;
    height: 100%;
}

.cards-section .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), linear-gradient(180deg, rgba(0, 0, 0, 0) 51.81%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Brands */
#brands-container {
    padding: 0;
    height: unset;
    margin-top: unset;
    margin-bottom: unset;
    background: unset;
}

.slider-title {
    margin-bottom: 0;
}

.slider-brands {
    background: #F8F8F8;
    width: 90%;
    margin: 20px auto 50px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 48px 69px;
    box-sizing: border-box;
}

.slider-brands .brand-container {
    max-height: 88px;
    width: inherit;
    float: left;
}

@media screen and (max-width: 1200px) {
    div#work-container {
        margin-bottom: 200px;
    }

    /* Cards Switch */
    #work-container .card {
        aspect-ratio: 4/3;
    }

}


@media screen and (max-width: 768px) {
    div#work-container {
        margin-bottom: 200px;
    }

    .small-width-container {
        max-width: 100%;
        margin: 0 auto
    }

    .slider-brands {
        margin: 20px auto 50px;
        display: flex;
        justify-content: space-around;
        padding: 115px 20% 40px;
        flex-direction: column;
    }

    .slider-title {
        z-index: 2;
        position: absolute;
        top: 30px;
        font-size: 30px;
        font-weight: 500;
    }

    .slider-brands .brand-container {
        margin: 20px 0
    }

}


@media screen and (max-width: 490px) {
    div#work-container {
        margin-bottom: 100px;
    }

}