/** referals **/
.card {
    min-height: 250px;
}

.section-title.referal {
    text-align: center;
}

.header-list.referal {
    margin-left: auto;
    margin-right: 0;
    gap: 20px;
}

.header-list.referal a{
    display: inline-block;
    padding: .4rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--main-br);
    transition: all .2s;
}

.header-list.referal .referal-login{
    border: 1px solid var(--main-color);
}

.header-list.referal .referal-login:hover{
    background-color: var(--main-color);
    color: #fff;
}

.header-list.referal .referal-signup{
    background-color: var(--main-bg);
    border: 1px solid var(--main-bg);
    color: #fff;
}

.header-list.referal .referal-signup:hover{
    background-color: #fff;
    color: var(--main-bg);
}

.referal-background {
    background-image: url('/wa-data/public/site/themes/landings/img/referal/referal-background.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

.hero-title-referal {
    margin: 0;
    text-align: center;
    font-weight: bold;
    font-size: var(--big-fontsize);
    color: var(--main-color);
    text-transform: uppercase;
    transition: all .2s;
}

.hero-title-referal .referal-offer {
    font-size: 0;
}

.hero-title-referal .referal-offer::before {
    content: '';
    display: inline-block;
    background-image: url('/wa-data/public/site/themes/landings/img/referal/hero-title.svg');
    background-repeat: no-repeat;
    background-size: contain;
    width: 400px;
    height: 70px;
}

.hero-title-referal .referal-offer::after {
    content: '';
    display: block;
}

.hero-info.referal {
    max-width: 400px;
}

.hero-list-referal-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--main-bg);
    border-radius: 30px;
    padding: 30px 0px;
}

.hero-list-referal-wrapper {
    display: flex;
}

.hero-list-referal {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    font-size: 2rem;
    line-height: 100%;
    animation: scroll 20s linear infinite;
}

.hero-item-referal::after {
    content: '|';
    line-height: 100%;
    margin: 0px 10px;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.referal-cards {
    padding-top: 40px;
    padding-bottom: 10px;
    overflow-y: auto;
}

.referal-cards .card {
    width: 25%;
    min-width: 250px;
}

.referal-cards .card:nth-child(3n) {
    background-image: none;
}

.referal-cards .card-text {
    margin-top: auto;
}

.referal-benefit-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-image: url('/wa-data/public/site/themes/landings/img/referal/referal-dyson.webp');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: auto 100%;
    padding: 50px;
}

.referal-benefit-wrapper {
    max-width: 600px;
}

.referal-benefit-title {
    margin: 0;
    text-align: left;
    font-weight: 500;
    font-size: 2.5rem;
}

.referal-benefit-list {
    margin-top: 50px;
    line-height: 1.5rem;
}

.referal-benefit-list li{
    display: flex;
    align-items: center;
    gap: 10px;
}

.referal-start-items {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.referal-start-item {
    flex: 1 1 30%;
    text-align: center;
}

.referal-start-step {
    font-size: 4rem;
    margin-bottom: 10px;
}

.referal-start-card {
    position: relative;
    justify-content: center;
    text-align: left;
    min-height: 160px;
    padding: 30px 50px;
}

.referal-start-card::before, .referal-start-card::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.referal-start-card::before {
    left: -20px;
}

.referal-start-card::after {
    right: -20px;
}

.referal-start-btn {
    margin-top: 20px;
}

.referal-start-btn .btn{
    padding: 20px 0;
    width: 100%;
}

.referal-banner {
    background-image: url('/wa-data/public/site/themes/landings/img/referal/referal-section.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    text-align: center;
}

.referal-banner-img {
    width: 80%;
}

.how-works {
    background-color: var(--main-bg);
    padding-top: 4rem;
    padding-bottom: 4rem;
    color: #fff;
}

.how-works-cards {
    margin-top: 3rem;
    flex-wrap: wrap;
}

.how-works-cards .card{
    flex: 1 1 45%;
}

.referal-invite-card {
    border: none;
    min-height: 300px;
    justify-content: center;
    background-image: url('/wa-data/public/site/themes/landings/img/referal/invite-left.svg'), url('/wa-data/public/site/themes/landings/img/referal/invite-right.svg');
    background-position: left 20px center, right 20px center;
    background-repeat: no-repeat, no-repeat;
    background-size: auto 80%, auto 80%;
    background-color: var(--main-bg);
    color: #fff;
    gap: 30px;
}

.referal-invite-title {
    margin: 0 auto;
    max-width: 430px;
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
}

.referal-invite-btn {
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .hero-title-referal .referal-offer::before {
        width: 280px;
        height: 50px;
    }

    .referal-invite-card {
        background-image: url('/wa-data/public/site/themes/landings/img/referal/invite-left.svg'), url('/wa-data/public/site/themes/landings/img/referal/invite-right.svg');
        background-position: left 20px center, right -120px center;
        background-repeat: no-repeat, no-repeat;
        background-size: auto 80%, auto 80%;
    }

    .referal-benefit-wrapper {
        max-width: 400px;
    }

    .referal-benefit-container {
        background-image: url('/wa-data/public/site/themes/landings/img/referal/referal-dyson-mobile.webp');
        background-repeat: no-repeat;
        background-position: bottom right;
        background-size: auto 100%;
        padding: 50px;
    }
}

@media (max-width: 1000px) {
    .referal-benefit-list svg {
        flex-shrink: 0;
    }

    .referal-benefit-title {
        text-align: center;
    }

    .referal-benefit-container {
        justify-content: center;
        background-size: min(90%, 400px) auto;
        padding: 40px 25px;
        padding-bottom: min(350px, 80%);
    }

    .referal-benefit-wrapper {
        max-width: 100%;
    }

    .referal-start-items {
        flex-direction: column;
        gap: 40px;
    }

    .how-works-cards .card{
        flex: 1 1 100%;
    }

    .referal-invite-card {
        background-image: none;
    }
}

@media (max-width: 700px) {
    /* referals */
    .hero-title-referal {
       text-align: left;
    }

    .referal-background {
        background-position: top center;
        background-size: 200%;
    }

    .hero-title-referal .referal-offer::before {
        width: 200px;
        height: 35px;
    }

    .hero-list-referal-container {
        border-radius: 30px;
        padding: 20px 0px;
    }

    .hero-list-referal {
        font-size: 1.5rem;
    }

    .referal-benefit-title {
        font-size: 2rem;
    }

    .referal-cards {
        flex-direction: column;
    }

    .referal-cards .card {
        width: 100%;
    }

    .referal-banner-img {
        width: 100%;
    }

    .referal-invite-title {
        font-size: 1.5rem;
    }

    .footer {
        text-align: center;
    }
    
    .footer .container{
        flex-direction: column;
        gap: 30px;
    }

    .social-media {
        width: 100%;
    }

    .social-media a{
        flex: 1 1 30%;
        padding: 10px 14px;
    }
}