main {
    margin-top: 0;
}

section.slider {
    padding: 0;
    height: 610px;
    box-sizing: border-box;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

section.slider .container {
    position: relative;
    width: 95%;
    max-width: 1120px;
}

section.slider h1.title {
    color: var(--accent-text);
    font-size: 48px;
    font-weight: 700;
    width: 50%;
    margin: 0;
}

section.slider h1.title span {
    color: var(--primary);
}

section.slider p.description {
    color: var(--accent-text);
    font-size: 18px;
    font-weight: 500;
    margin: 5px 0 25px 0;
}

section.slider button {
    background-color: var(--primary);
    color: var(--accent-text);
    min-width: 240px;
    box-sizing: border-box;
    padding: 0 25px;
    height: 55px;
    border-radius: 30px;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

section.about {
    display: flex;
    gap: 20px;
    padding-top: 80px;
}

section.about .title {
    flex: 1;
    flex-shrink: 0;
}
section.about .title h2 {
    font-size: 38px;
    font-weight: 700;
    margin: 0;
    display: block;
}
section.about .title a {
    color: var(--link);
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}
section.about .title a:hover span {
    margin-left: 15px;
}
section.about .title a span {
    margin-left: 10px;
    transition: margin 0.15s ease-out;
}

section.about .description {
    flex: 2;
    flex-shrink: 0;
}
section.about .description p {
    font-size: 18px;
    font-weight: 600;
    line-height: 35px;
    margin: 0;
}

section.products ul.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

section.products ul.container li {
    flex: calc((100% - 40px) / 3);
    flex-grow: 0;
    flex-shrink: 0;
    height: 220px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

section.products ul.container li:hover .title {
    height: 100%;
}

section.products ul.container li .title {
    position: absolute;
    width: 100%;
    border-radius: 10px;
    bottom: 0;
    left: 0;
    height: 60px;
    background-color: var(--home-products-text-background);
    color: var(--accent-text);
    font-size: 36px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.2s ease-out;
}

section.brands {
    padding-bottom: 160px;
}

section.brands ul.container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 70px;
}

section.brands ul.container li {
    width: 20%;
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    border-right: 1px solid var(--brands-border);
    border-bottom: 1px solid var(--brands-border);
    box-sizing: border-box;
}

section.brands ul.container li:nth-child(5n) {
    border-right: 0;
}

section.brands ul.container li:nth-last-child(-n+5) {
    border-bottom: 0;
}

section.testimonials {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    -webkit-transition: background-image 0.4s ease-in-out;
    transition: background-image 0.4s ease-in-out;
}

section.testimonials .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    position: relative;
}

section.testimonials button.next, section.testimonials button.pre {
    border: 0;
    background: 0;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    bottom: calc((100% / 2) - 23px);
    transition: margin 0.2s ease-out, padding 0.2s ease-out;
}

section.testimonials button.next {
    right: calc((100% / 2) - 520px);
}

section.testimonials button.pre {
    left: calc((100% / 2) - 520px);
}

section.testimonials button.next:hover {
    margin-right: -10px;
    padding-left: 20px;
}

section.testimonials button.pre:hover {
    margin-left: -10px;
    padding-right: 20px;
}

section.testimonials ul {
    width: 90%;
    max-width: 900px;
}

section.testimonials li {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent-text);
    display: none;
}

section.testimonials li span {
    margin-bottom: 60px;
}

section.testimonials li p.description {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 35px 0;
}

section.testimonials li img {
    width: 65px;
    height: 65px;
    border-radius: 35px;
    object-fit: cover;
    margin-bottom: 5px;
}

section.testimonials li p.name {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

section.testimonials li p.position {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

section.blogs ul.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 80px;
}

section.blogs ul.container li.blog {
    flex: calc((100% - 20px) / 2);
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

section.blogs ul.container li.blog img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

section.blogs ul.container li.blog .img {
    width: 100%;
    height: 300px;
    background-color: var(--overlay);
    border-radius: 15px;
}

section.blogs ul.container li.blog h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 37.5px;
}

section.blogs ul.container li.blog .details {
    display: flex;
    gap: 15px;
    align-items: center;
}

section.blogs ul.container li.blog .details .category {
    display: block;
    background-color: var(--category);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--accent-text);
    font-size: 16px;
    font-weight: 400;
}

section.blogs ul.container li.blog .details .date {
    display: block;
    font-size: 16px;
    font-weight: 400;
}

section.blogs ul.container li.blog .details .comments {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

@media screen and (max-width: 1100px) {
    section.testimonials button.next {
        right: 45px;
        bottom: 50px;
    }
    
    section.testimonials button.pre {
        left: 45px;
        bottom: 50px;
    }
}

@media screen and (max-width: 600px) {
    section.slider {
        height: 100vh;
        align-items: end;
    }

    section.slider .container {
        width: calc(100% - 50px);
        margin-bottom: 80px;
    }

    section.slider h1.title {
        width: 100%;
    }

    section.about .description {
        display: none;
    }

    section.products ul.container li {
        flex: 100%;
    }

    section.brands {
        padding: 50px 0;
    }

    section.brands ul.container {
        flex-wrap: nowrap;
        overflow: auto;
        margin: 0 -25px;
        padding: 0 25px;
        -ms-overflow-style: none;  /* Internet Explorer 10+ */
        scrollbar-width: none;  /* Firefox */
    }
    
    section.brands ul.container::-webkit-scrollbar { 
        display: none;  /* Safari and Chrome */
    }

    section.brands ul.container li {
        width: max-content;
        border: 0;
    }
    
    section.brands ul.container li img {
        min-width: 100px;
        padding: 20px;
    }

    section.testimonials li p.description {
        font-size: 16px;
    }

    section.blogs ul.container li.blog {
        flex: 100%;
    }
}