/* Homepage */
#common-home {
    padding-block: 3.2rem;
}

#common-home h3 {
    margin-top: 0;
}

@media (max-width: 767px) {
    #common-home {
        padding-block: .8rem;
    }
}

#common-home #content {
    display: flex;
    flex-direction: column;
    gap: var(--content-space);
}

/* USP features */
.usp-features {
    display: flex;
    padding-inline: 1px;
}

.usp-features__item {
    border: 1px solid var(--clr-medium-grey);
    border-radius: 2.4rem;
    padding-inline: 2.4rem;
    padding-block: 1.6rem;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    user-select: none;
}

.usp-features__content {
    margin-left: 1.6rem;
    padding-left: 1.6rem;
    border-left: 1px solid var(--clr-medium-grey);
}

.usp-features__content h5 {
    font-size: 1.8rem;
    line-height: 4.2rem;
    white-space: nowrap;
    margin: 0;
}

.usp-features__content p {
    margin: 0;
}

@media (min-width: 768px) {
    .usp-features__item {
        padding-inline: 3.2rem;
        border-radius: 3.2rem;
    }
}

/* Columns */

.columns {
    display: flex;
}

.columns--two {
    gap: 1.6rem;
    flex-direction: column;

    @media (min-width: 768px) {
        flex-direction: row;
    }

    & .columns__col {
        width: 100%;

        @media (min-width: 768px) {
            width: 50%;
        }
    }
}

/* Banners */

#hero-banners {
    border-radius: 2.4rem;

    @media (min-width: 768px) {
        border-radius: 3.2rem;
    }

    .banner-wrapper__banner {
        border-radius: 0;
    }
}

.hero-banners-wrapper {
    position: relative;

    & .swiper-pager {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9;
        left: 2.4rem;
        right: 2.4rem;
        justify-content: space-between;
        margin-top: 0;
        opacity: 0;
        transition: opacity .2s ease-in-out;

        @media (max-width: 767px) {
            opacity: 1;
            top: 2.4rem;
            transform: none;
        }

        & div {
            width: 4.8rem;
            height: 4.8rem;
            background-size: cover;
            box-shadow: 0px 5px 20px rgba(0, 0, 0, .2);
            border-radius: 50%;
            background-color: var(--clr-white);

            @media (max-width: 767px) {
                width: 3.2rem;
                height: 3.2rem;
                background-color: transparent;
            }
        }
    }

    &:hover {
        & .swiper-pager {
            opacity: 1;
        }
    }
}

.banner-wrapper__banner {
    border-radius: 2.4rem;
    padding: 3.2rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    position: relative;

    @media (min-width: 768px) {
        border-radius: 3.2rem;
        align-items: center;
    }

    & .link {
        position: absolute;
        font-size: 0;
        z-index: 99;
        inset: 0;
    }

    & img {
        position: absolute;
    }

    & .banner-wrapper__content {
        display: flex;
        flex-direction: column;
        gap: .8rem;
        position: relative;
        z-index: 2;
        align-items: flex-start;

        & h5 {
            font-size: 2.4rem;
            margin: 0;

            @media (min-width: 768px) {
                font-size: 3.2rem;
            }
        }

        & p {
            margin: 0;
        }
    }
}

.banner-wrapper__banner--small {
    background: rgb(159, 183, 215);
    background: linear-gradient(145deg, rgba(159, 183, 215, 1) 0%, rgba(229, 238, 249, 1) 100%);
    min-height: 32rem;

    & img {
        left: auto;
        right: -70%;
        bottom: -40%;

        @media (min-width: 768px) {
            right: -15%;
            left: auto;
            bottom: auto;
        }
    }
}

.banner-wrapper__banner--horizontal {
    background: rgb(43, 106, 188);
    background: linear-gradient(145deg, rgba(43, 106, 188, 1) 0%, rgba(20, 48, 86, 1) 100%);
    min-height: 20rem;

    & h5,
    & p {
        color: var(--clr-white);
    }
}

.banner-wrapper__banner--hero {
    background: rgb(159, 183, 215);
    background: linear-gradient(145deg, rgba(159, 183, 215, 1) 0%, rgba(229, 238, 249, 1) 100%);
    min-height: 52rem;

    @media (min-width: 769px) {
        padding-inline: 6.4rem;
    }

    & .banner-wrapper__content {
        @media (min-width: 768px) {
            gap: 2.4rem;
        }

        & h5 {
            @media (min-width: 768px) {
                font-size: 5.2rem;
            }
        }

        & p {
            @media (min-width: 768px) {
                font-size: 3.2rem;
            }
        }
    }

    .btn {
        margin-top: 1.6rem;

        &:before {
            content: '';
            width: 2.4rem;
            height: 2.4rem;
            display: inline-flex;
            margin-top: -.4rem;
        }
    }
}

.banner-wrapper__banner--iphone {
    background: rgb(218, 201, 236);
    background: linear-gradient(145deg, rgba(218, 201, 236, 1) 0%, rgba(250, 225, 233, 1) 100%);

    img {
        right: -10%;
        top: -40%;

        @media (max-width: 767px) {
            right: -90%;
            top: -125%;
            transform: rotate(110deg) scale(.7);
        }
    }

    & .btn {
        &:before {
            background: url(../image/icon-cart.svg) no-repeat scroll center center;
            filter: contrast(2) invert(1);
        }
    }
}

.banner-wrapper__banner--partners {
    background: rgb(43, 106, 188);
    background: linear-gradient(145deg, rgba(43, 106, 188, 1) 0%, rgba(20, 48, 86, 1) 100%);

    & h5,
    & p {
        color: var(--clr-white);
    }

    & .btn {
        color: var(--clr-black);
        background: var(--clr-white);

        &::before {
            background: url(../image/icon-exit.svg) no-repeat scroll center center;
        }
    }

    & img {
        right: var(--content-space);

        @media (max-width: 767px) {
            right: auto;
            max-width: 80%;
            top: var(--content-space);
            left: var(--content-space);
        }
    }
}