.benefits__container {
    position: relative;
    z-index: 2;
}

.benefits__container h1 {
    color: var(--main-white);
}

.benefits-icons__container {
    display: flex;
    flex-wrap: wrap;
}

.benefits-icons__container .benefits-icons__box {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.benefits-icons__container .benefits-icons__box figcaption {
    font: 600 2.4em / normal var(--body-font); 
    color: var(--main-white);
}

@media only screen
and (min-width : 961px) {
    .benefits__container {
        padding: 4rem 0 5.5rem;
    }
    .benefits__container::before {
        content: '';
        background-image: url('../../imgs/layout/benefits/background.png');
        background-size: 100%;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        pointer-events: none;
    }
    .benefits__container::after {
        content: '';
        width: 18.3rem;
        height: 21.1rem;
        background-image: url('../../imgs/layout/patterns/leaves.png');
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        top: -12rem;
        right: 0;
        transform: scaleX(-1) scaleY(-1);
        pointer-events: none;
    }
    .benefits-icons__container {
        padding-top: 4rem;
        justify-content: space-between;
    }
    .benefits-icons__box {
        flex: 0 1 calc(20% - 5rem);
    }
    .benefits-icons__box figure {
        height: 8rem;
        width: auto;
        max-width: 23rem;
        margin: 0 auto 1.5rem;
    }
    .benefits-icons__box:nth-child(1) figure > img {
        height: 5rem;
        max-width: 12.6rem;
    }
    .benefits-icons__box:nth-child(2) figure > img {
        height: 7rem;
        max-width: 7rem;
    }
    .benefits-icons__box:nth-child(3) figure > img {
        height: 5.8rem;
        max-width: 6.5rem;
    }
    .benefits-icons__box:nth-child(4) figure > img {
        height: 8rem;
        max-width: 9.4rem;
    }
    .benefits-icons__box:nth-child(5) figure > img {
        height: 5rem;
        max-width: 8.6rem;
    }
    
}
@media only screen
and (min-width : 961px)
and (max-width : 1422px) {
    .benefits__container::before {
        background-size: cover;
    }
}
@media only screen
and (min-width : 0)
and (max-width : 960px) {
    .benefits__container {
        padding: 1.8rem 0 0;
    }
    .benefits__container::before {
        content: '';
        background: url('../../imgs/layout/benefits/background-mobile.png'), var(--light-green);
        background-size: auto;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        pointer-events: none;
    }
    .benefits__container h1 {
        font-size: 3.2em; 
        padding-bottom: 1.5rem;
    }
    .benefits-icons__container {
        padding-top: 2.5rem;
        justify-content: center;
        column-gap: 1.3rem;
    }
    .benefits-icons__box {
        flex: 0 1 calc(50% - 1rem);
        margin-bottom: 3.5rem;
    }
    .benefits-icons__container .benefits-icons__box figcaption {
        font-size: 1.8em;
        max-width: 100%;
    }
    .benefits-icons__box figure {
        height: 5rem;
        max-width: 10rem;
        margin: 0 auto 1.5rem;
    }
    .benefits-icons__box:nth-child(1) figure > img {
        height: 3.7rem;
        max-width: 9.2rem;
    }
    .benefits-icons__box:nth-child(2) figure > img {
        height: 5.1rem;
        max-width: 5.1rem;
    }
    .benefits-icons__box:nth-child(3) figure > img {
        height: 4.2rem;
        max-width: 4.7rem;
    }
    .benefits-icons__box:nth-child(4) figure > img {
        height: 5rem;
        max-width: 5.7rem;
    }
    .benefits-icons__box:nth-child(5) figure > img {
        height: 3.6rem;
        max-width: 6.3rem;
    }
}

/* @end */

/* Animations */

.benefits__container h1,
.benefits__container .benefits-icons__box {opacity: 0;}

.benefits__container.animateActive h1,
.benefits__container.animateActive .benefits-icons__box {animation: fade 1.1s forwards;}
 
.benefits__container.animateActive h1 {animation-delay:.3s;}     
.benefits__container.animateActive .benefits-icons__box:nth-child(1) {animation-delay:.6s;}     
.benefits__container.animateActive .benefits-icons__box:nth-child(2) {animation-delay:.8s;}     
.benefits__container.animateActive .benefits-icons__box:nth-child(3) {animation-delay:1s;}     
.benefits__container.animateActive .benefits-icons__box:nth-child(4) {animation-delay:1.2s;}     
.benefits__container.animateActive .benefits-icons__box:nth-child(5) {animation-delay:1.4s;}     

.benefits__container::after {opacity: 0;}
.benefits__container.animateActive::after {animation: fade 1.6s forwards;}
.benefits__container.animateActive::after {animation-delay: 1.6s;} 