@import '../../../../style/variables.scss';

.main-features{
    .title-wrapper {
        .title{
            color: $tertiary;
        }
        p{
            max-width: 1057px;
        }
    }
    .main-features-list{
        .features-card{
            border: 1px solid $mainBorder;
            padding: 10px;
            height: auto;
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            @media only screen and (max-width: 479px){
                padding: 6px;
            }
            @media only screen and (min-width: 768px){
                padding: 16px;
            }
            @media only screen and (min-width: 1200px){
                display: block;
                padding: 20px 16px 0;
                height: 518px;
                transition: all 0.6s;
                &:hover{
                    padding-top: 40px;
                    transition: all 0.6s;
                    h3{
                        color: $tertiary;
                        transition: all 0.6s;
                    }
                }
            }
            @media only screen and (min-width: 1440px){
                padding: 30px 20px 0;
                height: 580px;
                &:hover{
                    padding-top: 60px;
                }
            }
            .image-wrapper{
                text-align: center;
                width: 100%;
                z-index: 1;
                transition: all 0.6s;
                order: 1;
                padding-bottom: 16px;
                @media only screen and (min-width: 1200px){
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    margin: auto;
                    height: 364px;
                    padding: 0 30px;
                    &::before{
                        content: '';
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        width: 100%;
                        background: $white;
                        z-index: -1;
                        width: 100%;
                    }
                }
                @media screen and (min-width: 1200px) and (max-width: 1440px) { 
                    &::before{
                        height: 316px;
                    }
                }
                @media only screen and (min-width: 1440px){
                    height: 364px;
                    padding: 0 40px;
                    &::before{
                        height: 416px;
                    }
                }
                @media only screen and (min-width: 1600px){
                    height: 368px;
                    padding: 0 60px;
                }
                img{
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    object-position: bottom;
                    margin: auto;
                }
            }
            h3{
                font-weight: 400;
                color: $tertiary;
                margin-bottom: 6px;
                order: 2;
                @media only screen and (max-width: 479px){
                    font-size: 16px;
                }
                @media only screen and (max-width: 639px){
                    line-height: 1;
                }
                @media only screen and (min-width: 480px){
                    margin-bottom: 16px;
                }
            }
            p{
                display: -webkit-box;
                -webkit-line-clamp: 12;
                -webkit-box-orient: vertical;  
                overflow: hidden;
                transition: all 0.6s;
                order: 3;
                margin: 0;
                @media only screen and (max-width: 479px){
                    font-size: 12px;
                    line-height: 1.2;
                }
                @media only screen and (min-width: 768x){
                    -webkit-line-clamp: 4;
                }
                @media only screen and (min-width: 1200px){
                    -webkit-line-clamp: 9;
                    line-height: 26px;
                }
            }
            &:hover{
                .image-wrapper{
                    bottom: -204px;
                    transition: all 0.6s;
                    &::before{
                        height: 100%;
                    }
                    @media only screen and (min-width: 1200px){
                        bottom: -172px;
                    }
                    @media only screen and (min-width: 1440px){
                        bottom: -190px;
                    }
                    @media only screen and (min-width: 1600px){
                        bottom: -204px;
                    }
                }
            }
        }
    }
}
