.hero {
    overflow: hidden;
    position: relative;
}

.hero > header {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-heading {
    color: var(--color-secondary-dark);
}

.hero-subheading {
    color: var(--color-primary-dark);
    font-family: var(--font-main);
    margin-top: var(--spacing-sm);
}

.hero-cta {
    margin-top: var(--spacing-lg);
}

.hero-reviews-heading {
    margin-top: var(--spacing-md);
}

.star-flex {
    display: flex;
    gap: var(--spacing-tiny);
    justify-content: center;
}

.star-flex img {
    width: 24px;
    height: 24px;
}

.carousel-wrapper {
    justify-content: center;
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: 0 auto;
    z-index: 2;
}

.hero-reviews-carousel {
    width: 524px;
    height: 280px;
    overflow-x: scroll;
    position: relative;
}

.hero-reviews-wrapper {
    margin-top: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-sm);
    position: absolute;
}

.hero-review-card {
    background-color: white;
    padding: var(--spacing-sm);
    border-radius: 16px;
    width: 200px;
    height: 240px;
    position: relative;
}

.hero-review-card footer {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    bottom: var(--spacing-sm);
    position: absolute;
}

.hero-review-card footer>img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.hero-review-card .review-author {
    color: var(--color-gray-1000);
}

.hero-carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: linear-gradient(to bottom right,
            var(--color-secondary-light) 0%,
            var(--color-secondary-light) 25%,
            white 75%);
    border: 0;
    position: relative;
    cursor: pointer;
    display: none;
}

.hero-carousel-btn img {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* HERO IMAGE */

.hero-image {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image>.image-shadow-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgb(247, 247, 255, 0.95);
}

@media screen and (width > 720px) {

    .hero-carousel-btn {
        display: block;
    }

    .hero-reviews-carousel {
        overflow-x: hidden;
    }

    .star-flex {
        display: none;
    }

}

@media screen and (width > 960px) {

    .hero header {
        text-align: left;
    }

    .carousel-wrapper {
        justify-content: start;
    }

}

@media screen and (width > 1300px) {

    .hero {
        overflow: visible;
    }

    .hero header {
        width: 50%;
        min-width: 600px;
    }

    .hero-image {
        width: calc(50% + 120px);
        right: -100px;
        left: unset;
    }

    .hero-image>.image-shadow-cover {
        display: none;
    }

}

@media screen and (width > 1680px) {

    .hero {
        margin-bottom: var(--spacing-section);
        max-height: 1000px;
    }

    .hero-image {
        width: calc(50% + 320px);
        top: -24px;
        right: -160px;
    }
}