/*
 * css/pages/homepage.css
 */

/* NOTE: Use of !important not advised but used anyway. */

/* Overwrite: Hero Container Space */
body.home main section:first-of-type div.container {
    margin-bottom: 1.5rem !important;
}

/* Overwrite: Categories Slider */
body.home section.categorieen-with-three-columns div.slick-track {
    height: 200px;
}
body.home section.categorieen-with-three-columns div.slick-slide {
    position: relative;
}
body.home section.categorieen-with-three-columns div.slick-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0.75rem;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgb(255 255 255) 0%, rgba(255 255 255 0) 100%);
    opacity: 0.8;
    display: block;
}
body.home section.categorieen-with-three-columns div.slick-slide a {
    margin: 0 0 25px 25px !important;
}
body.home section.categorieen-with-three-columns div.slick-slide img {
    min-width: 55%;
    max-width: 70%;
    max-height: 100%;
    object-fit: contain;
    object-position: right;
    transform: translateX(-20px);
}
body.home section.categorieen-with-three-columns div.slick-slide > div > div {
    overflow: hidden;
}

/* Hardcoded: Slide Overlay Colors */
body.home section.categorieen-with-three-columns div.slick-slide:nth-of-type(1):after {
    background: linear-gradient(90deg, var(--green-neon-dark) 0%, rgba(255, 255, 255, 0) 100%);
}
body.home section.categorieen-with-three-columns div.slick-slide:nth-of-type(2):after {
    background: linear-gradient(90deg, var(--yellow-dark) 0%, rgba(255, 255, 255, 0) 100%);
}
body.home section.categorieen-with-three-columns div.slick-slide:nth-of-type(3):after {
    background: linear-gradient(90deg, var(--blue-light-dark) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Overwrite: Trust Logo Blocks */
body.home section.small-centered-content div.row {
    justify-content: center;
    padding: 30px 0;
    margin: 0 0 40px 0;
    background: rgb(241, 242, 246);
}
body.home section.small-centered-content div.row > div {
    max-width: 1260px;
    padding: 0;
}
body.home section.small-centered-content div.row p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
}
body.home section.small-centered-content div.row p img {
    width: 100px;
    height: 35px;
    margin: 0 auto;
    object-fit: contain;
}

/* Device: Tablet and smaller */
@media screen and (max-width: 991px) {
    body.home section.small-centered-content div.row > div {
        max-width: 90vw;
    }
}

/* Device: Big Mobile and smaller */
@media screen and (max-width: 767px) {
    body.home section.small-centered-content div.row p {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 40px;
    }
    body.home section.small-centered-content div.row p *:nth-child(7) {
        grid-area: 3 / 1 / 4 / 4;
    }
    body.home section.small-centered-content div.row p img {
        width: 65px;
    }
}

/* Overwrite: Homepage Product Block */
body.home section.container-block div.container > div:first-of-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body.home section.container-block div.container > div:first-of-type h3 {
    margin-bottom: 0;
}
body.home section.container-block a.slick-prev {
    margin-right: 5px !important;
}
body.home section.container-block a.slick-prev svg,
body.home section.container-block a.slick-next svg {
    stroke: rgb(0, 0, 0);
    stroke-width: 2px;
    transform: scale(0.6);
}

/* Overwrite: Service Blocks */
body.home section.service-with-two-columns div.bg-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: calc(100% - 2rem);
    height: 100%;
    background: linear-gradient(0deg, var(--secondary) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.8;
    display: block;
}

/* Overwrite: Trustpilot Box */
body.home section.trustpilot-box div.row p {
    display: none;
}

/* Overwrite: Benefits Blocks */
body.home section.benefits div.row > div {
    display: flex;
}
body.home section.benefits div.row > div > img {
    min-width: auto;
    height: 70px;
    aspect-ratio: 1/1;
    margin-right: 30px !important;
}
body.home section.benefits div.row > div > img::before {
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    background: #CCC;
    border-radius: 3px;
}
body.home section.benefits div.row > div > div {
    padding-top: 0;
}

/* Device: Big Mobile and smaller */
@media screen and (max-width: 767px) {

    body.home section.benefits div.row > div > img {
        margin-bottom: 20px !important;
    }
}




/* Device: Tablet */
@media screen and (min-width: 768px) and (max-width: 991px) {

    /* Overwrite: Slick Slider Edges */
    body.home section:not(.page-header-with-two-columns-and-slider) div.slick-slider {
        margin-right: -0.85rem !important;
    }

    /* Overwrite: Categories Slider */
    body.home section.categorieen-with-three-columns div.slick-slide a {
        padding: 12px 20px;
        margin: 0 0 18px 18px !important;
    }
    body.home section.categorieen-with-three-columns div.slick-slide a span.h4 {
        font-size: 0.95rem !important;
    }
    body.home section.categorieen-with-three-columns div.slick-slide img {
        min-width: 95%;
        max-width: 95%;
        transform: translateX(20px);
    }

    /* Overwrite: Benefits Blocks */
    body.home section.benefits div.row > div {
        flex-direction: row !important;
    }
}

/* Device: Big Mobile */
@media screen and (min-width: 576px) and (max-width: 767px) {

    /* Overwrite: Slick Slider Edges */
    body.home section:not(.page-header-with-two-columns-and-slider) div.slick-slider {
        margin-right: -0.1rem !important;
    }
}

/* Device: Mobile */
@media screen and (max-width: 575px) {

    /* Overwrite: Slick Slider Edges */
    body.home section:not(.page-header-with-two-columns-and-slider) div.slick-slider {
        margin-right: -1rem !important;
    }

    /* Overwrite: Categories Slider */
    body.home section.categorieen-with-three-columns div.slick-slide img {
        min-width: 70%;
        max-width: 75%;
    }

	body.home section.categorieen-with-three-columns .hw-slick--1.slick-initialized .slick-slide,
	body.home section.categorieen-with-three-columns .hw-slick--1.slick-initialized .slick-slide > div {
		width: 98.5vw;
	}
}
