/* VARIABLES */
#benefits {
    --cardHover: var(--accent);
    --cardBackground: var(--background);
}
/* */


#benefits {
    width: 100%;
    background-color: var(--backgroundDarker);
    padding-left: 10%;
}

#benefitsTitle h2 {
    font-family: 'Playfair Display';
    font-weight: bold;
    color: var(--text);
}

.benefitsCard {
    background-color: var(--cardBackground);
    transition: background-color 200ms ease-out;
}

.benefitsCard:hover {
    background-color: var(--cardHover);
}

.benefitsIcon svg {
    fill: var(--complementDarkest);
    transition: fill 200ms ease-out;
}

.benefitsHeadings h6 {
    font-family: 'Playfair Display';
    font-weight: 700;
    color: var(--text);
    transition: color 200ms ease-out;
}

.benefitsHeadings p {
    
    font-weight: 400;
    color: var(--text);
    transition: color 200ms ease-out;
}

.benefitsBottom p {
    color: var(--textLighter);
    transition: color 200ms ease-out;
}

.benefitsCard:hover .benefitsIcon svg {
    fill: var(--complementLighter);
}

.benefitsCard:hover .benefitsHeadings h6,
.benefitsCard:hover .benefitsHeadings p {
    color: var(--offWhite);
}

.benefitsCard:hover .benefitsBottom p {
    color: var(--background);
    opacity: 75%;
}



@media screen and (max-width: 600px) {
    #benefits {
        padding-top: 25vw;
        padding-bottom: 15vw;
    }

    #benefitsTitle {
        width: 80vw;
    }
    
    #benefitsTitle h2 {
        font-size: 8vw;
    }

    #benefitsContainer {
        margin-top: 20vw;
        width: 80vw;
        min-width: 0;
        margin-top: 5vw;
        display: block;
    }

    .benefitsCard {
        height: fit-content;
        width: 100%;
        margin: 10vw 0;
        padding: 5vw;
    }

    .benefitsTop {
        display: flex;
        margin-bottom: 3.5vw;
    }

    .benefitsIcon {
        width: 25%;
        margin-right: 5%;
    }

    .benefitsIcon img,
    .benefitsIcon svg {
        width: 100%;
    }

    .benefitsHeadings {
        width: 70%;
        margin: auto 0;
    }

    .benefitsHeadings h6 {
        font-size: 4vw;
        margin-bottom: auto
    }

    .benefitsHeadings p,
    .benefitsBottom p {
        line-height: 1.5;
        font-size: 3vw;
    }
}

@media screen and (min-width: 600.01px) and (max-width: 767px){
    #benefits {
        padding-top: 12.5vw;
        padding-bottom: 7.5vw;
    }

    #benefitsTitle {
        width: 60vw;
    }
    
    #benefitsTitle h2 {
        font-size: 4.5vw;
    }

    #benefitsContainer {
        margin-top: 10vw;
        width: 70vw;
        min-width: 0;
        margin-top: 2.5vw;
        display: block;
    }

    .benefitsCard {
        height: fit-content;
        width: 100%;
        margin: 5vw 0;
        padding: 4vw;
    }

    .benefitsTop {
        display: flex;
        margin-bottom: 3vw;
    }

    .benefitsIcon {
        width: 15%;
        margin-right: 5%;
    }

    .benefitsIcon img,
    .benefitsIcon svg {
        width: 100%;
    }

    .benefitsHeadings {
        width: 70%;
        margin: auto 0;
    }

    .benefitsHeadings h6 {
        font-size: 2.5vw;
        margin-bottom: auto
    }

    .benefitsHeadings p,
    .benefitsBottom p {
        line-height: 1.5;
        font-size: 2vw;
    }
}

@media screen and (min-width: 767.01px) and (max-width: 991.98px),
       screen and (min-width: 991.98px) and (max-width: 1024.98px) and (orientation: portrait) {
    #benefits {
        padding-top: 12.5vw;
        padding-bottom: 7.5vw;
    }

    #benefitsTitle {
        width: 60vw;
    }
    
    #benefitsTitle h2 {
        font-size: 4.5vw;
    }

    #benefitsContainer {
        margin-top: 10vw;
        width: 80vw;
        min-width: 0;
        margin-top: 2.5vw;
        display: block;
    }

    .benefitsCard {
        height: fit-content;
        width: 100%;
        margin: 5vw 0;
        padding: 4vw;
    }

    .benefitsTop {
        display: flex;
        margin-bottom: 3vw;
    }

    .benefitsIcon {
        width: 15%;
        margin-right: 5%;
    }

    .benefitsIcon img,
    .benefitsIcon svg {
        width: 100%;
    }

    .benefitsHeadings {
        width: 70%;
        margin: auto 0;
    }

    .benefitsHeadings h6 {
        font-size: 2.5vw;
        margin-bottom: auto
    }

    .benefitsHeadings p,
    .benefitsBottom p {
        line-height: 1.5;
        font-size: 2vw;
    }
}

@media screen and (min-width: 992px) and (max-width: 1024.98px) and (orientation: landscape),
       screen and (min-width: 1025px) {
    #benefits {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    #benefitsTitle {
        width: 60%;
    }

    #benefitsTitle h2 {
        font-size: 42px;
    }

    #benefitsContainer {
        margin-top: 60px;
        width: 90%;
        display: flex;
    }
    
    .benefitsCard {
        flex: 1 1 400px;
        min-height: 250px;
        margin-right: 30px;
        padding: 20px;
    }

    .benefitsTop {
        display: flex;
        flex-wrap: nowrap;
        margin-bottom: 15px;
    }

    .benefitsIcon {
        width: fit-content;
        margin-right: 20px;
    }

    .benefitsIcon svg,
    .benefitsIcon img {
        width: 70px;
    }

    .benefitsHeadings {
        width: 70%;
    }

    .benefitsHeadings p {
        margin-top: 10px;
    }

    .benefitsHeadings h6 {
        font-size: 16px;
    }

    .benefitsHeadings p {
        font-size: 14px;
    }
    
    .benefitsBottom p {
        line-height: 1.5;
        font-size: 13px;
    }
}
