/* Hero section */
.hero-section-wrapper {
    position: relative;
    min-height: calc(100vh + 364px);
}

.hero-section {
    min-height: 100svh;
    padding: 160px 0;
    position: relative;
}

.hero-content {
    flex-direction: column;
    gap: var(--gap);
    text-align: center;
}

.hero-carret-button {
    position: absolute;
    bottom: 32px;
    z-index: 2;
}

.hero-carret-icon {
    width: 32px;
    height: 32px;
    animation: carretBounce 1.7s ease-in-out infinite;
}

.hero-bg-mobile {
    display: none;
}

@keyframes carretBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Features section */
.slide-text-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding-top: calc(2 * var(--gap));
    padding-bottom: var(--gap);
}

.slide-image-wrapper {
    width: 100%;
    height: 62vh;
    overflow: hidden;
    min-height: 420px;
}

.slider-wrapper {
    position: relative;
    height: 100%;
    z-index: 2;
}

.feature-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100vw;
}

.feature-dots {
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    text-align: center;
    gap: 12px;
    margin-top: var(--gap);
}

.feature-dot {
    opacity: 0.2;
    flex-direction: column;
    font-size: 16px;
    font-weight: 200;
    gap: 12px;
    cursor: pointer;
    transition: opacity .2s ease;
}

.feature-dot span {
    text-transform: none;
}

.feature-dot.active {
    opacity: 1;
    font-weight: 300;
}

.feature-dot-underline {
    width: 100%;
    height: 4px;
    background-color: var(--text-color);
    border-radius: 100px;
}

.feature-dot.active .feature-dot-underline {
    background-color: var(--ghost-accent-color);
}

/* Partnership section */
.partnership-bg-item {
    width: 63vw;
    max-width: 1100px;
}

.partnership-card {
    position: relative;
    width: 100%;
    padding: 24px;
    background-color: var(--card-background-color);
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 420px;
    margin-right: 30px;
}

.card-header {
    padding: 16px 32px;
    width: 100%;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
}

.rhombus-background {
    z-index: -1;
    color: var(--background-color);
}

.partnership-description {
    text-align: center;
    font-weight: 200;
}

.benefits-outer {
    border-top: 1px solid #202020;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.benefit-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-list-item p {
    line-height: 135%;
    font-size: 18px;
    opacity: 1;
}

.benefit-icon {
    color: var(--ghost-accent-color);
    width: 20px;
    min-width: 20px;
    height: 20px;
}

.partnership-button-wrapper {
    margin-top: auto;
}

.partnership-button-wrapper .button {
    margin-top: 16px;
}

.partnership-card:nth-of-type(2) {
    background-color: var(--ghost-accent-color);
}

.partnership-card:nth-of-type(2) .partnership-description,
.partnership-card:nth-of-type(2) .benefit-icon,
.partnership-card:nth-of-type(2) .benefit-list-item p {
    color: var(--background-color);
}

.partnership-card:nth-of-type(2) .button {
    background-color: var(--text-color);
}

.no-drag .flickity-viewport {
    cursor: auto !important;
}

.no-drag .flickity-slider {
    transform: translateX(0px) !important;
}

.partnerships .flickity-page-dots {
    display: none;
}

.partnerships-section {
    overflow: hidden;
}

/* Latest posts section */
.latest-posts-section {
    z-index: 3;
}

/* Newsletter section */
.newsletter-section {
    padding-top: 0px !important;
}

.newsletter {
    position: relative;
    padding: 80px 120px;
    background-color: var(--card-background-color);
    overflow: hidden;
}

.newsletter .section-heading {
    margin-bottom: 40px;
}

.newsletter-content {
    flex-direction: column;
}

.subscribe-form {
    max-width: 750px;
    width: 100%;
}

.subscribe-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.newsletter-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-40%) translateY(-25%);
    width: 720px;
    color: var(--background-color);
    opacity: 0.2;
}

.newsletter-bg-item.second {
    top: auto;
    left: auto;
    bottom: 0;
    right: 0;
    transform: translateX(40%) translateY(25%);
}

.newsletter-bg-image-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1428px;
    z-index: -1;
}

.newsletter-bg-image-wrapper::after {
    height: 467px;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    position: absolute;
    background: linear-gradient(180deg, #000000 14.83%, rgba(0, 0, 0, 0) 100%);
}

/* Testimonials section */
.testimonials-section .narrow-container {
    max-width: 820px;
}

.testimonials {
    display: block;
}

.testimonial-card {
    background-color: var(--card-background-color);
    padding: 24px;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 420px;
}

.testimonial-text,
.testimonial-text p {
    font-size: 20px;
    font-weight: 200;
}

.testimonial-text.smaller p {
    font-size: 17px;
    line-height: 110%;
}

.testimonial-line {
    min-height: 1px;
    height: 1px;
    width: 100%;
    background-color: var(--text-color);
    opacity: 0.12;
    margin-top: auto;
}

.testimonial-bottom {
    width: 100%;
    gap: 9px;
    display: flex;
    align-items: center;
}

.testimonial-image-wrapper {
    width: 60px;
    min-width: 60px;
    height: 60px;
    border-radius: 100%;
    overflow: hidden;
}

.testimonial-image-wrapper.border {
    border: 1px solid var(--text-color);
}

.testimonal-name-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-name {
    font-size: 20px;
    opacity: 1;
}

.stars {
    display: flex;
    gap: 4px;
}

.star {
    width: 20px;
    height: 20px;
}

.testimonials-wrapper::after {
    content: '';
    background: linear-gradient(90deg, rgba(1, 1, 1, 0) 0%, var(--background-color) 100%);
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 80px;
    z-index: 2;
}

.testimonials-wrapper::before {
    content: '';
    background: linear-gradient(-90deg, rgba(1, 1, 1, 0) 0%, var(--background-color) 100%);
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 80px;
    z-index: 2;
}

@media screen and (max-width: 1080px) {
    /* Hero section */
    .hero-section {
        padding: 140px 0;
    }

    .hero-bg-mobile {
        display: block;
    }

    .hero-bg-desktop {
        display: none;
    }

    /* Features section */
    .slide-image-wrapper {
        height: 56vh;
    }

    .feature-dots {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    /* Partnership section */
    .partnership-bg-item {
        width: 100vw;
    }

    .partnerships .flickity-page-dots {
        display: flex;
        position: static;
        align-items: center;
        justify-content: center;
        margin-top: var(--gap);
        flex-wrap: wrap;
        gap: 12px;
    }

    .partnerships-section .flickity-viewport {
       overflow: unset;
    }

    .flickity-page-dots .dot {
        height: 4px;
        border-radius: 100px;
        background: var(--text-color);
        opacity: 0.2;
        width: 92px;
        transition: opacity .2s ease;
        margin: 0px;
    }

    .flickity-page-dots .dot.is-selected {
        background: var(--ghost-accent-color);
    }

    /* Newsletter section */
    .newsletter {
        padding: 40px 82px;
    }

    .newsletter-bg-item {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateX(-40%) translateY(-25%);
        width: 545px;
        color: var(--background-color);
        opacity: 0.2;
    }

    .newsletter-bg-item.second {
        top: auto;
        left: auto;
        bottom: 0;
        right: 0;
        transform: translateX(40%) translateY(25%);
    }

    /* Testimonials section */
    .testimonial-card {
        width: 58vw;
    }

    .testimonials-wrapper::before {
        display: none;
    }
}

@media screen and (max-width: 767px) { 
    /* Hero section */
    .hero-section {
        padding: 100px 0;
    }

    .hero-content {
        gap: 48px;
    }

    /* Features section */
    .slide-text-content {
        padding-top: calc(3 * var(--gap));
        padding-bottom: var(--gap);
    }

    .feature-dots {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        margin-top: 26px;
        margin-bottom: 52px;
    }

    .feature-dot {
        font-size: 14px;
        gap: 8px;
    }

    /* Partnership section */
    .partnership-bg-item {
        width: 220vw;
    }

    .partnerships .flickity-page-dots {
        display: none;
    }

    .partnerships .flickity-slider {
        display: flex;
        flex-direction: column;
    }

    .partnership-card,
    .partnerships .flickity-slider,
    .partnerships .flickity-viewport {
        height: auto !important;
        position: static !important;
        transform: unset !important;
    }

    .partnerships .flickity-slider {
        gap: var(--gap);
    }

    .partnership-card {
        padding: 16px 24px;
        gap: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .card-header {
        padding: 13px 16px;
        font-size: 18px;
    }

    .benefits-list {
        margin-top: 16px;
    }

    .benefit-list-item p {
        font-size: 16px;
    }

    .partnership-description {
        font-size: 14px;
    }

    .partnership-button-wrapper .button {
        margin-top: 24px;
    }

    /* Newsletter section */
    .newsletter {
        padding: 32px 16px 38px 16px;
    }

    .newsletter .section-heading {
        margin-bottom: 32px;
    }

    .subscribe-inner {
        flex-direction: column;
    }

    .newsletter-bg-item {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateX(-40%) translateY(-25%);
        width: 508px;
    }

    .newsletter .button {
        width: 100%;
    }

    .newsletter-bg-item.second {
        display: none;
    }

    .newsletter-bg-image-wrapper {
        height: 1207px;
    }

    /* Testimonials section */
    .testimonial-card {
        margin-right: 12px;
        width: 80vw;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .testimonial-text.smaller p {
        line-height: 125%;
        font-size: 16px;
    }

    .testimonials-wrapper::after {
        width: 9vw;
    }
}